mappingFront.ssp 2.09 KB
Newer Older
Peter van 't Hof's avatar
Peter van 't Hof committed
1
#import(nl.lumc.sasc.biopet.utils.summary.db.SummaryDb)
2 3
#import(nl.lumc.sasc.biopet.utils.summary.db.SummaryDb._)
#import(nl.lumc.sasc.biopet.utils.summary.db.SummaryDb.Implicts._)
4
#import(nl.lumc.sasc.biopet.core.report.ReportPage)
Peter van 't Hof's avatar
Peter van 't Hof committed
5 6 7
#import(scala.concurrent.Await)
#import(scala.concurrent.duration.Duration)
<%@ var summary: SummaryDb %>
8
<%@ var rootPath: String %>
Peter van 't Hof's avatar
Peter van 't Hof committed
9 10 11 12 13
<%@ var runId: Int %>
<%@ var sampleId: Option[Int] %>
<%@ var libId: Option[Int] %>
#{
    val run = Await.result(summary.getRuns(runId = Some(runId)), Duration.Inf).head
14
    val settings = summary.getSettingKeys(runId, run.name,
Peter van 't Hof's avatar
Peter van 't Hof committed
15 16 17 18 19 20
    keyValues = Map(
    "contigs" -> List("reference", "contigs"),
    "species" -> List("reference", "species"),
    "name" -> List("reference", "name")
    ))
}#
21 22
<table class="table">
<tbody>
Peter van 't Hof's avatar
Peter van 't Hof committed
23
    <tr><th>Pipeline</th><td>Mapping</td></tr>
Peter van 't Hof's avatar
Peter van 't Hof committed
24 25 26 27
    <tr><th>Version</th><td>${run.version}</td></tr>
    <tr><th>Last commit hash</th><td>${run.commitHash}</td></tr>
    <tr><th>Output directory</th><td>${run.outputDir}</td></tr>
    <tr><th>Reference</th><td>${settings.get("species")} - ${settings.get("name")}</td></tr>
28 29
    <tr><th>Sample</th><td>${Await.result(summary.getSampleName(sampleId.get), Duration.Inf)}</td></tr>
    <tr><th>Library</th><td>${Await.result(summary.getLibraryName(libId.get), Duration.Inf)}</td></tr>
30 31 32 33 34 35 36
</tbody>
</table>
<br/>
<div class="row">
<div class="col-md-1"></div>
<div class="col-md-6">
    <p>
Sander Bollen's avatar
Sander Bollen committed
37 38 39 40 41 42 43
        In this web document you can find your <em>Mapping</em> pipeline report.
        Different categories of data can be found in the left-side menu.
        Statistics per sample and library can be accessed through the top-level menu.
        Futhermore, you can view all versions of software tools used by selecting <em>Versions</em> from the top menu.
    </p>

    <p>
44 45
        <small>Brought to you by <a href="https://sasc.lumc.nl" target="_blank"><abbr
            title="Sequence Analysis Support Core">SASC</abbr></a> and <a
46 47 48
        href="https://www.lumc.nl/org/klinische-genetica/" target="_blank"><abbr title="Clinical Genetics LUMC">KG</abbr></a>,
        LUMC.
        </small>
49 50 51
    </p>
</div>
</div>