Skip to content

Commit

Permalink
More detailed help if try to use the script's old API
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjc committed Apr 17, 2014
1 parent 8f269fd commit d394a95
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions tools/ncbi_blast_plus/blastxml_to_tabular.py
Expand Up @@ -66,7 +66,7 @@
from optparse import OptionParser

if "-v" in sys.argv or "--version" in sys.argv:
print "v0.1.00"
print "v0.1.01"
sys.exit(0)

if sys.version_info[:2] >= ( 2, 5 ):
Expand All @@ -85,7 +85,20 @@ def stop_err( msg ):

if len(sys.argv) == 4 and sys.argv[3] in ["std", "x22", "ext"]:
#False positive if user really has a BLAST XML file called 'std' or 'ext'...
stop_err("ERROR: The script API has changed, sorry.")
stop_err("""ERROR: The script API has changed, sorry.
Instead of the old style:
$ python blastxml_to_tabular.py input.xml output.tabular std
Please use:
$ python blastxml_to_tabular.py -o output.tabular -c std input.xml
For more information, use:
$ python blastxml_to_tabular.py -h
""")

usage = """usage: %prog [options] blastxml[,...]
Expand Down

0 comments on commit d394a95

Please sign in to comment.