Mercurial > repos > peterjc > samtools_depad
diff tools/samtools_depad/samtools_depad.py @ 3:588c6ce25867 draft default tip
v0.0.5 Python 3 compatible print function.
author | peterjc |
---|---|
date | Wed, 17 May 2017 09:15:32 -0400 |
parents | 02572789ef6c |
children |
line wrap: on
line diff
--- a/tools/samtools_depad/samtools_depad.py Tue May 16 09:29:05 2017 -0400 +++ b/tools/samtools_depad/samtools_depad.py Wed May 17 09:15:32 2017 -0400 @@ -10,12 +10,14 @@ Runs "samtools depad" and captures the output to the desired BAM file. """ +from __future__ import print_function + import os import sys if "-v" in sys.argv or "--version" in sys.argv: # Galaxy seems to invert the order of the two lines - print "(Galaxy wrapper v0.0.4)" + print("(Galaxy wrapper v0.0.5)") cmd = "samtools 2>&1 | grep -i ^Version" sys.exit(os.system(cmd))