GearsSingleReport.scala 1.86 KB
Newer Older
Peter van 't Hof's avatar
Peter van 't Hof committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/**
 * Biopet is built on top of GATK Queue for building bioinformatic
 * pipelines. It is mainly intended to support LUMC SHARK cluster which is running
 * SGE. But other types of HPC that are supported by GATK Queue (such as PBS)
 * should also be able to execute Biopet tools and pipelines.
 *
 * Copyright 2014 Sequencing Analysis Support Core - Leiden University Medical Center
 *
 * Contact us at: sasc@lumc.nl
 *
 * A dual licensing mode is applied. The source code within this project that are
 * not part of GATK Queue is freely available for non-commercial use under an AGPL
 * license; For commercial users or users who do not want to follow the AGPL
 * license, please contact us to obtain a separate license.
 */
Wai Yi Leung's avatar
Wai Yi Leung committed
16
17
package nl.lumc.sasc.biopet.pipelines.gears

18
import nl.lumc.sasc.biopet.core.report._
Wai Yi Leung's avatar
Wai Yi Leung committed
19
import nl.lumc.sasc.biopet.utils.config.Configurable
Wai Yi Leung's avatar
Wai Yi Leung committed
20

21
22
class GearsSingleReport(val root: Configurable) extends ReportBuilderExtension {
  def builder = GearsSingleReport
Wai Yi Leung's avatar
Wai Yi Leung committed
23
24
}

25
object GearsSingleReport extends ReportBuilder {
Wai Yi Leung's avatar
Wai Yi Leung committed
26

27
  // TODO: Add dustbin analysis (aggregated)
Wai Yi Leung's avatar
Wai Yi Leung committed
28
29
  // TODO: Add alignment stats per sample for the dustbin analysis

Peter van 't Hof's avatar
Peter van 't Hof committed
30
  override def extFiles = super.extFiles ++ List("js/gears.js", "js/krona-2.0.js", "img/krona/loading.gif", "img/krona/hidden.png", "img/krona/favicon.ico")
Peter van 't Hof's avatar
Peter van 't Hof committed
31
    .map(x => ExtFile("/nl/lumc/sasc/biopet/pipelines/gears/report/ext/" + x, x))
32

Wai Yi Leung's avatar
Wai Yi Leung committed
33
34
  def indexPage = {
    ReportPage(
Peter van 't Hof's avatar
Peter van 't Hof committed
35
36
37
38
39
      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
40
      List(
41
        "Gears intro" -> ReportSection("/nl/lumc/sasc/biopet/pipelines/gears/gearsSingleFront.ssp"),
Peter van 't Hof's avatar
Peter van 't Hof committed
42
        "Kraken analysis" -> ReportSection("/nl/lumc/sasc/biopet/pipelines/gears/krakenKrona.ssp")
Wai Yi Leung's avatar
Wai Yi Leung committed
43
44
45
46
47
48
49
50
      ),
      pageArgs
    )
  }

  def reportName = "Gears :: Metagenomics Report"

}