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