changeset 26:1ffbedc428d1 draft

planemo upload for repository https://github.com/peterjc/galaxy_blast/tree/master/tools/blast_rbh commit e03b3d1afe99ff120e73e9cfc25a1cf0a2ab998e-dirty
author peterjc
date Tue, 14 Mar 2017 13:57:33 -0400
parents 8b34c3e1d20b
children f2693e05e16b
files tools/blast_rbh/README.rst tools/blast_rbh/blast_rbh.py
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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.
 ======= ======================================================================
 
 
--- 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")