This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Blast Can'T Find Databases

I've installed BLAST locally, I've downloaded the nr database via update update_blastdb, I've added .ncbirc to the home folder which has

[BLAST]
BLASTDB=/home/bioinformatics/Desktop/blastDB

and yet when I try to run blastn I get this:

blastn -query Desktop/sea_urchin_output1/permutations.fa -db nr
BLAST Database error: No alias or index file found for nucleotide database [nr] in search path [/home/bioinformatics::/home/bioinformatics/Desktop/blastDB:]

I've tried following instructions to get this to run, but it still doesn't work. Is there something I'm missing?

blastn blast

Two thoughts. (1) Have you checked that /home/bioinformatics/Desktop/blastDB contains the required files, their sizes look right and their names all begin with nr.*? (2) Are you sure that nr is the correct database? For blastn, you should be using the nucleotide database, which was named nt the last time I used it.

Yes and yes. The files are there and blastn with nr is what I was told to use.

Just guessing: did you unzip the .tar.gz file?

Nice it worked for me! However I wonder an error message as "blasn expected nucleotides database" to realize i'm not using the correct blast. Thanks

1 answer

Assuming you have untarred and ungzipped it correctly, the problem is reported correctly, but is not obvious to the beginner:

No alias or index file found for nucleotide database [nr]

You see, "nr" is a PROTEIN database. It's indices are stored in the "nr.pin" file. Note the "p" in pin. Because you are using blastn, which is nucleotide query VS nucleotide database, it is looking for a "nr.nin" index file, not the "nr.pin" you have.

You either need to install "nt", or use "blastx -db nr" instead, which will translate your query in six frames and match against the nr proteins.

Log in to answer this question.