Skip to content
Snippets Groups Projects
Commit 908ac3bd authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Remove val, no need for it

parent 1c09d9c2
No related branches found
No related tags found
No related merge requests found
......@@ -94,11 +94,10 @@ object RegionAfCount extends ToolCommand {
val sums = for (r <- region) yield {
val it = reader.query(r.getContig, r.getStart, r.getEnd)
(for (v <- it) yield {
val bla = v.getAttribute("AF", 0) match {
(v.getAttribute("AF", 0) match {
case a: util.ArrayList[_] => a.map(_.toString.toDouble).toArray
case s => Array(s.toString.toDouble)
}
bla.sum
}).sum
}).sum
}
reader.close()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment