71
|
1 <tool id="plant_tribes_gene_family_classifier" name="Classify gene sequences" version="0.4">
|
28
|
2 <description>into precomputed orthologous gene family clusters</description>
|
0
|
3 <requirements>
|
71
|
4 <requirement type="package" version="0.4">plant_tribes_gene_family_classifier</requirement>
|
0
|
5 </requirements>
|
|
6 <stdio>
|
|
7 <!-- Anything other than zero is an error -->
|
|
8 <exit_code range="1:" />
|
29
|
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[
|
39
|
16 #import os
|
35
|
17
|
21
|
18 #if str($options_type.options_type_selector) == 'advanced':
|
51
|
19 #set specify_super_orthogroups_cond = $options_type.specify_super_orthogroups_cond
|
|
20 #set specify_super_orthogroups = $specify_super_orthogroups_cond.specify_super_orthogroups
|
17
|
21 #set create_orthogroup_cond = $options_type.create_orthogroup_cond
|
|
22 #set create_orthogroup = $create_orthogroup_cond.create_orthogroup
|
44
|
23 #set specify_single_copy_cond = $options_type.specify_single_copy_cond
|
46
|
24 #set specify_single_copy = $specify_single_copy_cond.specify_single_copy
|
51
|
25 #if str($specify_super_orthogroups) == 'yes':
|
|
26 #set specify_super_orthos = True
|
|
27 #set super_orthogroups = $specify_super_orthogroups_cond.super_orthogroups
|
|
28 #else:
|
|
29 #set specify_super_orthos = False
|
|
30 #end if
|
21
|
31 #if str($create_orthogroup) == 'yes':
|
44
|
32 #set create_ortho_sequences = True
|
21
|
33 #set create_corresponding_coding_sequences_cond = $create_orthogroup_cond.create_corresponding_coding_sequences_cond
|
|
34 #if str($create_corresponding_coding_sequences_cond.create_corresponding_coding_sequences) == 'yes':
|
|
35 #set create_corresponding_coding_sequences = True
|
|
36 #else:
|
|
37 #set create_corresponding_coding_sequences = False
|
44
|
38 #end if
|
21
|
39 #else:
|
|
40 #set create_ortho_sequences = False
|
23
|
41 #set create_corresponding_coding_sequences = False
|
21
|
42 #end if
|
52
|
43 #if str($specify_single_copy) == 'yes':
|
|
44 #set single_copy_orthogroup = True
|
|
45 #set single_copy_cond = $specify_single_copy_cond.single_copy_cond
|
|
46 #set single_copy = $single_copy_cond.single_copy
|
|
47 #else:
|
|
48 #set single_copy_orthogroup = False
|
|
49 #end if
|
13
|
50 #else:
|
47
|
51 #set single_copy_orthogroup = False
|
13
|
52 #set create_ortho_sequences = False
|
23
|
53 #set create_corresponding_coding_sequences = False
|
4
|
54 #end if
|
20
|
55
|
98
|
56 python $__tool_directory__/gene_family_classifier.py
|
100
|
57 --input '$input'
|
67
|
58 --scaffold '$scaffold.fields.path'
|
0
|
59 --method $method
|
13
|
60 --classifier $save_hmmscan_log_cond.classifier
|
69
|
61 --config_dir '$scaffold.fields.path'
|
30
|
62 --num_threads \${GALAXY_SLOTS:-4}
|
20
|
63
|
0
|
64 #if str($options_type.options_type_selector) == 'advanced':
|
51
|
65 #if specify_super_orthos:
|
|
66 --super_orthogroups $super_orthogroups
|
|
67 #end if
|
47
|
68 #if $single_copy_orthogroup:
|
68
|
69 #if str($single_copy) == 'custom':
|
70
|
70 #set single_copy_custom_cond = $single_copy_cond.single_copy_custom_cond
|
|
71 #set single_copy_custom = $single_copy_custom_cond.single_copy_custom
|
|
72 #if str($single_copy_custom) == 'no':
|
72
|
73 --single_copy_custom 'default'
|
70
|
74 #else:
|
|
75 --single_copy_custom '$single_copy_custom_cond.single_copy_custom_config'
|
|
76 #end if
|
68
|
77 #else:
|
|
78 --single_copy_taxa $single_copy_cond.single_copy_taxa
|
|
79 --taxa_present $single_copy_cond.taxa_present
|
|
80 #end if
|
0
|
81 #end if
|
89
|
82 #if $create_ortho_sequences:
|
99
|
83 --orthogroup_fasta "true"
|
18
|
84 #if $create_corresponding_coding_sequences:
|
35
|
85 --coding_sequences '$create_corresponding_coding_sequences_cond.coding_sequences'
|
17
|
86 #end if
|
0
|
87 #end if
|
|
88 #end if
|
20
|
89
|
97
|
90 #if str($save_hmmscan_log_cond.classifier) == 'hmmscan' or str($save_hmmscan_log_cond.classifier) == 'both' and str($save_hmmscan_log_cond.save_hmmscan_log) == 'yes':
|
|
91 --save_hmmscan_log
|
|
92 --hmmscan_log '$hmmscan_log'
|
12
|
93 #end if
|
58
|
94 #if $create_ortho_sequences:
|
62
|
95 #if $create_corresponding_coding_sequences:
|
97
|
96 --output_ptorthocs '$output_ptorthocs'
|
62
|
97 #else:
|
97
|
98 --output_ptortho '$output_ptortho'
|
18
|
99 #end if
|
4
|
100 #end if
|
47
|
101 #if $single_copy_orthogroup:
|
58
|
102 #if $create_ortho_sequences:
|
97
|
103 --output_ptsco '$output_ptsco'
|
48
|
104 #end if
|
44
|
105 #end if
|
0
|
106 ]]>
|
|
107 </command>
|
|
108 <inputs>
|
|
109 <param name="input" format="fasta" type="data" label="Amino acids (proteins) sequences fasta file"/>
|
|
110 <param name="scaffold" type="select" label="Orthogroups or gene families proteins scaffold">
|
|
111 <options from_data_table="plant_tribes_scaffolds" />
|
39
|
112 <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
|
113 </param>
|
|
114 <param name="method" type="select" label="Protein clustering method">
|
|
115 <option value="gfam" selected="true">GFam</option>
|
|
116 <option value="orthofinder">OrthoFinder</option>
|
|
117 <option value="orthomcl">OrthoMCL</option>
|
|
118 </param>
|
13
|
119 <conditional name="save_hmmscan_log_cond">
|
|
120 <param name="classifier" type="select" label="Protein classification method">
|
|
121 <option value="blastp" selected="true">blastp</option>
|
|
122 <option value="hmmscan">HMMScan</option>
|
|
123 <option value="both">Both blastp and HMMScan</option>
|
|
124 </param>
|
|
125 <when value="blastp" />
|
|
126 <when value="hmmscan">
|
|
127 <param name="save_hmmscan_log" type="select" label="Save hmmscan log?" help="Save the hmmscan log in an additional output dataset">
|
|
128 <option value="no" selected="true">No</option>
|
|
129 <option value="yes">Yes</option>
|
|
130 </param>
|
|
131 </when>
|
|
132 <when value="both">
|
|
133 <param name="save_hmmscan_log" type="select" label="Save hmmscan log?" help="Save the hmmscan log in an additional output dataset">
|
|
134 <option value="no" selected="true">No</option>
|
|
135 <option value="yes">Yes</option>
|
|
136 </param>
|
|
137 </when>
|
|
138 </conditional>
|
0
|
139 <conditional name="options_type">
|
|
140 <param name="options_type_selector" type="select" label="Options Configuration">
|
|
141 <option value="basic" selected="true">Basic</option>
|
|
142 <option value="advanced">Advanced</option>
|
|
143 </param>
|
|
144 <when value="basic" />
|
|
145 <when value="advanced">
|
51
|
146 <conditional name="specify_super_orthogroups_cond">
|
|
147 <param name="specify_super_orthogroups" type="select" label="Specify super orthogroups?" help="Secondary MCL clusters of orthogroups">
|
|
148 <option value="no" selected="true">No</option>
|
|
149 <option value="yes">Yes</option>
|
|
150 </param>
|
|
151 <when value="no"/>
|
|
152 <when value="yes">
|
97
|
153 <param name="super_orthogroups" type="select" label="Super orthogroups clustering specification">
|
51
|
154 <option value="min_evalue" selected="true">Minimum e-value</option>
|
|
155 <option value="avg_evalue">Average e-value</option>
|
|
156 </param>
|
|
157 </when>
|
|
158 </conditional>
|
44
|
159 <conditional name="specify_single_copy_cond">
|
|
160 <param name="specify_single_copy" type="select" label="Specify single copy orthogroup selection?">
|
|
161 <option value="no" selected="true">No</option>
|
|
162 <option value="yes">Yes</option>
|
0
|
163 </param>
|
44
|
164 <when value="no"/>
|
|
165 <when value="yes">
|
|
166 <conditional name="single_copy_cond">
|
73
|
167 <param name="single_copy" type="select" label="Select single copy orthogroup configuration option">
|
68
|
168 <option value="custom" selected="true">Single copy orthogroup custom configuration</option>
|
65
|
169 <option value="taxa">Minimum single copy taxa required in orthogroup</option>
|
44
|
170 </param>
|
70
|
171 <when value="custom">
|
|
172 <conditional name="single_copy_custom_cond">
|
73
|
173 <param name="single_copy_custom" type="select" label="Select single copy orthogroup custom configuration from the current history?" help="Select No to use the default configuration">
|
70
|
174 <option value="no" selected="true">No</option>
|
|
175 <option value="yes">Yes</option>
|
|
176 </param>
|
|
177 <when value="no"/>
|
|
178 <when value="yes">
|
73
|
179 <param name="single_copy_custom_config" format="txt" type="data" label="Single copy orthogroup custom configuration file"/>
|
70
|
180 </when>
|
|
181 </conditional>
|
|
182 </when>
|
44
|
183 <when value="taxa">
|
65
|
184 <param name="single_copy_taxa" type="integer" value="20" label="Minimum single copy taxa required in orthogroup"/>
|
|
185 <param name="taxa_present" type="integer" value="21" label="Minimum taxa required in single copy orthogroup"/>
|
44
|
186 </when>
|
|
187 </conditional>
|
0
|
188 </when>
|
|
189 </conditional>
|
|
190 <conditional name="create_orthogroup_cond">
|
|
191 <param name="create_orthogroup" type="select" label="Create orthogroup fasta files?">
|
|
192 <option value="no" selected="true">No</option>
|
|
193 <option value="yes">Yes</option>
|
|
194 </param>
|
|
195 <when value="no" />
|
|
196 <when value="yes">
|
17
|
197 <conditional name="create_corresponding_coding_sequences_cond">
|
|
198 <param name="create_corresponding_coding_sequences" type="select" label="Create corresponding coding sequences?">
|
|
199 <option value="no" selected="true">No</option>
|
|
200 <option value="yes">Yes</option>
|
|
201 </param>
|
|
202 <when value="no" />
|
|
203 <when value="yes">
|
|
204 <param name="coding_sequences" format="fasta" type="data" label="Corresponding coding sequences (CDS) fasta file"/>
|
|
205 </when>
|
|
206 </conditional>
|
0
|
207 </when>
|
|
208 </conditional>
|
|
209 </when>
|
|
210 </conditional>
|
|
211 </inputs>
|
|
212 <outputs>
|
15
|
213 <data name="hmmscan_log" format="txt" label="Protein classification hmmscan.log on ${on_string}">
|
|
214 <filter>save_hmmscan_log_cond['classifier'] in ['hmmscan', 'both'] and save_hmmscan_log_cond['save_hmmscan_log'] == 'yes'</filter>
|
|
215 </data>
|
63
|
216 <data name="output_ptortho" format="ptortho" label="Gene family clusters on ${on_string}">
|
33
|
217 <filter>options_type['options_type_selector'] == 'advanced' and options_type['create_orthogroup_cond']['create_orthogroup'] == 'yes' and options_type['create_orthogroup_cond']['create_corresponding_coding_sequences_cond']['create_corresponding_coding_sequences'] == 'no'</filter>
|
31
|
218 </data>
|
63
|
219 <data name="output_ptorthocs" format="ptorthocs" label="Gene family clusters and corresponding coding sequences on ${on_string}">
|
31
|
220 <filter>options_type['options_type_selector'] == 'advanced' and options_type['create_orthogroup_cond']['create_orthogroup'] == 'yes' and options_type['create_orthogroup_cond']['create_corresponding_coding_sequences_cond']['create_corresponding_coding_sequences'] == 'yes'</filter>
|
9
|
221 </data>
|
63
|
222 <data name="output_ptsco" format="tabular" label="Single copy orthogroups on ${on_string}">
|
53
|
223 <filter>options_type['options_type_selector'] == 'advanced' and options_type['create_orthogroup_cond']['create_orthogroup'] == 'yes' and options_type['specify_single_copy_cond']['specify_single_copy'] == 'yes'</filter>
|
63
|
224 <change_format>
|
|
225 <when input="options_type.create_orthogroup_cond.create_corresponding_coding_sequences_cond.create_corresponding_coding_sequences" value="no" format="ptortho" />
|
|
226 <when input="options_type.create_orthogroup_cond.create_corresponding_coding_sequences_cond.create_corresponding_coding_sequences" value="yes" format="ptorthocs" />
|
|
227 </change_format>
|
52
|
228 </data>
|
30
|
229 <collection name="orthos" type="list">
|
12
|
230 <discover_datasets pattern="__name__" directory="geneFamilyClassification_dir" visible="false" ext="tabular" />
|
0
|
231 </collection>
|
|
232 </outputs>
|
|
233 <tests>
|
|
234 <test>
|
30
|
235 <param name="input" value="transcripts.cleaned.nr.pep" ftype="fasta" />
|
|
236 <param name="scaffold" value="22Gv1.1"/>
|
|
237 <param name="method" value="orthomcl"/>
|
|
238 <param name="classifier" value="blastp"/>
|
0
|
239 <param name="dereplicate" value="yes"/>
|
|
240 <param name="min_length" value="200"/>
|
|
241 <output_collection name="orthos" type="list">
|
35
|
242 <element name="proteins.blastp.22Gv1.1" file="proteins.blastp.22Gv1.1" ftype="tabular"/>
|
|
243 <element name="proteins.blastp.22Gv1.1.bestOrthos" file="proteins.blastp.22Gv1.1.bestOrthos" ftype="tabular"/>
|
|
244 <element name="proteins.blastp.22Gv1.1.bestOrthos.summary" file="proteins.blastp.22Gv1.1.bestOrthos.summary" ftype="tabular"/>
|
0
|
245 </output_collection>
|
|
246 </test>
|
|
247 </tests>
|
|
248 <help>
|
|
249 This tool is one of the PlantTribes' collection of automated modular analysis pipelines that utilize objective classifications of
|
28
|
250 complete protein sequences from sequenced plant genomes to perform comparative evolutionary studies. This tool classifies gene
|
|
251 sequences into precomputed orthologous gene family clusters using either blastp (faster), HMMScan (slower but more sensitive
|
|
252 to remote homologs) or both (more exhaustive).
|
|
253
|
30
|
254 This tool accepts any of the following as input:
|
28
|
255
|
|
256 * the postprocessed assemblies produced by the **Postprocess de novo assembly transcripts into putative coding sequences** tool
|
|
257 * externally predicted coding sequences and their corresponding amino acid translations derived from a transcriptome assembly
|
|
258 * gene predictions from a sequenced genome
|
0
|
259
|
|
260 -----
|
|
261
|
|
262 **Options**
|
|
263
|
67
|
264 * **Orthogroups or gene families proteins scaffold** - PlantTribes scaffolds data installed into Galaxy by the PlantTribes Scaffolds Download Data Manager tool.
|
28
|
265 * **Protein clustering method** - One of GFam (domain architecture based clustering), OrthoFinder (broadly defined clusters) or OrthoMCL (narrowly defined clusters).
|
|
266 * **Protein classification method** - blastp (faster), HMMScan (slower but more sensative to the remote homologs) or both (more exhaustive).
|
|
267 * **Super Orthogroups** - Secondary MCL clusters of orthogroups.
|
73
|
268 * **Specify single copy orthogroup selection?** - Specify a single copy orthogroup custom configuration or the minimum single copy taxa required in the orthogroup.
|
|
269 * **Select single copy orthogroup custom configuration from the current history?** - If a custom configuration is chosen, the configuration can be selected from the current history or the default configuration can be used.
|
65
|
270 * **Minimum single copy taxa required in orthogroup** - Used with "Minimum single copy taxa required in orthogroup" configuration only.
|
|
271 * **Minimum taxa required in single copy orthogroup** - Used with "Minimum single copy taxa required in orthogroup" configuration only.
|
0
|
272 * **Corresponding coding sequences (CDS) fasta file** - Used only when selecting "Create orthogroup fasta files?".
|
|
273
|
|
274 </help>
|
|
275 <citations>
|
|
276 <citation type="bibtex">
|
|
277 @unpublished{None,
|
28
|
278 author = {Eric Wafula},
|
0
|
279 title = {None},
|
|
280 year = {None},
|
35
|
281 url = {https://github.com/dePamphilis/PlantTribes}
|
|
282 }</citation>
|
|
283 <citation type="doi">10.1186/1471-2105-10-421</citation>
|
|
284 <citation type="bibtex">
|
|
285 @unpublished{None,
|
|
286 author = {None},
|
|
287 title = {HMMER 3.1+ hmmscan search sequence(s) against a profile database},
|
|
288 year = {2013},
|
|
289 url = {http://hmmer.org/}
|
0
|
290 }</citation>
|
|
291 </citations>
|
|
292 </tool>
|