26
|
1 <tool id="plant_tribes_kaks_analysis" name="KaKsAnalysis" version="@WRAPPER_VERSION@.0">
|
25
|
2 <description>estimates paralogous and orthologous pairwise synonymous (Ks) and non-synonymous (Ka) substitution rates</description>
|
26
|
3 <macros>
|
|
4 <import>macros.xml</import>
|
|
5 </macros>
|
|
6 <expand macro="requirements_kaks_analysis" />
|
|
7 <expand macro="stdio" />
|
0
|
8 <command>
|
|
9 <![CDATA[
|
5
|
10 #set output_dir = 'kaksAnalysis_dir'
|
4
|
11 #set comparison = $comparison_cond.comparison
|
0
|
12 #if str($options_type.options_type_selector) == 'advanced':
|
|
13 #set codeml_ctl_file_cond = $options_type.codeml_ctl_file_cond
|
|
14 #set codeml_ctl_file_select = $codeml_ctl_file_cond.codeml_ctl_file_select
|
|
15 #set fit_components_cond = $options_type.fit_components_cond
|
|
16 #set fit_components = $fit_components_cond.fit_components
|
11
|
17 #set recalibrate_cond = $options_type.recalibrate_cond
|
|
18 #set recalibrate = $recalibrate_cond.recalibrate
|
|
19 #set set_min_coverage_cond = $options_type.set_min_coverage_cond
|
|
20 #set set_min_coverage = $set_min_coverage_cond.set_min_coverage
|
17
|
21 #set set_lower_ks_limit_cond = $options_type.set_lower_ks_limit_cond
|
16
|
22 #set set_lower_ks_limit = $set_lower_ks_limit_cond.set_lower_ks_limit
|
17
|
23 #set set_upper_ks_limit_cond = $options_type.set_upper_ks_limit_cond
|
16
|
24 #set set_upper_ks_limit = $set_upper_ks_limit_cond.set_upper_ks_limit
|
6
|
25 #else:
|
|
26 #set codeml_ctl_file_select = 'no'
|
|
27 #set fit_components = 'no'
|
16
|
28 #set set_lower_ks_limit = 'no'
|
|
29 #set set_upper_ks_limit = 'no'
|
0
|
30 #end if
|
|
31 KaKsAnalysis
|
|
32 --num_threads \${GALAXY_SLOTS:-4}
|
|
33 --coding_sequences_species_1 '$coding_sequences_species_1'
|
|
34 --proteins_species_1 '$proteins_species_1'
|
|
35 --comparison $comparison
|
4
|
36 #if str($comparison) == 'orthologs':
|
0
|
37 --coding_sequences_species_2 '$comparison_cond.coding_sequences_species_2'
|
|
38 --proteins_species_2 '$comparison_cond.proteins_species_2'
|
|
39 #end if
|
|
40 #if str($options_type.options_type_selector) == 'advanced':
|
11
|
41 #if str($set_min_coverage) == 'yes':
|
|
42 --min_coverage $set_min_coverage_cond.min_coverage
|
|
43 #end if
|
|
44 #if str($recalibrate) == 'yes':
|
|
45 --recalibration_rate $recalibrate_cond.recalibration_rate
|
|
46 #end if
|
0
|
47 #if str($codeml_ctl_file_select) == 'yes':
|
|
48 --codeml_ctl_file '$codeml_ctl_file_cond.codeml_ctl_file'
|
|
49 # No else block needed here because the default codeml_ctl config
|
|
50 # will be used if the --codeml_ctl_file flag is missing.
|
|
51 #end if
|
|
52 #if str($fit_components) == 'yes':
|
10
|
53 --fit_components
|
0
|
54 --num_of_components $fit_components_cond.num_of_components
|
16
|
55 #end if
|
|
56 #if str($set_lower_ks_limit) == 'yes':
|
|
57 --min_ks $set_lower_ks_limit_cond.min_ks
|
|
58 #end if
|
|
59 #if str($set_upper_ks_limit) == 'yes':
|
|
60 --max_ks $set_upper_ks_limit_cond.max_ks
|
0
|
61 #end if
|
|
62 #end if
|
7
|
63 >/dev/null
|
5
|
64 && mv $output_dir/species1.fna '$output_species1_fna'
|
|
65 && mv $output_dir/species1.faa '$output_species1_faa'
|
9
|
66 #if str($comparison) == 'paralogs':
|
5
|
67 && mv $output_dir/species1.fna.blastn.paralogs '$output_species1_paralog'
|
9
|
68 #else:
|
5
|
69 && mv $output_dir/species2.faa '$output_species2_faa'
|
|
70 && mv $output_dir/species2.fna '$output_species2_fna'
|
|
71 && mv $output_dir/species1.fna.blastn.orthologs '$output_species1_ortholog'
|
|
72 && mv $output_dir/species2.fna.blastn.orthologs '$output_species2_ortholog'
|
|
73 #end if
|
|
74 && mv $output_dir/*.rbhb '$output_rbhb'
|
|
75 && mv $output_dir/*.kaks '$output_kaks'
|
|
76 #if str($fit_components) == 'yes':
|
|
77 && mv $output_dir/*.components '$output_components'
|
|
78 #end if
|
0
|
79 ]]>
|
|
80 </command>
|
|
81 <inputs>
|
27
|
82 <param name="coding_sequences_species_1" format="fasta" type="data" label="Coding sequences for the first species" />
|
|
83 <param name="proteins_species_1" format="fasta" type="data" label="Protein sequences for the first species" />
|
0
|
84 <conditional name="comparison_cond">
|
27
|
85 <param name="comparison" type="select" label="Type of sequence comparison">
|
|
86 <option value="paralogs" selected="true">Paralogous</option>
|
|
87 <option value="orthologs">Orthologous</option>
|
0
|
88 </param>
|
|
89 <when value="paralogs" />
|
|
90 <when value="orthologs">
|
27
|
91 <param name="coding_sequences_species_2" format="fasta" type="data" label="Coding sequences for the second species" />
|
|
92 <param name="proteins_species_2" format="fasta" type="data" label="Protein sequences for the second species" />
|
0
|
93 </when>
|
|
94 </conditional>
|
|
95 <conditional name="options_type">
|
|
96 <param name="options_type_selector" type="select" label="Options Configuration">
|
|
97 <option value="basic" selected="true">Basic</option>
|
|
98 <option value="advanced">Advanced</option>
|
|
99 </param>
|
|
100 <when value="basic" />
|
|
101 <when value="advanced">
|
11
|
102 <conditional name="set_min_coverage_cond">
|
27
|
103 <param name="set_min_coverage" type="select" label="Alignment coverage configuration">
|
11
|
104 <option value="no" selected="true">No</option>
|
|
105 <option value="yes">Yes</option>
|
|
106 </param>
|
|
107 <when value="no" />
|
|
108 <when value="yes">
|
27
|
109 <param name="min_coverage" type="float" value="0.5" min="0.3" max="1.0" label="match score" />
|
11
|
110 </when>
|
|
111 </conditional>
|
|
112 <conditional name="recalibrate_cond">
|
27
|
113 <param name="recalibrate" type="select" label="Species rates recalibration configuration">
|
11
|
114 <option value="no" selected="true">No</option>
|
|
115 <option value="yes">Yes</option>
|
|
116 </param>
|
|
117 <when value="no" />
|
|
118 <when value="yes">
|
27
|
119 <param name="recalibration_rate" type="float" value="0.0" min="0.0" label="Recalibration rate" />
|
11
|
120 </when>
|
|
121 </conditional>
|
0
|
122 <conditional name="codeml_ctl_file_cond">
|
27
|
123 <param name="codeml_ctl_file_select" type="select" label="PAML codeml configuration">
|
0
|
124 <option value="no" selected="true">No</option>
|
|
125 <option value="yes">Yes</option>
|
|
126 </param>
|
|
127 <when value="no" />
|
|
128 <when value="yes">
|
|
129 <param name="codeml_ctl_file" format="txt" type="data" label="PAML codeml control file" />
|
|
130 </when>
|
|
131 </conditional>
|
|
132 <conditional name="fit_components_cond">
|
27
|
133 <param name="fit_components" type="select" label="Rates clustering configuration">
|
0
|
134 <option value="no" selected="true">No</option>
|
|
135 <option value="yes">Yes</option>
|
|
136 </param>
|
|
137 <when value="no" />
|
|
138 <when value="yes">
|
27
|
139 <param name="num_of_components" type="integer" value="1" min="1" label="Number of components" />
|
16
|
140 </when>
|
|
141 </conditional>
|
|
142 <conditional name="set_lower_ks_limit_cond">
|
27
|
143 <param name="set_lower_ks_limit" type="select" label="Lower limit synonymous subsitution rates configuration">
|
16
|
144 <option value="no" selected="true">No</option>
|
|
145 <option value="yes">Yes</option>
|
|
146 </param>
|
|
147 <when value="no" />
|
|
148 <when value="yes">
|
27
|
149 <param name="min_ks" type="float" value="0.0" min="0.0" label="Minimum rate" />
|
16
|
150 </when>
|
|
151 </conditional>
|
|
152 <conditional name="set_upper_ks_limit_cond">
|
27
|
153 <param name="set_upper_ks_limit" type="select" label="Upper limit synonymous subsitution rates configuration">
|
16
|
154 <option value="no" selected="true">No</option>
|
|
155 <option value="yes">Yes</option>
|
|
156 </param>
|
|
157 <when value="no" />
|
|
158 <when value="yes">
|
27
|
159 <param name="max_ks" type="float" value="0.0" min="0.0" label="Maximum rate" />
|
0
|
160 </when>
|
|
161 </conditional>
|
|
162 </when>
|
|
163 </conditional>
|
15
|
164 <!-- Required due to the Emmix license -->
|
14
|
165 <param name="non_commercial_use" label="I certify that I am not using this tool for commercial purposes." type="boolean" truevalue="NON_COMMERCIAL_USE" falsevalue="COMMERCIAL_USE" checked="False">
|
|
166 <validator type="expression" message="This tool is only available for non-commercial use.">value == True</validator>
|
|
167 </param>
|
0
|
168 </inputs>
|
|
169 <outputs>
|
5
|
170 <data name="output_species1_fna" format="fasta" label="KaKs analysis (coding sequences) on ${on_string}" />
|
|
171 <data name="output_species1_faa" format="fasta" label="KaKs analysis (amino acids) on ${on_string}" />
|
|
172 <data name="output_species2_fna" format="fasta" label="KaKs analysis (coding sequences) on ${on_string}">
|
|
173 <filter>comparison_cond['comparison'] == 'orthologs'</filter>
|
|
174 </data>
|
|
175 <data name="output_species2_faa" format="fasta" label="KaKs analysis (amino acids) on ${on_string}">
|
|
176 <filter>comparison_cond['comparison'] == 'orthologs'</filter>
|
|
177 </data>
|
|
178 <data name="output_species1_paralog" format="tabular" label="KaKs analysis (blastn results) on ${on_string}">
|
|
179 <filter>comparison_cond['comparison'] == 'paralogs'</filter>
|
|
180 </data>
|
|
181 <data name="output_species1_ortholog" format="tabular" label="KaKs analysis (blastn results) on ${on_string}">
|
|
182 <filter>comparison_cond['comparison'] == 'orthologs'</filter>
|
|
183 </data>
|
|
184 <data name="output_species2_ortholog" format="tabular" label="KaKs analysis (blastn results) on ${on_string}">
|
|
185 <filter>comparison_cond['comparison'] == 'orthologs'</filter>
|
|
186 </data>
|
|
187 <data name="output_rbhb" format="tabular" label="KaKs analysis (paralogous pairs) on ${on_string}" />
|
|
188 <data name="output_kaks" format="tabular" label="KaKs analysis on ${on_string}" />
|
|
189 <data name="output_components" format="tabular" label="KaKs analysis (significant components in the ks distribution) on ${on_string}">
|
19
|
190 <filter>options_type['options_type_selector'] == 'advanced' and options_type['fit_components_cond']['fit_components'] == 'yes'</filter>
|
5
|
191 </data>
|
0
|
192 </outputs>
|
|
193 <tests>
|
|
194 <test>
|
|
195 </test>
|
|
196 </tests>
|
|
197 <help>
|
27
|
198 This tool is one of the PlantTribes collection of automated modular analysis pipelines for comparative and evolutionary analyses
|
|
199 of genome-scale gene families and transcriptomes. This tool estimates paralogous and orthologous pairwise synonymous (Ks) and
|
|
200 non-synonymous (Ka) substitution rates for a set of gene coding sequences either produced by the AssemblyPostProcessor tool or
|
|
201 from an external source. Optionally, the resulting set of estimated Ks values can be clustered into components using a mixture
|
|
202 of multivariate normal distributions to identify significant duplication event(s) in a species or a pair of species.
|
0
|
203
|
|
204 -----
|
|
205
|
|
206 **Options**
|
|
207
|
15
|
208 * **Required**
|
0
|
209
|
29
|
210 - **Coding sequences for the first species** - coding sequence fasta file for the first species either produced by the AssemblyPostProcessor tool or from an external source selected from your history.
|
|
211 - **Protein sequences for the first species** - corresponding protein sequence fasta files for the first species either produced by the AssemblyPostProcessor tool or from an external source selected from your history.
|
|
212 - **Type of sequence comparison** - pairwise sequence comparison to determine homolgous pairs. This can be either paralogous for self-species comparison or orthologous for cross-species comparison. Cross-species comparision requires input for the second species.
|
0
|
213
|
15
|
214 * **Optional**
|
0
|
215
|
29
|
216 - **Coding sequences for the second species** - coding sequence fasta file for the second species either produced by the AssemblyPostProcessor tool or from an external source selected from your history. This option is required only for orthologous comparison.
|
|
217 - **Protein sequences for the second species** - corresponding protein sequence fasta files for the second species either produced by the AssemblyPostProcessor tool or from an external source selected from your history. This option is required only for orthologous comparison.
|
27
|
218 - **Alignment coverage configuration** - select 'Yes' to set the minimum allowable alignment coverage length between homologous pairs. PlantTribes uses global codon alignment match score to determine the pairwise alignment coverage. By default, the match score is set to 0.5 if 'No' is selected.
|
|
219
|
|
220 - **match score** - number of base matches in a pairwise sequence alignment divided by the length of shorter sequence. Positions in the alignment corresponding to gaps are not considered. The score is restricted to the range 0.3 - 1.0.
|
|
221
|
29
|
222 - **Species rates recalibration configuration** - select 'Yes' to recalibrate synonymous substitution rates of a species using a predetermined evolutionary rate. Recalibration evolutionary rate can be determined from a species tree inferred from a collection of conserved single copy genes from taxa of interest as described in Cui et al., 2006. Rate recalibration applies only to paralogous comparisons.
|
27
|
223
|
|
224 - **recalibration rate** - a predetermined evolutionary recalibration rate.
|
|
225
|
|
226 - **PAML codeml configuration** - select 'Yes' to enable selection of a PAML codeml control file to carry out maximum likelihood analysis of protein-coding DNA sequences using codon substitution models. Template file "codeml.ctl.args" can be found in the scaffold data installed into Galaxy via the PlantTribes Scaffolds Download Data Manager tool, and are also available at the PlantTribes GitHub `repository`_. Default settings shown in the template are used if 'No' is selected.
|
|
227 - **Rates clustering configuration** - select 'Yes' to estimate clusters of synonymous substitution rates using a mixture of multivariate normal distributions which represent putative duplication event(s).
|
|
228
|
|
229 - **Number of components** - number of components to include in the normal mixture model.
|
|
230
|
|
231 - **Lower limit synonymous subsitution rates configuration** - select 'Yes' to set the minimum allowable synonymous substitution rate to use in the normal mixtures cluster analysis to exclude young paralogs that arise from normal gene births and deaths in a genome.
|
|
232
|
|
233 - **Minimum rate** - minimum allowable synonymous substitution rate.
|
|
234
|
|
235 - **Upper limit synonymous subsitution rates configuration** - select 'Yes' to set the maximum allowable synonymous substitution rate to use in the normal mixtures cluster analysis to exclude likely ancient paralogs in a genome.
|
|
236
|
28
|
237 - **Maximum rate** - maximum allowable synonymous substitution rate.
|
27
|
238
|
28
|
239 .. _repository: https://github.com/dePamphilis/PlantTribes/blob/master/config/codeml.ctl.args
|
0
|
240
|
|
241 </help>
|
|
242 <citations>
|
26
|
243 <expand macro="citation1" />
|
27
|
244 <citation type="bibtex">
|
|
245 @article{Wall2008,
|
|
246 journal = {Nucleic Acids Research},
|
|
247 author = {2. Wall PK, Leebens-Mack J, Muller KF, Field D, Altman NS},
|
|
248 title = {PlantTribes: a gene and gene family resource for comparative genomics in plants},
|
|
249 year = {2008},
|
|
250 volume = {36},
|
|
251 number = {suppl 1},
|
|
252 pages = {D970-D976},}
|
|
253 </citation>
|
|
254 <citation type="bibtex">
|
|
255 @article{Altschul1990,
|
|
256 journal = {Journal of molecular biology}
|
|
257 author = {3. Altschul SF, Gish W, Miller W, Myers EW, Lipman DJ},
|
|
258 title = {Basic local alignment search tool},
|
|
259 year = {1990},
|
|
260 volume = {215},
|
|
261 number = {3},
|
|
262 pages = {403-410},}
|
|
263 </citation>
|
|
264 <citation type="bibtex">
|
|
265 @article{Katoh2013,
|
|
266 journal = {Molecular biology and evolution},
|
|
267 author = {4. Katoh K, Standley DM},
|
|
268 title = {MAFFT multiple sequence alignment software version 7: improvements in performance and usability},
|
|
269 year = {2013},
|
|
270 volume = {30},
|
|
271 number = {4},
|
|
272 pages = {772-780},}
|
|
273 </citation>
|
|
274 <citation type="bibtex">
|
|
275 @article{Yang2007,
|
|
276 journal = {Molecular biology and evolution},
|
|
277 author = {5. Yang Z},
|
|
278 title = {PAML 4: phylogenetic analysis by maximum likelihood},
|
|
279 year = {2007},
|
|
280 volume = {24},
|
|
281 number = {8},
|
|
282 pages = {1586-1591},}
|
|
283 </citation>
|
|
284 <citation type="bibtex">
|
|
285 @article{McLachlan1999,
|
|
286 journal = {Journal of Statistical Software},
|
|
287 author = {6. McLachlan GJ, Peel D, Basford KE, Adams P},
|
|
288 title = {The EMMIX software for the fitting of mixtures of normal and t-components},
|
|
289 year = {1999},
|
|
290 volume = {4},
|
|
291 number = {2},
|
|
292 pages = {1-14},}
|
|
293 </citation>
|
0
|
294 </citations>
|
|
295 </tool>
|