Commit 6cadcab7 authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Fix add jobs to summary

parent 75029e8e
......@@ -66,7 +66,7 @@ trait SummaryQScript extends BiopetQScript {
*/
def addSummarizable(summarizable: Summarizable, name: String, sampleId: Option[String], libraryId: Option[String]): Unit = {
if (libraryId.isDefined) require(sampleId.isDefined) // Library always require a sample
summarizables.get((name, sampleId, libraryId)).foreach(summarizables += (name, sampleId, libraryId) -> _)
summarizables += (name, sampleId, libraryId) -> (summarizable :: summarizables.getOrElse((name, sampleId, libraryId), Nil))
}
/**
......
Supports Markdown
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