Command line blast database problem
1
0
Entering edit mode
9.5 years ago
jolespin ▴ 150

So I downloaded the ncbi blast suite and I'm trying to run the command line.

I have a text file with a protein sequence at ~/in.txt:

MWLGLCLSLPPEFPGLDFTALCPLLQEAQPVWPCDLQVLESHS*

I used scp to copy the database files from my school [UCSC] server to my local drive in ~/blast_db

I ran the following command:

blastp -query ~/in.txt -out output_blast.txt -db /Users/Mu/blast_db/nr.32.psq

This is my error:

eduroam-16180339887:~ Mu$ blastp -db ~/blast_db/nr.32.psq -query ~/in.txt -out output_blast.txt
BLAST Database error: No alias or index file found for protein database [/Users/Mu/blast_db/nr.32.psq] in search path [/Users/Mu::]

The files are binary for the database. I looked up the suffix on NCBI and .psq is what to use for protein database. How can I get this to work?

sequence blast alignment software-error • 3.8k views
ADD COMMENT
2
Entering edit mode
9.5 years ago
h.mon 35k

I think your command-line should be:

blastp -query ~/in.txt -out output_blast.txt -db /Users/Mu/blast_db/nr.32

Do you have the other nr.32 files in addition to the .psq?

ADD COMMENT
0
Entering edit mode

Yes I do. Woah it worked. Why didn't it work with ~/blast_db/nr.32.psq? ~ = /Users/Mu/

ADD REPLY
0
Entering edit mode

Because blast was looking for files nr.32.psq.psq, nr.32.psq.pni, etc.

ADD REPLY

Login before adding your answer.

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