From 0af455eb99849d707b32d6da845b75a300ea574b Mon Sep 17 00:00:00 2001 From: mgiulini Date: Sat, 23 Mar 2024 08:05:41 +0100 Subject: [PATCH] updated blast installation --- install_blast_deps.sh | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) mode change 100644 => 100755 install_blast_deps.sh diff --git a/install_blast_deps.sh b/install_blast_deps.sh old mode 100644 new mode 100755 index 8e0d689..bd00fec --- a/install_blast_deps.sh +++ b/install_blast_deps.sh @@ -1,27 +1,31 @@ #!/bin/bash CWD="$(pwd)" +echo "Current working directory: ${CWD}" DB_DIR=${CWD}/db SRC_DIR=${CWD}/src OS=$(uname -s) - +echo "Operating System: ${OS}" echo "Downloading BLAST+ executables and swissprot database..." #======================================================================# echo "Downloading BLAST+..." cd "${SRC_DIR}" || exit -if [ "${OS}" == "Darwin" ]; then +# if the OS is Darwin or Mac OS X, download the Mac OS X version of BLAST+ +# if the OS is Linux, download the Linux version of BLAST+ +if [ "${OS}" == "Darwin" ] || [ "${OS}" == "Mac OS X" ]; then # Do something under Mac OS X platform - BLAST_URL="https://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/LATEST/ncbi-blast-2.13.0+-x64-macosx.tar.gz" + echo "Downloading BLAST+ for Mac OS X..." + BLAST_URL="https://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/2.15.0/ncbi-blast-2.15.0+-x64-macosx.tar.gz" elif [ "${OS}" == "Linux" ]; then # Do something under GNU/Linux platform - BLAST_URL="https://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/LATEST/ncbi-blast-2.13.0+-x64-linux.tar.gz" + BLAST_URL="https://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/2.15.0/ncbi-blast-2.15.0+-x64-linux.tar.gz" fi wget "$BLAST_URL" >/dev/null 2>&1 -tar -xzf ncbi-blast-2.13.0+-x64-*.tar.gz -rm ncbi-blast-2.13.0+-x64-*.tar.gz +tar -xzf ncbi-blast-2.15.0+-x64-*.tar.gz +rm ncbi-blast-2.15.0+-x64-*.tar.gz #======================================================================# echo "Downloading SwissProt DB..." cd "$DB_DIR" || exit