GearsReport.scala 1.04 KB
Newer Older
Wai Yi Leung's avatar
Wai Yi Leung committed
1
2
package nl.lumc.sasc.biopet.pipelines.gears

3
import nl.lumc.sasc.biopet.core.report._
Wai Yi Leung's avatar
Wai Yi Leung committed
4
import nl.lumc.sasc.biopet.utils.config.Configurable
Wai Yi Leung's avatar
Wai Yi Leung committed
5
6

class GearsReport(val root: Configurable) extends ReportBuilderExtension {
7
  def builder = GearsReport
Wai Yi Leung's avatar
Wai Yi Leung committed
8
9
}

10
object GearsReport extends ReportBuilder {
Wai Yi Leung's avatar
Wai Yi Leung committed
11

12
  // TODO: Add dustbin analysis (aggregated)
Wai Yi Leung's avatar
Wai Yi Leung committed
13
14
  // TODO: Add alignment stats per sample for the dustbin analysis

Peter van 't Hof's avatar
Peter van 't Hof committed
15
16
  override def extFiles = super.extFiles ++ List("js/gears.js")
    .map(x => ExtFile("/nl/lumc/sasc/biopet/pipelines/gears/report/ext/" + x, x))
17

Wai Yi Leung's avatar
Wai Yi Leung committed
18
19
  def indexPage = {
    ReportPage(
Peter van 't Hof's avatar
Peter van 't Hof committed
20
21
22
23
24
      List(
        "Versions" -> ReportPage(List(), List((
          "Executables" -> ReportSection("/nl/lumc/sasc/biopet/core/report/executables.ssp"
          ))), Map())
      ),
Wai Yi Leung's avatar
Wai Yi Leung committed
25
      List(
Wai Yi Leung's avatar
Wai Yi Leung committed
26
27
        "Gears intro" -> ReportSection("/nl/lumc/sasc/biopet/pipelines/gears/gearsFront.ssp"),
        "Sunburst analysis" -> ReportSection("/nl/lumc/sasc/biopet/pipelines/gears/gearsSunburst.ssp")
Wai Yi Leung's avatar
Wai Yi Leung committed
28
29
30
31
32
33
34
35
      ),
      pageArgs
    )
  }

  def reportName = "Gears :: Metagenomics Report"

}