Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mirrors
biopet.biopet
Commits
31ee8b17
Commit
31ee8b17
authored
Jun 24, 2015
by
Sander Bollen
Browse files
use long for count of wgs coverage in stead of int.
parent
e7b22ace
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/bammetrics/src/main/scala/nl/lumc/sasc/biopet/pipelines/bammetrics/BammetricsReport.scala
View file @
31ee8b17
...
...
@@ -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
.
to
Int
val
count
=
i
.
_2
.
toString
.
to
Long
val
old
=
map
.
getOrElse
(
insertSize
,
Map
())
if
(
libraryLevel
)
map
+=
insertSize
->
(
old
+
((
s
"$sample-"
+
lib
.
get
)
->
count
))
else
map
+=
insertSize
->
(
old
+
(
sample
->
count
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment