Commit 307e9c87 authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Format fixed

parent 7f45b476
...@@ -86,7 +86,7 @@ class VcfStats(val root: Configurable) extends ToolCommandFunction with Summariz ...@@ -86,7 +86,7 @@ class VcfStats(val root: Configurable) extends ToolCommandFunction with Summariz
Map("info" -> (for ( Map("info" -> (for (
line <- Source.fromFile(generalStats).getLines().toList.tail; line <- Source.fromFile(generalStats).getLines().toList.tail;
values = line.split("\t") if values.size >= 2 && !values(0).isEmpty values = line.split("\t") if values.size >= 2 && !values(0).isEmpty
) yield values(0) -> tryToParseNumber(values(1)) ) yield values(0) -> tryToParseNumber(values(1)).getOrElse(None)
).toMap) ).toMap)
} }
...@@ -102,7 +102,7 @@ class VcfStats(val root: Configurable) extends ToolCommandFunction with Summariz ...@@ -102,7 +102,7 @@ class VcfStats(val root: Configurable) extends ToolCommandFunction with Summariz
for (s <- 1 until data(0).size) { for (s <- 1 until data(0).size) {
val sample = data(0)(s) val sample = data(0)(s)
val stats = Map("genotype" -> (for (f <- 1 until data.length) yield { val stats = Map("genotype" -> (for (f <- 1 until data.length) yield {
data(f)(0) -> tryToParseNumber(data(f)(s)) data(f)(0) -> tryToParseNumber(data(f)(s)).getOrElse(None)
}).toMap) }).toMap)
val sum = new Summarizable { val sum = new Summarizable {
......
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