Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
biopet.biopet
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirrors
biopet.biopet
Commits
e548e078
Commit
e548e078
authored
8 years ago
by
Pappas
Browse files
Options
Downloads
Patches
Plain Diff
Fix for error whtn creatin the report
parent
4f5b8b61
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bammetrics/src/main/scala/nl/lumc/sasc/biopet/pipelines/bammetrics/BammetricsReport.scala
+1
-2
1 addition, 2 deletions
...c/sasc/biopet/pipelines/bammetrics/BammetricsReport.scala
with
1 addition
and
2 deletions
bammetrics/src/main/scala/nl/lumc/sasc/biopet/pipelines/bammetrics/BammetricsReport.scala
+
1
−
2
View file @
e548e078
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment