Commit b32296d9 authored by Peter van 't Hof's avatar Peter van 't Hof

Checking content of insertsize metrics

parent 50b8f109
......@@ -59,7 +59,7 @@ trait MultisampleMappingReportTrait extends MultisampleReportBuilder {
library = NoLibrary, mustHaveSample = true), Duration.Inf) >= 1
val rnaExecuted = Await.result(summary.getStatsSize(runId, "bammetrics", "rna",
library = NoLibrary, mustHaveSample = true), Duration.Inf) >= 1
val insertsizeExecuted = summary.getSettingsForSamples(runId, pipelineName, NoModule, keyValues = Map()).count(_._2("paired") == Some(true)) >= 1
val insertsizeExecuted = summary.getStatsForSamples(runId, "bammetrics", "CollectInsertSizeMetrics", keyValues = Map("metrics" -> List("metrics"))).exists(_._2("metrics").isDefined)
val mappingExecuted = Await.result(summary.getStatsSize(runId, "mapping", NoModule, mustHaveLibrary = true), Duration.Inf) >= 1
val mappingSettings = summary.getSettingsForLibraries(runId, "mapping", NoModule, keyValues = Map("paired" -> List("paired")))
val pairedFound = !mappingExecuted || mappingSettings.exists(_._2.exists(_._2 == Option(true)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment