65
|
1 <tool id="plant_tribes_phylogenomics_analysis" name="Create multiple sequence alignments" version="0.6.0">
|
42
|
2 <description>and inferred maximum likelihood phylogenies</description>
|
0
|
3 <requirements>
|
65
|
4 <requirement type="package" version="0.6">plant_tribes_phylogenomics_analysis</requirement>
|
0
|
5 </requirements>
|
|
6 <stdio>
|
|
7 <!-- Anything other than zero is an error -->
|
|
8 <exit_code range="1:" />
|
40
|
9 <exit_code range=":-1" />
|
|
10 <!-- In case the return code has not been set propery check stderr too -->
|
0
|
11 <regex match="Error:" />
|
|
12 <regex match="Exception:" />
|
|
13 </stdio>
|
|
14 <command>
|
|
15 <![CDATA[
|
3
|
16 #import os
|
9
|
17 #import sys
|
14
|
18
|
42
|
19 #set input_format = $input_format_cond.input_format
|
65
|
20 #if str($input_format) == 'ptorthocs':
|
42
|
21 #set multiple_codon_alignments_cond = $input_format_cond.multiple_codon_alignments_cond
|
|
22 #set multiple_codon_alignments = $multiple_codon_alignments_cond.multiple_codon_alignments
|
|
23 #if str($multiple_codon_alignments) == 'yes':
|
65
|
24 --sequence_type $multiple_codon_alignments_cond.sequence_type
|
42
|
25 #end if
|
10
|
26 #end if
|
42
|
27
|
|
28 #if str($options_type.options_type_selector) == 'advanced':
|
|
29 #set multiple_sequence_alignments_cond = $options_type.multiple_sequence_alignments_cond
|
|
30 #set multiple_sequence_alignments = $multiple_sequence_alignments_cond.multiple_sequence_alignments
|
|
31 #if str($multiple_sequence_alignments) == 'yes':
|
|
32 #set multiple_sequence_alignments_option_cond = $options_type.multiple_sequence_alignments_cond.multiple_sequence_alignments_option_cond
|
|
33 #set multiple_sequence_alignments_option = $multiple_sequence_alignments_option_cond.multiple_sequence_alignments_option
|
|
34 #set generate_output_aln = True
|
|
35 #else:
|
|
36 #set generate_output_aln = False
|
|
37 #end if
|
48
|
38 #else:
|
|
39 #set generate_output_aln = False
|
46
|
40 #end if
|
14
|
41
|
|
42 #if str($options_type.options_type_selector) == 'advanced' and str($options_type.phylogenetic_trees_cond.phylogenetic_trees) == 'yes':
|
|
43 #set generate_output_tree = True
|
|
44 #else:
|
|
45 #set generate_output_tree = False
|
|
46 #end if
|
|
47
|
65
|
48 python $__tool_directory__/phylogenomics_analysis.py
|
44
|
49 --num_threads \${GALAXY_SLOTS:-4}
|
51
|
50 #if str($input_format) == 'ptortho':
|
|
51 --orthogroup_faa '$input_format_cond.input_ptortho.extra_files_path'
|
47
|
52 #else:
|
51
|
53 --orthogroup_faa '$input_format_cond.input_ptorthocs.extra_files_path'
|
65
|
54 --orthogroup_fna 'true'
|
47
|
55 #end if
|
60
|
56 --config_dir '$scaffold.fields.path'
|
58
|
57 --scaffold '$scaffold.fields.path'
|
0
|
58 --method $method
|
14
|
59
|
0
|
60 #if str($options_type.options_type_selector) == 'advanced':
|
42
|
61 #if str($multiple_sequence_alignments) == 'yes':
|
65
|
62 --alignments_method $multiple_sequence_alignments_option
|
66
|
63 #if str($multiple_sequence_alignments_option) == 'pasta_alignments':
|
40
|
64 --pasta_script_path '$__tool_directory__/run_pasta.py'
|
0
|
65 --pasta_iter_limit $multiple_sequence_alignments_option_cond.pasta_iter_limit
|
|
66 #end if
|
|
67 #end if
|
14
|
68
|
0
|
69 #if str($options_type.phylogenetic_trees_cond.phylogenetic_trees) == 'yes':
|
|
70 #set tree_inference_cond = $options_type.phylogenetic_trees_cond.tree_inference_cond
|
|
71 #set tree_inference_method = $tree_inference_cond.tree_inference
|
|
72 --tree_inference $tree_inference_method
|
|
73 #if str($tree_inference_method) == 'raxml':
|
14
|
74 #set rooting_order_file_cond = $tree_inference_cond.rooting_order_file_cond
|
|
75 #set rooting_order_file = $rooting_order_file_cond.rooting_order_file
|
|
76 #if str($rooting_order_file) == 'yes':
|
49
|
77 --rooting_order '$rooting_order_file_cond.rooting_order'
|
65
|
78 # No else block needed here because the default rooting_order
|
|
79 # configuration will be used if the --rooting_order flag is missing.
|
14
|
80 #end if
|
0
|
81 --bootstrap_replicates $tree_inference_cond.bootstrap_replicates
|
|
82 #end if
|
|
83 --max_orthogroup_size $options_type.phylogenetic_trees_cond.max_orthogroup_size
|
|
84 --min_orthogroup_size $options_type.phylogenetic_trees_cond.min_orthogroup_size
|
|
85 #end if
|
14
|
86
|
0
|
87 #if str($options_type.msa_quality_control_options_cond.msa_quality_control_options) == 'yes':
|
|
88 #set msa_quality_control_options_cond = $options_type.msa_quality_control_options_cond
|
|
89 #set remove_gappy_sequences_cond = $msa_quality_control_options_cond.remove_gappy_sequences_cond
|
|
90 #if str($remove_gappy_sequences_cond) == 'yes':
|
|
91 #set trim_type_cond = $remove_gappy_sequences_cond.trim_type_cond
|
|
92 --remove_sequences $remove_gappy_sequences_cond.remove_sequences
|
65
|
93 --trim_type $trim_type_cond.trim_type
|
|
94 #if str($trim_type_cond.trim_type) == 'gap_trimming':
|
0
|
95 --gap_trimming $trim_type_cond.gap_trimming
|
|
96 #end if
|
|
97 #end if
|
|
98 #end if
|
|
99 #end if
|
14
|
100
|
51
|
101 #if str($input_format) == 'ptortho':
|
65
|
102 --output_ptortho '$output_ptortho'
|
|
103 --output_ptortho_dir '$output_ptortho.files_path'
|
42
|
104 #else:
|
65
|
105 --output_ptorthocs '$output_ptorthocs'
|
|
106 --output_ptorthocs_dir '$output_ptorthocs.files_path'
|
42
|
107 #end if
|
14
|
108
|
|
109 #if $generate_output_aln:
|
65
|
110 --output_aln '$output_aln'
|
|
111 --output_aln_dir '$output_aln.files_path'
|
14
|
112 #end if
|
|
113
|
|
114 #if $generate_output_tree:
|
65
|
115 --output_tree '$output_tree'
|
|
116 --output_tree_dir '$output_tree.files_path'
|
14
|
117 #end if
|
0
|
118 ]]>
|
|
119 </command>
|
|
120 <inputs>
|
42
|
121 <conditional name="input_format_cond">
|
|
122 <param name="input_format" type="select" label="Select type of data to sub sample">
|
53
|
123 <option value="ptortho">Precomputed orthologous gene family clusters</option>
|
|
124 <option value="ptorthocs">Precomputed orthologous gene family clusters with corresponding coding sequences</option>
|
42
|
125 </param>
|
51
|
126 <when value="ptortho">
|
|
127 <param name="input_ptortho" format="ptortho" type="data" label="Precomputed orthologous gene family clusters" />
|
42
|
128 </when>
|
51
|
129 <when value="ptorthocs">
|
|
130 <param name="input_ptorthocs" format="ptorthocs" type="data" label="Precomputed orthologous gene family clusters with corresponding coding sequences" />
|
42
|
131 <conditional name="multiple_codon_alignments_cond">
|
|
132 <param name="multiple_codon_alignments" type="select" label="Construct orthogroup multiple codon alignments?">
|
|
133 <option value="no" selected="True">No</option>
|
|
134 <option value="yes">Yes</option>
|
|
135 </param>
|
51
|
136 <when value="no" />
|
42
|
137 <when value="yes">
|
51
|
138 <param name="sequence_type" type="select" label="Sequence type used in the phylogenetic inference (dna)">
|
42
|
139 <option value="protein" selected="true">Amino acid based</option>
|
|
140 <option value="dna">Nucleotide based</option>
|
|
141 </param>
|
|
142 </when>
|
|
143 </conditional>
|
|
144 </when>
|
|
145 </conditional>
|
0
|
146 <param name="scaffold" type="select" label="Orthogroups or gene families proteins scaffold">
|
|
147 <options from_data_table="plant_tribes_scaffolds" />
|
51
|
148 <validator type="no_options" message="No PlantTribes scaffolds are available. Use the PlantTribes Scaffolds Download Data Manager tool in Galaxy to install and populate the PlantTribes scaffolds data table." />
|
0
|
149 </param>
|
|
150 <param name="method" type="select" label="Protein clustering method">
|
|
151 <option value="gfam" selected="true">GFam</option>
|
|
152 <option value="orthofinder">OrthoFinder</option>
|
|
153 <option value="orthomcl">OrthoMCL</option>
|
|
154 </param>
|
|
155 <conditional name="options_type">
|
|
156 <param name="options_type_selector" type="select" label="Options Configuration">
|
|
157 <option value="basic" selected="true">Basic</option>
|
|
158 <option value="advanced">Advanced</option>
|
|
159 </param>
|
|
160 <when value="basic" />
|
|
161 <when value="advanced">
|
|
162 <conditional name="multiple_sequence_alignments_cond">
|
5
|
163 <param name="multiple_sequence_alignments" type="select" label="Set multiple sequence alignments options?">
|
0
|
164 <option value="no" selected="true">No</option>
|
|
165 <option value="yes">Yes</option>
|
|
166 </param>
|
|
167 <when value="no" />
|
|
168 <when value="yes">
|
|
169 <conditional name="multiple_sequence_alignments_option_cond">
|
51
|
170 <param name="multiple_sequence_alignments_option" label="Select method for multiple sequence alignments" type="select"
|
|
171 force_select="True">
|
0
|
172 <option value="create_alignments">Create orthogroup protein multiple sequence alignments including scaffold backbone proteins (MAFFT algorithm)</option>
|
|
173 <option value="add_alignments">Add unaligned orthogroup proteins to scaffold backbone multiple sequence alignments (MAFFT algorithm)</option>
|
|
174 <option value="pasta_alignments">Create orthogroup protein multiple sequence alignments including scaffold backbone proteins (PASTA algorithm)</option>
|
|
175 </param>
|
51
|
176 <when value="create_alignments" />
|
|
177 <when value="add_alignments" />
|
0
|
178 <when value="pasta_alignments">
|
65
|
179 <param name="pasta_iter_limit" type="integer" value="3" min="0" label="Maximum number of iteration that the PASTA algorithm will execute" />
|
0
|
180 </when>
|
|
181 </conditional>
|
|
182 </when>
|
|
183 </conditional>
|
|
184 <conditional name="phylogenetic_trees_cond">
|
|
185 <param name="phylogenetic_trees" type="select" label="Set phylogenetic trees options?">
|
|
186 <option value="no" selected="true">No</option>
|
|
187 <option value="yes">Yes</option>
|
|
188 </param>
|
|
189 <when value="no" />
|
|
190 <when value="yes">
|
|
191 <conditional name="tree_inference_cond">
|
|
192 <param name="tree_inference" type="select" label="Phylogenetic trees inference method">
|
|
193 <option value="raxml" selected="true">RAxML</option>
|
|
194 <option value="fasttree">FastTree</option>
|
|
195 </param>
|
|
196 <when value="raxml">
|
14
|
197 <conditional name="rooting_order_file_cond">
|
61
|
198 <param name="rooting_order_file" type="select" label="Select rooting order configuration for rooting trees?" help="Select No for the default rooting order configuration which uses the most distant taxon present in the orthogroup">
|
14
|
199 <option value="no" selected="true">No</option>
|
|
200 <option value="yes">Yes</option>
|
|
201 </param>
|
51
|
202 <when value="no" />
|
14
|
203 <when value="yes">
|
56
|
204 <param name="rooting_order" format="txt" type="data" label="Rooting order configuration for rooting trees" />
|
14
|
205 </when>
|
|
206 </conditional>
|
51
|
207 <param name="bootstrap_replicates" type="integer" value="100" min="0" label="Number of replicates for rapid bootstrap analysis and search for the best-scoring ML tree" />
|
0
|
208 </when>
|
51
|
209 <when value="fasttree" />
|
0
|
210 </conditional>
|
51
|
211 <param name="max_orthogroup_size" type="integer" value="100" min="0" label="Maximum number of sequences in orthogroup alignments" />
|
|
212 <param name="min_orthogroup_size" type="integer" value="4" min="0" label="Minimum number of sequences in orthogroup alignments" />
|
0
|
213 </when>
|
|
214 </conditional>
|
|
215 <conditional name="msa_quality_control_options_cond">
|
|
216 <param name="msa_quality_control_options" type="select" label="Set MSA quality control options?">
|
|
217 <option value="no" selected="true">No</option>
|
|
218 <option value="yes">Yes</option>
|
|
219 </param>
|
|
220 <when value="no" />
|
|
221 <when value="yes">
|
|
222 <conditional name="remove_gappy_sequences_cond">
|
|
223 <param name="remove_gappy_sequences" type="select" label="Remove gappy sequences in alignments?">
|
|
224 <option value="no" selected="true">No</option>
|
|
225 <option value="yes">Yes</option>
|
|
226 </param>
|
51
|
227 <when value="no" />
|
0
|
228 <when value="yes">
|
51
|
229 <param name="remove_sequences" type="float" value="0.5" min="0" max="1" label="Remove sequences with gaps of" help="0.5 removes sequences with 50% gaps" />
|
0
|
230 <conditional name="trim_type_cond">
|
|
231 <param name="trim_type" type="select" label="Select process used for gap trimming">
|
51
|
232 <option value="gap_trimming" selected="true">Nucleotide based </option>
|
26
|
233 <option value="automated_trimming">Trim alignments using trimAl's ML heuristic trimming approach</option>
|
0
|
234 </param>
|
51
|
235 <when value="automated_trimming" />
|
0
|
236 <when value="gap_trimming">
|
51
|
237 <param name="gap_trimming" type="float" value="0.1" min="0" max="1.0" label="Remove sites in alignments with gaps of" help="0.1 removes sites with 90% gaps" />
|
0
|
238 </when>
|
|
239 </conditional>
|
|
240 </when>
|
|
241 </conditional>
|
|
242 </when>
|
|
243 </conditional>
|
|
244 </when>
|
|
245 </conditional>
|
|
246 </inputs>
|
|
247 <outputs>
|
65
|
248 <data name="output_ptortho" format="ptortho">
|
51
|
249 <filter>input_format_cond['input_format'] == 'ptortho'</filter>
|
41
|
250 </data>
|
65
|
251 <data name="output_ptorthocs" format="ptorthocs">
|
51
|
252 <filter>input_format_cond['input_format'] == 'ptorthocs'</filter>
|
41
|
253 </data>
|
54
|
254 <data name="output_aln" format="ptalign" label="Multiple alignments using method ${options_type['multiple_sequence_alignments_cond']['multiple_sequence_alignments_option_cond']['multiple_sequence_alignments_option']} on ${on_string}">
|
22
|
255 <filter>options_type['options_type_selector'] == 'advanced' and options_type['multiple_sequence_alignments_cond']['multiple_sequence_alignments'] == 'yes'</filter>
|
14
|
256 </data>
|
53
|
257 <data name="output_tree" format="pttree" label="Phylogenetic trees on ${on_string}">
|
14
|
258 <filter>options_type['options_type_selector'] == 'advanced' and options_type['phylogenetic_trees_cond']['phylogenetic_trees'] == 'yes'</filter>
|
|
259 </data>
|
0
|
260 </outputs>
|
|
261 <tests>
|
|
262 <test>
|
|
263 </test>
|
|
264 </tests>
|
|
265 <help>
|
59
|
266 This tool is one of the PlantTribes' collection of automated modular analysis pipelines that utilize objective classifications of
|
|
267 complete protein sequences from sequenced plant genomes to perform comparative evolutionary studies. It performs phylogenomic
|
|
268 analyses by creating multiple sequence alignments and inferred maximum likelihood phylogenies for orthogroups produced by the
|
|
269 **Classify gene sequences into precomputed orthologous gene family clusters** tool.
|
0
|
270
|
59
|
271 -----
|
0
|
272
|
59
|
273 **Options**
|
0
|
274
|
59
|
275 * **Required options**
|
18
|
276
|
59
|
277 - **Select gene family clusters** - Sequences classified into gene family clusters, optionally including corresponding coding sequences.
|
|
278 - **Orthogroups or gene families proteins scaffold** - PlantTribes scaffolds data.
|
|
279 - **Protein clustering method** - One of GFam (domain architecture based clustering), OrthoFinder (broadly defined clusters) or OrthoMCL (narrowly defined clusters).
|
|
280
|
|
281 * **Multiple sequence alignments options**
|
14
|
282
|
59
|
283 - **Select method for multiple sequence alignments** - Method used for setting multiple sequence alignments.
|
|
284 - **Input sequences include corresponding coding sequences?** - Selecting 'Yes' for this option requires that the selected input data format is 'ptorthocs'.
|
|
285 - **Construct orthogroup multiple codon alignments?** - Construct orthogroup multiple codon alignments.
|
|
286 - **Sequence type used in the phylogenetic inference** - Sequence type (dna or amino acid) used in the phylogenetic inference.
|
|
287 - **Use corresponding coding sequences?** - Selecting 'Yes' for this option requires that the selected input data format is 'ptorthocs' or this tool will produce an error.
|
14
|
288
|
59
|
289 * **Phylogenetic trees options**
|
15
|
290
|
59
|
291 - **Phylogenetic trees inference method** - Phylogenetic trees inference method.
|
|
292 - **Select rooting order configuration for rooting trees??** - If 'No' is selected, trees will be rooted using the most distant taxon present in the orthogroup.
|
|
293 - **Number of replicates for rapid bootstrap analysis and search for the best-scoring ML tree** - Number of replicates for rapid bootstrap analysis and search for the best-scoring ML tree.
|
|
294 - **Maximum number of sequences in orthogroup alignments** - Maximum number of sequences in orthogroup alignments.
|
|
295 - **Minimum number of sequences in orthogroup alignments** - Minimum number of sequences in orthogroup alignments.
|
14
|
296
|
59
|
297 * **MSA quality control options**
|
14
|
298
|
59
|
299 - **Remove sequences with gaps of** - Removes gappy sequences in alignments (i.e., 0.5 removes sequences with 50% gaps).
|
|
300 - **Select process used for gap trimming** - Either nucleotide based trimming or alignments are trimed using using trimAl's ML heuristic trimming approach.
|
|
301 - **Remove sites in alignments with gaps of** - If the process used for gap trimming is nucleotide based, this is the gap value used when removing gappy sites in alignments (i.e., 0.1 removes sites with 90% gaps).
|
14
|
302
|
0
|
303 </help>
|
|
304 <citations>
|
51
|
305 <citation type="bibtex">
|
|
306 @unpublished{None,
|
|
307 author = {Eric Wafula},
|
|
308 title = {None},
|
|
309 year = {None},
|
|
310 url = {https://github.com/dePamphilis/PlantTribes}
|
|
311 }
|
|
312 </citation>
|
|
313 <citation type="doi">10.1093/bioinformatics/btw412</citation>
|
|
314 <citation type="bibtex">
|
|
315 @published{Research in Computational Molecular Biology (RECOMB) (pp. 177–191),
|
|
316 author = {Mirarab, S., Nguyen, N., Warnow, T.},
|
|
317 title = {PASTA: Ultra-Large Multiple Sequence Alignment. In R. Sharan
|
|
318 (Ed.)},
|
|
319 year = {2014},
|
|
320 url = {https://github.com/smirarab/pasta}
|
|
321 }
|
|
322 </citation>
|
|
323 <citation type="bibtex">
|
|
324 @published{Bioinformatics,
|
|
325 author = {Salvador Capella-Gutierrez, Jose M. Silla-Martinez, Toni
|
|
326 Gabaldon},
|
|
327 title = {trimAl: a tool for automated alignment trimming in large-scale
|
|
328 phylogenetic analyses},
|
|
329 year = {2009},
|
|
330 url = {http://trimal.cgenomics.org}
|
|
331 }
|
|
332 </citation>
|
|
333 <citation type="bibtex">
|
|
334 @published{Bioinformatics,
|
|
335 author = {A. Stamatakis},
|
|
336 title = {RAxML Version 8: A tool for Phylogenetic Analysis and
|
|
337 Post-Analysis of Large Phylogenies},
|
|
338 year = {2014},
|
|
339 url = {http://sco.h-its.org/exelixis/web/software/raxml/index.html}
|
|
340 }
|
|
341 </citation>
|
|
342 <citation type="doi">10.1371/journal.pone.0009490</citation>
|
0
|
343 </citations>
|
|
344 </tool>
|