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

Format fix

parent 5540574b
......@@ -8,21 +8,21 @@ import nl.lumc.sasc.biopet.core.summary.Summary
trait MultisampleReportBuilder extends ReportBuilder {
def generalPage: ReportPage
def samplePage(sampleId: String, args: Map[String, Any]) : ReportPage
def samplePage(sampleId: String, args: Map[String, Any]): ReportPage
def libraryPage(libraryId: String, args: Map[String, Any]) : ReportPage
def libraryPage(libraryId: String, args: Map[String, Any]): ReportPage
def generateSamplesPage(args: Map[String, Any]) : ReportPage = {
def generateSamplesPage(args: Map[String, Any]): ReportPage = {
val samplePages = summary.samples
.map(sampleId => (sampleId -> samplePage(sampleId, args ++ Map("sampleId" -> Some(sampleId)))))
.toMap
ReportPage(samplePages, Map(), args)
}
def generateLibraryPage(args: Map[String, Any]) : ReportPage = {
def generateLibraryPage(args: Map[String, Any]): ReportPage = {
val libPages = summary.libraries(args("sampleId") match {
case Some(x) => x.toString
case None => throw new IllegalStateException("Sample not found")
case None => throw new IllegalStateException("Sample not found")
})
.map(libId => (libId -> libraryPage(libId, args ++ Map("libId" -> Some(libId)))))
.toMap
......
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