1
0
Fork 0
mirror of https://github.com/MillironX/taxprofiler.git synced 2024-11-22 09:39:54 +00:00

fix: emit tool versions

This commit is contained in:
Moritz E. Beber 2022-10-14 12:49:07 +02:00
parent 767663d975
commit 7f8180f458

View file

@ -12,6 +12,7 @@ process KRAKEN_STANDARD_REPORT {
output:
tuple val(meta), path(result), emit: report
path 'versions.yml' , emit: versions
when:
task.ext.when == null || task.ext.when
@ -21,6 +22,11 @@ process KRAKEN_STANDARD_REPORT {
result = "${prefix}_standardized.kraken2.report.txt"
"""
cut -f1-3,6-8 '${report}' > '${result}'
cat <<-END_VERSIONS > versions.yml
"${task.process}":
cut: \$(echo \$(cut --version 2>&1) | sed 's/^.*(GNU coreutils) //; s/ Copyright.*\$//')
END_VERSIONS
"""
}