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

Added function to acces the qscript from a summarizeable to add multiple...

Added function to acces the qscript from a summarizeable to add multiple summarizeables to the qscript
parent 17c6f86b
......@@ -17,6 +17,9 @@ trait Summarizable {
/** Must returns stats to store into summary */
def summaryStats: Map[String, Any]
/** Can be used to add additional Summarizable, this is executed at the start of WriteSummary*/
def addToQscriptSummary(qscript: SummaryQScript) {}
/**
* This function is used to merge value that are found at the same path in the map. Default there will throw a exception at conflicting values.
* @param v1 Value of new map
......
......@@ -46,6 +46,10 @@ class WriteSummary(val root: Configurable) extends InProcessFunction with Config
/** Function to create summary */
def run(): Unit = {
for (((name, sampleId, libraryId), summarizables) <- qscript.summarizables; summarizable <- summarizables) {
summarizable.addToQscriptSummary(qscript)
}
val pipelineMap = {
val files = parseFiles(qscript.summaryFiles)
val settings = qscript.summarySettings
......
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