Package com.google.api.services.genomics.model

Examples of com.google.api.services.genomics.model.SearchReadGroupSetsResponse


    // Readset summary
    Mockito.when(readsets.search(new SearchReadGroupSetsRequest()
        .setDatasetIds(Lists.newArrayList("id1")).setPageSize(100)))
        .thenReturn(readsetSearch);
    Mockito.when(readsetSearch.execute()).thenReturn(new SearchReadGroupSetsResponse()
        .setReadGroupSets(Lists.newArrayList(new ReadGroupSet(), new ReadGroupSet())));

    // Variant set
    Mockito.when(variantSets.get("id1")).thenReturn(variantSetGet);
    Mockito.when(variantSetGet.execute()).thenReturn(new VariantSet().setReferenceBounds(
View Full Code Here


        .thenThrow(GoogleJsonResponseException.class);

    // Readset summary
    Mockito.when(readsets.search(Mockito.any(SearchReadGroupSetsRequest.class)))
        .thenReturn(readsetSearch);
    Mockito.when(readsetSearch.execute()).thenReturn(new SearchReadGroupSetsResponse());

    // Variant set
    Mockito.when(variantSets.get(Mockito.anyString())).thenReturn(variantSetGet);
    Mockito.when(variantSetGet.execute()).thenReturn(new VariantSet());
View Full Code Here

    Mockito.when(readsets.search(new SearchReadGroupSetsRequest()
        .setDatasetIds(Lists.newArrayList("dataset"))
        .setName("12878")
        .setPageSize(10)))
        .thenReturn(readsetSearch);
    Mockito.when(readsetSearch.execute()).thenReturn(new SearchReadGroupSetsResponse()
        .setReadGroupSets(Lists.<ReadGroupSet>newArrayList()));

    command.handleRequest(genomics);

    String output = outContent.toString();
View Full Code Here

  private String getReadsetCount(Genomics genomics, String datasetId) throws IOException {
    SearchReadGroupSetsRequest readsetSearch = new SearchReadGroupSetsRequest()
        .setDatasetIds(com.google.common.collect.Lists.newArrayList(datasetId))
        .setPageSize(100);

    SearchReadGroupSetsResponse readGroupSets = genomics.readgroupsets()
        .search(readsetSearch).setFields("nextPageToken,readGroupSets(id)").execute();
    if (readGroupSets.getReadGroupSets() == null) {
      return "0";
    }

    if (Strings.isNullOrEmpty(readGroupSets.getNextPageToken())) {
      return String.valueOf(readGroupSets.getReadGroupSets().size());
    } else {
      return "More than 100";
    }
  }
View Full Code Here

TOP

Related Classes of com.google.api.services.genomics.model.SearchReadGroupSetsResponse

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.