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="trimmed_faa" type="list" label="${tool.name} (trimmed orthogroup protein alignments) on ${on_string}">
|
|
77 <discover_datasets pattern="__name__" directory="geneFamilyAlignments_dir/orthogroups_trimmed_aln_faa" format="fasta" />
|
43
|
78 <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>
|
|
79 </collection>
|
49
|
80 <collection name="filtered_faa" type="list" label="${tool.name} (filtered orthogroup protein alignments) on ${on_string}">
|
|
81 <discover_datasets pattern="__name__" directory="geneFamilyAlignments_dir/orthogroups_filtered_aln_faa" format="fasta" />
|
|
82 <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>
|
|
83 </collection>
|
52
|
84 <collection name="pristine_faa" type="list" label="${tool.name} (primary orthogroup protein alignments) on ${on_string}">
|
49
|
85 <discover_datasets pattern="__name__" directory="geneFamilyAlignments_dir/other_orthogroups_aln" format="fasta" />
|
52
|
86 <filter>input_format_cond['input_format'] == 'ptortho' and remove_gappy_sequences_cond['remove_gappy_sequences'] == 'yes' and remove_gappy_sequences_cond['output_pristine_alignments'] == 'yes'</filter>
|
49
|
87 </collection>
|
|
88 <collection name="primary_fna" type="list" label="${tool.name} (primary orthogroup codon alignments) on ${on_string}">
|
|
89 <discover_datasets pattern="__name__" directory="geneFamilyAlignments_dir/orthogroups_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'] == 'no'</filter>
|
47
|
91 </collection>
|
|
92 <collection name="trimmed_fna" type="list" label="${tool.name} (trimmed orthogroup codon alignments) on ${on_string}">
|
|
93 <discover_datasets pattern="__name__" directory="geneFamilyAlignments_dir/orthogroups_trimmed_aln_fna" 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'</filter>
|
43
|
95 </collection>
|
47
|
96 <collection name="filtered_fna" type="list" label="${tool.name} (filtered orthogroup codon alignments) on ${on_string}">
|
|
97 <discover_datasets pattern="__name__" directory="geneFamilyAlignments_dir/orthogroups_filtered_aln_fna" format="fasta" />
|
|
98 <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
|
99 </collection>
|
52
|
100 <collection name="pristine_fna" type="list" label="${tool.name} (primary orthogroup protein and codon alignments) on ${on_string}">
|
49
|
101 <discover_datasets pattern="__name__" directory="geneFamilyAlignments_dir/other_orthogroups_aln" format="fasta" />
|
52
|
102 <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['output_pristine_alignments'] == 'yes'</filter>
|
49
|
103 </collection>
|
0
|
104 </outputs>
|
|
105 <tests>
|
|
106 <test>
|
|
107 </test>
|
|
108 </tests>
|
|
109 <help>
|
|
110 This tool is one of the PlantTribes collection of automated modular analysis pipelines for comparative and evolutionary
|
16
|
111 analyses of genome-scale gene families and transcriptomes. This tool estimates protein and codon multiple sequence alignments
|
|
112 of integrated orthologous gene family fasta files produced by the GeneFamilyIntegrator tool.
|
0
|
113
|
|
114 -----
|
|
115
|
|
116 **Required options**
|
|
117
|
28
|
118 * **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
|
119
|
16
|
120 * **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
|
121
|
20
|
122 - **PASTA iteration limit** - number of PASTA iterations. By default, PASTA performs 3 iterations.
|
0
|
123
|
23
|
124 * **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.
|
|
125
|
0
|
126 **Other options**
|
|
127
|
16
|
128 * **Alignment post-processing configuration** - select 'Yes' to enable multiple sequence alignment post-processing configuration options.
|
0
|
129
|
16
|
130 - **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
|
131
|
22
|
132 - **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
|
133
|
|
134 - **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.
|
|
135
|
22
|
136 - **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
|
137
|
22
|
138 - **Realignment iteration limit** - number of iterations to perform trimming, removal of sequences, and realignment of orthogroup sequences. Zero value has no effect.
|
0
|
139
|
38
|
140 * **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).
|
|
141
|
18
|
142 .. _trimAl: http://trimal.cgenomics.org
|
|
143
|
0
|
144 </help>
|
|
145 <citations>
|
|
146 <expand macro="citation1" />
|
16
|
147 <citation type="bibtex">
|
|
148 @article{Wall2008,
|
|
149 journal = {Nucleic Acids Research},
|
|
150 author = {2. Wall PK, Leebens-Mack J, Muller KF, Field D, Altman NS},
|
|
151 title = {PlantTribes: a gene and gene family resource for comparative genomics in plants},
|
|
152 year = {2008},
|
|
153 volume = {36},
|
|
154 number = {suppl 1},
|
|
155 pages = {D970-D976},}
|
|
156 </citation>
|
|
157 <citation type="bibtex">
|
|
158 @article{Katoh2013,
|
|
159 journal = {Molecular biology and evolution},
|
|
160 author = {3. Katoh K, Standley DM},
|
|
161 title = {MAFFT multiple sequence alignment software version 7: improvements in performance and usability},
|
|
162 year = {2013},
|
|
163 volume = {30},
|
|
164 number = {4},
|
|
165 pages = {772-780},}
|
|
166 </citation>
|
|
167 <citation type="bibtex">
|
|
168 @article{Mirarab2014,
|
|
169 journal = {Research in Computational Molecular Biology (RECOMB)},
|
|
170 author = {4. Mirarab S, Nguyen N, Warnow T},
|
|
171 title = {PASTA: Ultra-Large Multiple Sequence Alignment. In R. Sharan (Ed.)},
|
|
172 year = {2014},
|
|
173 pages = {177–191},
|
|
174 url = {https://github.com/smirarab/pasta},}
|
|
175 </citation>
|
|
176 <citation type="bibtex">
|
|
177 @article{Capella-Gutierrez2009,
|
|
178 journal = {Bioinformatics,},
|
|
179 author = {5. Capella-Gutierrez S, Silla-Martínez JM, Gabaldón T},
|
|
180 title = {trimAl: a tool for automated alignment trimming in large-scale phylogenetic analyses},
|
|
181 year = {2009},
|
|
182 volume = {25},
|
|
183 number = {15},
|
|
184 pages = {1972-1973},}
|
|
185 </citation>
|
40
|
186 <citation type="bibtex">
|
|
187 @article{Yachdav2016,
|
|
188 journal = {Bioinformatics,},
|
|
189 author = {6. Yachdav G, Wilzbach S, Rauscher B, Sheridan R, Sillitoe I, Procter J, Lewis SE, Rost B, Goldberg T},
|
|
190 title = {MSAViewer: interactive JavaScript visualization of multiple sequence alignments},
|
|
191 year = {2016},
|
|
192 volume = {32},
|
|
193 number = {22},
|
|
194 pages = {3501-3503},}
|
|
195 </citation>
|
|
196 <citation type="bibtex">
|
|
197 @article{Clamp2004,
|
|
198 journal = {Bioinformatics,},
|
|
199 author = {7. Clamp M, Cuff J, Searle SM, Barton GJ},
|
|
200 title = {The jalview java alignment editor},
|
|
201 year = {2004},
|
|
202 volume = {20},
|
|
203 number = {3},
|
|
204 pages = {426-427},}
|
|
205 </citation>
|
0
|
206 </citations>
|
|
207 </tool>
|