Skip to content

Commit

Permalink
Fix/samtools flagstat (nf-core#1979)
Browse files Browse the repository at this point in the history
* fix samtools stats thread usage

* flagstat: fix threads
  • Loading branch information
matthdsm committed Aug 30, 2022
1 parent 595bd2e commit 2f24e85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modules/samtools/flagstat/main.nf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
process SAMTOOLS_FLAGSTAT {
tag "$meta.id"
label 'process_low'
label 'process_single'

conda (params.enable_conda ? "bioconda::samtools=1.15.1" : null)
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
Expand All @@ -23,7 +23,7 @@ process SAMTOOLS_FLAGSTAT {
"""
samtools \\
flagstat \\
--threads ${task.cpus-1} \\
--threads ${task.cpus} \\
$bam \\
> ${prefix}.flagstat
Expand Down
2 changes: 1 addition & 1 deletion tests/modules/samtools/flagstat/test.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
- name: samtools flagstat test_samtools_flagstat
command: nextflow run ./tests/modules/samtools/flagstat -entry test_samtools_flagstat -c ./tests/config/nextflow.config -c ./tests/modules/samtools/flagstat/nextflow.config
tags:
- samtools
- samtools/flagstat
- samtools
files:
- path: output/samtools/test.flagstat
md5sum: 4f7ffd1e6a5e85524d443209ac97d783

0 comments on commit 2f24e85

Please sign in to comment.