From 61da844e43e815ffc57e23b39f3a6dbfe5c9422e Mon Sep 17 00:00:00 2001 From: Peter van 't Hof <p.j.van_t_hof@lumc.nl> Date: Tue, 29 Dec 2015 14:17:55 +0100 Subject: [PATCH] Fixed output files --- .../nl/lumc/sasc/biopet/pipelines/gears/CombineReads.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/gears/src/main/scala/nl/lumc/sasc/biopet/pipelines/gears/CombineReads.scala b/public/gears/src/main/scala/nl/lumc/sasc/biopet/pipelines/gears/CombineReads.scala index 608afa3c0..f8cddedfd 100644 --- a/public/gears/src/main/scala/nl/lumc/sasc/biopet/pipelines/gears/CombineReads.scala +++ b/public/gears/src/main/scala/nl/lumc/sasc/biopet/pipelines/gears/CombineReads.scala @@ -28,15 +28,15 @@ class CombineReads(val root: Configurable) extends QScript with SummaryQScript w private lazy val forwardPrimers: List[String] = config("forward_primers", default = Nil) private lazy val reversePrimers: List[String] = config("reverse_primers", default = Nil) - def combinedFastq: File = if ((forwardPrimers :: reversePrimers).nonEmpty) + def combinedFastq: File = if ((forwardPrimers ::: reversePrimers).nonEmpty) swapExt(outputDir, flash.combinedFastq, ".fastq.gz", ".clip.fastq.gz") else flash.combinedFastq - def notCombinedR1Fastq: File = if ((forwardPrimers :: reversePrimers).nonEmpty) + def notCombinedR1Fastq: File = if ((forwardPrimers ::: reversePrimers).nonEmpty) swapExt(outputDir, flash.notCombinedR1, ".fastq.gz", ".clip.fastq.gz") else flash.notCombinedR1 - def notCombinedR2Fastq: File = if ((forwardPrimers :: reversePrimers).nonEmpty) + def notCombinedR2Fastq: File = if ((forwardPrimers ::: reversePrimers).nonEmpty) swapExt(outputDir, flash.notCombinedR2, ".fastq.gz", ".clip.fastq.gz") else flash.notCombinedR2 -- GitLab