From ae5cebe90077cf59d11a90be62312de645231a5b Mon Sep 17 00:00:00 2001 From: fraser-combe Date: Thu, 31 Oct 2024 12:06:36 -0500 Subject: [PATCH] remove _ before barcode for terra table --- tasks/basecalling/task_dorado_demux.wdl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/basecalling/task_dorado_demux.wdl b/tasks/basecalling/task_dorado_demux.wdl index a37ea0883..f4a734b6c 100644 --- a/tasks/basecalling/task_dorado_demux.wdl +++ b/tasks/basecalling/task_dorado_demux.wdl @@ -51,10 +51,10 @@ task dorado_demux { echo "Processing $fastq_file" if [[ "$fastq_file" == *"unclassified"* ]]; then - final_fastq="~{fastq_file_name}_unclassified.fastq" + final_fastq="~{fastq_file_name}unclassified.fastq" else barcode=$(echo "$fastq_file" | sed -E 's/.*_(barcode[0-9]+)\.fastq/\1/') - final_fastq="~{fastq_file_name}_${barcode}.fastq" + final_fastq="~{fastq_file_name}${barcode}.fastq" fi echo "Renaming $fastq_file to $final_fastq" @@ -83,7 +83,7 @@ task dorado_demux { >>> output { - Array[File] fastq_files = glob("~{fastq_file_name}_*.fastq.gz") + Array[File] fastq_files = glob("~{fastq_file_name}*.fastq.gz") } runtime {