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.
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.
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'
Ok, then change the path of the output file.(please ignore my first comment)
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
Ok, how about using double quotation
My first comment may work with double quotation marks, too.
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'
Please use
ADD COMMENT/ADD REPLY
when responding to existing posts to keep threads logically organized.Ok. I will be careful.
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?
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?