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