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[
|
21
|
16 #if str($options_type.options_type_selector) == 'advanced':
|
17
|
17 #set create_orthogroup_cond = $options_type.create_orthogroup_cond
|
|
18 #set create_orthogroup = $create_orthogroup_cond.create_orthogroup
|
22
|
19
|
21
|
20 #if str($create_orthogroup) == 'yes':
|
|
21 #set create_corresponding_coding_sequences_cond = $create_orthogroup_cond.create_corresponding_coding_sequences_cond
|
|
22 #if str($create_corresponding_coding_sequences_cond.create_corresponding_coding_sequences) == 'yes':
|
|
23 #set create_corresponding_coding_sequences = True
|
|
24 #else:
|
|
25 #set create_corresponding_coding_sequences = False
|
22
|
26 #end if
|
|
27
|
21
|
28 #import os
|
|
29 #set create_ortho_sequences = True
|
|
30 #set orthogroups_fasta_src_dir = $os.path.join('geneFamilyClassification_dir', 'orthogroups_fasta')
|
34
|
31 #if $create_corresponding_coding_sequences:
|
|
32 #set dest_dir = $output_pgfccs.extra_files_path
|
|
33 #else:
|
|
34 #set dest_dir = $output_pgfc.extra_files_path
|
|
35 #end if
|
23
|
36 mkdir -p $dest_dir &&
|
21
|
37 #else:
|
|
38 #set create_ortho_sequences = False
|
23
|
39 #set create_corresponding_coding_sequences = False
|
21
|
40 #end if
|
13
|
41 #else:
|
|
42 #set create_ortho_sequences = False
|
23
|
43 #set create_corresponding_coding_sequences = False
|
4
|
44 #end if
|
20
|
45
|
0
|
46 GeneFamilyClassifier
|
|
47 --proteins "$input"
|
30
|
48 --scaffold_dir "${GALAXY_DATA_INDEX_DIR}/plant_tribes/scaffolds"
|
0
|
49 --scaffold "$scaffold"
|
|
50 --method $method
|
13
|
51 --classifier $save_hmmscan_log_cond.classifier
|
30
|
52 --num_threads \${GALAXY_SLOTS:-4}
|
20
|
53
|
0
|
54 #if str($options_type.options_type_selector) == 'advanced':
|
|
55 --super_orthogroups $options_type.super_orthogroups
|
|
56 #if str($options_type.single_copy_cond) == 'taxa':
|
|
57 --single_copy_taxa $options_type.single_copy_cond.single_copy_taxa
|
|
58 --taxa_present $options_type.single_copy_cond.taxa_present
|
|
59 #end if
|
17
|
60 #if str($create_orthogroup) == 'yes':
|
0
|
61 --orthogroup_fasta
|
18
|
62 #if $create_corresponding_coding_sequences:
|
17
|
63 --coding_sequences "$create_corresponding_coding_sequences_cond.coding_sequences"
|
|
64 #end if
|
0
|
65 #end if
|
|
66 #end if
|
20
|
67
|
13
|
68 #if str($save_hmmscan_log_cond.classifier) == 'hmmscan' or str($save_hmmscan_log_cond.classifier) == 'both':
|
|
69 #if str($save_hmmscan_log_cond.save_hmmscan_log) == 'yes':
|
15
|
70 && mv geneFamilyClassification_dir/hmmscan.log $hmmscan_log
|
13
|
71 #else:
|
15
|
72 && rm geneFamilyClassification_dir/hmmscan.log
|
13
|
73 #end if
|
12
|
74 #end if
|
20
|
75
|
14
|
76 #if $create_ortho_sequences:
|
18
|
77 #if $create_corresponding_coding_sequences:
|
34
|
78 && echo "# Precomputed orthologous gene family clusters with corresponding coding sequences: `ls $orthogroups_fasta_src_dir | grep f | wc -l` files" > $output_pgfccs
|
|
79 && ls -al $orthogroups_fasta_src_dir | grep f >> $output_pgfccs
|
18
|
80 #else:
|
34
|
81 && echo "# Precomputed orthologous gene family clusters: `ls $orthogroups_fasta_src_dir | grep f | wc -l` files" > $output_pgfc
|
|
82 && ls -al $orthogroups_fasta_src_dir | grep f >> $output_pgfc
|
18
|
83 #end if
|
26
|
84 && mv $orthogroups_fasta_src_dir/* $dest_dir || true
|
4
|
85 #end if
|
20
|
86
|
0
|
87 ]]>
|
|
88 </command>
|
|
89 <inputs>
|
|
90 <param name="input" format="fasta" type="data" label="Amino acids (proteins) sequences fasta file"/>
|
|
91 <param name="scaffold" type="select" label="Orthogroups or gene families proteins scaffold">
|
|
92 <options from_data_table="plant_tribes_scaffolds" />
|
|
93 <validator type="no_options" message="No PlantTribes scaffolds are available. Use the PlantTribes Scaffolds Download Data Manager tool to install and populate the PlantTribes scaffolds data table."/>
|
|
94 </param>
|
|
95 <param name="method" type="select" label="Protein clustering method">
|
|
96 <option value="gfam" selected="true">GFam</option>
|
|
97 <option value="orthofinder">OrthoFinder</option>
|
|
98 <option value="orthomcl">OrthoMCL</option>
|
|
99 </param>
|
13
|
100 <conditional name="save_hmmscan_log_cond">
|
|
101 <param name="classifier" type="select" label="Protein classification method">
|
|
102 <option value="blastp" selected="true">blastp</option>
|
|
103 <option value="hmmscan">HMMScan</option>
|
|
104 <option value="both">Both blastp and HMMScan</option>
|
|
105 </param>
|
|
106 <when value="blastp" />
|
|
107 <when value="hmmscan">
|
|
108 <param name="save_hmmscan_log" type="select" label="Save hmmscan log?" help="Save the hmmscan log in an additional output dataset">
|
|
109 <option value="no" selected="true">No</option>
|
|
110 <option value="yes">Yes</option>
|
|
111 </param>
|
|
112 </when>
|
|
113 <when value="both">
|
|
114 <param name="save_hmmscan_log" type="select" label="Save hmmscan log?" help="Save the hmmscan log in an additional output dataset">
|
|
115 <option value="no" selected="true">No</option>
|
|
116 <option value="yes">Yes</option>
|
|
117 </param>
|
|
118 </when>
|
|
119 </conditional>
|
0
|
120 <conditional name="options_type">
|
|
121 <param name="options_type_selector" type="select" label="Options Configuration">
|
|
122 <option value="basic" selected="true">Basic</option>
|
|
123 <option value="advanced">Advanced</option>
|
|
124 </param>
|
|
125 <when value="basic" />
|
|
126 <when value="advanced">
|
28
|
127 <param name="super_orthogroups" type="select" label="Super Orthogroups" help="Secondary MCL clusters of orthogroups">
|
0
|
128 <option value="min_evalue" selected="true">Minimum e-value</option>
|
|
129 <option value="avg_evalue">Average e-value</option>
|
|
130 </param>
|
|
131 <conditional name="single_copy_cond">
|
|
132 <param name="single_copy" type="select" label="Select single copy configuration">
|
|
133 <option value="custom" selected="true">Single copy orthogroup custom</option>
|
|
134 <option value="taxa">Minumum single copy taxa required in orthogroup</option>
|
|
135 </param>
|
|
136 <when value="custom" />
|
|
137 <when value="taxa">
|
|
138 <param name="single_copy_taxa" type="integer" value="20" label="Minumum single copy taxa required in orthogroup"/>
|
|
139 <param name="taxa_present" type="integer" value="21" label="Minumum taxa required in single copy orthogroup"/>
|
|
140 </when>
|
|
141 </conditional>
|
|
142 <conditional name="create_orthogroup_cond">
|
|
143 <param name="create_orthogroup" type="select" label="Create orthogroup fasta files?">
|
|
144 <option value="no" selected="true">No</option>
|
|
145 <option value="yes">Yes</option>
|
|
146 </param>
|
|
147 <when value="no" />
|
|
148 <when value="yes">
|
17
|
149 <conditional name="create_corresponding_coding_sequences_cond">
|
|
150 <param name="create_corresponding_coding_sequences" type="select" label="Create corresponding coding sequences?">
|
|
151 <option value="no" selected="true">No</option>
|
|
152 <option value="yes">Yes</option>
|
|
153 </param>
|
|
154 <when value="no" />
|
|
155 <when value="yes">
|
|
156 <param name="coding_sequences" format="fasta" type="data" label="Corresponding coding sequences (CDS) fasta file"/>
|
|
157 </when>
|
|
158 </conditional>
|
0
|
159 </when>
|
|
160 </conditional>
|
|
161 </when>
|
|
162 </conditional>
|
|
163 </inputs>
|
|
164 <outputs>
|
15
|
165 <data name="hmmscan_log" format="txt" label="Protein classification hmmscan.log on ${on_string}">
|
|
166 <filter>save_hmmscan_log_cond['classifier'] in ['hmmscan', 'both'] and save_hmmscan_log_cond['save_hmmscan_log'] == 'yes'</filter>
|
|
167 </data>
|
34
|
168 <data name="output_pgfc" format="pgfc" label="Gene family clusters on ${on_string}">
|
33
|
169 <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
|
170 </data>
|
34
|
171 <data name="output_pgfccs" format="pgfccs" label="Gene family clusters and corresponding coding sequences on ${on_string}">
|
31
|
172 <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
|
173 </data>
|
30
|
174 <collection name="orthos" type="list">
|
12
|
175 <discover_datasets pattern="__name__" directory="geneFamilyClassification_dir" visible="false" ext="tabular" />
|
0
|
176 </collection>
|
|
177 </outputs>
|
|
178 <tests>
|
|
179 <test>
|
30
|
180 <!-- Not sure how to test this since the tool requires scaffolds data which is extremely large and installed using a Data Manager -->
|
|
181 <param name="input" value="transcripts.cleaned.nr.pep" ftype="fasta" />
|
|
182 <param name="scaffold" value="22Gv1.1"/>
|
|
183 <param name="method" value="orthomcl"/>
|
|
184 <param name="classifier" value="blastp"/>
|
0
|
185 <param name="dereplicate" value="yes"/>
|
|
186 <param name="min_length" value="200"/>
|
|
187 <output_collection name="orthos" type="list">
|
30
|
188 <element name="proteins.blastp.22Gv1.1" file="proteins.blastp.22Gv1.1" ftype="tabular" compare="contains"/>
|
|
189 <element name="proteins.blastp.22Gv1.1.bestOrthos" file="proteins.blastp.22Gv1.1.bestOrthos" ftype="tabular" compare="contains"/>
|
|
190 <element name="proteins.blastp.22Gv1.1.bestOrthos.summary" file="proteins.blastp.22Gv1.1.bestOrthos.summary" ftype="tabular" compare="contains"/>
|
0
|
191 </output_collection>
|
|
192 </test>
|
|
193 </tests>
|
|
194 <help>
|
|
195 This tool is one of the PlantTribes' collection of automated modular analysis pipelines that utilize objective classifications of
|
28
|
196 complete protein sequences from sequenced plant genomes to perform comparative evolutionary studies. This tool classifies gene
|
|
197 sequences into precomputed orthologous gene family clusters using either blastp (faster), HMMScan (slower but more sensitive
|
|
198 to remote homologs) or both (more exhaustive).
|
|
199
|
30
|
200 This tool accepts any of the following as input:
|
28
|
201
|
|
202 * the postprocessed assemblies produced by the **Postprocess de novo assembly transcripts into putative coding sequences** tool
|
|
203 * externally predicted coding sequences and their corresponding amino acid translations derived from a transcriptome assembly
|
|
204 * gene predictions from a sequenced genome
|
0
|
205
|
|
206 -----
|
|
207
|
|
208 **Options**
|
|
209
|
|
210 * **Orthogroups or gene families proteins scaffold** - PlantTribes scaffolds data.
|
28
|
211 * **Protein clustering method** - One of GFam (domain architecture based clustering), OrthoFinder (broadly defined clusters) or OrthoMCL (narrowly defined clusters).
|
|
212 * **Protein classification method** - blastp (faster), HMMScan (slower but more sensative to the remote homologs) or both (more exhaustive).
|
|
213 * **Super Orthogroups** - Secondary MCL clusters of orthogroups.
|
0
|
214 * **Minumum single copy taxa required in orthogroup** - Used with "Minumum single copy taxa required in orthogroup" configuration only.
|
|
215 * **Minumum taxa required in single copy orthogroup** - Used with "Minumum single copy taxa required in orthogroup" configuration only.
|
|
216 * **Corresponding coding sequences (CDS) fasta file** - Used only when selecting "Create orthogroup fasta files?".
|
|
217
|
|
218 </help>
|
|
219 <citations>
|
|
220 <citation type="bibtex">
|
|
221 @unpublished{None,
|
28
|
222 author = {Eric Wafula},
|
0
|
223 title = {None},
|
|
224 year = {None},
|
|
225 eprint = {None},
|
|
226 url = {None}
|
|
227 }</citation>
|
|
228 </citations>
|
|
229 </tool>
|