mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-13 05:13:09 +00:00
RGI/main export versions as explicit emission strings (#1909)
* Export versions as explicit emission strings in addition to versions.yml for compatibility with hAMRonization * Update YML
This commit is contained in:
parent
7e8ad56688
commit
f91abed951
2 changed files with 14 additions and 3 deletions
|
@ -13,6 +13,8 @@ process RGI_MAIN {
|
|||
output:
|
||||
tuple val(meta), path("*.json"), emit: json
|
||||
tuple val(meta), path("*.txt") , emit: tsv
|
||||
env VER , emit: tool_version
|
||||
env DBVER , emit: db_version
|
||||
path "versions.yml" , emit: versions
|
||||
|
||||
when:
|
||||
|
@ -29,10 +31,13 @@ process RGI_MAIN {
|
|||
--output_file $prefix \\
|
||||
--input_sequence $fasta
|
||||
|
||||
VER=\$(rgi main --version)
|
||||
DBVER=\$(rgi database --version)
|
||||
|
||||
cat <<-END_VERSIONS > versions.yml
|
||||
"${task.process}":
|
||||
rgi: \$(rgi main --version)
|
||||
rgi-database: \$(rgi database --version)
|
||||
rgi: \$(echo \$VER)
|
||||
rgi-database: \$(echo \$DBVER)
|
||||
END_VERSIONS
|
||||
"""
|
||||
}
|
||||
|
|
|
@ -42,6 +42,12 @@ output:
|
|||
type: file
|
||||
description: Tab-delimited file with RGI results
|
||||
pattern: "*.{txt}"
|
||||
|
||||
- tool_version:
|
||||
type: string
|
||||
description: The version of the tool in string format (useful for downstream tools such as hAMRronization)
|
||||
- db_version:
|
||||
type: string
|
||||
description: The version of the used database in string format (useful for downstream tools such as hAMRronization)
|
||||
authors:
|
||||
- "@rpetit3"
|
||||
- "@jfy133"
|
||||
|
|
Loading…
Reference in a new issue