fix the version issue.

This commit is contained in:
JIANHONG OU 2022-05-03 12:27:39 -04:00
parent 5735f515f8
commit dc59ad0bf5

View file

@ -30,9 +30,12 @@ process MOTUS_DOWNLOADDB {
## clean up ## clean up
rm ${software} rm ${software}
## 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.
cat <<-END_VERSIONS > versions.yml cat <<-END_VERSIONS > versions.yml
"${task.process}": "${task.process}":
mOTUs: \$(echo \$(motus -h 2>&1) | sed 's/^.*Version: //; s/Reference.*\$//') mOTUs: \$(grep motus db_mOTU/db_mOTU_versions | sed 's/motus\\t//g')
END_VERSIONS END_VERSIONS
""" """
} }