GearsReport.scala 1.15 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
7
8
9

class GearsReport(val root: Configurable) extends ReportBuilderExtension {
  val builder = GearsReport
}

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

  // FIXME: Not yet finished
  // TODO: Sample specific: Add summary (sunflare plot)
14
  // TODO: Add dustbin analysis (aggregated)
Wai Yi Leung's avatar
Wai Yi Leung committed
15
16
  // TODO: Add alignment stats per sample for the dustbin analysis

17
18
  override def extFiles = super.extFiles ++ List(
    "js/gears.js"
19
  ).map(x => ExtFile("/nl/lumc/sasc/biopet/pipelines/gears/report/ext/" + x, x))
20

Wai Yi Leung's avatar
Wai Yi Leung committed
21
22
  def indexPage = {
    ReportPage(
23
      List() ++
Wai Yi Leung's avatar
Wai Yi Leung committed
24
        Map(
Wai Yi Leung's avatar
Wai Yi Leung committed
25
26
27
28
29
          "Versions" -> ReportPage(List(), List((
            "Executables" -> ReportSection("/nl/lumc/sasc/biopet/core/report/executables.ssp"
            ))), Map())
        ),
      List(
Wai Yi Leung's avatar
Wai Yi Leung committed
30
31
        "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
32
33
34
35
36
37
38
39
      ),
      pageArgs
    )
  }

  def reportName = "Gears :: Metagenomics Report"

}