diff --git a/public/biopet-core/src/main/scala/nl/lumc/sasc/biopet/core/summary/SummaryQScript.scala b/public/biopet-core/src/main/scala/nl/lumc/sasc/biopet/core/summary/SummaryQScript.scala index ab2f64546a7f79e8432ec1ac7ff0ab19427cccfc..264800c70ae3718ef6cf786b43a5907c62861606 100644 --- a/public/biopet-core/src/main/scala/nl/lumc/sasc/biopet/core/summary/SummaryQScript.scala +++ b/public/biopet-core/src/main/scala/nl/lumc/sasc/biopet/core/summary/SummaryQScript.scala @@ -116,20 +116,6 @@ trait SummaryQScript extends BiopetQScript { qscript => //TODO: add more checksums types } - for (inputFile <- inputFiles) { - inputFile.md5 match { - case Some(checksum) => { - val checkMd5 = new CheckChecksum - checkMd5.inputFile = inputFile.file - require(SummaryQScript.md5sumCache.contains(inputFile.file), "Md5 job is not executed, checksum file can't be found") - checkMd5.checksumFile = SummaryQScript.md5sumCache(inputFile.file) - checkMd5.checksum = checksum - add(checkMd5) - } - case _ => - } - } - for ((_, summarizableList) <- summarizables; summarizable <- summarizableList) { summarizable match { case f: BiopetCommandLineFunction => f.beforeGraph() @@ -146,6 +132,21 @@ trait SummaryQScript extends BiopetQScript { qscript => } } + for (inputFile <- inputFiles) { + inputFile.md5 match { + case Some(checksum) => { + val checkMd5 = new CheckChecksum + checkMd5.inputFile = inputFile.file + require(SummaryQScript.md5sumCache.contains(inputFile.file), + s"Md5 job is not executed, checksum file can't be found for: ${inputFile.file}") + checkMd5.checksumFile = SummaryQScript.md5sumCache(inputFile.file) + checkMd5.checksum = checksum + add(checkMd5) + } + case _ => + } + } + for ((_, file) <- this.summaryFiles) addChecksum(file)