43
|
1 <tool id="plant_tribes_gene_family_aligner" name="GeneFamilyAligner" version="@WRAPPER_VERSION@.3.0">
|
16
|
2 <description>aligns integrated orthologous gene family clusters</description>
|
0
|
3 <macros>
|
|
4 <import>macros.xml</import>
|
|
5 </macros>
|
|
6 <expand macro="requirements_gene_family_aligner" />
|
36
|
7 <command detect_errors="exit_code"><![CDATA[
|
|
8 #set input_format = $input_format_cond.input_format
|
|
9 #set alignment_method_cond = $input_format_cond.alignment_method_cond
|
|
10 #set alignment_method = $alignment_method_cond.alignment_method
|
43
|
11 GeneFamilyAligner
|
36
|
12 --alignment_method $alignment_method
|
|
13 #if str($alignment_method) == 'pasta':
|
|
14 --pasta_script_path '$__tool_directory__/run_pasta.py'
|
|
15 --pasta_iter_limit $alignment_method_cond.pasta_iter_limit
|
|
16 #end if
|
|
17 --num_threads \${GALAXY_SLOTS:-4}
|
|
18 #if str($input_format) == 'ptortho':
|
|
19 --orthogroup_faa '$input_format_cond.input_ptortho.extra_files_path'
|
|
20 #else:
|
|
21 ## str($input_format) == 'ptorthocs'
|
|
22 --orthogroup_faa '$input_format_cond.input_ptorthocs.extra_files_path'
|
|
23 #if str($input_format_cond.codon_alignments) == 'yes':
|
43
|
24 --codon_alignments
|
36
|
25 #end if
|
|
26 #end if
|
|
27 #set remove_gappy_sequences = $remove_gappy_sequences_cond.remove_gappy_sequences
|
|
28 #if str($remove_gappy_sequences) == 'yes':
|
|
29 #set trim_type_cond = $remove_gappy_sequences_cond.trim_type_cond
|
|
30 #set trim_type = $trim_type_cond.trim_type
|
|
31 #if str($trim_type) == 'gap_trimming' and str($trim_type_cond.gap_trimming):
|
|
32 --gap_trimming $trim_type_cond.gap_trimming
|
|
33 #else:
|
|
34 ## str($trim_type) == 'automated_trimming'
|
43
|
35 --automated_trimming
|
36
|
36 #end if
|
|
37 #set remove_sequences_with_gaps_cond = $remove_gappy_sequences_cond.remove_sequences_with_gaps_cond
|
|
38 #set remove_sequences_with_gaps = $remove_sequences_with_gaps_cond.remove_sequences_with_gaps
|
|
39 #if str($remove_sequences_with_gaps) == 'yes':
|
|
40 #if str($remove_sequences_with_gaps_cond.remove_sequences_with_gaps_of):
|
|
41 --remove_sequences $remove_sequences_with_gaps_cond.remove_sequences_with_gaps_of
|
|
42 #end if
|
|
43 #if str($remove_sequences_with_gaps_cond.iterative_realignment):
|
|
44 --iterative_realignment $remove_sequences_with_gaps_cond.iterative_realignment
|
|
45 #end if
|
|
46 #end if
|
38
|
47 #end if
|
36
|
48 ]]></command>
|
0
|
49 <inputs>
|
|
50 <conditional name="input_format_cond">
|
16
|
51 <param name="input_format" type="select" label="Classified orthogroup fasta files">
|
|
52 <option value="ptortho">Proteins orthogroup fasta files</option>
|
|
53 <option value="ptorthocs">Protein and coding sequences orthogroup fasta files</option>
|
0
|
54 </param>
|
|
55 <when value="ptortho">
|
16
|
56 <param name="input_ptortho" format="ptortho" type="data" label="Proteins orthogroup fasta files">
|
19
|
57 <validator type="empty_extra_files_path" />
|
14
|
58 </param>
|
0
|
59 <expand macro="cond_alignment_method" />
|
|
60 </when>
|
|
61 <when value="ptorthocs">
|
16
|
62 <param name="input_ptorthocs" format="ptorthocs" type="data" label="Protein and coding sequences orthogroup fasta files">
|
19
|
63 <validator type="empty_extra_files_path" />
|
14
|
64 </param>
|
0
|
65 <expand macro="cond_alignment_method" />
|
|
66 <expand macro="param_codon_alignments" />
|
|
67 </when>
|
|
68 </conditional>
|
12
|
69 <expand macro="cond_remove_gappy_sequences" />
|
0
|
70 </inputs>
|
|
71 <outputs>
|
47
|
72 <collection name="primary_faa" type="list" label="${tool.name} (primary orthogroup protein alignments) on ${on_string}">
|
|
73 <discover_datasets pattern="__name__" directory="geneFamilyAlignments_dir/orthogroups_aln_faa" format="fasta" />
|
43
|
74 <filter>remove_gappy_sequences_cond['remove_gappy_sequences'] == 'no'</filter>
|
|
75 </collection>
|
47
|
76 <collection name="primary_fna" type="list" label="${tool.name} (primary orthogroup codon alignments) on ${on_string}">
|
|
77 <discover_datasets pattern="__name__" directory="geneFamilyAlignments_dir/orthogroups_aln_fna" format="fasta" />
|
|
78 <filter>input_format_cond['input_format'] == 'ptorthocs' and input_format_cond['codon_alignments'] == 'yes' and remove_gappy_sequences_cond['remove_gappy_sequences'] == 'no'</filter>
|
|
79 </collection>
|
|
80 <collection name="trimmed_faa" type="list" label="${tool.name} (trimmed orthogroup protein alignments) on ${on_string}">
|
|
81 <discover_datasets pattern="__name__" directory="geneFamilyAlignments_dir/orthogroups_trimmed_aln_faa" format="fasta" />
|
43
|
82 <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>
|
|
83 </collection>
|
47
|
84 <collection name="primary_trimmed" type="list" label="${tool.name} (primary orthogroup protein alignments) on ${on_string}">
|
45
|
85 <discover_datasets pattern="__name__" directory="geneFamilyAlignments_dir/other_orthogroups_aln" format="fasta" />
|
47
|
86 <filter>remove_gappy_sequences_cond['remove_gappy_sequences'] == 'yes' and remove_gappy_sequences_cond['remove_sequences_with_gaps_cond']['remove_sequences_with_gaps'] == 'no' and remove_gappy_sequences_cond['output_pristine_alignments'] == 'yes'</filter>
|
|
87 </collection>
|
|
88 <collection name="trimmed_fna" type="list" label="${tool.name} (trimmed orthogroup codon alignments) on ${on_string}">
|
|
89 <discover_datasets pattern="__name__" directory="geneFamilyAlignments_dir/orthogroups_trimmed_aln_fna" format="fasta" />
|
|
90 <filter>input_format_cond['input_format'] == 'ptorthocs' and input_format_cond['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>
|
43
|
91 </collection>
|
47
|
92 <collection name="primary_trimmed" type="list" label="${tool.name} (primary orthogroup protein and codon alignments) on ${on_string}">
|
|
93 <discover_datasets pattern="__name__" directory="geneFamilyAlignments_dir/other_orthogroups_aln" format="fasta" />
|
|
94 <filter>input_format_cond['input_format'] == 'ptorthocs' and input_format_cond['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' and remove_gappy_sequences_cond['output_pristine_alignments'] == 'yes'</filter>
|
|
95 </collection>
|
|
96 <collection name="filtered" type="list" label="${tool.name} (filtered orthogroup protein alignments) on ${on_string}">
|
|
97 <discover_datasets pattern="__name__" directory="geneFamilyAlignments_dir/orthogroups_filtered_aln_faa" format="fasta" />
|
43
|
98 <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>
|
|
99 </collection>
|
|
100 <collection name="primary_filtered" type="list" label="${tool.name} (primary and trimmed proteins orthogroup alignments) on ${on_string}">
|
45
|
101 <discover_datasets pattern="__name__" directory="geneFamilyAlignments_dir/other_orthogroups_aln" format="fasta" />
|
47
|
102 <filter>remove_gappy_sequences_cond['remove_gappy_sequences'] == 'yes' and remove_gappy_sequences_cond['remove_sequences_with_gaps_cond']['remove_sequences_with_gaps'] == 'yes' and remove_gappy_sequences_cond['output_pristine_alignments'] == 'yes'</filter>
|
|
103 </collection>
|
|
104 <collection name="filtered_fna" type="list" label="${tool.name} (filtered orthogroup codon alignments) on ${on_string}">
|
|
105 <discover_datasets pattern="__name__" directory="geneFamilyAlignments_dir/orthogroups_filtered_aln_fna" format="fasta" />
|
|
106 <filter>input_format_cond['input_format'] == 'ptorthocs' and input_format_cond['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>
|
38
|
107 </collection>
|
0
|
108 </outputs>
|
|
109 <tests>
|
|
110 <test>
|
|
111 </test>
|
|
112 </tests>
|
|
113 <help>
|
|
114 This tool is one of the PlantTribes collection of automated modular analysis pipelines for comparative and evolutionary
|
16
|
115 analyses of genome-scale gene families and transcriptomes. This tool estimates protein and codon multiple sequence alignments
|
|
116 of integrated orthologous gene family fasta files produced by the GeneFamilyIntegrator tool.
|
0
|
117
|
|
118 -----
|
|
119
|
|
120 **Required options**
|
|
121
|
28
|
122 * **Classified orthogroup fasta files** - orthogroup fasta files produced by the GeneFamilyClassifier 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
|
123
|
16
|
124 * **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.
|
0
|
125
|
20
|
126 - **PASTA iteration limit** - number of PASTA iterations. By default, PASTA performs 3 iterations.
|
0
|
127
|
23
|
128 * **Codon alignments** - select 'Yes' to create codon multiple sequence alignments. This option requires protein and their corresponding coding sequences to be provided as input data.
|
|
129
|
0
|
130 **Other options**
|
|
131
|
16
|
132 * **Alignment post-processing configuration** - select 'Yes' to enable multiple sequence alignment post-processing configuration options.
|
0
|
133
|
16
|
134 - **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`_.
|
0
|
135
|
22
|
136 - **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.
|
16
|
137
|
|
138 - **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.
|
|
139
|
22
|
140 - **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.
|
16
|
141
|
22
|
142 - **Realignment iteration limit** - number of iterations to perform trimming, removal of sequences, and realignment of orthogroup sequences. Zero value has no effect.
|
0
|
143
|
38
|
144 * **Output additional dataset collection of files** - selecting 'Yes' will produce an additional output dataset collection whose elements are copies of the directories of files (these elements can be viewed with visualization tools).
|
|
145
|
18
|
146 .. _trimAl: http://trimal.cgenomics.org
|
|
147
|
0
|
148 </help>
|
|
149 <citations>
|
|
150 <expand macro="citation1" />
|
16
|
151 <citation type="bibtex">
|
|
152 @article{Wall2008,
|
|
153 journal = {Nucleic Acids Research},
|
|
154 author = {2. Wall PK, Leebens-Mack J, Muller KF, Field D, Altman NS},
|
|
155 title = {PlantTribes: a gene and gene family resource for comparative genomics in plants},
|
|
156 year = {2008},
|
|
157 volume = {36},
|
|
158 number = {suppl 1},
|
|
159 pages = {D970-D976},}
|
|
160 </citation>
|
|
161 <citation type="bibtex">
|
|
162 @article{Katoh2013,
|
|
163 journal = {Molecular biology and evolution},
|
|
164 author = {3. Katoh K, Standley DM},
|
|
165 title = {MAFFT multiple sequence alignment software version 7: improvements in performance and usability},
|
|
166 year = {2013},
|
|
167 volume = {30},
|
|
168 number = {4},
|
|
169 pages = {772-780},}
|
|
170 </citation>
|
|
171 <citation type="bibtex">
|
|
172 @article{Mirarab2014,
|
|
173 journal = {Research in Computational Molecular Biology (RECOMB)},
|
|
174 author = {4. Mirarab S, Nguyen N, Warnow T},
|
|
175 title = {PASTA: Ultra-Large Multiple Sequence Alignment. In R. Sharan (Ed.)},
|
|
176 year = {2014},
|
|
177 pages = {177–191},
|
|
178 url = {https://github.com/smirarab/pasta},}
|
|
179 </citation>
|
|
180 <citation type="bibtex">
|
|
181 @article{Capella-Gutierrez2009,
|
|
182 journal = {Bioinformatics,},
|
|
183 author = {5. Capella-Gutierrez S, Silla-Martínez JM, Gabaldón T},
|
|
184 title = {trimAl: a tool for automated alignment trimming in large-scale phylogenetic analyses},
|
|
185 year = {2009},
|
|
186 volume = {25},
|
|
187 number = {15},
|
|
188 pages = {1972-1973},}
|
|
189 </citation>
|
40
|
190 <citation type="bibtex">
|
|
191 @article{Yachdav2016,
|
|
192 journal = {Bioinformatics,},
|
|
193 author = {6. Yachdav G, Wilzbach S, Rauscher B, Sheridan R, Sillitoe I, Procter J, Lewis SE, Rost B, Goldberg T},
|
|
194 title = {MSAViewer: interactive JavaScript visualization of multiple sequence alignments},
|
|
195 year = {2016},
|
|
196 volume = {32},
|
|
197 number = {22},
|
|
198 pages = {3501-3503},}
|
|
199 </citation>
|
|
200 <citation type="bibtex">
|
|
201 @article{Clamp2004,
|
|
202 journal = {Bioinformatics,},
|
|
203 author = {7. Clamp M, Cuff J, Searle SM, Barton GJ},
|
|
204 title = {The jalview java alignment editor},
|
|
205 year = {2004},
|
|
206 volume = {20},
|
|
207 number = {3},
|
|
208 pages = {426-427},}
|
|
209 </citation>
|
0
|
210 </citations>
|
|
211 </tool>
|