Skip to content

Commit

Permalink
rename header index too in makepaddedseqdb
Browse files Browse the repository at this point in the history
  • Loading branch information
sooyoung-cha committed Dec 31, 2024
1 parent bd6e60f commit 2d94c4c
Showing 1 changed file with 26 additions and 8 deletions.
34 changes: 26 additions & 8 deletions data/makepaddeddb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ if [ "${CLUSEARCH_PAR}" = 0 ]; then
|| fail "renamedbkeys died"
fi

if exists "${IN}_h.dbtype"; then
# shellcheck disable=SC2086
"$MMSEQS" renamedbkeys "${OUT}_ss.gpu_mapping1" "${IN}_h" "${OUT}_h" \
--subdb-mode 1 ${THREADS_PAR} \
|| fail "renamedbkeys died"
fi

rm -f -- "${OUT}.lookup"
awk '{print $1"\t"$2"\t"int($3/2)}' "${OUT}_ss.lookup" > "${OUT}.lookup"
rm -f -- "${OUT}_ss.gpu_mapping1"
Expand Down Expand Up @@ -87,15 +94,26 @@ else
awk 'BEGIN{i=0} FNR==NR{name[$3]=1;print $3"\t"$1;i++; next} {if (!($1 in name)){print $1"\t"i; i++}}' \
"${OUT}_ss.lookup" "${IN}.lookup" > "${OUT}_ss.gpu_mapping2"

# shellcheck disable=SC2086
"$MMSEQS" renamedbkeys "${OUT}_ss.gpu_mapping1" "${IN}" "${OUT}" \
--subdb-mode 1 ${THREADS_PAR} \
|| fail "renamedbkeys died"
if exists "${IN}.dbtype"; then
# shellcheck disable=SC2086
"$MMSEQS" renamedbkeys "${OUT}_ss.gpu_mapping1" "${IN}" "${OUT}" \
--subdb-mode 1 ${THREADS_PAR} \
|| fail "renamedbkeys died"
fi

# shellcheck disable=SC2086
"$MMSEQS" renamedbkeys "${OUT}_ss.gpu_mapping1" "${IN}_ca" "${OUT}_ca" \
--subdb-mode 1 ${THREADS_PAR} \
|| fail "renamedbkeys died"
if exists "${IN}_ca.dbtype"; then
# shellcheck disable=SC2086
"$MMSEQS" renamedbkeys "${OUT}_ss.gpu_mapping1" "${IN}_ca" "${OUT}_ca" \
--subdb-mode 1 ${THREADS_PAR} \
|| fail "renamedbkeys died"
fi

if exists "${IN}_h.dbtype"; then
# shellcheck disable=SC2086
"$MMSEQS" renamedbkeys "${OUT}_ss.gpu_mapping1" "${IN}_h" "${OUT}_h" \
--subdb-mode 1 ${THREADS_PAR} \
|| fail "renamedbkeys died"
fi

# shellcheck disable=SC2086
"$MMSEQS" renamedbkeys "${OUT}_ss.gpu_mapping2" "${IN}_seq" "${OUT}_seq" \
Expand Down

0 comments on commit 2d94c4c

Please sign in to comment.