We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
samtools sort
1 parent 6ea5109 commit efbf86bCopy full SHA for efbf86b
modules/nf-core/minimap2/align/main.nf
@@ -24,9 +24,10 @@ process MINIMAP2_ALIGN {
24
task.ext.when == null || task.ext.when
25
26
script:
27
- def args = task.ext.args ?: ''
+ def args = task.ext.args ?: ''
28
+ def args2 = task.ext.args2 ?: ''
29
def prefix = task.ext.prefix ?: "${meta.id}"
- def bam_output = bam_format ? "-a | samtools sort | samtools view -@ ${task.cpus} -b -h -o ${prefix}.bam" : "-o ${prefix}.paf"
30
+ def bam_output = bam_format ? "-a | samtools sort -@ ${task.cpus} -o ${prefix}.bam ${args2}" : "-o ${prefix}.paf"
31
def cigar_paf = cigar_paf_format && !bam_format ? "-c" : ''
32
def set_cigar_bam = cigar_bam && bam_format ? "-L" : ''
33
"""
0 commit comments