# HG changeset patch # User peterjc # Date 1495039401 14400 # Node ID 704454850cfa1cffb6685573a0fbf182aa498fb1 # Parent a22c48f357df3529c1ad3c4dce691030a7e2b0ef planemo upload for repository https://github.com/peterjc/pico_galaxy/tree/master/tools/seq_select_by_id commit 8ac4eac1507e91426b883d440c89d3f654c51a26-dirty diff -r a22c48f357df -r 704454850cfa tools/seq_select_by_id/README.rst --- a/tools/seq_select_by_id/README.rst Wed May 17 09:18:14 2017 -0400 +++ b/tools/seq_select_by_id/README.rst Wed May 17 12:43:21 2017 -0400 @@ -90,6 +90,7 @@ - Depends on Biopython 1.67 via legacy Tool Shed package or bioconda. - Python 3 compatible print function. v0.0.13 - Python 3 compatible exception handling. +v0.0.14 - Script works on Python 2 and 3 (fixed output file mode). ======= ====================================================================== diff -r a22c48f357df -r 704454850cfa tools/seq_select_by_id/seq_select_by_id.py --- a/tools/seq_select_by_id/seq_select_by_id.py Wed May 17 09:18:14 2017 -0400 +++ b/tools/seq_select_by_id/seq_select_by_id.py Wed May 17 12:43:21 2017 -0400 @@ -26,7 +26,7 @@ import sys if "-v" in sys.argv or "--version" in sys.argv: - print("v0.0.13") + print("v0.0.14") sys.exit(0) # Parse Command Line @@ -128,7 +128,7 @@ else: # Avoid overhead of parsing into SeqRecord objects, # just re-use the original formatting from the input file. - out_handle = open(out_file, "w") + out_handle = open(out_file, "wb") count = 0 for name in parse_ids(tabular_file, column): try: diff -r a22c48f357df -r 704454850cfa tools/seq_select_by_id/seq_select_by_id.xml --- a/tools/seq_select_by_id/seq_select_by_id.xml Wed May 17 09:18:14 2017 -0400 +++ b/tools/seq_select_by_id/seq_select_by_id.xml Wed May 17 12:43:21 2017 -0400 @@ -1,4 +1,4 @@ - + from a tabular file biopython