Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mirrors
biopet.biopet
Commits
04e1e09f
Commit
04e1e09f
authored
Mar 12, 2017
by
Peter van 't Hof
Browse files
Fixed template
parent
ba4edb5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
shiva/src/main/resources/nl/lumc/sasc/biopet/pipelines/shiva/sampleVariants.ssp
View file @
04e1e09f
#import(nl.lumc.sasc.biopet.utils.summary.Summary)
#import(nl.lumc.sasc.biopet.utils.summary.db.SummaryDb)
#import(nl.lumc.sasc.biopet.utils.summary.db.SummaryDb._)
#import(nl.lumc.sasc.biopet.utils.summary.db.SummaryDb.Implicts._)
#import(nl.lumc.sasc.biopet.core.report.ReportPage)
#import(nl.lumc.sasc.biopet.pipelines.shiva.ShivaReport)
#import(scala.concurrent.Await)
#import(scala.concurrent.duration.Duration)
#import(nl.lumc.sasc.biopet.pipelines.bammetrics.BammetricsReport)
#import(java.io.File)
<%@ var summary: Summary %>
<%@ var sampleId: Option[
String
] = None %>
<%@ var summary: Summary
Db
%>
<%@ var sampleId: Option[
Int
] = None %>
<%@ var rootPath: String %>
<%@ var outputDir: File %>
<%@ var showPlot: Boolean = false %>
...
...
@@ -11,13 +15,11 @@
<%@ var showIntro: Boolean = true %>
<%@ var target: Option[String] = None %>
<%@ var caller: String = "final" %>
<%@ var runId: Int %>
#{
val fields = List("Hom", "HomVar", "Het", "HomRef", "NoCall", "Variant", "Total")
val samples = sampleId match {
case Some(sample) => List(sample.toString)
case _ => summary.samples.toList
}
val samples = Await.result(summary.getSamples(runId = Some(runId), sampleId = sampleId), Duration.Inf)
val vcfstatsKey = target match {
case Some(t) => s"multisample-vcfstats-$caller-$t"
case _ => s"multisample-vcfstats-$caller"
...
...
@@ -75,10 +77,16 @@
</tr></thead>
<tbody>
#for (sample <- samples.toList.sorted)
<tr><td><a href="${rootPath}Samples/${sample}/index.html">${sample}</a></td>
#for (field <- fields)
<td>${summary.getValue("shivavariantcalling", "stats", vcfstatsKey, "total", "genotype", "general", sample, field)}</td>
#end
<tr><td><a href="${rootPath}Samples/${sample.name}/index.html">${sample.name}</a></td>
#{
fields.map(x => x -> List("total", "genotype", "general", sample.name, x)).toMap
val statsPaths = fields.map(x => x -> List("total", "genotype", "general", sample.name, x)).toMap
val results = summary.getStatKeys(runId, "shivavariantcalling", "vcfstatsKey", sample = sample.id, keyValues = statsPaths)
}#
#for (field <- fields)
<td>${results(field)}</td>
#end
</tr>
#end
</tbody>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment