0
|
1 Galaxy tool to back-translate a protein alignment to nucleotides
|
|
2 ================================================================
|
|
3
|
|
4 This tool is copyright 2012-2014 by Peter Cock, The James Hutton Institute
|
|
5 (formerly SCRI, Scottish Crop Research Institute), UK. All rights reserved.
|
|
6 See the licence text below (MIT licence).
|
|
7
|
|
8 This tool is a short Python script (using Biopython library functions) to
|
|
9 load a protein alignment, and matching nucleotide FASTA file of unaligned
|
|
10 sequences, which are threaded onto the protein alignment in order to produce
|
|
11 a codon aware nucleotide alignment - which can be viewed as a back translation.
|
|
12
|
|
13 This tool is available from the Galaxy Tool Shed at:
|
|
14
|
|
15 * http://toolshed.g2.bx.psu.edu/view/peterjc/align_back_trans
|
|
16
|
1
|
17 The underlying Python script can also be used outside of Galaxy, for
|
|
18 details run::
|
|
19
|
|
20 $ python align_back_trans.py
|
0
|
21
|
|
22 Automated Installation
|
|
23 ======================
|
|
24
|
|
25 This should be straightforward using the Galaxy Tool Shed, which should be
|
|
26 able to automatically install the dependency on Biopython, and then install
|
|
27 this tool and run its unit tests.
|
|
28
|
|
29
|
|
30 Manual Installation
|
|
31 ===================
|
|
32
|
|
33 There are just two files to install to use this tool from within Galaxy:
|
|
34
|
|
35 * ``align_back_trans.py`` (the Python script)
|
|
36 * ``align_back_trans.xml`` (the Galaxy tool definition)
|
|
37
|
|
38 The suggested location is in a dedicated ``tools/align_back_trans`` folder.
|
|
39
|
|
40 You will also need to modify the ``tools_conf.xml`` file to tell Galaxy to offer
|
|
41 the tool. One suggested location is in the multiple alignments section. Simply
|
|
42 add the line::
|
|
43
|
|
44 <tool file="align_back_trans/align_back_trans.xml" />
|
|
45
|
|
46 You will also need to install Biopython 1.62 or later. If you want to run
|
|
47 the unit tests, include this line in ``tools_conf.xml.sample`` and the sample
|
|
48 FASTA files under the ``test-data`` directory. Then::
|
|
49
|
|
50 ./run_functional_tests.sh -id align_back_trans
|
|
51
|
|
52 That's it.
|
|
53
|
|
54
|
|
55 History
|
|
56 =======
|
|
57
|
|
58 ======= ======================================================================
|
|
59 Version Changes
|
|
60 ------- ----------------------------------------------------------------------
|
|
61 v0.0.1 - Initial version, based on a previously written Python script
|
|
62 v0.0.2 - Optionally check the translation is consistent
|
1
|
63 v0.0.3 - First official release
|
|
64 v0.0.4 - Simplified XML to apply input format to output data.
|
|
65 - Fixed error message when sequence length not a multiple of three.
|
0
|
66 ======= ======================================================================
|
|
67
|
|
68
|
|
69 Developers
|
|
70 ==========
|
|
71
|
|
72 This script was initially developed on this repository:
|
|
73 https://github.com/peterjc/picobio/blob/master/align/align_back_trans.py
|
|
74
|
|
75 With the addition of a Galaxy wrapper, developement moved here:
|
|
76 https://github.com/peterjc/pico_galaxy/tree/master/tools/align_back_trans
|
|
77
|
|
78 For making the "Galaxy Tool Shed" http://toolshed.g2.bx.psu.edu/ tarball use
|
|
79 the following command from the Galaxy root folder::
|
|
80
|
|
81 $ tar -czf align_back_trans.tar.gz tools/align_back_trans/README.rst tools/align_back_trans/align_back_trans.py tools/align_back_trans/align_back_trans.xml tools/align_back_trans/tool_dependencies.xml test-data/demo_nucs.fasta test-data/demo_nucs_trailing_stop.fasta test-data/demo_prot_align.fasta test-data/demo_nuc_align.fasta
|
|
82
|
|
83 Check this worked::
|
|
84
|
|
85 $ tar -tzf align_back_trans.tar.gz
|
|
86 tools/align_back_trans/README.rst
|
|
87 tools/align_back_trans/align_back_trans.py
|
|
88 tools/align_back_trans/align_back_trans.xml
|
|
89 tools/align_back_trans/tool_dependencies.xml
|
|
90 test-data/demo_nucs.fasta
|
|
91 test-data/demo_nucs_trailing_stop.fasta
|
|
92 test-data/demo_prot_align.fasta
|
|
93 test-data/demo_nuc_align.fasta
|
|
94
|
|
95
|
|
96 Licence (MIT)
|
|
97 =============
|
|
98
|
|
99 Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
100 of this software and associated documentation files (the "Software"), to deal
|
|
101 in the Software without restriction, including without limitation the rights
|
|
102 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
103 copies of the Software, and to permit persons to whom the Software is
|
|
104 furnished to do so, subject to the following conditions:
|
|
105
|
|
106 The above copyright notice and this permission notice shall be included in
|
|
107 all copies or substantial portions of the Software.
|
|
108
|
|
109 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
110 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
111 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
112 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
113 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
114 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
115 THE SOFTWARE.
|