Skip to content

Commit bf24ee7

Browse files
committed
Fixed script for prevent overwriting in loop
1 parent 109dc8a commit bf24ee7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

buisciii/templates/viralrecon/RAW/lablog_bam2fq

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ find . -maxdepth 1 -type f -name "*.bam" | while read -r filepath; do
2020
--output \"$output_log\" \
2121
singularity exec --bind \"${scratch_dir}/../\" \
2222
/data/ucct/bi/pipelines/singularity-images/bedtools:2.31.1--h13024bc_3 \
23-
bedtools bamtofastq -i \"$filepath\" -fq \"${sample}.fastq\" &" > _01_bam2fq.sh
23+
bedtools bamtofastq -i \"$filepath\" -fq \"${sample}.fastq\" &" >> _01_bam2fq.sh
2424
done
2525

2626
if [[ ! -s _01_bam2fq.sh ]]; then

0 commit comments

Comments
 (0)