Question: An Error By Using Ncbi-Blast-2.2.25+ (On Windows)
1
gravatar for Mohammad Reza
3.0 years ago by
Mohammad Reza180
Tehran university
Mohammad Reza180 wrote:

Hi all I downloaded blast+ software package (for windows), and installed like the Bookshelf; to run it i used this

"ncbi-blast-2.2.25+/bin/blastn –query text_query.txt –db refseq_genomic –out output.txt"

but it didn't work and gave me an error:

"DESCRIPTION
   Nucleotide-Nucleotide BLAST 2.2.25+

Use '-help' to print detailed descriptions of command line arguments

========================================================================

Error: (106.18)

NCBI C++ Exception:

 Error: (CArgException::eSynopsis) Too many positional arguments (1),
the offending value: ûquery

 Error: (CArgException::eSynopsis) Application's initialization failed"

I couldn't what is my mistake. if possible help me (with more details please, because i am a bit freshman about bioinformatics). i really need it. thanks a lot in advance.

regards

ADD COMMENTlink modified 2.8 years ago by Michael Dondrup27k • written 3.0 years ago by Mohammad Reza180
1

might be an encoding problem: '-query' vs. 'ûquery', did you copy paste that command line (eg. from a pdf?) If so, try to re-type it completely yourself. Otherwise it could be a bug.

ADD REPLYlink written 3.0 years ago by Michael Dondrup27k

what's the content of "text_query.txt" ?

ADD REPLYlink written 3.0 years ago by Pierre Lindenbaum58k

text_query.txt is a set of EST sequences that i want to blast them.

ADD REPLYlink written 3.0 years ago by Mohammad Reza180
4
gravatar for Michael Dondrup
3.0 years ago by
Bergen
Michael Dondrup27k wrote:

I tried it: you copy, pasted the command line from here: http://www.ncbi.nlm.nih.gov/books/NBK52637/

blastn –query text_query.txt –db refseq_rna –out output.txt

If I do this on a Mac I get the same error as you. So it is definitely the dash ('-'), this query looks the same as:

blastn -query text_query.txt -db refseq_rna -out output.txt
Command line argument error: Argument "query". File is not accessible:  `text_query.txt'

this is fine because I don't have that file! So it is definitely an encoding problem, UTF-8 versus ISO-latin I suppose.

Be wary about copy pasting commands.

ADD COMMENTlink modified 3.0 years ago by Neilfws41k • written 3.0 years ago by Michael Dondrup27k

Thanks so much for your useful answer. you are right. i fixed it. and another question please? how can i get just the first hit for each sequence? i don't know what code i write to do this. thanks again for your favor.

regards

ADD REPLYlink written 3.0 years ago by Mohammad Reza180

For your additional question look here: http://biostar.stackexchange.com/questions/7313/tools-parsing-ncbi-blast-m-7-xml-output-format/7314#7314

ADD REPLYlink written 3.0 years ago by Michael Dondrup27k

Hi everyone, I had the same problem and by retyping it was solved. Now my problem is that I am using C~ process to send the same command and it seems like it is basically copying and pasting and I get the same error when I use it through c# (but not through the run when I type it). Any idea how I can solve it? Thanks.

ADD REPLYlink written 2.5 years ago by Reyhaneh420

Hi everyone, I had the same problem and by retyping it was solved. Now my problem is that I am using C# process to send the same command and it seems like it is basically copying and pasting and I get the same error when I use it through c# (but not through the run when I type it). Any idea how I can solve it? Thanks.

ADD REPLYlink written 2.5 years ago by Reyhaneh420
Please log in to add an answer.

Help
Access
  • RSS
  • Stats
  • API

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.0.0
Traffic: 567 users visited in the last hour