Skip to content
GitLab
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
63029298
Commit
63029298
authored
Jun 10, 2016
by
bow
Browse files
Merge branch 'feature-sync_stats_report' into 'develop'
Feature sync stats report Fixes #312 See merge request !422
parents
d5d6a13d
2ca932ce
Changes
2
Hide whitespace changes
Inline
Side-by-side
biopet-extensions/src/main/scala/nl/lumc/sasc/biopet/extensions/gatk/BaseRecalibrator.scala
View file @
63029298
...
...
@@ -22,7 +22,7 @@ import nl.lumc.sasc.biopet.utils.config.Configurable
import
org.broadinstitute.gatk.queue.extensions.gatk.TaggedFile
import
org.broadinstitute.gatk.utils.commandline.
{
Argument
,
Gather
,
Output
,
Input
}
class
BaseRecalibrator
(
val
root
:
Configurable
)
extends
CommandLineGATK
with
ScatterGatherableFunction
{
class
BaseRecalibrator
(
val
root
:
Configurable
)
extends
CommandLineGATK
with
ScatterGatherableFunction
{
def
analysis_type
=
"BaseRecalibrator"
scatterClass
=
classOf
[
ContigScatterFunction
]
setupScatterFunction
=
{
case
scatter
:
GATKScatterFunction
=>
scatter
.
includeUnmapped
=
false
}
...
...
flexiprep/src/main/resources/nl/lumc/sasc/biopet/pipelines/flexiprep/flexiprepReadSummary.ssp
View file @
63029298
...
...
@@ -19,6 +19,10 @@
val trimCount = summary.getLibraryValues("flexiprep", "settings", "skip_trim").count(_._2 == Some(false))
val clipCount = summary.getLibraryValues("flexiprep", "settings", "skip_clip").count(_._2 == Some(false))
val librariesCount = summary.samples.foldLeft(0)(_ + summary.libraries(_).size)
val paired: Boolean = if (sampleId.isDefined && libId.isDefined)
summary.getLibraryValue(sampleId.get, libId.get, "flexiprep", "settings", "paired").get.asInstanceOf[Boolean]
else summary.getLibraryValues("flexiprep", "settings", "paired").values.exists(_ == Some(true))
}#
#if (showIntro)
...
...
@@ -62,9 +66,6 @@
#if (showPlot)
#{
val paired: Boolean = if (sampleId.isDefined && libId.isDefined)
summary.getLibraryValue(sampleId.get, libId.get, "flexiprep", "settings", "paired").get.asInstanceOf[Boolean]
else summary.getLibraryValues("flexiprep", "settings", "paired").values.exists(_ == Some(true))
FlexiprepReport.readSummaryPlot(outputDir, "QC_Reads_R1","R1", summary, sampleId = sampleId)
if (paired) FlexiprepReport.readSummaryPlot(outputDir, "QC_Reads_R2","R2", summary, sampleId = sampleId)
}#
...
...
@@ -105,6 +106,7 @@
<th>Before QC</th>
<th>Clipping</th>
<th>Trimming</th>
#if (paired == true) <th>Out of Sync</th> #end
<th>After QC</th>
</tr></thead>
<tbody>
...
...
@@ -140,8 +142,8 @@
#for (read <- reads)
#if (read == "R2") </tr><tr> #end
#{
val beforeTotal = summary.getLibraryValue(sample, libId, "flexiprep", "stats", "seqstat_" + read, "reads", "num_total")
val afterTotal = summary.getLibraryValue(sample, libId, "flexiprep", "stats", "seqstat_" + read + "_qc", "reads", "num_total")
val beforeTotal = summary.getLibraryValue(sample, libId, "flexiprep", "stats", "seqstat_" + read, "reads", "num_total")
.getOrElse(0).toString.toLong
val afterTotal = summary.getLibraryValue(sample, libId, "flexiprep", "stats", "seqstat_" + read + "_qc", "reads", "num_total")
.getOrElse(0).toString.toLong
val clippingDiscardedToShort = summary.getLibraryValue(sample, libId, "flexiprep", "stats", "clipping_" + read, "num_reads_discarded_too_short").getOrElse(0).toString.toLong
val clippingDiscardedToLong = summary.getLibraryValue(sample, libId, "flexiprep", "stats", "clipping_" + read, "num_reads_discarded_too_long").getOrElse(0).toString.toLong
var trimmingDiscarded = summary.getLibraryValue(sample, libId, "flexiprep", "stats", "trimming_" + read, "num_reads_discarded_total").getOrElse(0).toString.toLong
...
...
@@ -150,6 +152,7 @@
<td>${beforeTotal}</td>
<td>${clippingDiscardedToShort + clippingDiscardedToLong}</td>
<td>${trimmingDiscarded}</td>
#if (paired == true) <td>${beforeTotal - clippingDiscardedToShort - clippingDiscardedToLong - trimmingDiscarded - afterTotal}</td> #end
<td>${afterTotal}</td>
#end
</tr>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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