Commit 78e79962 authored by Gustaf Ahdritz's avatar Gustaf Ahdritz
Browse files

Fix bugs in MMseqs DB script

parent fdf836f1
...@@ -23,14 +23,14 @@ DOWNLOAD_DIR="$1" ...@@ -23,14 +23,14 @@ DOWNLOAD_DIR="$1"
for f in $(ls ${DOWNLOAD_DIR}/*.tar.gz) for f in $(ls ${DOWNLOAD_DIR}/*.tar.gz)
do do
tar --extract --verbose --file="${DOWNLOAD_DIR}/${f}" \ tar --extract --verbose --file="${f}" \
--directory="${DOWNLOAD_DIR}/mmseqs_dbs" --directory="${DOWNLOAD_DIR}/mmseqs_dbs"
rm "${f}" rm "${f}"
BASENAME="$(basename {f%%.*})" BASENAME="$(basename {f%%.*})"
DB_NAME="${BASENAME}_db" DB_NAME="${BASENAME}_db"
OLD_PWD=$(pwd) OLD_PWD=$(pwd)
cd "${DOWNLOAD_DIR}/mmseqs_dbs" cd "${DOWNLOAD_DIR}/mmseqs_dbs"
mmseqs tar2exprofiledb "${BASENAME}" "${DB_NAME}" mmseqs tsv2exprofiledb "${BASENAME}" "${DB_NAME}"
mmseqs createindex "${DB_NAME}" "${DOWNLOAD_DIR}/tmp/" mmseqs createindex "${DB_NAME}" "${DOWNLOAD_DIR}/tmp/"
cd "${OLD_PWD}" cd "${OLD_PWD}"
done done
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment