diff tools/blast2go/massage_xml_for_blast2go.py @ 24:05eef6b222af draft

planemo upload for repository https://github.com/peterjc/galaxy_blast/tools/blast2go commit 6f3c1a8da279f3b34d3bc627c97713d8dfe5f8ed
author peterjc
date Fri, 15 May 2015 06:01:16 -0400
parents 31cb702eb5a8
children 242cf17c3bf9
line wrap: on
line diff
--- a/tools/blast2go/massage_xml_for_blast2go.py	Thu Jul 31 05:40:57 2014 -0400
+++ b/tools/blast2go/massage_xml_for_blast2go.py	Fri May 15 06:01:16 2015 -0400
@@ -21,7 +21,6 @@
 """
 import sys
 import os
-import subprocess
 
 def stop_err(msg, error_level=1):
     """Print error message to stdout and quit with given error level."""
@@ -52,9 +51,9 @@
         header += line
 
     if "<BlastOutput_program>blastx</BlastOutput_program>" in header:
-        print "BLASTX output identified"
+        print("BLASTX output identified")
     elif "<BlastOutput_program>blastp</BlastOutput_program>" in header:
-        print "BLASTP output identified"
+        print("BLASTP output identified")
     else:
         in_handle.close()
         stop_err("Expect BLASTP or BLASTX output")
@@ -76,7 +75,7 @@
 
     out_handle.close()
     in_handle.close()
-    print "Input has %i queries" % count
+    print("Input has %i queries" % count)
 
 
 if __name__ == "__main__":