From 57e3ef69d2fbb63177dcfbb6a48ed5066bfb32f2 Mon Sep 17 00:00:00 2001 From: cimendes Date: Thu, 21 Sep 2023 12:11:59 +0000 Subject: [PATCH] only run clockwork is paired_end and not ont data --- workflows/utilities/wf_merlin_magic.wdl | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/workflows/utilities/wf_merlin_magic.wdl b/workflows/utilities/wf_merlin_magic.wdl index 5e9600f67..22124be37 100644 --- a/workflows/utilities/wf_merlin_magic.wdl +++ b/workflows/utilities/wf_merlin_magic.wdl @@ -235,16 +235,18 @@ workflow merlin_magic { } if (merlin_tag == "Mycobacterium tuberculosis") { if (!assembly_only) { - call clockwork_task.clockwork_decon_reads { - input: - read1 = select_first([read1]), - read2 = read2, - samplename = samplename + if (paired_end && !ont_data) { + call clockwork_task.clockwork_decon_reads { + input: + read1 = select_first([read1]), + read2 = read2, + samplename = samplename + } } call tbprofiler_task.tbprofiler { input: - read1 = clockwork_decon_reads.clockwork_cleaned_read1, - read2 = clockwork_decon_reads.clockwork_cleaned_read2, + read1 = select_first([clockwork_decon_reads.clockwork_cleaned_read1,read1]), + read2 = select_first([clockwork_decon_reads.clockwork_cleaned_read2,read2]), samplename = samplename } if (tbprofiler_additional_outputs) {