ShivaReport.scala 1.63 KB
Newer Older
1
2
package nl.lumc.sasc.biopet.pipelines.shiva

3
import nl.lumc.sasc.biopet.core.report.{ ReportSection, MultisampleReportBuilder, ReportPage }
4
5
6
7
8
9
import nl.lumc.sasc.biopet.pipelines.flexiprep.FlexiprepReport

/**
 * Created by pjvan_thof on 3/30/15.
 */
object ShivaReport extends MultisampleReportBuilder {
10
11
12
13
14
15
16
17
18
19
20
21
22
  def indexPage = ReportPage(
    Map(
      "General" -> ReportPage(Map(), List(
        "Variantcalling" -> ReportSection("/nl/lumc/sasc/biopet/core/report/ShivaVariantcalling.ssp"),
        "QC reads" -> ReportSection("/nl/lumc/sasc/biopet/pipelines/flexiprep/flexiprepReadSummary.ssp"),
        "QC bases" -> ReportSection("/nl/lumc/sasc/biopet/pipelines/flexiprep/flexiprepBaseSummary.ssp")
      ), Map()),
      "Samples" -> generateSamplesPage(pageArgs)
    ),
    Nil,
    pageArgs
  )

23
  def samplePage(sampleId: String, args: Map[String, Any]) = {
Peter van 't Hof's avatar
Peter van 't Hof committed
24
    ReportPage(Map("Libraries" -> generateLibraryPage(args)), List(
25
26
27
      "Variantcalling" -> ReportSection("/nl/lumc/sasc/biopet/core/report/ShivaVariantcalling.ssp"),
      "QC reads" -> ReportSection("/nl/lumc/sasc/biopet/pipelines/flexiprep/flexiprepReadSummary.ssp"),
      "QC bases" -> ReportSection("/nl/lumc/sasc/biopet/pipelines/flexiprep/flexiprepBaseSummary.ssp")
28
29
30
31
    ), args)
  }

  def libraryPage(libId: String, args: Map[String, Any]) = {
32
    ReportPage(Map("QC" -> FlexiprepReport.indexPage), List(
33
34
35
      "QC reads" -> ReportSection("/nl/lumc/sasc/biopet/pipelines/flexiprep/flexiprepReadSummary.ssp"),
      "QC bases" -> ReportSection("/nl/lumc/sasc/biopet/pipelines/flexiprep/flexiprepBaseSummary.ssp")
    ), args)
36
37
38
39
40
41
  }

  def reportName = "Title Test"

  // FIXME: Not yet finished
}