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

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


    Mockito.when(datasetList.execute()).thenReturn(new ListDatasetsResponse()
        .setDatasets(Lists.newArrayList(
            new Dataset().setId("id1").setName("name").setProjectNumber(1234L))));

    // 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())));
View Full Code Here


    command.name = "12878";

    Mockito.when(datasets.get("dataset")).thenReturn(datasetGet);
    Mockito.when(datasetGet.execute()).thenReturn(new Dataset().setId("id").setName("1kg"));

    Mockito.when(readsets.search(new SearchReadGroupSetsRequest()
        .setDatasetIds(Lists.newArrayList("dataset"))
        .setName("12878")
        .setPageSize(10)))
        .thenReturn(readsetSearch);
    Mockito.when(readsetSearch.execute()).thenReturn(new SearchReadGroupSetsResponse()
View Full Code Here

    System.out.println();
  }

  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();
View Full Code Here

    if (dataset == null) {
      return;
    }
    System.out.println("Getting read group sets from: " + dataset.getName());

    SearchReadGroupSetsRequest request = new SearchReadGroupSetsRequest()
        .setDatasetIds(Lists.newArrayList(datasetId))
        .setName(name)
        .setPageSize(getMaxResults());
    printResults(Paginator.ReadGroupSets.create(genomics), request);
  }
View Full Code Here

TOP

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

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.