Skip to content
Snippets Groups Projects
Commit df5b8d8c authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Fixed tests

parent 53c59c03
No related branches found
No related tags found
No related merge requests found
...@@ -179,8 +179,8 @@ class ShivaVariantcalling(val root: Configurable) extends QScript ...@@ -179,8 +179,8 @@ class ShivaVariantcalling(val root: Configurable) extends QScript
/** Settings for the summary */ /** Settings for the summary */
def summarySettings = Map( def summarySettings = Map(
"variantcallers" -> configCallers.toList, "variantcallers" -> configCallers.toList,
"regions_of_interest" -> roiBedFiles.map(_.getName.stripSuffix(".bed")), "regions_of_interest" -> roiBedFiles.map(_.getName),
"amplicon_bed" -> ampliconBedFile.map(_.getName.stripSuffix(".bed")) "amplicon_bed" -> ampliconBedFile.map(_.getAbsolutePath)
) )
/** Files for the summary */ /** Files for the summary */
......
...@@ -117,13 +117,13 @@ trait ShivaVariantcallingTestTrait extends TestNGSuite with Matchers { ...@@ -117,13 +117,13 @@ trait ShivaVariantcallingTestTrait extends TestNGSuite with Matchers {
(if (haplotypeCallerAllele) 1 else 0) + (if (haplotypeCallerGvcf) bams else 0) (if (haplotypeCallerAllele) 1 else 0) + (if (haplotypeCallerGvcf) bams else 0)
pipeline.functions.count(_.isInstanceOf[UnifiedGenotyper]) shouldBe (if (unifiedGenotyper) 1 else 0) + pipeline.functions.count(_.isInstanceOf[UnifiedGenotyper]) shouldBe (if (unifiedGenotyper) 1 else 0) +
(if (unifiedGenotyperAllele) 1 else 0) (if (unifiedGenotyperAllele) 1 else 0)
pipeline.functions.count(_.isInstanceOf[VcfStats]) shouldBe (1 + callers.size + (roiBedFiles ++ ampliconBedFile).length) pipeline.functions.count(_.isInstanceOf[VcfStats]) shouldBe (1 + callers.size + (roiBedFiles ++ ampliconBedFile).length * (1+ callers.size))
pipeline.functions.count(_.isInstanceOf[VtNormalize]) shouldBe (if (normalize) callers.size else 0) pipeline.functions.count(_.isInstanceOf[VtNormalize]) shouldBe (if (normalize) callers.size else 0)
pipeline.functions.count(_.isInstanceOf[VtDecompose]) shouldBe (if (decompose) callers.size else 0) pipeline.functions.count(_.isInstanceOf[VtDecompose]) shouldBe (if (decompose) callers.size else 0)
pipeline.functions.count(_.isInstanceOf[GenotypeConcordance]) shouldBe (if (referenceVcf.isDefined) 1 else 0) pipeline.functions.count(_.isInstanceOf[GenotypeConcordance]) shouldBe (if (referenceVcf.isDefined) 1 + callers.size else 0)
pipeline.summarySettings.get("variantcallers") shouldBe Some(callers.toList) pipeline.summarySettings.get("variantcallers") shouldBe Some(callers.toList)
pipeline.summarySettings.get("amplicon_bed") shouldBe ampliconBedFile.map(_.getAbsolutePath) pipeline.summarySettings.get("amplicon_bed") shouldBe Some(ampliconBedFile.map(_.getAbsolutePath))
pipeline.summarySettings.get("regions_of_interest") shouldBe Some(roiBedFiles.map(_.getAbsolutePath)) pipeline.summarySettings.get("regions_of_interest") shouldBe Some(roiBedFiles.map(_.getAbsolutePath))
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment