Search in sources :

Example 6 with SomaticRunMetadata

use of com.hartwig.pipeline.metadata.SomaticRunMetadata in project pipeline5 by hartwigmedical.

the class FullPipelineTest method supportsSingleSampleIni.

@Ignore("May not support single sample")
@Test
public void supportsSingleSampleIni() throws Exception {
    SomaticRunMetadata metadata = TestInputs.defaultSingleSampleRunMetadata();
    when(api.get()).thenReturn(metadata);
    victim = new FullPipeline(reference, tumor, somatic, Executors.newCachedThreadPool(), referenceListener, tumorListener, api, cleanup);
    when(reference.run(metadata.reference())).then(callHandlers(referenceListener, TestInputs.referenceAlignmentOutput(), succeeded()));
    when(somatic.run(TestInputs.defaultPair())).thenReturn(succeeded());
    assertThat(victim.run().status()).isEqualTo(PipelineStatus.SUCCESS);
}
Also used : SomaticRunMetadata(com.hartwig.pipeline.metadata.SomaticRunMetadata) Ignore(org.junit.Ignore) Test(org.junit.Test)

Aggregations

SomaticRunMetadata (com.hartwig.pipeline.metadata.SomaticRunMetadata)6 PipelineStatus (com.hartwig.pipeline.execution.PipelineStatus)5 AddDatatype (com.hartwig.pipeline.metadata.AddDatatype)4 PersistedDataset (com.hartwig.pipeline.reruns.PersistedDataset)4 Versions (com.hartwig.pipeline.tools.Versions)4 List (java.util.List)4 ResultsDirectory (com.hartwig.pipeline.ResultsDirectory)3 BashCommand (com.hartwig.pipeline.execution.vm.BashCommand)3 BashStartupScript (com.hartwig.pipeline.execution.vm.BashStartupScript)3 VirtualMachineJobDefinition (com.hartwig.pipeline.execution.vm.VirtualMachineJobDefinition)3 ArchivePath (com.hartwig.pipeline.metadata.ArchivePath)3 Folder (com.hartwig.pipeline.report.Folder)3 RunLogComponent (com.hartwig.pipeline.report.RunLogComponent)3 PersistedLocations (com.hartwig.pipeline.reruns.PersistedLocations)3 GoogleStorageLocation (com.hartwig.pipeline.storage.GoogleStorageLocation)3 RuntimeBucket (com.hartwig.pipeline.storage.RuntimeBucket)3 NotNull (org.jetbrains.annotations.NotNull)3 Lists (com.google.api.client.util.Lists)2 Publisher (com.google.cloud.pubsub.v1.Publisher)2 Arguments (com.hartwig.pipeline.Arguments)2