0
|
1 <tool id="plant_tribes_phylogenomics_analysis" name="PhylogenomicsAnalysis" version="1.0.0">
|
|
2 <description>pipeline</description>
|
|
3 <requirements>
|
|
4 <requirement type="package" version="0.2">plant_tribes_phylogenomics_analysis</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[
|
3
|
15 #import os
|
|
16 #set src_dir = $os.path.join('phylogenomicsAnalysis_dir', 'orthogroups_fasta')
|
|
17 #set dest_dir = $output.extra_files_path
|
|
18 mkdir -p $dest_dir &&
|
0
|
19 PhylogenomicsAnalysis
|
7
|
20 --orthogroup_faa "$orthogroup_faa.extra_files_path"
|
0
|
21 --scaffold "$scaffold"
|
|
22 --method $method
|
|
23 #if str($options_type.options_type_selector) == 'advanced':
|
5
|
24 #if str($options_type.multiple_sequence_alignments_cond.multiple_sequence_alignments) == 'yes':
|
0
|
25 #set multiple_sequence_alignments_option_cond = $options_type.multiple_sequence_alignments_cond.multiple_sequence_alignments_option_cond
|
5
|
26 #set multiple_sequence_alignments_option = $multiple_sequence_alignments_option_cond.multiple_sequence_alignments_option
|
|
27 #set multiple_codon_alignments_cond = $options_type.multiple_sequence_alignments_cond.multiple_codon_alignments_cond
|
6
|
28 #set multiple_codon_alignments = $multiple_codon_alignments_cond.multiple_codon_alignments
|
7
|
29 #set use_corresponding_coding_sequences_cond = $multiple_codon_alignments_cond.use_corresponding_coding_sequences_cond
|
|
30 #set use_corresponding_coding_sequences = $use_corresponding_coding_sequences_cond.use_corresponding_coding_sequences
|
5
|
31 #if str($multiple_sequence_alignments_option) == 'create_alignments':
|
0
|
32 --create_alignments
|
5
|
33 #else if str($multiple_sequence_alignments_option) == 'add_alignments':
|
0
|
34 --add_alignments
|
5
|
35 #else if str($multiple_sequence_alignments_option) == 'pasta_alignments':
|
0
|
36 --pasta_alignments
|
|
37 --pasta_iter_limit $multiple_sequence_alignments_option_cond.pasta_iter_limit
|
|
38 #end if
|
5
|
39 #if str($multiple_codon_alignments) == 'yes':
|
0
|
40 --codon_alignments
|
7
|
41 #if str($use_corresponding_coding_sequences) == 'yes':
|
|
42 --orthogroup_fna
|
|
43 #end if
|
0
|
44 --sequence_type $multiple_codon_alignments_cond.sequence_type
|
|
45 #end if
|
|
46 #end if
|
|
47 #if str($options_type.phylogenetic_trees_cond.phylogenetic_trees) == 'yes':
|
|
48 #set tree_inference_cond = $options_type.phylogenetic_trees_cond.tree_inference_cond
|
|
49 #set tree_inference_method = $tree_inference_cond.tree_inference
|
|
50 --tree_inference $tree_inference_method
|
|
51 #if str($tree_inference_method) == 'raxml':
|
|
52 --rooting_order "$tree_inference_cond.rooting_order"
|
|
53 --bootstrap_replicates $tree_inference_cond.bootstrap_replicates
|
|
54 #end if
|
|
55 --max_orthogroup_size $options_type.phylogenetic_trees_cond.max_orthogroup_size
|
|
56 --min_orthogroup_size $options_type.phylogenetic_trees_cond.min_orthogroup_size
|
|
57 #end if
|
|
58 #if str($options_type.msa_quality_control_options_cond.msa_quality_control_options) == 'yes':
|
|
59 #set msa_quality_control_options_cond = $options_type.msa_quality_control_options_cond
|
|
60 #set remove_gappy_sequences_cond = $msa_quality_control_options_cond.remove_gappy_sequences_cond
|
|
61 #if str($remove_gappy_sequences_cond) == 'yes':
|
|
62 #set trim_type_cond = $remove_gappy_sequences_cond.trim_type_cond
|
|
63 --remove_sequences $remove_gappy_sequences_cond.remove_sequences
|
|
64 #if str($trim_type_cond.trim_type) == 'automated_trimming':
|
|
65 --automated_trimming
|
|
66 else:
|
|
67 --gap_trimming $trim_type_cond.gap_trimming
|
|
68 #end if
|
|
69 #end if
|
|
70 #end if
|
|
71 #end if
|
|
72 --scaffold_dir "${GALAXY_DATA_INDEX_DIR}/plant_tribes/scaffolds"
|
4
|
73 --num_threads \${GALAXY_SLOTS:-4}
|
|
74 && echo "Sequence alignments and corresponding phylogenies: `ls $src_dir | wc -l` files" > $output
|
|
75 && ls $src_dir >> $output
|
|
76 && mv $src_dir/* $dest_dir
|
0
|
77 ]]>
|
|
78 </command>
|
|
79 <inputs>
|
7
|
80 <param name="orthogroup_faa" format="txt" type="data" label="Select sequences classified into gene family clusters"/>
|
0
|
81 <param name="scaffold" type="select" label="Orthogroups or gene families proteins scaffold">
|
|
82 <options from_data_table="plant_tribes_scaffolds" />
|
|
83 <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."/>
|
|
84 </param>
|
|
85 <param name="method" type="select" label="Protein clustering method">
|
|
86 <option value="gfam" selected="true">GFam</option>
|
|
87 <option value="orthofinder">OrthoFinder</option>
|
|
88 <option value="orthomcl">OrthoMCL</option>
|
|
89 </param>
|
|
90 <conditional name="options_type">
|
|
91 <param name="options_type_selector" type="select" label="Options Configuration">
|
|
92 <option value="basic" selected="true">Basic</option>
|
|
93 <option value="advanced">Advanced</option>
|
|
94 </param>
|
|
95 <when value="basic" />
|
|
96 <when value="advanced">
|
|
97 <conditional name="multiple_sequence_alignments_cond">
|
5
|
98 <param name="multiple_sequence_alignments" type="select" label="Set multiple sequence alignments options?">
|
0
|
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 <conditional name="multiple_sequence_alignments_option_cond">
|
|
105 <param name="multiple_sequence_alignments_option" label="Select option" type="select" force_select="True">
|
|
106 <option value="create_alignments">Create orthogroup protein multiple sequence alignments including scaffold backbone proteins (MAFFT algorithm)</option>
|
|
107 <option value="add_alignments">Add unaligned orthogroup proteins to scaffold backbone multiple sequence alignments (MAFFT algorithm)</option>
|
|
108 <option value="pasta_alignments">Create orthogroup protein multiple sequence alignments including scaffold backbone proteins (PASTA algorithm)</option>
|
|
109 </param>
|
|
110 <when value="create_alignments"/>
|
|
111 <when value="add_alignments"/>
|
|
112 <when value="pasta_alignments">
|
|
113 <param name="pasta_iter_limit" type="integer" value="3" min="0" label="Maximum number of iteration that the PASTA algorithm will run"/>
|
|
114 </when>
|
|
115 </conditional>
|
|
116 <conditional name="multiple_codon_alignments_cond">
|
|
117 <param name="multiple_codon_alignments" label="Construct orthogroup multiple codon alignments?" type="select">
|
|
118 <option value="no" selected="True">No</option>
|
|
119 <option value="yes">Yes</option>
|
|
120 </param>
|
|
121 <when value="yes">
|
|
122 <param name="sequence_type" type="select" label="Sequence type used in the phylogenetic inference - (dna)">
|
|
123 <option value="protein" selected="true">Amino acid based</option>
|
|
124 <option value="dna">Nucleotide based</option>
|
|
125 </param>
|
7
|
126
|
|
127
|
|
128 <conditional name="use_corresponding_coding_sequences_cond">
|
|
129 <param name="use_corresponding_coding_sequences" type="select" label="Use corresponding coding sequences if available?" help="Ignored if 'No' was selected for the 'Create corresponding coding sequences?' option in the GeneFamilyClassifier tool">
|
|
130 <option value="no" selected="true">No</option>
|
|
131 <option value="yes">Yes</option>
|
|
132 </param>
|
|
133 <when value="no" />
|
|
134 <when value="yes" />
|
|
135 </conditional>
|
|
136
|
|
137
|
0
|
138 </when>
|
|
139 <when value="no"/>
|
|
140 </conditional>
|
|
141 </when>
|
|
142 </conditional>
|
|
143 <conditional name="phylogenetic_trees_cond">
|
|
144 <param name="phylogenetic_trees" type="select" label="Set phylogenetic trees options?">
|
|
145 <option value="no" selected="true">No</option>
|
|
146 <option value="yes">Yes</option>
|
|
147 </param>
|
|
148 <when value="no" />
|
|
149 <when value="yes">
|
|
150 <conditional name="tree_inference_cond">
|
|
151 <param name="tree_inference" type="select" label="Phylogenetic trees inference method">
|
|
152 <option value="raxml" selected="true">RAxML</option>
|
|
153 <option value="fasttree">FastTree</option>
|
|
154 </param>
|
|
155 <when value="raxml">
|
|
156 <param name="rooting_order" format="txt" type="data" label="Select file containing strings matching sequence identifiers of species for determining the most basal taxa in the orthogroups for rooting trees"/>
|
|
157 <param name="bootstrap_replicates" type="integer" value="100" min="0" label="Number of replicates for rapid bootstrap analysis and search for the best-scoring ML tree"/>
|
|
158 </when>
|
|
159 <when value="fasttree"/>
|
|
160 </conditional>
|
|
161 <param name="max_orthogroup_size" type="integer" value="100" min="0" label="Maximum number of sequences in orthogroup alignments"/>
|
|
162 <param name="min_orthogroup_size" type="integer" value="4" min="0" label="Minimum number of sequences in orthogroup alignments"/>
|
|
163 </when>
|
|
164 </conditional>
|
|
165 <conditional name="msa_quality_control_options_cond">
|
|
166 <param name="msa_quality_control_options" type="select" label="Set MSA quality control options?">
|
|
167 <option value="no" selected="true">No</option>
|
|
168 <option value="yes">Yes</option>
|
|
169 </param>
|
|
170 <when value="no" />
|
|
171 <when value="yes">
|
|
172 <conditional name="remove_gappy_sequences_cond">
|
|
173 <param name="remove_gappy_sequences" type="select" label="Remove gappy sequences in alignments?">
|
|
174 <option value="no" selected="true">No</option>
|
|
175 <option value="yes">Yes</option>
|
|
176 </param>
|
|
177 <when value="no"/>
|
|
178 <when value="yes">
|
|
179 <param name="remove_sequences" type="float" value="0.5" min="0" max="1" label="Remove sequences with gaps of" help="0.5 removes sequences with 50% gaps"/>
|
|
180 <conditional name="trim_type_cond">
|
|
181 <param name="trim_type" type="select" label="Select process used for gap trimming">
|
|
182 <option value="automated_trimming" selected="true">Trim alignments using trimAl's ML heuristic trimming approach</option>
|
|
183 <option value="gap_trimming">Nucleotide based</option>
|
|
184 </param>
|
|
185 <when value="automated_trimming"/>
|
|
186 <when value="gap_trimming">
|
|
187 <param name="gap_trimming" type="float" value="0.1" min="0" max="1.0" label="Remove sites in alignments with gaps of" help="0.1 removes sites with 90% gaps"/>
|
|
188 </when>
|
|
189 </conditional>
|
|
190 </when>
|
|
191 </conditional>
|
|
192 </when>
|
|
193 </conditional>
|
|
194 </when>
|
|
195 </conditional>
|
|
196 </inputs>
|
|
197 <outputs>
|
2
|
198 <data name="output" format="txt" label="Sequence alignments and corresponding phylogenies on ${on_string}"/>
|
0
|
199 </outputs>
|
|
200 <tests>
|
|
201 <test>
|
|
202 <param name="input" value="" ftype="fasta" />
|
|
203 <param name="prediction_method" value="transdecoder"/>
|
|
204 <param name="target_gene_family_assembly" value="no"/>
|
|
205 <param name="strand_specific" value="yes"/>
|
|
206 <param name="dereplicate" value="yes"/>
|
|
207 <param name="min_length" value="200"/>
|
|
208 <output_collection name="orthos" type="list">
|
|
209 </output_collection>
|
|
210 </test>
|
|
211 </tests>
|
|
212 <help>
|
|
213 This tool is one of the PlantTribes' collection of automated modular analysis pipelines that utilize objective classifications of
|
|
214 complete protein sequences from sequenced plant genomes to perform comparative evolutionary studies. It performs phylogenomic
|
|
215 analyses, comparing and analyzing the sequences of single genes, or a small number of genes, as well as many other types of data.
|
|
216
|
|
217 -----
|
|
218
|
|
219 **Options**
|
|
220
|
|
221 * **Orthogroups or gene families proteins scaffold** - PlantTribes scaffolds data.
|
|
222 * **Protein clustering method** - One of GFam, OrthoFinder or OrthoMCL.
|
|
223 * **Protein classification method** - One of blastp, HMMScan or both.
|
|
224 * **SuperOrthogroups MCL clustering** - blastp e-value matrix between all pairs of orthogroups.
|
|
225 * **Minumum single copy taxa required in orthogroup** - Used with "Minumum single copy taxa required in orthogroup" configuration only.
|
|
226 * **Minumum taxa required in single copy orthogroup** - Used with "Minumum single copy taxa required in orthogroup" configuration only.
|
|
227 * **Corresponding coding sequences (CDS) fasta file** - Used only when selecting "Create orthogroup fasta files?".
|
|
228
|
|
229 </help>
|
|
230 <citations>
|
|
231 <citation type="bibtex">
|
|
232 @unpublished{None,
|
|
233 author = {None},
|
|
234 title = {None},
|
|
235 year = {None},
|
|
236 eprint = {None},
|
|
237 url = {None}
|
|
238 }</citation>
|
|
239 </citations>
|
|
240 </tool>
|