Commit 08560e40 authored by Peter van 't Hof's avatar Peter van 't Hof

Switch order of blocks

parent 36241436
......@@ -164,6 +164,22 @@ trait SummaryQScript extends BiopetQScript { qscript: QScript =>
}
}
qscript match {
case q: MultiSampleQScript =>
// Global level
for ((key, file) <- qscript.summaryFiles) addChecksum(file)
for ((sampleName, sample) <- q.samples) {
// Sample level
for ((key, file) <- sample.summaryFiles) addChecksum(file)
for ((libName, lib) <- sample.libraries) {
// Library level
for ((key, file) <- lib.summaryFiles) addChecksum(file)
}
}
case q => for ((key, file) <- q.summaryFiles) addChecksum(file)
}
for (inputFile <- inputFiles) {
inputFile.md5 match {
case Some(checksum) => {
......@@ -189,22 +205,6 @@ trait SummaryQScript extends BiopetQScript { qscript: QScript =>
case _ => add(writeSummary)
}
qscript match {
case q: MultiSampleQScript =>
// Global level
for ((key, file) <- qscript.summaryFiles) addChecksum(file)
for ((sampleName, sample) <- q.samples) {
// Sample level
for ((key, file) <- sample.summaryFiles) addChecksum(file)
for ((libName, lib) <- sample.libraries) {
// Library level
for ((key, file) <- lib.summaryFiles) addChecksum(file)
}
}
case q => for ((key, file) <- q.summaryFiles) addChecksum(file)
}
addedJobs = 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