From 1d0235fe2f45f100af7866d575fc2abd2509da38 Mon Sep 17 00:00:00 2001 From: Sander van der Zeeuw <s.a.j.van_der_zeeuw@lumc.nl> Date: Thu, 29 Jan 2015 15:12:44 +0100 Subject: [PATCH] bug fix in Carp pipeline --- .../main/scala/nl/lumc/sasc/biopet/pipelines/carp/Carp.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/carp/src/main/scala/nl/lumc/sasc/biopet/pipelines/carp/Carp.scala b/public/carp/src/main/scala/nl/lumc/sasc/biopet/pipelines/carp/Carp.scala index dfef64132..df58ab964 100644 --- a/public/carp/src/main/scala/nl/lumc/sasc/biopet/pipelines/carp/Carp.scala +++ b/public/carp/src/main/scala/nl/lumc/sasc/biopet/pipelines/carp/Carp.scala @@ -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 -- GitLab