Search in sources :

Example 1 with StartingPoints

use of com.hartwig.pipeline.reruns.StartingPoint.StartingPoints in project pipeline5 by hartwigmedical.

the class StartingPointTest method startingPointsAreUpToDate.

@Test
public void startingPointsAreUpToDate() {
    List<Namespace> endStages = namespacesOf(Sigs.class, Orange.class, Cram2Bam.class, HealthChecker.class, Protect.class, Lilac.class, Cuppa.class, Peach.class);
    NamespacesTest.allNamespaces().stream().filter(n -> !endStages.contains(n)).map(Namespace::value).collect(toList()).forEach(n -> {
        boolean referenced = false;
        for (StartingPoints points : StartingPoints.values()) {
            if (new StartingPoint(testArgumentsWithStartingPoint(points.name())).usePersisted(n)) {
                referenced = true;
            }
        }
        assertThat(referenced).as("Namespace %s is referenced from at least one starting point", n).isTrue();
    });
}
Also used : Cuppa(com.hartwig.pipeline.tertiary.cuppa.Cuppa) Orange(com.hartwig.pipeline.tertiary.orange.Orange) Arrays(java.util.Arrays) Arguments(com.hartwig.pipeline.Arguments) Cram2Bam(com.hartwig.pipeline.cram2bam.Cram2Bam) Namespace(com.hartwig.pipeline.stages.Namespace) Assertions.assertThat(org.assertj.core.api.Assertions.assertThat) SageConfiguration(com.hartwig.pipeline.calling.sage.SageConfiguration) Stage(com.hartwig.pipeline.stages.Stage) Aligner(com.hartwig.pipeline.alignment.Aligner) SnpGenotype(com.hartwig.pipeline.snpgenotype.SnpGenotype) Reflections(org.reflections.Reflections) Cobalt(com.hartwig.pipeline.tertiary.cobalt.Cobalt) Peach(com.hartwig.pipeline.tertiary.peach.Peach) ArrayList(java.util.ArrayList) Amber(com.hartwig.pipeline.tertiary.amber.Amber) BamMetrics(com.hartwig.pipeline.metrics.BamMetrics) StartingPoints(com.hartwig.pipeline.reruns.StartingPoint.StartingPoints) Gridss(com.hartwig.pipeline.calling.structural.gridss.Gridss) NamespacesTest(com.hartwig.pipeline.stages.NamespacesTest) Lilac(com.hartwig.pipeline.tertiary.lilac.Lilac) Sigs(com.hartwig.pipeline.tertiary.sigs.Sigs) Purple(com.hartwig.pipeline.tertiary.purple.Purple) Test(org.junit.Test) Collectors(java.util.stream.Collectors) Protect(com.hartwig.pipeline.tertiary.protect.Protect) ClasspathHelper(org.reflections.util.ClasspathHelper) SubTypesScanner(org.reflections.scanners.SubTypesScanner) Flagstat(com.hartwig.pipeline.flagstat.Flagstat) Collectors.toList(java.util.stream.Collectors.toList) List(java.util.List) StartingPoints.values(com.hartwig.pipeline.reruns.StartingPoint.StartingPoints.values) HealthChecker(com.hartwig.pipeline.tertiary.healthcheck.HealthChecker) CramConversion(com.hartwig.pipeline.cram.CramConversion) Annotation(java.lang.annotation.Annotation) GermlineCaller(com.hartwig.pipeline.calling.germline.GermlineCaller) StartingPoints(com.hartwig.pipeline.reruns.StartingPoint.StartingPoints) Namespace(com.hartwig.pipeline.stages.Namespace) NamespacesTest(com.hartwig.pipeline.stages.NamespacesTest) Test(org.junit.Test)

Aggregations

Arguments (com.hartwig.pipeline.Arguments)1 Aligner (com.hartwig.pipeline.alignment.Aligner)1 GermlineCaller (com.hartwig.pipeline.calling.germline.GermlineCaller)1 SageConfiguration (com.hartwig.pipeline.calling.sage.SageConfiguration)1 Gridss (com.hartwig.pipeline.calling.structural.gridss.Gridss)1 CramConversion (com.hartwig.pipeline.cram.CramConversion)1 Cram2Bam (com.hartwig.pipeline.cram2bam.Cram2Bam)1 Flagstat (com.hartwig.pipeline.flagstat.Flagstat)1 BamMetrics (com.hartwig.pipeline.metrics.BamMetrics)1 StartingPoints (com.hartwig.pipeline.reruns.StartingPoint.StartingPoints)1 StartingPoints.values (com.hartwig.pipeline.reruns.StartingPoint.StartingPoints.values)1 SnpGenotype (com.hartwig.pipeline.snpgenotype.SnpGenotype)1 Namespace (com.hartwig.pipeline.stages.Namespace)1 NamespacesTest (com.hartwig.pipeline.stages.NamespacesTest)1 Stage (com.hartwig.pipeline.stages.Stage)1 Amber (com.hartwig.pipeline.tertiary.amber.Amber)1 Cobalt (com.hartwig.pipeline.tertiary.cobalt.Cobalt)1 Cuppa (com.hartwig.pipeline.tertiary.cuppa.Cuppa)1 HealthChecker (com.hartwig.pipeline.tertiary.healthcheck.HealthChecker)1 Lilac (com.hartwig.pipeline.tertiary.lilac.Lilac)1