70
|
1 <tool id="plant_tribes_phylogenomics_analysis" name="PhylogenomicsAnalysis" version="0.6.0">
|
|
2 <description>builds gene family multiple sequence alignments and their corresponding phylogenies</description>
|
73
|
3 <macros>
|
|
4 <import>macros.xml</import>
|
|
5 </macros>
|
|
6 <expand macro="requirements" />
|
|
7 <expand macro="stdio" />
|
0
|
8 <command>
|
|
9 <![CDATA[
|
73
|
10 #set input_format = $input_format_cond.input_format
|
|
11 #set scaffold = $input_format_cond.scaffold
|
|
12 #set method = $input_format_cond.method
|
|
13 #set options_type_cond = $input_format_cond.options_type_cond
|
|
14 #set options_type= $options_type_cond.options_type
|
|
15
|
|
16 #if str($options_type) == 'advanced':
|
|
17 #set multiple_sequence_alignments_cond = $options_type_cond.multiple_sequence_alignments_cond
|
42
|
18 #set multiple_sequence_alignments = $multiple_sequence_alignments_cond.multiple_sequence_alignments
|
|
19 #if str($multiple_sequence_alignments) == 'yes':
|
73
|
20 #set multiple_sequence_alignments_option_cond = $options_type_cond.multiple_sequence_alignments_cond.multiple_sequence_alignments_option_cond
|
42
|
21 #set multiple_sequence_alignments_option = $multiple_sequence_alignments_option_cond.multiple_sequence_alignments_option
|
|
22 #end if
|
73
|
23 #set phylogenomic_trees_cond = $options_type_cond.phylogenetic_trees_cond
|
|
24 #set phylogenetic_trees = $phylogenomic_trees_cond.phylogenetic_trees
|
|
25 #set remove_gappy_sequences_cond = $options_type_cond.remove_gappy_sequences_cond
|
|
26 #set remove_gappy_sequences = $remove_gappy_sequences_cond.remove_gappy_sequences
|
14
|
27 #end if
|
|
28
|
65
|
29 python $__tool_directory__/phylogenomics_analysis.py
|
44
|
30 --num_threads \${GALAXY_SLOTS:-4}
|
51
|
31 #if str($input_format) == 'ptortho':
|
|
32 --orthogroup_faa '$input_format_cond.input_ptortho.extra_files_path'
|
47
|
33 #else:
|
51
|
34 --orthogroup_faa '$input_format_cond.input_ptorthocs.extra_files_path'
|
65
|
35 --orthogroup_fna 'true'
|
67
|
36 #set multiple_codon_alignments_cond = $input_format_cond.multiple_codon_alignments_cond
|
|
37 #set multiple_codon_alignments = $multiple_codon_alignments_cond.multiple_codon_alignments
|
|
38 #if str($multiple_codon_alignments) == 'yes':
|
|
39 --sequence_type $multiple_codon_alignments_cond.sequence_type
|
|
40 #end if
|
47
|
41 #end if
|
60
|
42 --config_dir '$scaffold.fields.path'
|
58
|
43 --scaffold '$scaffold.fields.path'
|
0
|
44 --method $method
|
14
|
45
|
73
|
46 #if str($options_type) == 'advanced':
|
42
|
47 #if str($multiple_sequence_alignments) == 'yes':
|
65
|
48 --alignments_method $multiple_sequence_alignments_option
|
66
|
49 #if str($multiple_sequence_alignments_option) == 'pasta_alignments':
|
40
|
50 --pasta_script_path '$__tool_directory__/run_pasta.py'
|
0
|
51 --pasta_iter_limit $multiple_sequence_alignments_option_cond.pasta_iter_limit
|
|
52 #end if
|
|
53 #end if
|
14
|
54
|
73
|
55 #if str($phylogenetic_trees) == 'yes':
|
|
56 #set tree_inference_cond = $options_type_cond.phylogenetic_trees_cond.tree_inference_cond
|
0
|
57 #set tree_inference_method = $tree_inference_cond.tree_inference
|
|
58 --tree_inference $tree_inference_method
|
|
59 #if str($tree_inference_method) == 'raxml':
|
14
|
60 #set rooting_order_file_cond = $tree_inference_cond.rooting_order_file_cond
|
|
61 #set rooting_order_file = $rooting_order_file_cond.rooting_order_file
|
|
62 #if str($rooting_order_file) == 'yes':
|
49
|
63 --rooting_order '$rooting_order_file_cond.rooting_order'
|
65
|
64 # No else block needed here because the default rooting_order
|
|
65 # configuration will be used if the --rooting_order flag is missing.
|
14
|
66 #end if
|
0
|
67 --bootstrap_replicates $tree_inference_cond.bootstrap_replicates
|
|
68 #end if
|
73
|
69 --max_orthogroup_size $options_type_cond.phylogenetic_trees_cond.max_orthogroup_size
|
|
70 --min_orthogroup_size $options_type_cond.phylogenetic_trees_cond.min_orthogroup_size
|
0
|
71 #end if
|
14
|
72
|
73
|
73 #if str($remove_gappy_sequences) == 'yes':
|
|
74 #set trim_type_cond = $remove_gappy_sequences_cond.trim_type_cond
|
|
75 #set trim_type = $trim_type_cond.trim_type
|
|
76 #set remove_sequences_with_gaps_cond = $remove_gappy_sequences_cond.remove_sequences_with_gaps_cond
|
|
77 #set remove_sequences_with_gaps = $remove_sequences_with_gaps_cond.remove_sequences_with_gaps
|
|
78 #if str($remove_sequences_with_gaps) == 'yes':
|
|
79 --remove_sequences $remove_sequences_with_gaps_cond.remove_sequences_with_gaps_of
|
|
80 #end if
|
|
81 --trim_type $trim_type_cond.trim_type
|
|
82 #if str($trim_type_cond.trim_type) == 'gap_trimming':
|
|
83 --gap_trimming $trim_type_cond.gap_trimming
|
0
|
84 #end if
|
|
85 #end if
|
|
86 #end if
|
14
|
87
|
51
|
88 #if str($input_format) == 'ptortho':
|
65
|
89 --output_ptortho '$output_ptortho'
|
|
90 --output_ptortho_dir '$output_ptortho.files_path'
|
42
|
91 #else:
|
65
|
92 --output_ptorthocs '$output_ptorthocs'
|
|
93 --output_ptorthocs_dir '$output_ptorthocs.files_path'
|
42
|
94 #end if
|
14
|
95
|
73
|
96 #if str($multiple_sequence_alignments) == 'yes'
|
65
|
97 --output_aln '$output_aln'
|
|
98 --output_aln_dir '$output_aln.files_path'
|
14
|
99 #end if
|
|
100
|
73
|
101 #if str($phylogenetic_trees) == 'yes':
|
65
|
102 --output_tree '$output_tree'
|
|
103 --output_tree_dir '$output_tree.files_path'
|
14
|
104 #end if
|
0
|
105 ]]>
|
|
106 </command>
|
|
107 <inputs>
|
42
|
108 <conditional name="input_format_cond">
|
|
109 <param name="input_format" type="select" label="Select type of data to sub sample">
|
53
|
110 <option value="ptortho">Precomputed orthologous gene family clusters</option>
|
|
111 <option value="ptorthocs">Precomputed orthologous gene family clusters with corresponding coding sequences</option>
|
42
|
112 </param>
|
51
|
113 <when value="ptortho">
|
|
114 <param name="input_ptortho" format="ptortho" type="data" label="Precomputed orthologous gene family clusters" />
|
73
|
115 <expand macro="param_scaffold" />
|
|
116 <expand macro="param_method" />
|
|
117 <conditional name="options_type_cond">
|
|
118 <expand macro="param_options_type" />
|
|
119 <when value="basic" />
|
|
120 <when value="advanced">
|
|
121 <expand macro="cond_multiple_sequence_alignments" />
|
|
122 <expand macro="cond_phylogenomic_trees" />
|
|
123 <expand macro="cond_remove_gappy_sequences" />
|
42
|
124 </when>
|
|
125 </conditional>
|
|
126 </when>
|
73
|
127 <when value="ptorthocs">
|
|
128 <param name="input_ptorthocs" format="ptorthocs" type="data" label="Precomputed orthologous gene family clusters with corresponding coding sequences" />
|
|
129 <expand macro="param_scaffold" />
|
|
130 <expand macro="param_method" />
|
|
131 <conditional name="options_type_cond">
|
|
132 <expand macro="param_options_type" />
|
|
133 <when value="basic" />
|
|
134 <when value="advanced">
|
|
135 <expand macro="cond_multiple_sequence_alignments" />
|
|
136 <expand macro="cond_phylogenomic_trees" />
|
|
137 <expand macro="cond_remove_gappy_sequences" />
|
|
138 <expand macro="cond_multiple_codon_alignments" />
|
0
|
139 </when>
|
|
140 </conditional>
|
|
141 </when>
|
|
142 </conditional>
|
|
143 </inputs>
|
|
144 <outputs>
|
65
|
145 <data name="output_ptortho" format="ptortho">
|
51
|
146 <filter>input_format_cond['input_format'] == 'ptortho'</filter>
|
41
|
147 </data>
|
65
|
148 <data name="output_ptorthocs" format="ptorthocs">
|
51
|
149 <filter>input_format_cond['input_format'] == 'ptorthocs'</filter>
|
41
|
150 </data>
|
73
|
151 <data name="output_aln" format="ptalign" label="Multiple alignments (method ${options_type_cond['multiple_sequence_alignments_cond']['multiple_sequence_alignments_option_cond']['multiple_sequence_alignments_option']}) on ${on_string}">
|
|
152 <filter>options_type_cond['options_type'] == 'advanced' and options_type_cond['multiple_sequence_alignments_cond']['multiple_sequence_alignments'] == 'yes'</filter>
|
14
|
153 </data>
|
53
|
154 <data name="output_tree" format="pttree" label="Phylogenetic trees on ${on_string}">
|
73
|
155 <filter>options_type_cond['options_type'] == 'advanced' and options_type_cond['phylogenetic_trees_cond']['phylogenetic_trees'] == 'yes'</filter>
|
14
|
156 </data>
|
0
|
157 </outputs>
|
|
158 <tests>
|
|
159 <test>
|
|
160 </test>
|
|
161 </tests>
|
|
162 <help>
|
71
|
163 This tool is one of the PlantTribes collection of automated modular analysis pipelines that utilize objective classifications of
|
59
|
164 complete protein sequences from sequenced plant genomes to perform comparative evolutionary studies. It performs phylogenomic
|
|
165 analyses by creating multiple sequence alignments and inferred maximum likelihood phylogenies for orthogroups produced by the
|
|
166 **Classify gene sequences into precomputed orthologous gene family clusters** tool.
|
0
|
167
|
59
|
168 -----
|
0
|
169
|
59
|
170 **Options**
|
0
|
171
|
69
|
172 * **Required**
|
18
|
173
|
59
|
174 - **Select gene family clusters** - Sequences classified into gene family clusters, optionally including corresponding coding sequences.
|
|
175 - **Orthogroups or gene families proteins scaffold** - PlantTribes scaffolds data.
|
|
176 - **Protein clustering method** - One of GFam (domain architecture based clustering), OrthoFinder (broadly defined clusters) or OrthoMCL (narrowly defined clusters).
|
|
177
|
69
|
178 * **Multiple sequence alignments**
|
14
|
179
|
59
|
180 - **Select method for multiple sequence alignments** - Method used for setting multiple sequence alignments.
|
|
181 - **Input sequences include corresponding coding sequences?** - Selecting 'Yes' for this option requires that the selected input data format is 'ptorthocs'.
|
|
182 - **Construct orthogroup multiple codon alignments?** - Construct orthogroup multiple codon alignments.
|
|
183 - **Sequence type used in the phylogenetic inference** - Sequence type (dna or amino acid) used in the phylogenetic inference.
|
|
184 - **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
|
185
|
69
|
186 * **Phylogenetic trees**
|
15
|
187
|
59
|
188 - **Phylogenetic trees inference method** - Phylogenetic trees inference method.
|
|
189 - **Select rooting order configuration for rooting trees??** - If 'No' is selected, trees will be rooted using the most distant taxon present in the orthogroup.
|
|
190 - **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.
|
|
191 - **Maximum number of sequences in orthogroup alignments** - Maximum number of sequences in orthogroup alignments.
|
|
192 - **Minimum number of sequences in orthogroup alignments** - Minimum number of sequences in orthogroup alignments.
|
14
|
193
|
69
|
194 * **MSA quality control**
|
14
|
195
|
59
|
196 - **Remove sequences with gaps of** - Removes gappy sequences in alignments (i.e., 0.5 removes sequences with 50% gaps).
|
|
197 - **Select process used for gap trimming** - Either nucleotide based trimming or alignments are trimed using using trimAl's ML heuristic trimming approach.
|
|
198 - **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
|
199
|
0
|
200 </help>
|
73
|
201 <expand macro="citations" />
|
0
|
202 </tool>
|