13
|
1 <tool id="plant_tribes_kaks_analysis" name="Perform orthologous or paralogous ks analyses" version="0.8.0">
|
1
|
2 <description>of coding sequences and amino acid sequences</description>
|
0
|
3 <requirements>
|
13
|
4 <requirement type="package" version="0.8">plant_tribes_kaks_analysis</requirement>
|
0
|
5 </requirements>
|
|
6 <stdio>
|
|
7 <!-- Anything other than zero is an error -->
|
|
8 <exit_code range="1:" />
|
|
9 <exit_code range=":-1" />
|
|
10 <!-- In case the return code has not been set propery check stderr too -->
|
|
11 <regex match="Error:" />
|
|
12 <regex match="Exception:" />
|
|
13 </stdio>
|
|
14 <command>
|
|
15 <![CDATA[
|
5
|
16 #set output_dir = 'kaksAnalysis_dir'
|
4
|
17 #set comparison = $comparison_cond.comparison
|
0
|
18 #if str($options_type.options_type_selector) == 'advanced':
|
|
19 #set codeml_ctl_file_cond = $options_type.codeml_ctl_file_cond
|
|
20 #set codeml_ctl_file_select = $codeml_ctl_file_cond.codeml_ctl_file_select
|
|
21 #set fit_components_cond = $options_type.fit_components_cond
|
|
22 #set fit_components = $fit_components_cond.fit_components
|
11
|
23 #set recalibrate_cond = $options_type.recalibrate_cond
|
|
24 #set recalibrate = $recalibrate_cond.recalibrate
|
|
25 #set set_min_coverage_cond = $options_type.set_min_coverage_cond
|
|
26 #set set_min_coverage = $set_min_coverage_cond.set_min_coverage
|
6
|
27 #else:
|
|
28 #set codeml_ctl_file_select = 'no'
|
|
29 #set fit_components = 'no'
|
0
|
30 #end if
|
|
31 KaKsAnalysis
|
|
32 --config_dir '$scaffold.fields.path'
|
|
33 --num_threads \${GALAXY_SLOTS:-4}
|
|
34 --coding_sequences_species_1 '$coding_sequences_species_1'
|
|
35 --proteins_species_1 '$proteins_species_1'
|
|
36 --comparison $comparison
|
4
|
37 #if str($comparison) == 'orthologs':
|
0
|
38 --coding_sequences_species_2 '$comparison_cond.coding_sequences_species_2'
|
|
39 --proteins_species_2 '$comparison_cond.proteins_species_2'
|
|
40 #end if
|
|
41 #if str($options_type.options_type_selector) == 'advanced':
|
11
|
42 #if str($set_min_coverage) == 'yes':
|
|
43 --min_coverage $set_min_coverage_cond.min_coverage
|
|
44 #end if
|
|
45 #if str($recalibrate) == 'yes':
|
|
46 --recalibration_rate $recalibrate_cond.recalibration_rate
|
|
47 #end if
|
0
|
48 #if str($codeml_ctl_file_select) == 'yes':
|
|
49 --codeml_ctl_file '$codeml_ctl_file_cond.codeml_ctl_file'
|
|
50 # No else block needed here because the default codeml_ctl config
|
|
51 # will be used if the --codeml_ctl_file flag is missing.
|
|
52 #end if
|
|
53 #if str($fit_components) == 'yes':
|
10
|
54 --fit_components
|
0
|
55 --num_of_components $fit_components_cond.num_of_components
|
|
56 --min_ks $fit_components_cond.min_ks
|
|
57 --max_ks $fit_components_cond.max_ks
|
|
58 #end if
|
|
59 #end if
|
7
|
60 >/dev/null
|
5
|
61 && mv $output_dir/species1.fna '$output_species1_fna'
|
|
62 && mv $output_dir/species1.faa '$output_species1_faa'
|
9
|
63 #if str($comparison) == 'paralogs':
|
5
|
64 && mv $output_dir/species1.fna.blastn.paralogs '$output_species1_paralog'
|
9
|
65 #else:
|
5
|
66 && mv $output_dir/species2.faa '$output_species2_faa'
|
|
67 && mv $output_dir/species2.fna '$output_species2_fna'
|
|
68 && mv $output_dir/species1.fna.blastn.orthologs '$output_species1_ortholog'
|
|
69 && mv $output_dir/species2.fna.blastn.orthologs '$output_species2_ortholog'
|
|
70 #end if
|
|
71 && mv $output_dir/*.rbhb '$output_rbhb'
|
|
72 && mv $output_dir/*.kaks '$output_kaks'
|
|
73 #if str($fit_components) == 'yes':
|
|
74 && mv $output_dir/*.components '$output_components'
|
|
75 #end if
|
0
|
76 ]]>
|
|
77 </command>
|
|
78 <inputs>
|
|
79 <param name="coding_sequences_species_1" format="fasta" type="data" label="Coding sequences (CDS) fasta file for the species" />
|
3
|
80 <param name="proteins_species_1" format="fasta" type="data" label="Aamino acids (proteins) sequences fasta file for the species" />
|
0
|
81 <conditional name="comparison_cond">
|
|
82 <param name="comparison" type="select" label="Select method for pairwise sequence comparison to determine homolgous pairs" help="Cross species comparison requires selection of inputs for second species">
|
|
83 <option value="paralogs" selected="true">Self species comparison</option>
|
|
84 <option value="orthologs">Cross species comparison</option>
|
|
85 </param>
|
|
86 <when value="paralogs" />
|
|
87 <when value="orthologs">
|
|
88 <param name="coding_sequences_species_2" format="fasta" type="data" label="Coding sequences (CDS) fasta file for the second species" />
|
3
|
89 <param name="proteins_species_2" format="fasta" type="data" label="Aamino acids (proteins) sequences fasta file for the second species" />
|
0
|
90 </when>
|
|
91 </conditional>
|
5
|
92 <param name="scaffold" type="select" label="Orthogroups or gene families proteins scaffold" help="Selection specifies default configuration files">
|
|
93 <options from_data_table="plant_tribes_scaffolds" />
|
|
94 <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."/>
|
|
95 </param>
|
0
|
96 <conditional name="options_type">
|
|
97 <param name="options_type_selector" type="select" label="Options Configuration">
|
|
98 <option value="basic" selected="true">Basic</option>
|
|
99 <option value="advanced">Advanced</option>
|
|
100 </param>
|
|
101 <when value="basic" />
|
|
102 <when value="advanced">
|
11
|
103 <conditional name="set_min_coverage_cond">
|
|
104 <param name="set_min_coverage" type="select" label="Specify minimum sequence pairwise coverage length between homologous pairs?">
|
|
105 <option value="no" selected="true">No</option>
|
|
106 <option value="yes">Yes</option>
|
|
107 </param>
|
|
108 <when value="no" />
|
|
109 <when value="yes">
|
|
110 <param name="min_coverage" type="float" value="0.5" min="0.3" max="1.0" label="Minimum sequence pairwise coverage length between homologous pairs" />
|
|
111 </when>
|
|
112 </conditional>
|
|
113 <conditional name="recalibrate_cond">
|
|
114 <param name="recalibrate" type="select" label="Specify evolutionary rate for recalibrating synonymous subsitutions (ks) of species?">
|
|
115 <option value="no" selected="true">No</option>
|
|
116 <option value="yes">Yes</option>
|
|
117 </param>
|
|
118 <when value="no" />
|
|
119 <when value="yes">
|
|
120 <param name="recalibration_rate" type="float" value="0.0" min="0.0" label="Evolutionary rate for recalibrating synonymous subsitutions (ks) of species" />
|
|
121 </when>
|
|
122 </conditional>
|
0
|
123 <conditional name="codeml_ctl_file_cond">
|
|
124 <param name="codeml_ctl_file_select" type="select" label="Select PAML codeml control file?" help="Used for ML analysis of protein-coding DNA sequences using codon substitution models, select No to use the default control file">
|
|
125 <option value="no" selected="true">No</option>
|
|
126 <option value="yes">Yes</option>
|
|
127 </param>
|
|
128 <when value="no" />
|
|
129 <when value="yes">
|
|
130 <param name="codeml_ctl_file" format="txt" type="data" label="PAML codeml control file" />
|
|
131 </when>
|
|
132 </conditional>
|
|
133 <conditional name="fit_components_cond">
|
|
134 <param name="fit_components" type="select" label="Fit a mixture model of multivariate normal components to synonymous (ks) distribution?" help="Used to identify significant duplication events in a genome">
|
|
135 <option value="no" selected="true">No</option>
|
|
136 <option value="yes">Yes</option>
|
|
137 </param>
|
|
138 <when value="no" />
|
|
139 <when value="yes">
|
|
140 <param name="num_of_components" type="integer" value="0" min="0" label="Number components to fit to synonymous subsitutions (ks) distribution" />
|
|
141 <param name="min_ks" type="float" value="0.0" min="0.0" label="Lower limit of synonymous subsitutions (ks)" help="Reduces background noise from young paralogous pairs due to normal gene births and deaths in a genome" />
|
|
142 <param name="max_ks" type="float" value="0.0" min="0.0" label="Upper limit of synonymous subsitutions (ks)" help="Excludes likey ancient paralogous pairs" />
|
|
143 </when>
|
|
144 </conditional>
|
|
145 </when>
|
|
146 </conditional>
|
|
147 </inputs>
|
|
148 <outputs>
|
5
|
149 <data name="output_species1_fna" format="fasta" label="KaKs analysis (coding sequences) on ${on_string}" />
|
|
150 <data name="output_species1_faa" format="fasta" label="KaKs analysis (amino acids) on ${on_string}" />
|
|
151 <data name="output_species2_fna" format="fasta" label="KaKs analysis (coding sequences) on ${on_string}">
|
|
152 <filter>comparison_cond['comparison'] == 'orthologs'</filter>
|
|
153 </data>
|
|
154 <data name="output_species2_faa" format="fasta" label="KaKs analysis (amino acids) on ${on_string}">
|
|
155 <filter>comparison_cond['comparison'] == 'orthologs'</filter>
|
|
156 </data>
|
|
157 <data name="output_species1_paralog" format="tabular" label="KaKs analysis (blastn results) on ${on_string}">
|
|
158 <filter>comparison_cond['comparison'] == 'paralogs'</filter>
|
|
159 </data>
|
|
160 <data name="output_species1_ortholog" format="tabular" label="KaKs analysis (blastn results) on ${on_string}">
|
|
161 <filter>comparison_cond['comparison'] == 'orthologs'</filter>
|
|
162 </data>
|
|
163 <data name="output_species2_ortholog" format="tabular" label="KaKs analysis (blastn results) on ${on_string}">
|
|
164 <filter>comparison_cond['comparison'] == 'orthologs'</filter>
|
|
165 </data>
|
|
166 <data name="output_rbhb" format="tabular" label="KaKs analysis (paralogous pairs) on ${on_string}" />
|
|
167 <data name="output_kaks" format="tabular" label="KaKs analysis on ${on_string}" />
|
|
168 <data name="output_components" format="tabular" label="KaKs analysis (significant components in the ks distribution) on ${on_string}">
|
|
169 <filter>options_type[options_type_selector'] == 'advanced' and options_type['fit_components_cond']['fit_components'] == 'yes</filter>
|
|
170 </data>
|
0
|
171 </outputs>
|
|
172 <tests>
|
|
173 <test>
|
|
174 </test>
|
|
175 </tests>
|
|
176 <help>
|
|
177 This tool is one of the PlantTribes' collection of automated modular analysis pipelines that utilize objective classifications of
|
1
|
178 complete protein sequences from sequenced plant genomes to perform comparative evolutionary studies. This tool performs orthologous
|
|
179 or paralogous ks analyses of coding sequences and amino acid sequences.
|
0
|
180
|
|
181 -----
|
|
182
|
|
183 **Options**
|
|
184
|
|
185 * **Required options**
|
|
186
|
12
|
187 - **Coding sequences (CDS) fasta file for the species** - Coding sequences (CDS) fasta file for the first species.
|
|
188 - **Aamino acids (proteins) sequences fasta file for the species** - Aamino acids (proteins) sequences fasta file for the first species
|
|
189 - **Select method for pairwise sequence comparison to determine homolgous pairs** - Pairwise sequence comparison to determine homolgous pairs (cross species comparison requires selection of inputs for second species).
|
|
190 - **Orthogroups or gene families proteins scaffold** - PlantTribes scaffolds data installed into Galaxy by the PlantTribes Scaffolds Download Data Manager tool.
|
0
|
191
|
12
|
192 * **Other (optional) options**
|
0
|
193
|
12
|
194 - **Minimum sequence pairwise coverage length between homologous pairs** - Minimum sequence pairwise coverage length between homologous pairs (e.g., 0.5 results in 50% coverage. Legal values lie between 0.3 and 1.0.
|
|
195 - **Evolutionary rate for recalibrating synonymous subsitutions (ks) of species** - (applies to paralogous ks analysis) Recalibrate synonymous subsitutions (ks) of species using a predetermined evoutionary rate that can be determined from a species tree inferred from a collection single copy genes from taxa of interest (Cui et al., 2006).
|
|
196 - **Select PAML codeml control file?** - Select PAML's codeml control file from your history. This file is used to to perfom ML analysis of protein-coding DNA sequences using codon substitution models. Selecting No uses the default file which does not include input (seqfile, treefile) and output (outfile) parameters of codeml.
|
|
197 - **Fit a mixture model of multivariate normal components to synonymous (ks) distribution?** - Fit a mixture model of multivariate normal components to synonymous (ks) distribution to identify significant duplication event(s) in a genome.
|
|
198 - **Number components to fit to synonymous subsitutions (ks) distribution** - Number components to fit to synonymous subsitutions (ks) distribution.
|
|
199 - **Lower limit of synonymous subsitutions (ks)** - Lower limit of synonymous subsitutions (ks) - necessary if fitting components to the distribution to reduce background noise from young paralogous pairs due to normal gene births and deaths in a genome.
|
|
200 - **Upper limit of synonymous subsitutions (ks)** - Upper limit of synonymous subsitutions (ks) - necessary if fitting components to the distribution to exclude likey ancient paralogous pairs.
|
0
|
201
|
|
202 </help>
|
|
203 <citations>
|
|
204 <citation type="bibtex">
|
|
205 @unpublished{None,
|
|
206 author = {Eric Wafula},
|
|
207 title = {None},
|
|
208 year = {None},
|
|
209 url = {https://github.com/dePamphilis/PlantTribes}
|
|
210 }
|
|
211 </citation>
|
12
|
212 <citation type="doi">10.1093/bioinformatics/btw412</citation>
|
0
|
213 <citation type="doi">10.1186/1471-2105-10-421</citation>
|
|
214 <citation type="doi">10.1093/molbev/msm088</citation>
|
|
215 <citation type="doi">10.18637/jss.v004.i02</citation>
|
|
216 </citations>
|
|
217 </tool>
|