Skip to content
Snippets Groups Projects
Verified Commit 1f25c4c5 authored by Laurent Modolo's avatar Laurent Modolo
Browse files

samtools: fix split_bam @ option

parent 8fc16bd7
No related branches found
No related tags found
No related merge requests found
......@@ -174,9 +174,9 @@ process split_bam {
tuple val(file_id), path("*_reverse.bam*"), emit: bam_reverse
script:
"""
samtools view --@ ${Math.round(task.cpus/2)} ${params.split_bam} \
samtools view -@ ${Math.round(task.cpus/2)} ${params.split_bam} \
-hb -F 0x10 ${bam} > ${bam.simpleName}_forward.bam &
samtools view --@ ${Math.round(task.cpus/2)} ${params.split_bam} \
samtools view -@ ${Math.round(task.cpus/2)} ${params.split_bam} \
-hb -f 0x10 ${bam} > ${bam.simpleName}_reverse.bam
"""
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment