Commit 2b9a6487 authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

All regions on 1 page now

parent 6e820b47
...@@ -57,8 +57,11 @@ object ShivaReport extends MultisampleReportBuilder { ...@@ -57,8 +57,11 @@ object ShivaReport extends MultisampleReportBuilder {
var regionPages: Map[String, ReportPage] = Map() var regionPages: Map[String, ReportPage] = Map()
def createPage(name: String, amplicon: Boolean = false): ReportPage = { def createPage(name: String, amplicon: Boolean = false): ReportPage = {
//TODO: get target content ReportPage(
ReportPage(Map(), List("Coverage" -> ReportSection("/nl/lumc/sasc/biopet/pipelines/bammetrics/covstatsMultiTable.ssp")), Map("target" -> name)) Map(),
List("Coverage" -> ReportSection("/nl/lumc/sasc/biopet/pipelines/bammetrics/covstatsMultiTable.ssp")),
Map("target" -> name)
)
} }
amplicon match { amplicon match {
...@@ -72,8 +75,14 @@ object ShivaReport extends MultisampleReportBuilder { ...@@ -72,8 +75,14 @@ object ShivaReport extends MultisampleReportBuilder {
case _ => case _ =>
} }
if (regionPages.nonEmpty) Some("Regions" -> ReportPage(regionPages.keys.toList.sorted.map(x => x -> regionPages(x)).toMap, List(), Map())) if (regionPages.nonEmpty) Some("Regions" -> ReportPage(
else None Map(),
regionPages.map(p => (p._1 -> ReportSection(
"/nl/lumc/sasc/biopet/pipelines/bammetrics/covstatsMultiTable.ssp",
Map("target" -> p._1.stripSuffix(" (Amplicon)"))
))).toList.sortBy(_._1),
Map())
) else None
} }
def filesPage = ReportPage(Map(), List( def filesPage = ReportPage(Map(), List(
......
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