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