mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 19:18:17 +00:00
fix the version issue for motus_profile.
This commit is contained in:
parent
b8efa2ae7c
commit
e391c65510
1 changed files with 2 additions and 2 deletions
|
@ -39,10 +39,10 @@ process MOTUS_PROFILE {
|
||||||
## mOTUs version number is not available from command line.
|
## mOTUs version number is not available from command line.
|
||||||
## mOTUs save the version number in index database folder.
|
## mOTUs save the version number in index database folder.
|
||||||
## mOTUs will check the database version is same version as exec version.
|
## 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.*\$//')
|
VERSION=\$(echo \$(motus -h 2>&1) | sed 's/^.*Version: //; s/References.*\$//')
|
||||||
else
|
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
|
fi
|
||||||
cat <<-END_VERSIONS > versions.yml
|
cat <<-END_VERSIONS > versions.yml
|
||||||
"${task.process}":
|
"${task.process}":
|
||||||
|
|
Loading…
Reference in a new issue