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