Skip to content

Commit 19871ab

Browse files
Alexander PeltzerAlexander Peltzer
authored andcommitted
Small typo fix
1 parent 460c7c8 commit 19871ab

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

main.nf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,14 +721,15 @@ process samtools_filter {
721721
prefix="$bam" - ~/(\.bam)?/
722722
rm_type = "${params.bam_unmapped_keep_type}" == 'bam' ? 'bam' : 'fastq'
723723
rm_unmapped = "${params.bam_discard_unmapped}" ? "rm *.unmapped.${rm_type}" : ''
724-
fq_convert = "${params.bam_unmapped_to_fastq}" ? "samtools fastq -tn "${prefix}.unmapped.bam" | gzip > "${prefix}.unmapped.fq.gz"" :
724+
fq_convert = "${params.bam_unmapped_to_fastq}" ? "samtools fastq -tn ${prefix}.unmapped.bam | gzip > ${prefix}.unmapped.fq.gz" : ''
725725

726726

727727
if("${params.bam_separate_unmapped}"){
728728
"""
729729
samtools view -h $bam | tee >(samtools view - -@ ${task.cpus} -f4 -q ${params.bam_mapping_quality_threshold} -o ${prefix}.unmapped.bam) >(samtools view - -@ ${task.cpus} -F4 -q ${params.bam_mapping_quality_threshold} -o ${prefix}.filtered.bam)
730730
samtools index ${prefix}.filtered.bam
731731
$fq_convert
732+
$rm_unmapped
732733
"""
733734
} else {
734735
"""

0 commit comments

Comments
 (0)