diff --git a/modules/nf-core/bcftools/consensus/main.nf b/modules/nf-core/bcftools/consensus/main.nf index 0e693e1dfa2..303be28dbb0 100644 --- a/modules/nf-core/bcftools/consensus/main.nf +++ b/modules/nf-core/bcftools/consensus/main.nf @@ -35,4 +35,17 @@ process BCFTOOLS_CONSENSUS { bcftools: \$(bcftools --version 2>&1 | head -n1 | sed 's/^.*bcftools //; s/ .*\$//') END_VERSIONS """ + + stub: + def args = task.ext.args ?: '' + def prefix = task.ext.prefix ?: "${meta.id}" + def masking = mask ? "-m $mask" : "" + """ + touch ${prefix}.fa + + cat <<-END_VERSIONS > versions.yml + "${task.process}": + bcftools: \$(bcftools --version 2>&1 | head -n1 | sed 's/^.*bcftools //; s/ .*\$//') + END_VERSIONS + """ } diff --git a/modules/nf-core/bcftools/consensus/tests/main.nf.test.snap b/modules/nf-core/bcftools/consensus/tests/main.nf.test.snap index 7244bbea08a..1a23bd6d22e 100644 --- a/modules/nf-core/bcftools/consensus/tests/main.nf.test.snap +++ b/modules/nf-core/bcftools/consensus/tests/main.nf.test.snap @@ -7,7 +7,7 @@ { "id": "test" }, - "test.fa:md5,313f4a657187fdaf293c4ed69d98c112" + "test.fa:md5,d41d8cd98f00b204e9800998ecf8427e" ] ], "1": [ @@ -18,7 +18,7 @@ { "id": "test" }, - "test.fa:md5,313f4a657187fdaf293c4ed69d98c112" + "test.fa:md5,d41d8cd98f00b204e9800998ecf8427e" ] ], "versions": [ @@ -27,10 +27,10 @@ } ], "meta": { - "nf-test": "0.8.4", - "nextflow": "23.04.1" + "nf-test": "0.9.2", + "nextflow": "24.10.3" }, - "timestamp": "2024-08-20T13:56:14.553364445" + "timestamp": "2024-12-20T15:38:55.13767915" }, "bcftools - test": { "content": [