Commit e9c73310 authored by rhpvorderman's avatar rhpvorderman

Fix formatting

parent 9d27d507
......@@ -61,22 +61,23 @@ object MappingReport extends ReportBuilder {
Map("skip_flexiprep" -> List("skip_flexiprep"), "skip_metrics" -> List("skip_metrics"))
)
val skipFlexiprep = mappingSettings.get("skip_flexiprep").flatten.getOrElse(false) == true
val bamMetricsPageValues = BammetricsReport.bamMetricsPageValues(summary,sampleId,libId)
val flexiprepReportPageValues = FlexiprepReport.flexiprepPageSummaries(summary, sampleId.get, libId.get)
val bamMetricsPageValues = BammetricsReport.bamMetricsPageValues(summary, sampleId, libId)
val flexiprepReportPageValues =
FlexiprepReport.flexiprepPageSummaries(summary, sampleId.get, libId.get)
val bamMetricsPage =
if (mappingSettings.get("skip_metrics").flatten.getOrElse(false) == false) {
Some(BammetricsReport.bamMetricsPage(bamMetricsPageValues))
} else None
Future {
ReportPage(
(if (skipFlexiprep) Nil
else List("QC" -> FlexiprepReport.flexiprepPage(flexiprepReportPageValues))) :::
bamMetricsPage.map(_.subPages).getOrElse(Nil),
List(
"Report" -> ReportSection("/nl/lumc/sasc/biopet/pipelines/mapping/mappingFront.ssp")
) ::: bamMetricsPage.map(_.sections).getOrElse(Nil),
Map()
)
Future {
ReportPage(
(if (skipFlexiprep) Nil
else List("QC" -> FlexiprepReport.flexiprepPage(flexiprepReportPageValues))) :::
bamMetricsPage.map(_.subPages).getOrElse(Nil),
List(
"Report" -> ReportSection("/nl/lumc/sasc/biopet/pipelines/mapping/mappingFront.ssp")
) ::: bamMetricsPage.map(_.sections).getOrElse(Nil),
Map()
)
}
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment