How to update or install your local NCBI BLAST database in a Unix shell using

I recently updated my local BLAST database and I thought I would revisit the process of installing/updating, but this time using the included script.

First,  make sure the BLAST program is set to your path.  Because I work on a cluster all I  do is load the module.

module load bio/blast+/2.7.1

I then delete the old database folder and make a new folder with the same exact name (this keeps your old  scripts working ). If you are doing a fresh install, just create a new folder.

module load bio/blast+/2.7.1 
rm -r blastdb_folder_name
mkdir blastdb_folder_name

Now use the perl script to download the database of your choice.  The decompress option automatically decompresses the tar.gz files. Depending on what database you choose to download and your internet speeds, this could be a lengthy process.

perl --decompress nt

I am also downloading the taxonomy database to know more about my BLAST hits. You have to manually unpack this database.

module load bio/blast+/2.7.1 
perl taxdb
gunzip taxdb.tar.gz 

That’s it! Now you should have an updated BLAST database.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s