Skip to content

Commit

Permalink
[Concatenate_Illumina_Lanes] Fix bug when single-end only (#695)
Browse files Browse the repository at this point in the history
* quote it

* remove duplicate set -euo pipefail
  • Loading branch information
sage-wright authored Dec 17, 2024
1 parent 4fbb73e commit 2571a4f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tasks/utilities/file_handling/task_cat_lanes.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,9 @@ task cat_lanes {

exists() { [[ -f $1 ]]; }

set -euo pipefail

cat ~{read1_lane1} ~{read1_lane2} ~{read1_lane3} ~{read1_lane4} > "~{samplename}_merged_R1.fastq.gz"

if exists ~{read2_lane1} ; then
if exists "~{read2_lane1}" ; then
cat ~{read2_lane1} ~{read2_lane2} ~{read2_lane3} ~{read2_lane4} > "~{samplename}_merged_R2.fastq.gz"
fi

Expand Down

0 comments on commit 2571a4f

Please sign in to comment.