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