Commit 4013b925 authored by Peter van 't Hof's avatar Peter van 't Hof

style changes

parent 7e1ef164
......@@ -16,15 +16,15 @@ object BammetricsReport extends ReportBuilder {
def indexPage = ReportPage(Map(), List(), Map())
def bamMetricsPage(summary:Summary, sampleId: Option[String], libId: Option[String]) = {
def bamMetricsPage(summary: Summary, sampleId: Option[String], libId: Option[String]) = {
val targets = (
summary.getLibraryValue(sampleId, libId, "bammetrics", "settings", "amplicon_name"),
summary.getLibraryValue(sampleId, libId, "bammetrics", "settings", "roi_name")
) match {
case (Some(amplicon:String), Some(roi:List[_])) => amplicon :: roi.map(_.toString)
case (_, Some(roi:List[_])) => roi.map(_.toString)
case _ => Nil
}
) match {
case (Some(amplicon: String), Some(roi: List[_])) => amplicon :: roi.map(_.toString)
case (_, Some(roi: List[_])) => roi.map(_.toString)
case _ => Nil
}
ReportPage(
(if (targets.isEmpty) Map() else Map("Targets" -> ReportPage(
......@@ -40,7 +40,6 @@ object BammetricsReport extends ReportBuilder {
)
}
def alignmentSummaryPlot(outputDir: File,
prefix: String,
summary: Summary,
......
......@@ -12,7 +12,7 @@ trait MultisampleReportBuilder extends ReportBuilder {
)
}
def libraryPage(sampleId:String, libraryId: String, args: Map[String, Any]): ReportPage
def libraryPage(sampleId: String, libraryId: String, args: Map[String, Any]): ReportPage
def libririesSections: List[(String, ReportSection)] = {
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