Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Mirrors
biopet.biopet
Commits
3a302742
Commit
3a302742
authored
Aug 24, 2016
by
Peter van 't Hof
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing report
parent
2d3a083a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
mapping/src/main/scala/nl/lumc/sasc/biopet/pipelines/mapping/MultisampleMappingReport.scala
...c/biopet/pipelines/mapping/MultisampleMappingReport.scala
+3
-2
No files found.
mapping/src/main/scala/nl/lumc/sasc/biopet/pipelines/mapping/MultisampleMappingReport.scala
View file @
3a302742
...
...
@@ -49,7 +49,8 @@ trait MultisampleMappingReportTrait extends MultisampleReportBuilder {
val
wgsExecuted
=
summary
.
getSampleValues
(
"bammetrics"
,
"stats"
,
"wgs"
).
values
.
exists
(
_
.
isDefined
)
val
rnaExecuted
=
summary
.
getSampleValues
(
"bammetrics"
,
"stats"
,
"rna"
).
values
.
exists
(
_
.
isDefined
)
val
insertsizeExecuted
=
summary
.
getSampleValues
(
"bammetrics"
,
"stats"
,
"CollectInsertSizeMetrics"
,
"metrics"
).
values
.
exists
(
_
!=
Some
(
None
))
val
pairedFound
=
summary
.
getLibraryValues
(
"mapping"
,
"settings"
,
"paired"
).
exists
(
_
.
_2
==
Some
(
true
))
val
mappingExecuted
=
summary
.
getLibraryValues
(
"mapping"
).
nonEmpty
val
pairedFound
=
!
mappingExecuted
||
summary
.
getLibraryValues
(
"mapping"
,
"settings"
,
"paired"
).
exists
(
_
.
_2
==
Some
(
true
))
val
flexiprepExecuted
=
summary
.
getLibraryValues
(
"flexiprep"
)
.
exists
{
case
((
sample
,
lib
),
value
)
=>
value
.
isDefined
}
...
...
@@ -72,7 +73,7 @@ trait MultisampleMappingReportTrait extends MultisampleReportBuilder {
List
(
"Alignment"
->
ReportSection
(
"/nl/lumc/sasc/biopet/pipelines/bammetrics/alignmentSummary.ssp"
,
Map
(
"sampleLevel"
->
true
,
"showPlot"
->
true
,
"showTable"
->
false
)
))
++
(
if
(
insertsizeExecuted
&&
pairedFound
)
List
(
"Insert Size"
->
ReportSection
(
"/nl/lumc/sasc/biopet/pipelines/bammetrics/insertSize.ssp"
,
(
if
(
pairedFound
)
List
(
"Insert Size"
->
ReportSection
(
"/nl/lumc/sasc/biopet/pipelines/bammetrics/insertSize.ssp"
,
Map
(
"sampleLevel"
->
true
,
"showPlot"
->
true
,
"showTable"
->
false
)))
else
Nil
)
++
(
if
(
wgsExecuted
)
List
(
"Whole genome coverage"
->
ReportSection
(
"/nl/lumc/sasc/biopet/pipelines/bammetrics/wgsHistogram.ssp"
,
...
...
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