Skip to content
GitLab
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
8d4df927
Commit
8d4df927
authored
Jan 19, 2017
by
Giannis Moustakas
Committed by
GitHub
Jan 19, 2017
Browse files
Merge pull request #6 from biopet/fix-BIOPET-526
Fix for error when creating the report
parents
3c489130
e548e078
Changes
1
Hide whitespace changes
Inline
Side-by-side
bammetrics/src/main/scala/nl/lumc/sasc/biopet/pipelines/bammetrics/BammetricsReport.scala
View file @
8d4df927
...
...
@@ -345,8 +345,7 @@ object BammetricsReport extends ReportBuilder {
val
pathValues
:
Map
[
String
,
Array
[
Any
]]
=
paths
.
map
{
case
(
key
,
path
)
=>
val
value
=
summary
.
getValueAsArray
(
sampleId
,
libId
,
path
:
_
*
)
require
(
value
.
isDefined
,
s
"Sample: $sampleId, library: $libId on path: '${path.mkString("
,
")}' does not exist in summary"
)
key
->
value
.
get
key
->
value
.
getOrElse
(
Array
())
}
require
(
pathValues
.
map
(
_
.
_2
.
size
).
toList
.
distinct
.
size
==
1
,
s
"Arrays in summary does not have the same number of values, $paths"
)
pathValues
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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