Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
biopet.biopet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Mirrors
biopet.biopet
Commits
f5fb9846
Commit
f5fb9846
authored
Mar 28, 2017
by
akaljuvee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added a table with counts of sv-s grouped by size and type
parent
4e67b18b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
70 additions
and
0 deletions
+70
-0
shiva/src/main/resources/nl/lumc/sasc/biopet/pipelines/shiva/sampleVariantsSv.ssp
.../nl/lumc/sasc/biopet/pipelines/shiva/sampleVariantsSv.ssp
+70
-0
No files found.
shiva/src/main/resources/nl/lumc/sasc/biopet/pipelines/shiva/sampleVariantsSv.ssp
0 → 100644
View file @
f5fb9846
#import(nl.lumc.sasc.biopet.utils.summary.Summary)
#import(java.io.File)
<%@ var rootPath: String %>
<%@ var outputDir: File %>
<%@ var summary: Summary %>
<%@ var showPlot: Boolean = false %>
<%@ var showTable: Boolean = true %>
<%@ var showIntro: Boolean = true %>
#{
val svTypes = List(("DEL", "Deletion"), ("DUP", "Duplication"), ("INS", "Insertion"), ("INV", "Inversion"))
}#
#if (showPlot)
<div class="panel-body">
<img src="svSummary.png" class="img-responsive" />
</div>
<div class="panel-footer">
#if (showTable)
<button type="button" class="btn btn-info" data-toggle="collapse" data-target="#svSummaryTable">Hide table</button>
#else
<button type="button" class="btn btn-info" data-toggle="collapse" data-target="#svSummaryTable">Show table</button>
#end
<i class="glyphicon glyphicon-file"></i> <a href="svSummary.tsv">tsv file</a>
</div>
#end
<div class="panel-body collapse #if (showTable)in#end" id="svSummaryTable">
<table class="table sortable-theme-bootstrap" data-sortable>
<thead><tr><th data-sorted="true" data-sorted-direction="ascending">Sample</th>
<th>Variant Type</th> <!-- TODO: use values from summary.getValue("shivasvcalling", "stats", "histBreaksForCounts") -->
<th>≤100bp</th>
<th>0.1-1kb</th>
<th>1-10kb</th>
<th>10-100kb</th>
<th>0.1-1Mb</th>
<th>1-10Mb</th>
<th>>10Mb</th>
</tr></thead>
<tbody>
#for (sample <- summary.samples.toList.sorted)
#{
val counts:Map[String, Option[Any]] = summary.getSampleValue(sample, "shivasvcalling", "stats", "variantsBySizeAndType").get.asInstanceOf[Map[String, Option[Any]]]
var firstRow = true
}#
#for ((svType, displayLabel) <- svTypes)
<tr>
#if (counts.contains(svType))
#if (firstRow)
<td><a href="${rootPath}Samples/${sample}/index.html">${sample}</a></td>
#{ firstRow = false }#
#else
<td></td>
#end
<td>${displayLabel}</td>
#for (countForSize <- counts.get(svType).get.asInstanceOf[List[Long]])
<td>${countForSize}</td>
#end
#end
</tr>
#end
#end
</tbody>
</table>
</div>
Write
Preview
Markdown
is supported
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