From e391c65510decfcfbcf2b31f079561f10d05696d Mon Sep 17 00:00:00 2001 From: JIANHONG OU Date: Thu, 5 May 2022 15:35:31 -0400 Subject: [PATCH] fix the version issue for motus_profile. --- modules/motus/profile/main.nf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/motus/profile/main.nf b/modules/motus/profile/main.nf index 99004ee6..8310e048 100644 --- a/modules/motus/profile/main.nf +++ b/modules/motus/profile/main.nf @@ -39,10 +39,10 @@ process MOTUS_PROFILE { ## mOTUs version number is not available from command line. ## mOTUs save the version number in index database folder. ## mOTUs will check the database version is same version as exec version. - if [ "$refdb" == "" ]; then + if [ "$db" == "" ]; then VERSION=\$(echo \$(motus -h 2>&1) | sed 's/^.*Version: //; s/References.*\$//') else - VERSION=\$(grep motus $refdb/db_mOTU_versions | sed 's/motus\\t//g') + VERSION=\$(grep motus $db/db_mOTU_versions | sed 's/motus\\t//g') fi cat <<-END_VERSIONS > versions.yml "${task.process}":