0
|
1 <tool id="plant_tribes_gene_family_aligner" name="GeneFamilyAligner" version="@WRAPPER_VERSION@.0">
|
|
2 <description>aligns integrated orthologous gene family clusters</description>
|
|
3 <macros>
|
|
4 <import>macros.xml</import>
|
|
5 </macros>
|
|
6 <expand macro="requirements_gene_family_aligner" />
|
|
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
|
|
11 #if str($input_format_cond.input_format) == 'ptortho':
|
|
12 #set output_codon_alignments = False
|
|
13 #else if str($input_format_cond.input_format) == 'ptorthocs' and str($input_format_cond.codon_alignments ) == 'no':
|
|
14 #set output_codon_alignments = False
|
|
15 #else:
|
|
16 #set output_codon_alignments = True
|
|
17 #end if
|
|
18
|
2
|
19 python '$__tool_directory__/gene_family_aligner.py'
|
0
|
20 --alignment_method $alignment_method
|
|
21 #if str($alignment_method) == 'pasta':
|
|
22 --pasta_script_path '$__tool_directory__/run_pasta.py'
|
|
23 --pasta_iter_limit $alignment_method_cond.pasta_iter_limit
|
|
24 #end if
|
|
25 --num_threads \${GALAXY_SLOTS:-4}
|
|
26 #if str($input_format) == 'ptortho':
|
|
27 --orthogroup_faa '$input_format_cond.input_ptortho.extra_files_path'
|
|
28 #else:
|
|
29 ## str($input_format) == 'ptorthocs'
|
|
30 --orthogroup_faa '$input_format_cond.input_ptorthocs.extra_files_path'
|
|
31 #if str($input_format_cond.codon_alignments) == 'yes':
|
2
|
32 --codon_alignments true
|
0
|
33 #end if
|
|
34 #end if
|
|
35 #set remove_gappy_sequences = $remove_gappy_sequences_cond.remove_gappy_sequences
|
|
36 #if str($remove_gappy_sequences) == 'yes':
|
|
37 #set trim_type_cond = $remove_gappy_sequences_cond.trim_type_cond
|
|
38 #set trim_type = $trim_type_cond.trim_type
|
|
39 #if str($trim_type) == 'gap_trimming' and str($trim_type_cond.gap_trimming):
|
|
40 --gap_trimming $trim_type_cond.gap_trimming
|
|
41 #else:
|
|
42 ## str($trim_type) == 'automated_trimming'
|
2
|
43 --automated_trimming true
|
0
|
44 #end if
|
|
45 #set remove_sequences_with_gaps_cond = $remove_gappy_sequences_cond.remove_sequences_with_gaps_cond
|
|
46 #set remove_sequences_with_gaps = $remove_sequences_with_gaps_cond.remove_sequences_with_gaps
|
|
47 #if str($remove_sequences_with_gaps) == 'yes':
|
|
48 #if str($remove_sequences_with_gaps_cond.remove_sequences_with_gaps_of):
|
|
49 --remove_sequences $remove_sequences_with_gaps_cond.remove_sequences_with_gaps_of
|
|
50 #end if
|
|
51 #if str($remove_sequences_with_gaps_cond.iterative_realignment):
|
|
52 --iterative_realignment $remove_sequences_with_gaps_cond.iterative_realignment
|
|
53 #end if
|
|
54 #if $output_codon_alignments:
|
|
55 --output '$output_aln_filtered_ca'
|
|
56 --output_dir '$output_aln_filtered_ca.files_path'
|
|
57 #else:
|
|
58 --output '$output_aln_filtered'
|
|
59 --output_dir '$output_aln_filtered.files_path'
|
|
60 #end if
|
|
61 #else:
|
|
62 #if $output_codon_alignments:
|
|
63 --output '$output_aln_trimmed_ca'
|
|
64 --output_dir '$output_aln_trimmed_ca.files_path'
|
|
65 #else:
|
|
66 --output '$output_aln_trimmed'
|
|
67 --output_dir '$output_aln_trimmed.files_path'
|
|
68 #end if
|
|
69 #end if
|
|
70 #else:
|
|
71 #if $output_codon_alignments:
|
|
72 --output '$output_aln_ca'
|
|
73 --output_dir '$output_aln_ca.files_path'
|
|
74 #else:
|
|
75 --output '$output_aln'
|
|
76 --output_dir '$output_aln.files_path'
|
|
77 #end if
|
|
78 #end if
|
2
|
79 #set output_dataset_collection = $output_dataset_collection_cond.output_dataset_collection
|
|
80 #if str($output_dataset_collection) == 'yes':
|
|
81 --output_dataset_collection dataset_collection
|
|
82 #end if
|
0
|
83 ]]></command>
|
|
84 <inputs>
|
|
85 <conditional name="input_format_cond">
|
|
86 <param name="input_format" type="select" label="Classified orthogroup fasta files">
|
|
87 <option value="ptortho">Proteins orthogroup fasta files</option>
|
|
88 <option value="ptorthocs">Protein and coding sequences orthogroup fasta files</option>
|
|
89 </param>
|
|
90 <when value="ptortho">
|
|
91 <param name="input_ptortho" format="ptortho" type="data" label="Proteins orthogroup fasta files">
|
|
92 <validator type="empty_extra_files_path" />
|
|
93 </param>
|
|
94 <expand macro="cond_alignment_method" />
|
|
95 </when>
|
|
96 <when value="ptorthocs">
|
|
97 <param name="input_ptorthocs" format="ptorthocs" type="data" label="Protein and coding sequences orthogroup fasta files">
|
|
98 <validator type="empty_extra_files_path" />
|
|
99 </param>
|
|
100 <expand macro="cond_alignment_method" />
|
|
101 <expand macro="param_codon_alignments" />
|
|
102 </when>
|
|
103 </conditional>
|
|
104 <expand macro="cond_remove_gappy_sequences" />
|
2
|
105 <conditional name="output_dataset_collection_cond">
|
|
106 <param name="output_dataset_collection" type="select" label="Output additional dataset collection of files?">
|
|
107 <option value="no" selected="true">No</option>
|
|
108 <option value="yes">Yes</option>
|
|
109 </param>
|
|
110 <when value="no" />
|
|
111 <when value="yes" />
|
|
112 </conditional>
|
0
|
113 </inputs>
|
|
114 <outputs>
|
|
115 <data name="output_aln" format="ptalign" label="${tool.name} (proteins orthogroup alignments) on ${on_string}">
|
|
116 <filter>(input_format_cond['input_format'] == 'ptortho' or (input_format_cond['input_format'] == 'ptorthocs' and input_format_cond['codon_alignments'] == 'no')) and remove_gappy_sequences_cond['remove_gappy_sequences'] == 'no'</filter>
|
|
117 </data>
|
|
118 <data name="output_aln_ca" format="ptalignca" label="${tool.name} (protein and coding sequences orthogroup alignments) on ${on_string}">
|
|
119 <filter>(input_format_cond['input_format'] == 'ptortho' or (input_format_cond['input_format'] == 'ptorthocs' and input_format_cond['codon_alignments'] == 'yes')) and remove_gappy_sequences_cond['remove_gappy_sequences'] == 'no'</filter>
|
|
120 </data>
|
|
121 <data name="output_aln_filtered" format="ptalignfiltered" label="${tool.name} (filtered proteins orthogroup alignments) on ${on_string}">
|
|
122 <filter>(input_format_cond['input_format'] == 'ptortho' or (input_format_cond['input_format'] == 'ptorthocs' and input_format_cond['codon_alignments'] == 'no')) 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>
|
|
123 </data>
|
|
124 <data name="output_aln_filtered_ca" format="ptalignfilteredca" label="${tool.name} (filtered protein and coding sequences orthogroup alignments) on ${on_string}">
|
|
125 <filter>(input_format_cond['input_format'] == 'ptortho' or (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>
|
|
126 </data>
|
|
127 <data name="output_aln_trimmed" format="ptaligntrimmed" label="${tool.name} (trimmed proteins orthogroup alignments) on ${on_string}">
|
|
128 <filter>(input_format_cond['input_format'] == 'ptortho' or (input_format_cond['input_format'] == 'ptorthocs' and input_format_cond['codon_alignments'] == 'no')) 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>
|
|
129 </data>
|
|
130 <data name="output_aln_trimmed_ca" format="ptaligntrimmedca" label="${tool.name} (trimmed protein and coding sequences orthogroup alignments) on ${on_string}">
|
|
131 <filter>(input_format_cond['input_format'] == 'ptortho' or (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>
|
|
132 </data>
|
2
|
133 <collection name="dataset_collection" type="list" label="${tool.name} (dataset collection) on ${on_string}">
|
|
134 <discover_datasets pattern="__name__" directory="dataset_collection" format="fasta" />
|
|
135 <filter>output_dataset_collection_cond['output_dataset_collection'] == 'yes'</filter>
|
|
136 </collection>
|
0
|
137 </outputs>
|
|
138 <tests>
|
|
139 <!-- Test framework does not currently support inputs whose associated extra_files_path contains files to be analyzed.
|
|
140 <test>
|
|
141 </test>
|
|
142 -->
|
|
143 </tests>
|
|
144 <help>
|
|
145 This tool is one of the PlantTribes collection of automated modular analysis pipelines for comparative and evolutionary
|
|
146 analyses of genome-scale gene families and transcriptomes. This tool estimates protein and codon multiple sequence alignments
|
|
147 of integrated orthologous gene family fasta files produced by the GeneFamilyIntegrator tool.
|
|
148
|
|
149 -----
|
|
150
|
|
151 **Required options**
|
|
152
|
|
153 * **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.
|
|
154
|
|
155 * **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.
|
|
156
|
|
157 - **PASTA iteration limit** - number of PASTA iterations. By default, PASTA performs 3 iterations.
|
|
158
|
|
159 * **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.
|
|
160
|
|
161 **Other options**
|
|
162
|
|
163 * **Alignment post-processing configuration** - select 'Yes' to enable multiple sequence alignment post-processing configuration options.
|
|
164
|
|
165 - **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`_.
|
|
166
|
|
167 - **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.
|
|
168
|
|
169 - **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.
|
|
170
|
|
171 - **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.
|
|
172
|
|
173 - **Realignment iteration limit** - number of iterations to perform trimming, removal of sequences, and realignment of orthogroup sequences. Zero value has no effect.
|
|
174
|
2
|
175 * **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).
|
|
176
|
0
|
177 .. _trimAl: http://trimal.cgenomics.org
|
|
178
|
|
179 </help>
|
|
180 <citations>
|
|
181 <expand macro="citation1" />
|
|
182 <citation type="bibtex">
|
|
183 @article{Wall2008,
|
|
184 journal = {Nucleic Acids Research},
|
|
185 author = {2. Wall PK, Leebens-Mack J, Muller KF, Field D, Altman NS},
|
|
186 title = {PlantTribes: a gene and gene family resource for comparative genomics in plants},
|
|
187 year = {2008},
|
|
188 volume = {36},
|
|
189 number = {suppl 1},
|
|
190 pages = {D970-D976},}
|
|
191 </citation>
|
|
192 <citation type="bibtex">
|
|
193 @article{Katoh2013,
|
|
194 journal = {Molecular biology and evolution},
|
|
195 author = {3. Katoh K, Standley DM},
|
|
196 title = {MAFFT multiple sequence alignment software version 7: improvements in performance and usability},
|
|
197 year = {2013},
|
|
198 volume = {30},
|
|
199 number = {4},
|
|
200 pages = {772-780},}
|
|
201 </citation>
|
|
202 <citation type="bibtex">
|
|
203 @article{Mirarab2014,
|
|
204 journal = {Research in Computational Molecular Biology (RECOMB)},
|
|
205 author = {4. Mirarab S, Nguyen N, Warnow T},
|
|
206 title = {PASTA: Ultra-Large Multiple Sequence Alignment. In R. Sharan (Ed.)},
|
|
207 year = {2014},
|
|
208 pages = {177–191},
|
|
209 url = {https://github.com/smirarab/pasta},}
|
|
210 </citation>
|
|
211 <citation type="bibtex">
|
|
212 @article{Capella-Gutierrez2009,
|
|
213 journal = {Bioinformatics,},
|
|
214 author = {5. Capella-Gutierrez S, Silla-Martínez JM, Gabaldón T},
|
|
215 title = {trimAl: a tool for automated alignment trimming in large-scale phylogenetic analyses},
|
|
216 year = {2009},
|
|
217 volume = {25},
|
|
218 number = {15},
|
|
219 pages = {1972-1973},}
|
|
220 </citation>
|
|
221 </citations>
|
|
222 </tool>
|