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