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

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


    // 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(
        Lists.newArrayList(new ReferenceBound().setReferenceName("contigX"))));
View Full Code Here


    command.readGroupSetIds = Lists.newArrayList("r1", "r2");

    Mockito.when(readsets.get("r1")).thenReturn(readsetGet);
    Mockito.when(readsets.get("r2")).thenReturn(readsetGet);
    Mockito.when(readsetGet.execute()).thenReturn(
        new ReadGroupSet().setName("name1"),
        new ReadGroupSet().setName("name2"));

    command.handleRequest(genomics);

    String output = outContent.toString();
    assertTrue(output, output.contains("name1"));
View Full Code Here

    // Get the readsets
    Mockito.when(readsets.get("r1")).thenReturn(readsetGet);
    Mockito.when(readsets.get("r2")).thenReturn(readsetGet);
    Mockito.when(readsetGet.execute()).thenReturn(
        new ReadGroupSet().setName("name1"),
        new ReadGroupSet().setName("name2"));

    // Export them
    Mockito.when(readsets.export(Mockito.any(ExportReadGroupSetsRequest.class)))
        .thenReturn(readsetExport);
    Mockito.when(readsetExport.execute()).thenReturn(
View Full Code Here

    printJob(job);

    // If the job is finished, get the imported ids
    if (job.getImportedIds() != null) {
      for (String id : job.getImportedIds()) {
        ReadGroupSet readGroupSet = genomics.readgroupsets().get(id)
            .setFields("id,name,filename").execute();
        System.out.println("Imported read group set: " + readGroupSet.toPrettyString());
      }
    }
  }
View Full Code Here

TOP

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

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.