Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions modules/nf-core/dragen/germline/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ process DRAGEN {
path "streaming_log_*.csv" , optional: true, emit: streaming_log_csv
path "*_usage.txt" , emit: usage_txt
path "**" , emit: all
path "versions.yml" , emit: versions
tuple val("${task.process}"), val('dragen'), eval("dragen --version 2>&1 | sed 's/^dragen Version //;s/ Hash.*//'"), emit: versions_dragen, topic: versions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that the command capturing the version is not correct. Could you modify it so that it correctly prints the version?


when:
task.ext.when == null || task.ext.when
Expand Down Expand Up @@ -394,22 +394,12 @@ process DRAGEN {
$format_input \\
--output-file-prefix $prefix \\
--output-directory \$(pwd)

cat <<-END_VERSIONS > versions.yml
"${task.process}":
dragen: \$(echo \$(dragen --version 2>&1) | sed 's/^dragen Version //;s/ Hash.*//')
END_VERSIONS
"""

stub:
def VERSION = "stub"
prefix = task.ext.prefix ?: "${meta.id}"
"""
touch 20251120_usage.txt

cat <<-END_VERSIONS > versions.yml
"${task.process}":
dragen: ${VERSION}
END_VERSIONS
"""
}
Loading
Loading