Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion setup_databases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ fi
downloadFile() {
URL="$1"
OUTPUT="$2"
# Check if the file already exists and is greater than 0 bytes (to avoid using partially downloaded files)
if [ -s "$OUTPUT" ]; then
echo "$OUTPUT exists and is not empty. Skipping download."
return 0
fi
set +e
for i in $STRATEGY; do
case "$i" in
Expand All @@ -46,6 +51,7 @@ downloadFile() {
fail "Could not download $URL to $OUTPUT"
}


# Make MMseqs2 merge the databases to avoid spamming the folder with files
export MMSEQS_FORCE_MERGE=1

Expand Down Expand Up @@ -98,4 +104,4 @@ if [ ! -f PDB_MMCIF_READY ]; then
rsync -rlpt -v -z --delete --port=${PDB_PORT} ${PDB_SERVER}/data/structures/divided/mmCIF/ pdb/divided
rsync -rlpt -v -z --delete --port=${PDB_PORT} ${PDB_SERVER}/data/structures/obsolete/mmCIF/ pdb/obsolete
touch PDB_MMCIF_READY
fi
fi