From 81eddcb21176c1350ac4a009e38298a799f298ad Mon Sep 17 00:00:00 2001 From: ryanjameskennedy Date: Wed, 29 Jan 2025 19:14:53 +0100 Subject: [PATCH] Fix sccmec versions file --- nextflow-modules/modules/sccmec/main.nf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nextflow-modules/modules/sccmec/main.nf b/nextflow-modules/modules/sccmec/main.nf index f87ea6dc..ceb207fd 100644 --- a/nextflow-modules/modules/sccmec/main.nf +++ b/nextflow-modules/modules/sccmec/main.nf @@ -20,7 +20,7 @@ process sccmec { cat <<-END_VERSIONS > ${sample_id}_${task.process}_versions.yml ${task.process}: sccmec: - version: \$(echo \$(sccmec --version 2>&1) | sed -n 's/.*sccmec_targets, version //p') + version: \$(echo \$(sccmec --version 2>&1) | sed -n 's/.*sccmec_targets, version //p' | sed 's/ .*//') container: ${task.container} END_VERSIONS """ @@ -33,7 +33,7 @@ process sccmec { cat <<-END_VERSIONS > ${sample_id}_${task.process}_versions.yml ${task.process}: sccmec: - version: \$(echo \$(sccmec --version 2>&1) | sed -n 's/.*sccmec_targets, version //p') + version: \$(echo \$(sccmec --version 2>&1) | sed -n 's/.*sccmec_targets, version //p' | sed 's/ .*//') container: ${task.container} END_VERSIONS """