# HG changeset patch # User peterjc # Date 1489514253 14400 # Node ID 1ffbedc428d15db78950dfb3e932de77f730b16f # Parent 8b34c3e1d20b7760113669baae5aee7eae4e2ca3 planemo upload for repository https://github.com/peterjc/galaxy_blast/tree/master/tools/blast_rbh commit e03b3d1afe99ff120e73e9cfc25a1cf0a2ab998e-dirty diff -r 8b34c3e1d20b -r 1ffbedc428d1 tools/blast_rbh/README.rst --- a/tools/blast_rbh/README.rst Thu Feb 09 11:21:58 2017 -0500 +++ b/tools/blast_rbh/README.rst Tue Mar 14 13:57:33 2017 -0400 @@ -89,6 +89,7 @@ - PEP8 style updates to the Python script (internal change only). - Fix parameter help text which was not being displayed. v0.1.10 - Updated to depend on NCBI BLAST+ 2.5.0 via ToolShed or BioConda. +v0.1.11 - Tweak Python script to work under Python 2 or Python 3. ======= ====================================================================== diff -r 8b34c3e1d20b -r 1ffbedc428d1 tools/blast_rbh/blast_rbh.py --- a/tools/blast_rbh/blast_rbh.py Thu Feb 09 11:21:58 2017 -0500 +++ b/tools/blast_rbh/blast_rbh.py Tue Mar 14 13:57:33 2017 -0400 @@ -18,6 +18,8 @@ # results, rather than doing minimum HSP coverage in Python. # [Not doing this right now as would break on older BLAST+] +from __future__ import print_function + import os import shutil import sys @@ -34,7 +36,7 @@ if "--version" in sys.argv[1:]: # TODO - Capture version of BLAST+ binaries too? - print "BLAST RBH v0.1.10" + print("BLAST RBH v0.1.11") sys.exit(0) try: @@ -362,7 +364,7 @@ outfile.write("%s\t%s\t%i\t%i\t%s\t%s\t%i\t%s\t%s\n" % tuple(values)) count += 1 outfile.close() -print "Done, %i RBH found" % count +print("Done, %i RBH found" % count) if tie_warning: sys.stderr.write("Warning: Sequences with tied best hits found, you may have duplicates/clusters\n")