wget https://www.ncbi.nlm.nih.gov/viewvc/v1/trunk/c%2B%2B/src/app/blast/update_blastdb.pl?view=co -O update_blastdb.pl
sudo mv update_blastdb.pl /usr/local/bin/
Look at ftp://ftp.ncbi.nlm.nih.gov/blast/db/README to identify the database you want.
Let's say you are interested in the ITS_RefSeq_Fungi, which is the NCBI Internal transcribed spacer region (ITS) from Fungi type and reference material.
update_blastdb.pl ITS_RefSeq_Fungi
cd ~ && sh -c "$(curl -fsSL ftp://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect/install-edirect.sh)"
get_species_taxids.sh -n Pleurotus
- It will show the NCBI taxonomy ID for the Pleurotus genus which is 5320.
get_species_taxids.sh -t 5320 > Pleurotus_5320.txids
blastn -db ITS_RefSeq_Fungi -query query.fasta -taxidlist Pleurotus_5320.txids -outfmt 7 -out OUTPUT.tab