annotate gene_family_classifier.xml @ 57:c0a85e845050 draft

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