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