Skip to content

Commit

Permalink
hotfix: Add check in unmapped for single_end
Browse files Browse the repository at this point in the history
Signed-off-by: jvfe <[email protected]>
  • Loading branch information
jvfe committed Apr 19, 2024
1 parent dc79549 commit 032a92e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/local/samtools_unmapped.nf
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ process SAMTOOLS_UNMAPPED_PAIRS {
script:
def args = task.ext.args ?: ''
prefix = task.ext.prefix ?: "${meta.id}"

def format = meta.single_end ? "4" : "12"
"""
samtools view -b -f 12 -F 256 \\
samtools view -b -f $format -F 256 \\
$input \\
> ${prefix}.bam
Expand Down

0 comments on commit 032a92e

Please sign in to comment.