# HG changeset patch # User peterjc # Date 1495034307 14400 # Node ID 9adb26199d9b28a2dd22abd98b9f8e04213536cc # Parent 84232d9e269c88177962d572bdb8898e158723a2 planemo upload for repository https://github.com/peterjc/pico_galaxy/tree/master/tools/get_orfs_or_cdss commit 37d5b47ec23e2cbaa453cc660bb1fcbb10dd34ee-dirty diff -r 84232d9e269c -r 9adb26199d9b tools/get_orfs_or_cdss/README.rst --- a/tools/get_orfs_or_cdss/README.rst Tue May 16 09:10:25 2017 -0400 +++ b/tools/get_orfs_or_cdss/README.rst Wed May 17 11:18:27 2017 -0400 @@ -82,6 +82,7 @@ Gracilibacteria. v0.2.2 - Use ```` (internal change only). - Single quote command line arguments (internal change only). +v0.2.3 - Python 3 compatible print function. ======= ====================================================================== diff -r 84232d9e269c -r 9adb26199d9b tools/get_orfs_or_cdss/get_orfs_or_cdss.py --- a/tools/get_orfs_or_cdss/get_orfs_or_cdss.py Tue May 16 09:10:25 2017 -0400 +++ b/tools/get_orfs_or_cdss/get_orfs_or_cdss.py Wed May 17 11:18:27 2017 -0400 @@ -18,6 +18,8 @@ See accompanying text file for licence details (MIT licence). """ +from __future__ import print_function + import re import sys @@ -79,7 +81,7 @@ options, args = parser.parse_args() if options.version: - print("v0.2.0") + print("v0.2.3") sys.exit(0) if not options.input_file: @@ -102,8 +104,8 @@ else: sys.exit("Unsupported file type %r" % options.seq_format) -print "Genetic code table %i" % options.table -print "Minimum length %i aa" % options.min_len +print("Genetic code table %i" % options.table) +print("Minimum length %i aa" % options.min_len) # print "Taking %s ORF(s) from %s strand(s)" % (mode, strand) starts = sorted(table_obj.start_codons) @@ -283,4 +285,4 @@ if out_bed and out_bed is not sys.stdout: out_bed.close() -print "Found %i %ss in %i sequences" % (out_count, options.ftype, in_count) +print("Found %i %ss in %i sequences" % (out_count, options.ftype, in_count)) diff -r 84232d9e269c -r 9adb26199d9b tools/get_orfs_or_cdss/get_orfs_or_cdss.xml --- a/tools/get_orfs_or_cdss/get_orfs_or_cdss.xml Tue May 16 09:10:25 2017 -0400 +++ b/tools/get_orfs_or_cdss/get_orfs_or_cdss.xml Wed May 17 11:18:27 2017 -0400 @@ -1,4 +1,4 @@ - + e.g. to get peptides from ESTs biopython