# HG changeset patch # User peterjc # Date 1495188295 14400 # Node ID b98c41537d0fd0eade5f7f514efc8c9dca2b83c3 # Parent 771b554bc85de15af93e6b206ca8054d6f6a9fb7 planemo upload for repository https://github.com/peterjc/galaxy_blast/tree/master/tools/ncbi_blast_plus commit b09e12603b1264688a023dd5111c946c01af9e59-dirty diff -r 771b554bc85d -r b98c41537d0f tools/ncbi_blast_plus/blastxml_to_tabular.py --- 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()