Database Error When Running Blastn
0
0
Entering edit mode
10.9 years ago
Anima Mundi ★ 2.9k

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.

blast blastn command-line makeblastdb • 4.9k views
ADD COMMENT
2
Entering edit mode

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

ADD REPLY
1
Entering edit mode

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 REPLY
0
Entering edit mode

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 REPLY

Login before adding your answer.

Traffic: 2419 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