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
Branches
Tags
No related merge requests found
...@@ -174,9 +174,9 @@ process split_bam { ...@@ -174,9 +174,9 @@ process split_bam {
tuple val(file_id), path("*_reverse.bam*"), emit: bam_reverse tuple val(file_id), path("*_reverse.bam*"), emit: bam_reverse
script: 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 & -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 -hb -f 0x10 ${bam} > ${bam.simpleName}_reverse.bam
""" """
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment