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

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


    Mockito.when(callsets.search(new SearchCallSetsRequest()
        .setVariantSetIds(Lists.newArrayList("dataset"))
        .setName("c2")))
        .thenReturn(callsetSearch);
    Mockito.when(callsetSearch.execute()).thenReturn(
        new SearchCallSetsResponse().setCallSets(Lists.newArrayList(new CallSet().setId("id1"))),
        new SearchCallSetsResponse() /* No callset results for c2 */);

    Mockito.when(variants.search(new SearchVariantsRequest()
        .setVariantSetIds(Lists.newArrayList("dataset"))
        .setReferenceName("chr1")
View Full Code Here


    UpdateCallSetCommand command = new UpdateCallSetCommand();

    command.callSetId = "id";
    command.name = "name";

    Mockito.when(callsets.patch("id", new CallSet().setName("name"))).thenReturn(callsetPatch);
    Mockito.when(callsetPatch.execute()).thenReturn(new CallSet().setName("newname"));

    command.handleRequest(genomics);

    String output = outContent.toString();
    assertTrue(output, output.contains("The call set was updated"));
View Full Code Here

      required = true)
  public String name;

  @Override
  public void handleRequest(Genomics genomics) throws IOException {
    CallSet callSet = new CallSet().setName(name);
    callSet = genomics.callsets().patch(callSetId, callSet).execute();

    System.out.println("The call set was updated: " + callSet.toPrettyString());
  }
View Full Code Here

TOP

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

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.