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

Fix summary for picard

parent 856f286b
......@@ -89,9 +89,10 @@ object Picard {
val start = lines.indexWhere(_.startsWith("## " + tag)) + 1
val end = lines.indexOf("", start)
val header = lines(start).split("\t")
val content = (for (i <- (start + 1) until end) yield lines(i).split("\t"))
.map(row => row.map(col => tryToParseNumber(col, true).getOrElse(col)))
val header = lines(start).split("\t").toList
val content = (for (i <- (start + 1) until end) yield {
lines(i).split("\t").map(v => tryToParseNumber(v, true).getOrElse(v)).toList
}).toList
Some(Map("header" -> header, "content" -> content))
}
......
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