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
e07267db
Commit
e07267db
authored
Aug 15, 2015
by
Peter van 't Hof
Browse files
Skipping parts of report when they are skipped in the pipeline
parent
0ae99234
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/mapping/src/main/scala/nl/lumc/sasc/biopet/pipelines/mapping/MappingReport.scala
View file @
e07267db
...
@@ -35,18 +35,22 @@ object MappingReport extends ReportBuilder {
...
@@ -35,18 +35,22 @@ object MappingReport extends ReportBuilder {
/** Root page for single BamMetrcis report */
/** Root page for single BamMetrcis report */
def
indexPage
=
{
def
indexPage
=
{
val
bamMetricsPage
=
BammetricsReport
.
bamMetricsPage
(
summary
,
sampleId
,
libId
)
val
skipFlexiprep
=
summary
.
getValue
(
sampleId
,
libId
,
"mapping"
,
"settings"
,
"skip_flexiprep"
).
getOrElse
(
false
)
==
true
ReportPage
(
List
(
"QC"
->
FlexiprepReport
.
flexiprepPage
)
:::
bamMetricsPage
.
subPages
:::
List
(
val
bamMetricsPage
=
if
(
summary
.
getValue
(
sampleId
,
libId
,
"mapping"
,
"settings"
,
"skip_metrics"
).
getOrElse
(
false
)
==
true
)
{
"Versions"
->
ReportPage
(
List
(),
List
(
"Executables"
->
ReportSection
(
"/nl/lumc/sasc/biopet/core/report/executables.ssp"
Some
(
BammetricsReport
.
bamMetricsPage
(
summary
,
sampleId
,
libId
))
)),
Map
()),
}
else
None
"Files"
->
ReportPage
(
List
(),
List
(
ReportPage
((
if
(
skipFlexiprep
)
Nil
else
List
(
"QC"
->
FlexiprepReport
.
flexiprepPage
))
:::
"Input fastq files"
->
ReportSection
(
"/nl/lumc/sasc/biopet/pipelines/flexiprep/flexiprepInputfiles.ssp"
),
bamMetricsPage
.
map
(
_
.
subPages
).
getOrElse
(
Nil
)
:::
List
(
"After QC fastq files"
->
ReportSection
(
"/nl/lumc/sasc/biopet/pipelines/flexiprep/flexiprepOutputfiles.ssp"
),
"Versions"
->
ReportPage
(
List
(),
List
(
"Executables"
->
ReportSection
(
"/nl/lumc/sasc/biopet/core/report/executables.ssp"
"Bam files per lib"
->
ReportSection
(
"/nl/lumc/sasc/biopet/pipelines/mapping/outputBamfiles.ssp"
,
Map
(
"sampleLevel"
->
false
))
)),
Map
()),
),
Map
())
"Files"
->
ReportPage
(
List
(),
(
if
(
skipFlexiprep
)
Nil
else
List
(
),
List
(
"Input fastq files"
->
ReportSection
(
"/nl/lumc/sasc/biopet/pipelines/flexiprep/flexiprepInputfiles.ssp"
),
"After QC fastq files"
->
ReportSection
(
"/nl/lumc/sasc/biopet/pipelines/flexiprep/flexiprepOutputfiles.ssp"
)))
:::
List
(
"Bam files per lib"
->
ReportSection
(
"/nl/lumc/sasc/biopet/pipelines/mapping/outputBamfiles.ssp"
,
Map
(
"sampleLevel"
->
false
))
),
Map
())
),
List
(
"Report"
->
ReportSection
(
"/nl/lumc/sasc/biopet/pipelines/mapping/mappingFront.ssp"
)
"Report"
->
ReportSection
(
"/nl/lumc/sasc/biopet/pipelines/mapping/mappingFront.ssp"
)
)
:::
bamMetricsPage
.
sections
,
)
:::
bamMetricsPage
.
map
(
_
.
sections
).
getOrElse
(
Nil
)
,
Map
()
Map
()
)
)
}
}
...
...
Write
Preview
Supports
Markdown
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