Commit 31ee8b17 authored by Sander Bollen's avatar Sander Bollen
Browse files

use long for count of wgs coverage in stead of int.

parent e7b22ace
......@@ -195,7 +195,7 @@ object BammetricsReport extends ReportBuilder {
}
}
var map: Map[Int, Map[String, Int]] = Map()
var map: Map[Int, Map[String, Long]] = Map()
def fill(sample: String, lib: Option[String]): Unit = {
......@@ -208,7 +208,7 @@ object BammetricsReport extends ReportBuilder {
case (l: List[_], l2: List[_]) => {
l.zip(l2).foreach(i => {
val insertSize = i._1.toString.toInt
val count = i._2.toString.toInt
val count = i._2.toString.toLong
val old = map.getOrElse(insertSize, Map())
if (libraryLevel) map += insertSize -> (old + ((s"$sample-" + lib.get) -> count))
else map += insertSize -> (old + (sample -> count))
......
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