41
|
1 <tool id="plant_tribes_kaks_analysis" name="KaKsAnalysis" version="@WRAPPER_VERSION@.3.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>
|
41
|
6 <requirements>
|
|
7 <requirement type="package" version="1.0.3">plant_tribes_kaks_analysis</requirement>
|
|
8 </requirements>
|
37
|
9 <command detect_errors="exit_code"><![CDATA[
|
|
10 #set output_dir = 'kaksAnalysis_dir'
|
|
11 #set comparison = $comparison_cond.comparison
|
|
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
|
|
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
|
|
21 #set set_lower_ks_limit_cond = $options_type.set_lower_ks_limit_cond
|
|
22 #set set_lower_ks_limit = $set_lower_ks_limit_cond.set_lower_ks_limit
|
|
23 #set set_upper_ks_limit_cond = $options_type.set_upper_ks_limit_cond
|
|
24 #set set_upper_ks_limit = $set_upper_ks_limit_cond.set_upper_ks_limit
|
|
25 #else:
|
|
26 #set codeml_ctl_file_select = 'no'
|
|
27 #set fit_components = 'no'
|
|
28 #set set_lower_ks_limit = 'no'
|
|
29 #set set_upper_ks_limit = 'no'
|
|
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
|
|
36 #if str($comparison) == 'orthologs':
|
|
37 --coding_sequences_species_2 '$comparison_cond.coding_sequences_species_2'
|
|
38 --proteins_species_2 '$comparison_cond.proteins_species_2'
|
42
|
39 #set blast_option = $comparison_cond.blast_option
|
|
40 #if str($blast_option) == 'crbblast':
|
|
41 --crb_blast
|
|
42 #end if
|
37
|
43 #end if
|
|
44 #if str($options_type.options_type_selector) == 'advanced':
|
|
45 #if str($set_min_coverage) == 'yes':
|
|
46 --min_coverage $set_min_coverage_cond.min_coverage
|
|
47 #end if
|
|
48 #if str($recalibrate) == 'yes':
|
|
49 --recalibration_rate $recalibrate_cond.recalibration_rate
|
|
50 #end if
|
|
51 #if str($codeml_ctl_file_select) == 'yes':
|
|
52 --codeml_ctl_file '$codeml_ctl_file_cond.codeml_ctl_file'
|
|
53 # No else block needed here because the default codeml_ctl config
|
|
54 # will be used if the --codeml_ctl_file flag is missing.
|
|
55 #end if
|
|
56 #if str($fit_components) == 'yes':
|
|
57 --fit_components
|
|
58 --num_of_components $fit_components_cond.num_of_components
|
|
59 #end if
|
|
60 #if str($set_lower_ks_limit) == 'yes':
|
|
61 --min_ks $set_lower_ks_limit_cond.min_ks
|
|
62 #end if
|
|
63 #if str($set_upper_ks_limit) == 'yes':
|
|
64 --max_ks $set_upper_ks_limit_cond.max_ks
|
|
65 #end if
|
|
66 #end if
|
|
67 >/dev/null
|
|
68 && mv $output_dir/species1.fna '$output_species1_fna'
|
|
69 && mv $output_dir/species1.faa '$output_species1_faa'
|
|
70 #if str($comparison) == 'paralogs':
|
|
71 && mv $output_dir/species1.fna.blastn.paralogs '$output_species1_paralog'
|
|
72 #else:
|
|
73 && mv $output_dir/species2.faa '$output_species2_faa'
|
|
74 && mv $output_dir/species2.fna '$output_species2_fna'
|
|
75 && mv $output_dir/species1.fna.blastn.orthologs '$output_species1_ortholog'
|
|
76 && mv $output_dir/species2.fna.blastn.orthologs '$output_species2_ortholog'
|
|
77 #end if
|
|
78 && mv $output_dir/*.rbhb '$output_rbhb'
|
|
79 && mv $output_dir/*.kaks '$output_kaks'
|
|
80 #if str($fit_components) == 'yes':
|
|
81 && mv $output_dir/*.components '$output_components'
|
|
82 #end if
|
|
83 ]]></command>
|
0
|
84 <inputs>
|
27
|
85 <param name="coding_sequences_species_1" format="fasta" type="data" label="Coding sequences for the first species" />
|
|
86 <param name="proteins_species_1" format="fasta" type="data" label="Protein sequences for the first species" />
|
0
|
87 <conditional name="comparison_cond">
|
27
|
88 <param name="comparison" type="select" label="Type of sequence comparison">
|
|
89 <option value="paralogs" selected="true">Paralogous</option>
|
|
90 <option value="orthologs">Orthologous</option>
|
0
|
91 </param>
|
|
92 <when value="paralogs" />
|
|
93 <when value="orthologs">
|
27
|
94 <param name="coding_sequences_species_2" format="fasta" type="data" label="Coding sequences for the second species" />
|
|
95 <param name="proteins_species_2" format="fasta" type="data" label="Protein sequences for the second species" />
|
42
|
96 <param name="blast_option" type="select" display="radio" label="Determine for cross-species orthologs using">
|
|
97 <option value="blast" selected="true">reciprocal best BLAST</option>
|
|
98 <option value="crbblast">conditional reciprocal best BLAST</option>
|
|
99 </param>
|
0
|
100 </when>
|
|
101 </conditional>
|
|
102 <conditional name="options_type">
|
|
103 <param name="options_type_selector" type="select" label="Options Configuration">
|
|
104 <option value="basic" selected="true">Basic</option>
|
|
105 <option value="advanced">Advanced</option>
|
|
106 </param>
|
|
107 <when value="basic" />
|
|
108 <when value="advanced">
|
11
|
109 <conditional name="set_min_coverage_cond">
|
27
|
110 <param name="set_min_coverage" type="select" label="Alignment coverage configuration">
|
11
|
111 <option value="no" selected="true">No</option>
|
|
112 <option value="yes">Yes</option>
|
|
113 </param>
|
|
114 <when value="no" />
|
|
115 <when value="yes">
|
27
|
116 <param name="min_coverage" type="float" value="0.5" min="0.3" max="1.0" label="match score" />
|
11
|
117 </when>
|
|
118 </conditional>
|
|
119 <conditional name="recalibrate_cond">
|
27
|
120 <param name="recalibrate" type="select" label="Species rates recalibration configuration">
|
11
|
121 <option value="no" selected="true">No</option>
|
|
122 <option value="yes">Yes</option>
|
|
123 </param>
|
|
124 <when value="no" />
|
|
125 <when value="yes">
|
27
|
126 <param name="recalibration_rate" type="float" value="0.0" min="0.0" label="Recalibration rate" />
|
11
|
127 </when>
|
|
128 </conditional>
|
0
|
129 <conditional name="codeml_ctl_file_cond">
|
27
|
130 <param name="codeml_ctl_file_select" type="select" label="PAML codeml configuration">
|
0
|
131 <option value="no" selected="true">No</option>
|
|
132 <option value="yes">Yes</option>
|
|
133 </param>
|
|
134 <when value="no" />
|
|
135 <when value="yes">
|
|
136 <param name="codeml_ctl_file" format="txt" type="data" label="PAML codeml control file" />
|
|
137 </when>
|
|
138 </conditional>
|
|
139 <conditional name="fit_components_cond">
|
27
|
140 <param name="fit_components" type="select" label="Rates clustering configuration">
|
0
|
141 <option value="no" selected="true">No</option>
|
|
142 <option value="yes">Yes</option>
|
|
143 </param>
|
|
144 <when value="no" />
|
|
145 <when value="yes">
|
27
|
146 <param name="num_of_components" type="integer" value="1" min="1" label="Number of components" />
|
16
|
147 </when>
|
|
148 </conditional>
|
|
149 <conditional name="set_lower_ks_limit_cond">
|
27
|
150 <param name="set_lower_ks_limit" type="select" label="Lower limit synonymous subsitution rates configuration">
|
16
|
151 <option value="no" selected="true">No</option>
|
|
152 <option value="yes">Yes</option>
|
|
153 </param>
|
|
154 <when value="no" />
|
|
155 <when value="yes">
|
27
|
156 <param name="min_ks" type="float" value="0.0" min="0.0" label="Minimum rate" />
|
16
|
157 </when>
|
|
158 </conditional>
|
|
159 <conditional name="set_upper_ks_limit_cond">
|
27
|
160 <param name="set_upper_ks_limit" type="select" label="Upper limit synonymous subsitution rates configuration">
|
16
|
161 <option value="no" selected="true">No</option>
|
|
162 <option value="yes">Yes</option>
|
|
163 </param>
|
|
164 <when value="no" />
|
|
165 <when value="yes">
|
27
|
166 <param name="max_ks" type="float" value="0.0" min="0.0" label="Maximum rate" />
|
0
|
167 </when>
|
|
168 </conditional>
|
|
169 </when>
|
|
170 </conditional>
|
15
|
171 <!-- Required due to the Emmix license -->
|
14
|
172 <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">
|
|
173 <validator type="expression" message="This tool is only available for non-commercial use.">value == True</validator>
|
|
174 </param>
|
0
|
175 </inputs>
|
|
176 <outputs>
|
35
|
177 <data name="output_species1_fna" format="fasta" label="${tool.name} (coding sequences) on ${on_string}" />
|
|
178 <data name="output_species1_faa" format="fasta" label="${tool.name} (amino acids) on ${on_string}" />
|
|
179 <data name="output_species2_fna" format="fasta" label="${tool.name} (coding sequences) on ${on_string}">
|
5
|
180 <filter>comparison_cond['comparison'] == 'orthologs'</filter>
|
|
181 </data>
|
35
|
182 <data name="output_species2_faa" format="fasta" label="${tool.name} (amino acids) on ${on_string}">
|
5
|
183 <filter>comparison_cond['comparison'] == 'orthologs'</filter>
|
|
184 </data>
|
35
|
185 <data name="output_species1_paralog" format="tabular" label="${tool.name} (blastn results) on ${on_string}">
|
5
|
186 <filter>comparison_cond['comparison'] == 'paralogs'</filter>
|
|
187 </data>
|
35
|
188 <data name="output_species1_ortholog" format="tabular" label="${tool.name} (blastn results) on ${on_string}">
|
5
|
189 <filter>comparison_cond['comparison'] == 'orthologs'</filter>
|
|
190 </data>
|
35
|
191 <data name="output_species2_ortholog" format="tabular" label="${tool.name} (blastn results) on ${on_string}">
|
5
|
192 <filter>comparison_cond['comparison'] == 'orthologs'</filter>
|
|
193 </data>
|
35
|
194 <data name="output_rbhb" format="tabular" label="${tool.name} (paralogous pairs) on ${on_string}" />
|
|
195 <data name="output_kaks" format="tabular" label="${tool.name} on ${on_string}" />
|
38
|
196 <data name="output_components" format="ptkscmp" label="${tool.name} (significant components in the ks distribution) on ${on_string}">
|
19
|
197 <filter>options_type['options_type_selector'] == 'advanced' and options_type['fit_components_cond']['fit_components'] == 'yes'</filter>
|
5
|
198 </data>
|
0
|
199 </outputs>
|
|
200 <tests>
|
|
201 <test>
|
36
|
202 <param name="coding_sequences_species_1" value="species1_cds.fasta" ftype="fasta"/>
|
|
203 <param name="proteins_species_1" value="species1_pep.fasta" ftype="fasta"/>
|
38
|
204 <param name="non_commercial_use" value="True"/>
|
36
|
205 <output name="output_species1_fna" file="species1_cds.fasta" ftype="fasta" compare="contains"/>
|
|
206 <output name="output_species1_faa" file="species1_pep.fasta" ftype="fasta" compare="contains"/>
|
|
207 <output name="output_species1_paralog" file="output_blastn_results1.tabular" ftype="tabular" compare="contains"/>
|
|
208 <output name="output_rbhb" file="output_paralogous_pairs.tabular" ftype="tabular"/>
|
|
209 <output name="output_kaks" file="output1.tabular" ftype="tabular"/>
|
0
|
210 </test>
|
|
211 </tests>
|
|
212 <help>
|
27
|
213 This tool is one of the PlantTribes collection of automated modular analysis pipelines for comparative and evolutionary analyses
|
|
214 of genome-scale gene families and transcriptomes. This tool estimates paralogous and orthologous pairwise synonymous (Ks) and
|
|
215 non-synonymous (Ka) substitution rates for a set of gene coding sequences either produced by the AssemblyPostProcessor tool or
|
|
216 from an external source. Optionally, the resulting set of estimated Ks values can be clustered into components using a mixture
|
|
217 of multivariate normal distributions to identify significant duplication event(s) in a species or a pair of species.
|
0
|
218
|
|
219 -----
|
|
220
|
34
|
221 * **Required options**
|
0
|
222
|
29
|
223 - **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.
|
|
224 - **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.
|
34
|
225 - **Type of sequence comparison** - pairwise sequence comparison to determine homologous pairs. This can be either paralogous for self-species comparison or orthologous for cross-species comparison. Cross-species comparison requires input for the second species.
|
0
|
226
|
34
|
227 * **Other options**
|
0
|
228
|
29
|
229 - **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.
|
|
230 - **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.
|
42
|
231
|
|
232 - **Determine for cross-species orthologs using** - select option for blast orthology.
|
|
233
|
|
234 - **reciprocal best BLAST** - use the default stringent reciprocal BLAST package for orthology assignment.
|
|
235 - **conditional reciprocal best BLAST** - use the CRB-BLAST package for orthology assignment which increases sensitivity to orthology comparisons and determines additional cross-species orthologs that are being left out by the defaul stringent reciprocal BLAST.
|
|
236
|
27
|
237 - **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.
|
|
238
|
|
239 - **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.
|
|
240
|
31
|
241 - **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 [7]. Rate recalibration applies only to paralogous comparisons.
|
27
|
242
|
|
243 - **recalibration rate** - a predetermined evolutionary recalibration rate.
|
|
244
|
|
245 - **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.
|
|
246 - **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).
|
|
247
|
|
248 - **Number of components** - number of components to include in the normal mixture model.
|
|
249
|
34
|
250 - **Lower limit synonymous substitution 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.
|
27
|
251
|
|
252 - **Minimum rate** - minimum allowable synonymous substitution rate.
|
|
253
|
34
|
254 - **Upper limit synonymous substitution 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.
|
27
|
255
|
28
|
256 - **Maximum rate** - maximum allowable synonymous substitution rate.
|
27
|
257
|
28
|
258 .. _repository: https://github.com/dePamphilis/PlantTribes/blob/master/config/codeml.ctl.args
|
0
|
259
|
|
260 </help>
|
|
261 <citations>
|
26
|
262 <expand macro="citation1" />
|
27
|
263 <citation type="bibtex">
|
|
264 @article{Wall2008,
|
|
265 journal = {Nucleic Acids Research},
|
|
266 author = {2. Wall PK, Leebens-Mack J, Muller KF, Field D, Altman NS},
|
|
267 title = {PlantTribes: a gene and gene family resource for comparative genomics in plants},
|
|
268 year = {2008},
|
|
269 volume = {36},
|
|
270 number = {suppl 1},
|
|
271 pages = {D970-D976},}
|
|
272 </citation>
|
|
273 <citation type="bibtex">
|
|
274 @article{Altschul1990,
|
|
275 journal = {Journal of molecular biology}
|
|
276 author = {3. Altschul SF, Gish W, Miller W, Myers EW, Lipman DJ},
|
|
277 title = {Basic local alignment search tool},
|
|
278 year = {1990},
|
|
279 volume = {215},
|
|
280 number = {3},
|
|
281 pages = {403-410},}
|
|
282 </citation>
|
|
283 <citation type="bibtex">
|
|
284 @article{Katoh2013,
|
|
285 journal = {Molecular biology and evolution},
|
|
286 author = {4. Katoh K, Standley DM},
|
|
287 title = {MAFFT multiple sequence alignment software version 7: improvements in performance and usability},
|
|
288 year = {2013},
|
|
289 volume = {30},
|
|
290 number = {4},
|
|
291 pages = {772-780},}
|
|
292 </citation>
|
|
293 <citation type="bibtex">
|
|
294 @article{Yang2007,
|
|
295 journal = {Molecular biology and evolution},
|
|
296 author = {5. Yang Z},
|
|
297 title = {PAML 4: phylogenetic analysis by maximum likelihood},
|
|
298 year = {2007},
|
|
299 volume = {24},
|
|
300 number = {8},
|
|
301 pages = {1586-1591},}
|
|
302 </citation>
|
|
303 <citation type="bibtex">
|
|
304 @article{McLachlan1999,
|
|
305 journal = {Journal of Statistical Software},
|
|
306 author = {6. McLachlan GJ, Peel D, Basford KE, Adams P},
|
|
307 title = {The EMMIX software for the fitting of mixtures of normal and t-components},
|
|
308 year = {1999},
|
|
309 volume = {4},
|
|
310 number = {2},
|
|
311 pages = {1-14},}
|
|
312 </citation>
|
31
|
313 <citation type="bibtex">
|
|
314 @article{Cui2006,
|
|
315 journal = {Genome Research},
|
|
316 author = {7. Cui L, Wall PK, Leebens-Mack JH, Lindsay BG, Soltis DE, Doyle JJ, Soltis PS, Carlson JE, Arumuganathan K, Barakat A, Albert VA},
|
|
317 title = {Widespread genome duplications throughout the history of flowering plants},
|
|
318 year = {2006},
|
|
319 volume = {16},
|
|
320 number = {6},
|
|
321 pages = {738-749},}
|
|
322 </citation>
|
0
|
323 </citations>
|
|
324 </tool>
|