Commit bbe9311d authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Fix on final jobs

parent cd66d051
......@@ -76,7 +76,9 @@ class Flexiprep(val root: Configurable) extends QScript with BiopetQScript {
val out = if (paired) runTrimClip(outputFiles("fastq_input_R1"), outputFiles("fastq_input_R2"), outputDir)
else runTrimClip(outputFiles("fastq_input_R1"), outputDir)
runFinalize(List(outputFiles("output_R1")), if (outputFiles.contains("output_R2")) List(outputFiles("output_R2")) else List())
val R1_files = for ((k,v) <- outputFiles if k.endsWith("output_R1")) yield v
val R2_files = for ((k,v) <- outputFiles if k.endsWith("output_R2")) yield v
runFinalize(R1_files.toList, R2_files.toList)
def runInitialJobs() {
Supports Markdown
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