add stub to picard/addorreplacereadgroups (#2057)

add stub
This commit is contained in:
Ramprasad Neethiraj 2022-09-14 15:44:47 +02:00 committed by GitHub
parent cad9133c71
commit 67652c7c4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 0 deletions

View file

@ -51,4 +51,15 @@ process PICARD_ADDORREPLACEREADGROUPS {
picard: \$(picard AddOrReplaceReadGroups --version 2>&1 | grep -o 'Version:.*' | cut -f2- -d:) picard: \$(picard AddOrReplaceReadGroups --version 2>&1 | grep -o 'Version:.*' | cut -f2- -d:)
END_VERSIONS END_VERSIONS
""" """
stub:
def prefix = task.ext.prefix ?: "${meta.id}"
"""
touch ${prefix}.bam
cat <<-END_VERSIONS > versions.yml
"${task.process}":
picard: \$(picard AddOrReplaceReadGroups --version 2>&1 | grep -o 'Version:.*' | cut -f2- -d:)
END_VERSIONS
"""
} }

View file

@ -7,3 +7,11 @@
- path: output/picard/test.bam - path: output/picard/test.bam
md5sum: 7b82f3461c2d80fc6a10385e78c9427f md5sum: 7b82f3461c2d80fc6a10385e78c9427f
- path: output/picard/versions.yml - path: output/picard/versions.yml
- name: picard addorreplacereadgroups test_picard_addorreplacereadgroups stub
command: nextflow run tests/modules/picard/addorreplacereadgroups -entry test_picard_addorreplacereadgroups -c tests/config/nextflow.config -stub
tags:
- picard
- picard/addorreplacereadgroups
files:
- path: output/picard/test.bam
- path: output/picard/versions.yml