Skip to content

Commit 8720bef

Browse files
Alexander PeltzerAlexander Peltzer
authored andcommitted
Add gz to fastq
1 parent 19871ab commit 8720bef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

main.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ process samtools_filter {
719719

720720
script:
721721
prefix="$bam" - ~/(\.bam)?/
722-
rm_type = "${params.bam_unmapped_keep_type}" == 'bam' ? 'bam' : 'fastq'
722+
rm_type = "${params.bam_unmapped_keep_type}" == 'bam' ? 'bam' : 'fastq.gz'
723723
rm_unmapped = "${params.bam_discard_unmapped}" ? "rm *.unmapped.${rm_type}" : ''
724724
fq_convert = "${params.bam_unmapped_to_fastq}" ? "samtools fastq -tn ${prefix}.unmapped.bam | gzip > ${prefix}.unmapped.fq.gz" : ''
725725

0 commit comments

Comments
 (0)