Entering edit mode
5.8 years ago
AyehSadr
•
0
Dear All
I have downloaded the nr database by this command wget 'ftp://ftp.ncbi.nlm.nih.gov/blast/db/nr.*.tar.gz' and have extracted the files. When I run blastx I got this error: no alias or index file found for nucleotide database nr in search path.
I would appreciate to guide me how I can fix it.
Best Regards Ayeh
Please post the command you used to invoke
blastx
.My guess would be you didn’t use the basename for the database
nr
(you shouldn’t provide any extensions).It might also be helpful to show a snippet of the directory listing after you extracted the archive.
the command is:
blastx -query '/home/fatemeh/trinity_outp/Trinity.fasta' -db '/home/fatemeh/NCBI/nr' -out blastx.outfmt6 -evalue 1e-4 -num_threads 4 -max_target_seqs 1 -outfmt 6
There shouldn’t be any need to put your filepaths in quotation marks, but I doubt this is the cause of your issue.
Please show us some of the content of the directory.
ls -l | head -n 20
should suffice (unless you have a lot of non-Blast related stuff in the same directory).Can you also tell us how you extracted the files? I would suggest using the
update_blastdb.pl
script NCBI provides for downloading all the parts. As your initial error suggested, you're missing a number of parts for the database to work properlyFor instance, if I download
nr.00.tar.gz
only as an example:You are missing all of these files at the moment. I'm not convinced everything has extracted properly. What size were the
tar.gz
files you started from? It looks like each of thosenr.XX
files you have are actually directories. Do they contain anything like the above?You need to show us all the commands you used, including the extraction step else we're just guessing. All of the files should be present in the same directory. It looks like you may have extracted them all to separate subdirectories.
Post the full command you are using. In particular make sure you have a file called
nr.pal
present in the directory where you downloaded these files.I have this file in the directory that the files downloaded
I have the same issue. Did you figure out what the problem was?
Post the complete command you are using.
So I am not using a command. Similar problem to the original post, I downloaded my database (ftp://ftp.jcvi.org/pub/data/provean/nr_Aug_2011/). I extracted the files simply using
tar -xzf
. I am using a software the uses blast, when I run the software I get the errorBLAST Database error: No alias or index file found for protein database [/path/provean/nr] in search path [/home/user::]
I think maybe the issue is either, I am extracting the files incorrectly (jrj.healey) or there is some kind of issue with the database?If you are using a database from
2011
with latestblast+
that may be a problem. If you must use that old database then you may need to find/install an old version of blast.It sounds like the software you’re using requires the blast database to be in a specific location. Where are you storing the extracted files?
I just made a post about this here. I figured it was the easiest way to get all the details out