This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Edit Blast Not Finding Locally Downloaded Database (Nr) Local Blastn Stopping Early

I downloaded nr locally and am trying to BLAST my fasta files against the nr database. I don't get an error but when I check the out file it looks as though it stops early. It stops at the first run and doesn't do a comparison, only prints the reference names, version, and the 1st query. I'm using...

blastall -p blastn -d nr -i inputfile.fasta -o output.out

Is it not finding nr to make a comparison to?

I downloaded the "per-formatted" databases from NCBI, and after unpacking have .phd .phi .phr .pin .pnd .pni .pog .ppd .ppi .psd .psi and .psq files. Are these per-formatted?

blastn

I tried using it without blastall in the format from the link you gave me and it said it could not find blastn even when I gave the direct path.

I know for sure it is because of the database. I removed the -d option and got the same result, which means it is not finding the locally downloaded pre-formatted NCBI database. how can I get it to find local nr?

1 answer

Oh, I think I have a better picture of what's going on. You're using "blastn" against "nr," which is a nucleotide search against a protein database. If you're trying to do a protein search, use "blastp." If you are trying to do a nucleotide search, try the "nt" database.

Yes, if you have not fixed your earlier problem with running the update_blastdb.pl script in your virtualbox, it will continue to not work.

Has this question been resolved, then?

I got it working thanks. I downloaded update_database.pl through a server where it works.

Log in to answer this question.