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

Closing reader

parent 93e43cc6
......@@ -276,7 +276,9 @@ class VariantEffectPredictor(val root: Configurable) extends BiopetCommandLineFu
}
def parseStatsFile(file: File): Map[String, Any] = {
val contents = Source.fromFile(file).getLines().filter(_ != "").toList
val reader = Source.fromFile(file)
val contents = reader.getLines().filter(_ != "").toList
reader.close()
val headers = contents
.filter(x => x.startsWith("[") && x.endsWith("]"))
.map(_.stripPrefix("[").stripSuffix("]"))
......
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