Question: BLAST Database error: No alias or index file found for protein database
0
gravatar for Dracaena
20 months ago by
Dracaena40
Dracaena40 wrote:

Hi guys,

I just downloaded a protein fasta file for Arabidopsis which I want to blast my data to. What I did is, I have put the fasta file in a folder, I have used the "makeblastdb" command:

Building a new DB, current time: 11/28/2018 11:21:43
New DB name:   /mnt/d/Primula/Databases/Athaliana/GCF_000001735.4_TAIR10.1_protein
New DB title:  /mnt/d/Primula/Databases/Athaliana/GCF_000001735.4_TAIR10.1_protein.fasta
Sequence type: Protein
Keep Linkouts: T
Keep MBits: T
Maximum file size: 1000000000B
Adding sequences from FASTA; added 48266 sequences in 2.25262 seconds.*

Both the fasta file and the resulting files are in the same folder. Now, this is my command line I use for the blast:

blastp -query /mypath/genomic.all.maker.proteins.fasta -out PrimVer_actinidia_Arabidopsis.blast.txt -db /pathtofastafolder/GCF_000001735.4_TAIR10.1_protein.fasta -evalue 1e-3 -outfmt 6*

I get this error:

"BLAST Database error: No alias or index file found for protein database"

I refer to the fasta in the -db command, so this is not the problem. Any insights on this?

Cheers

error blast database • 3.5k views
ADD COMMENTlink modified 20 months ago by Joe17k • written 20 months ago by Dracaena40

as it says in your makeblastdb runtime log, the DB name is without .fasta (the DB title is with .fasta apparently)

I usually try to keep these both as much in sync as possible, to avoid confusing as you are experiencing

ADD REPLYlink modified 20 months ago • written 20 months ago by lieven.sterck8.2k
2
gravatar for Joe
20 months ago by
Joe17k
United Kingdom
Joe17k wrote:

Try:

blastp -query /mypath/genomic.all.maker.proteins.fasta -out PrimVer_actinidia_Arabidopsis.blast.txt -db /pathtofastafolder/GCF_000001735.4_TAIR10.1_protein -evalue 1e-3 -outfmt 6*
ADD COMMENTlink written 20 months ago by Joe17k
1

This solved it for me! Thanks, altough I don't understand why some people have the opposite problem, i.e. that it does not work withouth adding .fasta.

ADD REPLYlink written 20 months ago by Dracaena40
1

The problem is that a blast database is made up of several different files. In order to use the database, you have to provide just the stem name, not the extension.

This is equivalent to the DB Name.

Whether or not you need the .fasta extension will depend on whether you set the database name to the input fasta filename when you made the DB.

ADD REPLYlink modified 20 months ago • written 20 months ago by Joe17k

Great, if this has solved everything, I've moved the comment to an answer now so you can accept it using the tick mark.

ADD REPLYlink written 20 months ago by Joe17k

Consider moving it to an answer ;)

ADD REPLYlink modified 20 months ago • written 20 months ago by lieven.sterck8.2k
Please log in to add an answer.

Help
Access

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