diff --git a/public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/core/summary/WriteSummary.scala b/public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/core/summary/WriteSummary.scala index 2219083a1017276b1191c4fed3d48093c374cc2c..e7bcb9f3e5c44feb5049ae8c9afd457ce560936e 100644 --- a/public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/core/summary/WriteSummary.scala +++ b/public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/core/summary/WriteSummary.scala @@ -75,12 +75,12 @@ class WriteSummary(val root: Configurable) extends InProcessFunction with Config for ((key, file) <- files) yield { val map: mutable.Map[String, Any] = mutable.Map() map += "path" -> file.getAbsolutePath - if (md5sum) map += "md5" -> parseChechsum(SummaryQScript.md5sumCache(file)) + if (md5sum) map += "md5" -> parseChecksum(SummaryQScript.md5sumCache(file)) key -> map.toMap } } - def parseChechsum(checksumFile: File): String = { + def parseChecksum(checksumFile: File): String = { Source.fromFile(checksumFile).getLines().toList.head.split(" ")(0) } }