Command line BLAST
0
0
Entering edit mode
6.8 years ago

I installed command line BLAST and then added pre-formatted database from NCBI. now i am trying to validate it. When I extract a entry from database, it is shown in fasta format in command prompt. I want to export that file in text format. To this end, i am using following command-

C:\Program Files\NCBI\blast-2.7.1+>blastdbcmd.exe -db refseq_rna.00 -entry nm_000122 -outfmt %f -out Test_query

but then there pops up a Command line argument error: Argument "out". File is not accessible: `Test_query'. How can I resolve it? I would appreciate your help.

sequence output • 3.1k views
ADD COMMENT
1
Entering edit mode

Isn't it a permission error? try 'C:\Program Files\NCBI\blast-2.7.1+\blastdbcmd.exe' -db 'C:\Program Files\NCBI\blast-2.7.1+\refseq_rna.00' ......

At your home directory.

ADD REPLY
0
Entering edit mode

Nope it isn't. Tried your suggestion. Following error pops up-

Error: Too many positional arguments (1), the offending value: files\NCBI\blast-2.7.1+\refseq_rna.00' Error: (CArgException::eSynopsis) Too many positional arguments (1), the offending value: files\NCBI\blast-2.7.1+\refseq_rna.00'

ADD REPLY
0
Entering edit mode

Ok, then change the path of the output file.(please ignore my first comment)

C:\Program Files\NCBI\blast-2.7.1+>blastdbcmd.exe -db refseq_rna.00 -entry nm_000122 -outfmt %f -out C:\User\<your user name>\Test_query
ADD REPLY
0
Entering edit mode

Didn't work. Following error appears- Error: Too many positional arguments (1), the offending value: 1\test_query Error: (CArgException::eSynopsis) Too many positional arguments (1), the offending value: 1\test_query

ADD REPLY
0
Entering edit mode

Ok, how about using double quotation

C:\Program Files\NCBI\blast-2.7.1+>blastdbcmd.exe -db refseq_rna.00 -entry nm_000122 -outfmt %f -out "C:\User\<your user name>\Test_query"

My first comment may work with double quotation marks, too.

ADD REPLY
0
Entering edit mode

Nope it isn't. Tried your suggestion. Following error pops up-

Error: Too many positional arguments (1), the offending value: files\NCBI\blast-2.7.1+\refseq_rna.00' Error: (CArgException::eSynopsis) Too many positional arguments (1), the offending value: files\NCBI\blast-2.7.1+\refseq_rna.00'

ADD REPLY
0
Entering edit mode

Please use ADD COMMENT/ADD REPLY when responding to existing posts to keep threads logically organized.

ADD REPLY
0
Entering edit mode

Ok. I will be careful.

ADD REPLY
0
Entering edit mode

This is probably not related to your issue but you should not use the refseq_rna.00 as db identifier. This refseq_rna is most likely a blastdb formatted in several subparts, so it is better to use simple refseq_rna (omit the .<number>) . you will see there is a refseq_rna.pal file which is in fact the 'main file' of your blastDB.

Apart from that : have you tried putting quotes around the %f thing? Linux will not stumbled over it but perhaps windows will?

ADD REPLY
0
Entering edit mode

my first guess would otherwise also be the permission issue . Can you create any kind of file in the directory where you want to put that 'Test_query' file?

ADD REPLY

Login before adding your answer.

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