Commit 2d950663 authored by Peter van 't Hof's avatar Peter van 't Hof

Fix sample bamMetrics

parent 334a0969
......@@ -186,8 +186,13 @@ class BamMetrics(val root: Configurable) extends QScript with SummaryQScript wit
object BamMetrics extends PipelineCommand {
/** Make default implementation of BamMetrics and runs script already */
def apply(root: Configurable, bamFile: File, outputDir: File): BamMetrics = {
def apply(root: Configurable,
bamFile: File, outputDir: File,
sampleId: Option[String] = None,
libId: Option[String] = None): BamMetrics = {
val bamMetrics = new BamMetrics(root)
bamMetrics.sampleId = sampleId
bamMetrics.libId = libId
bamMetrics.inputBam = bamFile
bamMetrics.outputDir = outputDir
......
......@@ -107,7 +107,7 @@ class Carp(val root: Configurable) extends QScript with MultiSampleQScript with
add(merge)
}
val bamMetrics = BamMetrics(qscript, bamFile, new File(sampleDir, "metrics"))
val bamMetrics = BamMetrics(qscript, bamFile, new File(sampleDir, "metrics"), sampleId = Some(sampleId))
addAll(bamMetrics.functions)
addSummaryQScript(bamMetrics)
addAll(Bam2Wig(qscript, bamFile).functions)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment