How to format nr database for blastp?
1
0
Entering edit mode
6.3 years ago
MAPK ★ 2.1k

Hi All, I am using nr.gz database downloaded from ftp.ncbi.nlm.nih.gov/blast/db/FASTA/nr.gz. I am doing this after several years and I don't remember exactly if this is how this should be extracted. So here is what I have tried formatdb -i nr.gz -o T -p T which doesn't seem to work anymore or gives me this error: [formatdb] WARNING: Cannot add sequence number 1 (lcl|1_nr.gz) because it has zero-length.. I would really appreciate if someone could guide me through correct procedure.

blastp makeblastdb • 3.0k views
ADD COMMENT
2
Entering edit mode

small side note: formatdb is linked to quite old blast versions, nowadays it's replaced by makeblastdb , part of the most recent blast+ versions.

ADD REPLY
1
Entering edit mode

Why did you not get the pre-made nr blast indexes from ftp://ftp.ncbi.nih.gov/blast/db/?

ADD REPLY
0
Entering edit mode

Thanks.. should I just download nr.* then?

ADD REPLY
1
Entering edit mode

Yep. That would be the easiest.

ADD REPLY
0
Entering edit mode

One more question-Do I have to do makeblastdb after I untar all these files? Thanks again!

ADD REPLY
1
Entering edit mode

No there is nothing more to do. Just untar all files and make sure they are all in the same directory.

ADD REPLY
3
Entering edit mode
6.3 years ago
h.mon 35k

Use the update_blastdb.pl script to download, check md5sum and decompress blast databases. This script is bundled with BLAST+ download, and on Debian-based systems, if you install BLAST+ from the repository, the script is renamed update_blastdb. To see the available databases:

update_blastdb.pl --showall

To download nr - will automatically check md5sums:

update_blastdb.pl nr

Or to download, check md5sums, decompress and remove gzipped files:

update_blastdb.pl --decompress nr
ADD COMMENT

Login before adding your answer.

Traffic: 2184 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6