ncbi / blast-cloud

Documentation for NCBI BLAST AMI
10 stars 10 forks source link

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

Closed sulfierry closed 2 years ago

sulfierry commented 2 years ago

I have the error below:

Bio.Application.ApplicationError: Non-zero return code 2 from ‘psiblast -out 7NDB_B_WT.out -query 7NDB_B_WT.fasta -db /mnt/research/common-data/Bio/blastdb/nr -evalue 5000 -num_iterations 3 -out_ascii_pssm 7NDB_B_WT.pssm’, message ‘BLAST Database error: No alias or index file found for protein database [/mnt/research/common-data/Bio/blastdb/nr] in search path [/media/leon//Machine_learning_model_binding_free_energy_BFE_change_predictions/TopNetmAb/7NDB/features/7NDB_B_A_344_S::]’

I downloaded the “nr” file from the blast database and created a database link in the directory [/mnt/research/common-data/Bio/blastdb/nr]. But the error persists.

Please, can anyone help me?

tom6931 commented 2 years ago

Hello, Could you post the result of the command below? BLAST does not seem to think the files are present, so I'd like to see what is in the directory. It should be a relatively large number of files with extensions like psq, pin, phr, pal etc.

thanks,

Tom

ls -l /mnt/research/common-data/Bio/blastdb/nr

sulfierry commented 2 years ago

Hi Tom, thanks for the feedback tom .

tom6931 commented 2 years ago

Is there an nr.pal file in the directory? This is an alias file that ties together all the volumes, and I assume that BLAST is looking for that.

sulfierry commented 2 years ago

Earlier I accidentally deleted all the files I unzipped from file nr. :sweat:

Now I'm extracting these files again, I believe it will take a few more hours until everything is extracted.

Once this extraction is finished I will check if this "nr.pal" file is in the directory (so far it is not). As soon as I check this procedure I will answer you here.

Thank you again Tom.

sulfierry commented 2 years ago

Screenshot from 2021-12-18 07-55-27

sulfierry commented 2 years ago

It worked out! The problem was in the way I decompressed the nr file. Previously I used the following command: $ formatdb -i nr.fa -p T

Now I used: $ makeblastdb -in nr.fa -dbtype prot -out nr

Problem solved, thanks.