1
|
1 <tool id="plant_tribes_kaks_analysis" name="Perform orthologous or paralogous ks analyses" version="0.7.0">
|
|
2 <description>of coding sequences and amino acid sequences</description>
|
0
|
3 <requirements>
|
|
4 <requirement type="package" version="0.7">plant_tribes_kaks_analysis</requirement>
|
|
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
|
6
|
23 #else:
|
|
24 #set codeml_ctl_file_select = 'no'
|
|
25 #set fit_components = 'no'
|
0
|
26 #end if
|
|
27 KaKsAnalysis
|
|
28 --config_dir '$scaffold.fields.path'
|
|
29 --num_threads \${GALAXY_SLOTS:-4}
|
|
30 --coding_sequences_species_1 '$coding_sequences_species_1'
|
|
31 --proteins_species_1 '$proteins_species_1'
|
|
32 --comparison $comparison
|
4
|
33 #if str($comparison) == 'orthologs':
|
0
|
34 --coding_sequences_species_2 '$comparison_cond.coding_sequences_species_2'
|
|
35 --proteins_species_2 '$comparison_cond.proteins_species_2'
|
|
36 #end if
|
|
37 #if str($options_type.options_type_selector) == 'advanced':
|
|
38 --min_coverage $min_coverage
|
|
39 --recalibration_rate $recalibration_rate
|
|
40 #if str($codeml_ctl_file_select) == 'yes':
|
|
41 --codeml_ctl_file '$codeml_ctl_file_cond.codeml_ctl_file'
|
|
42 # No else block needed here because the default codeml_ctl config
|
|
43 # will be used if the --codeml_ctl_file flag is missing.
|
|
44 #end if
|
|
45 #if str($fit_components) == 'yes':
|
|
46 --num_of_components $fit_components_cond.num_of_components
|
|
47 --min_ks $fit_components_cond.min_ks
|
|
48 --max_ks $fit_components_cond.max_ks
|
|
49 #end if
|
|
50 #end if
|
7
|
51 >/dev/null
|
5
|
52 && mv $output_dir/species1.fna '$output_species1_fna'
|
|
53 && mv $output_dir/species1.faa '$output_species1_faa'
|
|
54 #if str($comparison) == 'orthologs':
|
|
55 && mv $output_dir/species1.fna.blastn.paralogs '$output_species1_paralog'
|
|
56 #end if
|
|
57 #if str($comparison) == 'orthologs':
|
|
58 && mv $output_dir/species2.faa '$output_species2_faa'
|
|
59 && mv $output_dir/species2.fna '$output_species2_fna'
|
|
60 && mv $output_dir/species1.fna.blastn.orthologs '$output_species1_ortholog'
|
|
61 && mv $output_dir/species2.fna.blastn.orthologs '$output_species2_ortholog'
|
|
62 #end if
|
|
63 && mv $output_dir/*.rbhb '$output_rbhb'
|
|
64 && mv $output_dir/*.kaks '$output_kaks'
|
|
65 #if str($fit_components) == 'yes':
|
|
66 && mv $output_dir/*.components '$output_components'
|
|
67 #end if
|
0
|
68 ]]>
|
|
69 </command>
|
|
70 <inputs>
|
|
71 <param name="coding_sequences_species_1" format="fasta" type="data" label="Coding sequences (CDS) fasta file for the species" />
|
3
|
72 <param name="proteins_species_1" format="fasta" type="data" label="Aamino acids (proteins) sequences fasta file for the species" />
|
0
|
73 <conditional name="comparison_cond">
|
|
74 <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">
|
|
75 <option value="paralogs" selected="true">Self species comparison</option>
|
|
76 <option value="orthologs">Cross species comparison</option>
|
|
77 </param>
|
|
78 <when value="paralogs" />
|
|
79 <when value="orthologs">
|
|
80 <param name="coding_sequences_species_2" format="fasta" type="data" label="Coding sequences (CDS) fasta file for the second species" />
|
3
|
81 <param name="proteins_species_2" format="fasta" type="data" label="Aamino acids (proteins) sequences fasta file for the second species" />
|
0
|
82 </when>
|
|
83 </conditional>
|
5
|
84 <param name="scaffold" type="select" label="Orthogroups or gene families proteins scaffold" help="Selection specifies default configuration files">
|
|
85 <options from_data_table="plant_tribes_scaffolds" />
|
|
86 <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."/>
|
|
87 </param>
|
0
|
88 <conditional name="options_type">
|
|
89 <param name="options_type_selector" type="select" label="Options Configuration">
|
|
90 <option value="basic" selected="true">Basic</option>
|
|
91 <option value="advanced">Advanced</option>
|
|
92 </param>
|
|
93 <when value="basic" />
|
|
94 <when value="advanced">
|
|
95 <param name="min_coverage" type="float" value="0.5" min="0.3" max="1.0" label="Minimum sequence pairwise coverage length between homologous pairs" />
|
|
96 <param name="recalibration_rate" type="float" value="0.0" min="0.0" label="Predetermined evolutionary rate for recalibrating synonymous subsitutions (ks) of species" />
|
|
97 <conditional name="codeml_ctl_file_cond">
|
|
98 <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">
|
|
99 <option value="no" selected="true">No</option>
|
|
100 <option value="yes">Yes</option>
|
|
101 </param>
|
|
102 <when value="no" />
|
|
103 <when value="yes">
|
|
104 <param name="codeml_ctl_file" format="txt" type="data" label="PAML codeml control file" />
|
|
105 </when>
|
|
106 </conditional>
|
|
107 <conditional name="fit_components_cond">
|
|
108 <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">
|
|
109 <option value="no" selected="true">No</option>
|
|
110 <option value="yes">Yes</option>
|
|
111 </param>
|
|
112 <when value="no" />
|
|
113 <when value="yes">
|
|
114 <param name="num_of_components" type="integer" value="0" min="0" label="Number components to fit to synonymous subsitutions (ks) distribution" />
|
|
115 <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" />
|
|
116 <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" />
|
|
117 </when>
|
|
118 </conditional>
|
|
119 </when>
|
|
120 </conditional>
|
|
121 </inputs>
|
|
122 <outputs>
|
5
|
123 <data name="output_species1_fna" format="fasta" label="KaKs analysis (coding sequences) on ${on_string}" />
|
|
124 <data name="output_species1_faa" format="fasta" label="KaKs analysis (amino acids) on ${on_string}" />
|
|
125 <data name="output_species2_fna" format="fasta" label="KaKs analysis (coding sequences) on ${on_string}">
|
|
126 <filter>comparison_cond['comparison'] == 'orthologs'</filter>
|
|
127 </data>
|
|
128 <data name="output_species2_faa" format="fasta" label="KaKs analysis (amino acids) on ${on_string}">
|
|
129 <filter>comparison_cond['comparison'] == 'orthologs'</filter>
|
|
130 </data>
|
|
131 <data name="output_species1_paralog" format="tabular" label="KaKs analysis (blastn results) on ${on_string}">
|
|
132 <filter>comparison_cond['comparison'] == 'paralogs'</filter>
|
|
133 </data>
|
|
134 <data name="output_species1_ortholog" format="tabular" label="KaKs analysis (blastn results) on ${on_string}">
|
|
135 <filter>comparison_cond['comparison'] == 'orthologs'</filter>
|
|
136 </data>
|
|
137 <data name="output_species2_ortholog" format="tabular" label="KaKs analysis (blastn results) on ${on_string}">
|
|
138 <filter>comparison_cond['comparison'] == 'orthologs'</filter>
|
|
139 </data>
|
|
140 <data name="output_rbhb" format="tabular" label="KaKs analysis (paralogous pairs) on ${on_string}" />
|
|
141 <data name="output_kaks" format="tabular" label="KaKs analysis on ${on_string}" />
|
|
142 <data name="output_components" format="tabular" label="KaKs analysis (significant components in the ks distribution) on ${on_string}">
|
|
143 <filter>options_type[options_type_selector'] == 'advanced' and options_type['fit_components_cond']['fit_components'] == 'yes</filter>
|
|
144 </data>
|
0
|
145 </outputs>
|
|
146 <tests>
|
|
147 <test>
|
|
148 </test>
|
|
149 </tests>
|
|
150 <help>
|
|
151 This tool is one of the PlantTribes' collection of automated modular analysis pipelines that utilize objective classifications of
|
1
|
152 complete protein sequences from sequenced plant genomes to perform comparative evolutionary studies. This tool performs orthologous
|
|
153 or paralogous ks analyses of coding sequences and amino acid sequences.
|
0
|
154
|
|
155 -----
|
|
156
|
|
157 **Options**
|
|
158
|
|
159 * **Required options**
|
|
160
|
|
161 - **Select gene family clusters** - Sequences classified into gene family clusters, optionally including corresponding coding sequences.
|
|
162 - **Orthogroups or gene families proteins scaffold** - PlantTribes scaffolds data.
|
|
163 - **Protein clustering method** - One of GFam (domain architecture based clustering), OrthoFinder (broadly defined clusters) or OrthoMCL (narrowly defined clusters).
|
|
164
|
|
165 * **Multiple sequence alignments options**
|
|
166
|
|
167 - **Select method for multiple sequence alignments** - Method used for setting multiple sequence alignments.
|
|
168 - **Input sequences include corresponding coding sequences?** - Selecting 'Yes' for this option requires that the selected input data format is 'ptorthocs'.
|
|
169 - **Construct orthogroup multiple codon alignments?** - Construct orthogroup multiple codon alignments.
|
|
170 - **Sequence type used in the phylogenetic inference** - Sequence type (dna or amino acid) used in the phylogenetic inference.
|
|
171 - **Use corresponding coding sequences?** - Selecting 'Yes' for this option requires that the selected input data format is 'ptorthocs' or this tool will produce an error.
|
|
172
|
|
173 * **Phylogenetic trees options**
|
|
174
|
|
175 - **Phylogenetic trees inference method** - Phylogenetic trees inference method.
|
|
176 - **Select rooting order configuration for rooting trees??** - If 'No' is selected, trees will be rooted using the most distant taxon present in the orthogroup.
|
|
177 - **Number of replicates for rapid bootstrap analysis and search for the best-scoring ML tree** - Number of replicates for rapid bootstrap analysis and search for the best-scoring ML tree.
|
|
178 - **Maximum number of sequences in orthogroup alignments** - Maximum number of sequences in orthogroup alignments.
|
|
179 - **Minimum number of sequences in orthogroup alignments** - Minimum number of sequences in orthogroup alignments.
|
|
180
|
|
181 * **MSA quality control options**
|
|
182
|
|
183 - **Remove sequences with gaps of** - Removes gappy sequences in alignments (i.e., 0.5 removes sequences with 50% gaps).
|
|
184 - **Select process used for gap trimming** - Either nucleotide based trimming or alignments are trimed using using trimAl's ML heuristic trimming approach.
|
|
185 - **Remove sites in alignments with gaps of** - If the process used for gap trimming is nucleotide based, this is the gap value used when removing gappy sites in alignments (i.e., 0.1 removes sites with 90% gaps).
|
|
186
|
|
187 </help>
|
|
188 <citations>
|
|
189 <citation type="bibtex">
|
|
190 @unpublished{None,
|
|
191 author = {Eric Wafula},
|
|
192 title = {None},
|
|
193 year = {None},
|
|
194 url = {https://github.com/dePamphilis/PlantTribes}
|
|
195 }
|
|
196 </citation>
|
|
197 <citation type="doi">10.1186/1471-2105-10-421</citation>
|
|
198 <citation type="doi">10.1093/molbev/msm088</citation>
|
|
199 <citation type="doi">10.18637/jss.v004.i02</citation>
|
|
200 </citations>
|
|
201 </tool>
|