Question: Database Error When Running Blastn
gravatar for Anima Mundi
6.5 years ago by
Anima Mundi2.7k
Anima Mundi2.7k wrote:

Hello, as initially stated No Alignment In The Output Of Blastn, I am experiencing problems when I try to run the blastn command blastn -query myquery -db mydatabase.fasta.nhr.

What I get is:

BLAST Database error: No alias or index file found for nucleotide database [mydatabase.fasta.nhr] in search path [/home/user/Desktop::]

The database file was generated using makeblastdb -in mydatabase.fasta -dbtype nucl, which actually outputs three files, all giving the same error as above.

I understand that somehow I should add an external "alias or index" file in the same folder, maybe the solution would require blastdb_aliastool, included in the BLAST command line user manual, but at this point I would appreciate some hints. Thanks in advance.

ADD COMMENTlink written 6.5 years ago by Anima Mundi2.7k

Did you try running blastn -query myquery -db mydatabase.fasta without .nhr suffix ? I suppose that your sequence database name is mydatabase.fasta

ADD REPLYlink written 6.5 years ago by Sudeep1.6k

You could create an alias db using blastdb_aliastool to make an alias, use cases are to either define a subset of a db by GIs (e.g. swissprot is an alias of NR), or make a compound db out of several existing dbs. In your case you don't need to do this nor create any more files, but follow Sudeep's suggestion. You normally do not need to care much about the individual database files unless you want to distribute them.

ADD REPLYlink written 6.5 years ago by Michael Dondrup47k

Thanks a lot guys. In effect I always tried to use one of those three files generated by makeblastdb as database. It works fine now.

ADD REPLYlink modified 6.5 years ago • written 6.5 years ago by Anima Mundi2.7k
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1393 users visited in the last hour