diff --git a/modules/samtools/stats/main.nf b/modules/samtools/stats/main.nf index 89b92d79..9b0c3867 100644 --- a/modules/samtools/stats/main.nf +++ b/modules/samtools/stats/main.nf @@ -1,6 +1,6 @@ process SAMTOOLS_STATS { 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 ? @@ -25,7 +25,7 @@ process SAMTOOLS_STATS { """ samtools \\ stats \\ - --threads ${task.cpus-1} \\ + --threads ${task.cpus} \\ ${reference} \\ ${input} \\ > ${prefix}.stats diff --git a/tests/modules/samtools/stats/test.yml b/tests/modules/samtools/stats/test.yml index be6c3ccc..ae0c1dbc 100644 --- a/tests/modules/samtools/stats/test.yml +++ b/tests/modules/samtools/stats/test.yml @@ -1,17 +1,17 @@ - name: samtools stats test_samtools_stats command: nextflow run ./tests/modules/samtools/stats -entry test_samtools_stats -c ./tests/config/nextflow.config -c ./tests/modules/samtools/stats/nextflow.config tags: - - samtools - samtools/stats + - samtools files: - path: output/samtools/test.stats - md5sum: c1e9ad551281b0bca32be1c832d125af + md5sum: 5e6fa3805f6d6b330262456746709239 - name: samtools stats test_samtools_stats_cram command: nextflow run ./tests/modules/samtools/stats -entry test_samtools_stats_cram -c ./tests/config/nextflow.config -c ./tests/modules/samtools/stats/nextflow.config tags: - - samtools - samtools/stats + - samtools files: - path: output/samtools/test.stats - md5sum: 103cd7b19743c42dab9ce570144c6f36 + md5sum: 916a8e5bfd97a53f806e5a14565631bb