This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Blast database error: No alias or index file found for protein database [swissprot]

Hii everyone, I am using Blast 2.6.0+ on mac OS. I created the database using following code:

$ makeblastdb -in swissprot.fa -dbtype prot -out db/blast/swissprot -hash_index

This command succesfully executed and created 8 files: swissprot.phd, swissprot.phi, swissprot.phr, swissprot.pin, swissprot.pog, swissprot.psd, swissprot.psi and swissprot.psq. I tried to run blastp through following command:

$ blastp -query start.fasta -db /Users/AA/Desktop/db/blast/swissprot

It showed following error: BLAST Database error: No alias or index file found for protein database [swissport] in search path [/Users/AA/Desktop/db/blast::]

What and where am I doing wrong? Please help me in resolving this error. Thanks a lot in advance.

blast

1 answer

Try this: (make sure your working directory is your desktop)

makeblastdb -in swissprot.fa -dbtype prot -input_type fasta -out db/blast/swissprot.fa -hash_index

blastp -query start.fasta -db /Users/AA/Desktop/db/blast/swissprot.fa

Glad to hear. If my answer helped you, please accept it.

Why it works? Can you provide some links or documentation to learn these commands?

Log in to answer this question.