6
|
1 <tool id="plant_tribes_gene_family_aligner" name="GeneFamilyAligner" version="@WRAPPER_VERSION@.3.0">
|
0
|
2 <description>aligns integrated orthologous gene family clusters</description>
|
|
3 <macros>
|
|
4 <import>macros.xml</import>
|
|
5 </macros>
|
6
|
6 <requirements>
|
|
7 <requirement type="package" version="1.0.3">plant_tribes_gene_family_aligner</requirement>
|
|
8 </requirements>
|
0
|
9 <command detect_errors="exit_code"><![CDATA[
|
|
10 #set alignment_method = $alignment_method_cond.alignment_method
|
6
|
11 #set input_dir = 'input_dir'
|
|
12 mkdir $input_dir &&
|
|
13 #for $i in $input:
|
|
14 #set filename = $i.file_name
|
|
15 #set name = $i.name
|
|
16 ln -s $filename $input_dir/$name &&
|
|
17 #end for
|
|
18 GeneFamilyAligner
|
0
|
19 --alignment_method $alignment_method
|
|
20 #if str($alignment_method) == 'pasta':
|
|
21 --pasta_script_path '$__tool_directory__/run_pasta.py'
|
|
22 --pasta_iter_limit $alignment_method_cond.pasta_iter_limit
|
|
23 #end if
|
|
24 --num_threads \${GALAXY_SLOTS:-4}
|
6
|
25 --orthogroup_faa '$input_dir'
|
|
26 #if str($codon_alignments) == 'yes':
|
|
27 --codon_alignments
|
0
|
28 #end if
|
|
29 #set remove_gappy_sequences = $remove_gappy_sequences_cond.remove_gappy_sequences
|
|
30 #if str($remove_gappy_sequences) == 'yes':
|
|
31 #set trim_type_cond = $remove_gappy_sequences_cond.trim_type_cond
|
|
32 #set trim_type = $trim_type_cond.trim_type
|
|
33 #if str($trim_type) == 'gap_trimming' and str($trim_type_cond.gap_trimming):
|
|
34 --gap_trimming $trim_type_cond.gap_trimming
|
|
35 #else:
|
|
36 ## str($trim_type) == 'automated_trimming'
|
6
|
37 --automated_trimming
|
0
|
38 #end if
|
|
39 #set remove_sequences_with_gaps_cond = $remove_gappy_sequences_cond.remove_sequences_with_gaps_cond
|
|
40 #set remove_sequences_with_gaps = $remove_sequences_with_gaps_cond.remove_sequences_with_gaps
|
|
41 #if str($remove_sequences_with_gaps) == 'yes':
|
|
42 #if str($remove_sequences_with_gaps_cond.remove_sequences_with_gaps_of):
|
|
43 --remove_sequences $remove_sequences_with_gaps_cond.remove_sequences_with_gaps_of
|
|
44 #end if
|
|
45 #if str($remove_sequences_with_gaps_cond.iterative_realignment):
|
|
46 --iterative_realignment $remove_sequences_with_gaps_cond.iterative_realignment
|
|
47 #end if
|
|
48 #end if
|
|
49 #end if
|
7
|
50 &>gene_family_aligner_log.txt;
|
|
51 if [[ $? -ne 0 ]]; then
|
|
52 find geneFamilyAlignments_dir -type d -maxdepth 1 -exec cp gene_family_aligner_log.txt {} \;
|
|
53 exit 1;
|
|
54 fi
|
0
|
55 ]]></command>
|
|
56 <inputs>
|
6
|
57 <param name="input" format="fasta" type="data_collection" collection_type="list" label="Integrated orthogroup fasta files" />
|
|
58 <conditional name="alignment_method_cond">
|
|
59 <param name="alignment_method" type="select" force_select="true" label="Multiple sequence alignment method">
|
|
60 <option value="mafft" selected="true">MAFFT</option>
|
|
61 <option value="pasta">PASTA</option>
|
0
|
62 </param>
|
6
|
63 <when value="mafft" />
|
|
64 <when value="pasta">
|
|
65 <param name="pasta_iter_limit" type="integer" value="3" min="1" label="PASTA iteration limit" />
|
0
|
66 </when>
|
|
67 </conditional>
|
6
|
68 <param name="codon_alignments" type="select" label="Codon alignments">
|
5
|
69 <option value="no" selected="true">No</option>
|
|
70 <option value="yes">Yes</option>
|
|
71 </param>
|
6
|
72 <conditional name="remove_gappy_sequences_cond">
|
|
73 <param name="remove_gappy_sequences" type="select" label="Alignment post-processing configuration">
|
|
74 <option value="no" selected="true">No</option>
|
|
75 <option value="yes">Yes</option>
|
|
76 </param>
|
|
77 <when value="no" />
|
|
78 <when value="yes">
|
|
79 <conditional name="trim_type_cond">
|
|
80 <param name="trim_type" type="select" label="Trimming method">
|
|
81 <option value="gap_trimming" selected="true">Gap score based trimming</option>
|
|
82 <option value="automated_trimming">Automated heuristic trimming</option>
|
|
83 </param>
|
|
84 <when value="gap_trimming">
|
|
85 <param name="gap_trimming" type="float" optional="true" min="0" max="1.0" label="Gap score" />
|
|
86 </when>
|
|
87 <when value="automated_trimming" />
|
|
88 </conditional>
|
|
89 <conditional name="remove_sequences_with_gaps_cond">
|
|
90 <param name="remove_sequences_with_gaps" type="select" label="Remove sequences">
|
|
91 <option value="no" selected="true">No</option>
|
|
92 <option value="yes">Yes</option>
|
|
93 </param>
|
|
94 <when value="no" />
|
|
95 <when value="yes">
|
|
96 <param name="remove_sequences_with_gaps_of" type="float" optional="true" min="0" max="1" label="Coverage score" />
|
|
97 <param name="iterative_realignment" type="integer" optional="true" min="0" label="Realignment iteration limit" />
|
|
98 </when>
|
|
99 </conditional>
|
|
100 <param name="output_pristine_alignments" type="select" display="radio" label="Output primary and intermediate alignments?" help="In addition to trimmed/filtered alignments">
|
|
101 <option value="no" selected="true">No</option>
|
|
102 <option value="yes">Yes</option>
|
|
103 </param>
|
|
104 </when>
|
|
105 </conditional>
|
0
|
106 </inputs>
|
|
107 <outputs>
|
6
|
108 <collection name="primary_faa" type="list" label="${tool.name} (primary orthogroup protein alignments) on ${on_string}">
|
|
109 <discover_datasets pattern="__name__" directory="geneFamilyAlignments_dir/orthogroups_aln_faa" format="fasta" />
|
|
110 <filter>remove_gappy_sequences_cond['remove_gappy_sequences'] == 'no'</filter>
|
|
111 </collection>
|
|
112 <collection name="primary_fna" type="list" label="${tool.name} (primary orthogroup codon alignments) on ${on_string}">
|
|
113 <discover_datasets pattern="__name__" directory="geneFamilyAlignments_dir/orthogroups_aln_fna" format="fasta" />
|
|
114 <filter>codon_alignments == 'yes' and remove_gappy_sequences_cond['remove_gappy_sequences'] == 'no'</filter>
|
|
115 </collection>
|
|
116 <collection name="pristine" type="list" label="${tool.name} (intermediate alignments) on ${on_string}">
|
|
117 <discover_datasets pattern="__name__" directory="geneFamilyAlignments_dir/other_orthogroups_aln" format="fasta" />
|
|
118 <filter>remove_gappy_sequences_cond['remove_gappy_sequences'] == 'yes' and remove_gappy_sequences_cond['output_pristine_alignments'] == 'yes'</filter>
|
2
|
119 </collection>
|
6
|
120 <collection name="trimmed_faa" type="list" label="${tool.name} (trimmed orthogroup protein alignments) on ${on_string}">
|
|
121 <discover_datasets pattern="__name__" directory="geneFamilyAlignments_dir/orthogroups_trimmed_aln_faa" format="fasta" />
|
|
122 <filter>remove_gappy_sequences_cond['remove_gappy_sequences'] == 'yes' and remove_gappy_sequences_cond['remove_sequences_with_gaps_cond']['remove_sequences_with_gaps'] == 'no'</filter>
|
|
123 </collection>
|
|
124 <collection name="trimmed_fna" type="list" label="${tool.name} (trimmed orthogroup codon alignments) on ${on_string}">
|
|
125 <discover_datasets pattern="__name__" directory="geneFamilyAlignments_dir/orthogroups_trimmed_aln_fna" format="fasta" />
|
|
126 <filter>codon_alignments == 'yes' and remove_gappy_sequences_cond['remove_gappy_sequences'] == 'yes' and remove_gappy_sequences_cond['remove_sequences_with_gaps_cond']['remove_sequences_with_gaps'] == 'no'</filter>
|
|
127 </collection>
|
|
128 <collection name="filtered_faa" type="list" label="${tool.name} (filtered orthogroup protein alignments) on ${on_string}">
|
|
129 <discover_datasets pattern="__name__" directory="geneFamilyAlignments_dir/orthogroups_filtered_aln_faa" format="fasta" />
|
|
130 <filter>remove_gappy_sequences_cond['remove_gappy_sequences'] == 'yes' and remove_gappy_sequences_cond['remove_sequences_with_gaps_cond']['remove_sequences_with_gaps'] == 'yes'</filter>
|
|
131 </collection>
|
|
132 <collection name="filtered_fna" type="list" label="${tool.name} (filtered orthogroup codon alignments) on ${on_string}">
|
|
133 <discover_datasets pattern="__name__" directory="geneFamilyAlignments_dir/orthogroups_filtered_aln_fna" format="fasta" />
|
|
134 <filter>codon_alignments == 'yes' and remove_gappy_sequences_cond['remove_gappy_sequences'] == 'yes' and remove_gappy_sequences_cond['remove_sequences_with_gaps_cond']['remove_sequences_with_gaps'] == 'yes'</filter>
|
|
135 </collection>
|
0
|
136 </outputs>
|
|
137 <tests>
|
|
138 <test>
|
6
|
139 <param name="input">
|
|
140 <collection type="list">
|
|
141 <element name="3722.faa" value="3722.faa"/>
|
|
142 <element name="3722.fna" value="3722.fna"/>
|
|
143 <element name="38889.faa" value="38889.faa"/>
|
|
144 <element name="38889.fna" value="38889.fna"/>
|
|
145 <element name="39614.faa" value="39614.faa"/>
|
|
146 <element name="39614.fna" value="39614.fna"/>
|
|
147 </collection>
|
|
148 </param>
|
|
149 <param name="codon_alignments" value="yes"/>
|
|
150 <output_collection name="primary_faa" type="list">
|
|
151 <element name="3722.faa.aln" file="3722.faa.aln" ftype="fasta"/>
|
|
152 <element name="38889.faa.aln" file="38889.faa.aln" ftype="fasta"/>
|
|
153 <element name="39614.faa.aln" file="39614.faa.aln" ftype="fasta"/>
|
|
154 </output_collection>
|
|
155 <output_collection name="primary_fna" type="list">
|
|
156 <element name="3722.fna.aln" file="3722.fna.aln" ftype="fasta"/>
|
|
157 <element name="38889.fna.aln" file="38889.fna.aln" ftype="fasta"/>
|
|
158 <element name="39614.fna.aln" file="39614.fna.aln" ftype="fasta"/>
|
|
159 </output_collection>
|
0
|
160 </test>
|
|
161 </tests>
|
|
162 <help>
|
|
163 This tool is one of the PlantTribes collection of automated modular analysis pipelines for comparative and evolutionary
|
|
164 analyses of genome-scale gene families and transcriptomes. This tool estimates protein and codon multiple sequence alignments
|
|
165 of integrated orthologous gene family fasta files produced by the GeneFamilyIntegrator tool.
|
|
166
|
|
167 -----
|
|
168
|
|
169 **Required options**
|
|
170
|
6
|
171 * **Integrated orthogroup fasta files** - orthogroup fasta files produced by the GeneFamilyIntegrator tool selected from your history. Depending on how the GeneFamilyClassifier tool was executed, these could either be proteins or proteins and their corresponding coding sequences.
|
0
|
172
|
|
173 * **Multiple sequence alignment method** - method for estimating orthogroup multiple sequence alignments. PlantTribes estimates alignments using either MAFFT's L-INS-i algorithm or the divide and conquer approach implemented in the PASTA pipeline for large alignments.
|
|
174
|
|
175 - **PASTA iteration limit** - number of PASTA iterations. By default, PASTA performs 3 iterations.
|
|
176
|
6
|
177 * **Codon alignments** - select 'Yes' to create codon multiple sequence alignments. This option requires both protein and their corresponding coding sequence orthogroup fasta files to be present in the GeneFamilyAligner input data that was produced by the GeneFamilyIntegrator.
|
0
|
178
|
|
179 **Other options**
|
|
180
|
|
181 * **Alignment post-processing configuration** - select 'Yes' to enable multiple sequence alignment post-processing configuration options.
|
|
182
|
|
183 - **Trimming method** - multiple sequence alignment trimming method. PlantTribes trims alignments using two automated approaches implemented in trimAl. Gap score based trimming removes alignments sites that do not achieve a user specified gap score. For example, a setting of 0.1 removes sites that have gaps in 90% or more of the sequences in the multiple sequence alignment. The automated heuristic trimming approach determines the best automated trimAl method to trim a given alignment as described in the trimAl tutorial `trimAl`_.
|
|
184
|
|
185 - **Gap score** - the fraction of sequences with gap allowed in an alignment site. The score is restricted to the range 0.0 - 1.0. Zero value has no effect.
|
|
186
|
|
187 - **Remove sequences** - select 'Yes' to remove sequences in multiple sequence alignments that do not achieve a user specified alignment coverage score. For example, a setting of 0.7 removes sequences with more than 30% gaps in the alignment. This option requires one of the trimming methods to be set.
|
|
188
|
|
189 - **Coverage score** - minimum fraction of sites without gaps for a sequence in a multiple sequence alignment. The score is restricted to the range 0.0 - 1.0. Zero value has no effect.
|
|
190
|
|
191 - **Realignment iteration limit** - number of iterations to perform trimming, removal of sequences, and realignment of orthogroup sequences. Zero value has no effect.
|
|
192
|
6
|
193 * **Output primary and intermediate alignments** - selecting 'Yes' will produce a dataset collection of primary and intermediate alignments, the elements of which can be viewed with viaula tools, in addition to the final trimmed and/or filtered alignments dataset collection.
|
2
|
194
|
0
|
195 .. _trimAl: http://trimal.cgenomics.org
|
|
196
|
|
197 </help>
|
|
198 <citations>
|
|
199 <expand macro="citation1" />
|
|
200 <citation type="bibtex">
|
|
201 @article{Wall2008,
|
|
202 journal = {Nucleic Acids Research},
|
|
203 author = {2. Wall PK, Leebens-Mack J, Muller KF, Field D, Altman NS},
|
|
204 title = {PlantTribes: a gene and gene family resource for comparative genomics in plants},
|
|
205 year = {2008},
|
|
206 volume = {36},
|
|
207 number = {suppl 1},
|
|
208 pages = {D970-D976},}
|
|
209 </citation>
|
|
210 <citation type="bibtex">
|
|
211 @article{Katoh2013,
|
|
212 journal = {Molecular biology and evolution},
|
|
213 author = {3. Katoh K, Standley DM},
|
|
214 title = {MAFFT multiple sequence alignment software version 7: improvements in performance and usability},
|
|
215 year = {2013},
|
|
216 volume = {30},
|
|
217 number = {4},
|
|
218 pages = {772-780},}
|
|
219 </citation>
|
|
220 <citation type="bibtex">
|
|
221 @article{Mirarab2014,
|
|
222 journal = {Research in Computational Molecular Biology (RECOMB)},
|
|
223 author = {4. Mirarab S, Nguyen N, Warnow T},
|
|
224 title = {PASTA: Ultra-Large Multiple Sequence Alignment. In R. Sharan (Ed.)},
|
|
225 year = {2014},
|
|
226 pages = {177–191},
|
|
227 url = {https://github.com/smirarab/pasta},}
|
|
228 </citation>
|
|
229 <citation type="bibtex">
|
|
230 @article{Capella-Gutierrez2009,
|
|
231 journal = {Bioinformatics,},
|
|
232 author = {5. Capella-Gutierrez S, Silla-Martínez JM, Gabaldón T},
|
|
233 title = {trimAl: a tool for automated alignment trimming in large-scale phylogenetic analyses},
|
|
234 year = {2009},
|
|
235 volume = {25},
|
|
236 number = {15},
|
|
237 pages = {1972-1973},}
|
|
238 </citation>
|
3
|
239 <citation type="bibtex">
|
|
240 @article{Yachdav2016,
|
|
241 journal = {Bioinformatics,},
|
|
242 author = {6. Yachdav G, Wilzbach S, Rauscher B, Sheridan R, Sillitoe I, Procter J, Lewis SE, Rost B, Goldberg T},
|
|
243 title = {MSAViewer: interactive JavaScript visualization of multiple sequence alignments},
|
|
244 year = {2016},
|
|
245 volume = {32},
|
|
246 number = {22},
|
|
247 pages = {3501-3503},}
|
|
248 </citation>
|
|
249 <citation type="bibtex">
|
|
250 @article{Clamp2004,
|
|
251 journal = {Bioinformatics,},
|
|
252 author = {7. Clamp M, Cuff J, Searle SM, Barton GJ},
|
|
253 title = {The jalview java alignment editor},
|
|
254 year = {2004},
|
|
255 volume = {20},
|
|
256 number = {3},
|
|
257 pages = {426-427},}
|
|
258 </citation>
|
0
|
259 </citations>
|
|
260 </tool>
|