changeset 22:b98c41537d0f draft

planemo upload for repository https://github.com/peterjc/galaxy_blast/tree/master/tools/ncbi_blast_plus commit b09e12603b1264688a023dd5111c946c01af9e59-dirty
author peterjc
date Fri, 19 May 2017 06:04:55 -0400
parents 771b554bc85d
children 9e483194ebf6
files tools/ncbi_blast_plus/blastxml_to_tabular.py
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/tools/ncbi_blast_plus/blastxml_to_tabular.py	Thu May 18 07:40:33 2017 -0400
+++ b/tools/ncbi_blast_plus/blastxml_to_tabular.py	Fri May 19 06:04:55 2017 -0400
@@ -61,6 +61,7 @@
 space character (probably a bug).
 """
 
+from __future__ import print_function
 
 import os
 import re
@@ -69,7 +70,7 @@
 from optparse import OptionParser
 
 if "-v" in sys.argv or "--version" in sys.argv:
-    print "v0.2.00"
+    print("v0.2.01")
     sys.exit(0)
 
 if sys.version_info[:2] >= (2, 5):
@@ -295,7 +296,7 @@
                             salltitles = "<>".join(name.split(None, 1)[1] for name in hit_def.split(" >"))
                         except IndexError as e:
                             sys.exit("Problem splitting multuple hits?\n%r\n--> %s" % (hit_def, e))
-                        # print hit_def, "-->", sallseqid
+                        # print(hit_def, "-->", sallseqid)
                         positive = hsp.findtext("Hsp_positive")
                         ppos = "%0.2f" % (100 * float(positive) / float(length))
                         qframe = hsp.findtext("Hsp_query-frame")
@@ -325,7 +326,7 @@
                     if cols:
                         # Only a subset of the columns are needed
                         values = [values[colnames.index(c)] for c in cols]
-                    # print "\t".join(values)
+                    # print("\t".join(values))
                     output_handle.write("\t".join(values) + "\n")
             # prevents ElementTree from growing large datastructure
             root.clear()