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

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


    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"))));

    command.handleRequest(genomics);

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


        .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());

    command.handleRequest(genomics);

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

    command.variantSetIds = Lists.newArrayList("v1", "v2");

    Mockito.when(variantSets.get("v1")).thenReturn(variantSetGet);
    Mockito.when(variantSets.get("v2")).thenReturn(variantSetGet);
    Mockito.when(variantSetGet.execute()).thenReturn(
        new VariantSet().setId("id1"),
        new VariantSet().setId("id2"));

    command.handleRequest(genomics);

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

    System.out.println(dataset.toPrettyString());
    System.out.print("Read group sets: ");
    System.out.println(getReadsetCount(genomics, id));

    // Variant set
    VariantSet variantSet = genomics.variantsets().get(id).setFields("referenceBounds").execute();
    if (variantSet != null && variantSet.getReferenceBounds() != null) {
      // Only print out a variant set if one exists
      System.out.println("Variant set: " + variantSet.toPrettyString());
    }

    System.out.println();
  }
View Full Code Here

TOP

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

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.