I am having trouble running the blastp command. When I run this command against the Swiss-prot database installed from the NCBI i get this error
$ blastp -db swissprot -query Ecoli_rpoB.fasta -out TEST15.txt
BLAST Database error: Error: Not a valid version 4 database.
However, when I create my own database from a normal fasta file it works, the same command works fine. I have the latest blast+ tool I believe ncbi-blast-2.10.1+-x64-linux.tar.gz
I am trying to use the preformatted database from NCBI, the way i install it is
perl update_blastdb.pl swissprot
perl update_blastdb.pl swissprot.tar.gz -decompress
This gives me the swissprot.pdb, .phr, .pin, pog, pos, .pot, ppd, ppi, psq, ptf, pto
I think the issue is with the version of the database, but I am unsure how to get a different version or if this is even the problem. Thank you for the help :) The same issue occurs with the refseq database I installed from the NCBI
NCBI databases are all
v5
by default now which the currentblast+
supports. It is odd that you are getting that error if you downloaded a fresh copy ofswissprot
.Edit: As hinted by @h.mon, you likely have an old version of
blastp
that is in your$PATH
. It is not able to support the newv5
database.up to version 2.9.0 the makeblastdb was still default to version 4 (had to specifically ask for v5 format) from 2.10.0 onwards it's indeed v5
Thank you, the older version of blastp was in my path, your correct
I got the issue fixed!