# HG changeset patch # User peterjc # Date 1401885846 14400 # Node ID e37a71ffaff232d2e52c0df8256328db75787751 # Parent a607b34de31fc02e6b4f89d424d467b55cae7318 Uploaded v0.0.4, fixed an error message diff -r a607b34de31f -r e37a71ffaff2 tools/align_back_trans/README.rst --- a/tools/align_back_trans/README.rst Wed Feb 19 11:58:37 2014 -0500 +++ b/tools/align_back_trans/README.rst Wed Jun 04 08:44:06 2014 -0400 @@ -14,6 +14,10 @@ * http://toolshed.g2.bx.psu.edu/view/peterjc/align_back_trans +The underlying Python script can also be used outside of Galaxy, for +details run:: + + $ python align_back_trans.py Automated Installation ====================== @@ -56,6 +60,9 @@ ------- ---------------------------------------------------------------------- v0.0.1 - Initial version, based on a previously written Python script v0.0.2 - Optionally check the translation is consistent +v0.0.3 - First official release +v0.0.4 - Simplified XML to apply input format to output data. + - Fixed error message when sequence length not a multiple of three. ======= ====================================================================== diff -r a607b34de31f -r e37a71ffaff2 tools/align_back_trans/align_back_trans.py --- a/tools/align_back_trans/align_back_trans.py Wed Feb 19 11:58:37 2014 -0500 +++ b/tools/align_back_trans/align_back_trans.py Wed Jun 04 08:44:06 2014 -0400 @@ -28,7 +28,7 @@ from Bio.Data.CodonTable import ambiguous_generic_by_id if "-v" in sys.argv or "--version" in sys.argv: - print "v0.0.3" + print "v0.0.4" sys.exit(0) def stop_err(msg, error_level=1): @@ -40,7 +40,7 @@ """Returns nucleotide sequence if works (can remove trailing stop)""" if len(nuc) % 3: stop_err("Nucleotide sequence for %s is length %i (not a multiple of three)" - % (identifier, nuc)) + % (identifier, len(nuc))) p = str(prot).upper().replace("*", "X") t = str(nuc.translate(table)).upper().replace("*", "X") diff -r a607b34de31f -r e37a71ffaff2 tools/align_back_trans/align_back_trans.xml --- a/tools/align_back_trans/align_back_trans.xml Wed Feb 19 11:58:37 2014 -0500 +++ b/tools/align_back_trans/align_back_trans.xml Wed Jun 04 08:44:06 2014 -0400 @@ -1,4 +1,4 @@ - + Gives a codon aware alignment biopython @@ -38,13 +38,7 @@ - - - - - - - + diff -r a607b34de31f -r e37a71ffaff2 tools/align_back_trans/tool_dependencies.xml --- a/tools/align_back_trans/tool_dependencies.xml Wed Feb 19 11:58:37 2014 -0500 +++ b/tools/align_back_trans/tool_dependencies.xml Wed Jun 04 08:44:06 2014 -0400 @@ -1,6 +1,6 @@ - +