Skip to content

Commit

Permalink
remove _ before barcode for terra table
Browse files Browse the repository at this point in the history
  • Loading branch information
fraser-combe committed Oct 31, 2024
1 parent 6a40a37 commit ae5cebe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasks/basecalling/task_dorado_demux.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit ae5cebe

Please sign in to comment.