From d293da8499404dbb37414a7963fde313e8146d6d Mon Sep 17 00:00:00 2001 From: Felix Lenner <52530259+fellen31@users.noreply.github.com> Date: Wed, 17 Apr 2024 17:28:20 +0200 Subject: [PATCH] fix version reporting (#84) --- modules/local/fqcrs.nf | 6 ++++-- modules/local/pacbio/hificnv/main.nf | 2 +- modules/local/sniffles/multisample.nf | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/local/fqcrs.nf b/modules/local/fqcrs.nf index e1bb5577..3b0a6a65 100644 --- a/modules/local/fqcrs.nf +++ b/modules/local/fqcrs.nf @@ -2,7 +2,9 @@ process FQCRS { tag "$meta.id" label 'process_single' - container "docker.io/fellen31/fqcrs:latest" + container "docker.io/fellen31/fqcrs:0.1.0" + // Add verion manually + def fqcrs_version = '0.1.0' // Exit if running this module with -profile conda / -profile mamba if (workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1) { @@ -28,7 +30,7 @@ process FQCRS { cat <<-END_VERSIONS > versions.yml "${task.process}": - fqcrs: \$(echo "no-version" ) + fqcrs: \$(echo "$fqcrs_version" ) END_VERSIONS """ } diff --git a/modules/local/pacbio/hificnv/main.nf b/modules/local/pacbio/hificnv/main.nf index 3c25fe60..b4383aa5 100644 --- a/modules/local/pacbio/hificnv/main.nf +++ b/modules/local/pacbio/hificnv/main.nf @@ -43,7 +43,7 @@ process HIFICNV { cat <<-END_VERSIONS > versions.yml "${task.process}": - hificnv: \$(echo \$(cramino -V) | sed 's/cramino //' ) + hificnv: \$(echo \$(hificnv -V) | sed 's/hificnv //' ) END_VERSIONS """ } diff --git a/modules/local/sniffles/multisample.nf b/modules/local/sniffles/multisample.nf index 190d8776..c8007491 100644 --- a/modules/local/sniffles/multisample.nf +++ b/modules/local/sniffles/multisample.nf @@ -33,7 +33,7 @@ process SNIFFLES_MULTISAMPLE { cat <<-END_VERSIONS > versions.yml "${task.process}": - sniffles_multisample: \$(sniffles --help 2>&1 | grep Version |sed 's/^.*Version: //') + sniffles_multisample: \$(sniffles --help 2>&1 | grep Version |sed 's/^.*Version //') END_VERSIONS """ }