Commit 1d0235fe authored by Sander van der Zeeuw's avatar Sander van der Zeeuw

bug fix in Carp pipeline

parent 7734e7d3
......@@ -104,8 +104,8 @@ class Carp(val root: Configurable) extends QScript with MultiSampleQScript {
for ((sampleId, sample) <- samples) {
for (control <- sample.controls) {
if (!samples.exists(_ == control))
throw new IllegalStateException("For sample: " + sample + " this control: " + control + " does not exist")
if (!samples.contains(control))
throw new IllegalStateException("For sample: " + sampleId + " this control: " + control + " does not exist")
val macs2 = new Macs2CallPeak(this)
macs2.treatment = sample.bamFile
macs2.control = samples(control).bamFile
......
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