6
|
1 <tool id="plant_tribes_gene_family_aligner" name="GeneFamilyAligner" version="@WRAPPER_VERSION@.0">
|
0
|
2 <description>aligns gene family sequences</description>
|
|
3 <macros>
|
|
4 <import>macros.xml</import>
|
|
5 </macros>
|
|
6 <expand macro="requirements_gene_family_aligner" />
|
|
7 <expand macro="stdio" />
|
|
8 <command>
|
|
9 <![CDATA[
|
|
10 #set input_format = $input_format_cond.input_format
|
|
11 #set alignment_method_cond = $input_format_cond.alignment_method_cond
|
|
12 #set alignment_method = $alignment_method_cond.alignment_method
|
|
13
|
|
14 python $__tool_directory__/gene_family_aligner.py
|
|
15 --alignment_method $alignment_method
|
|
16 #if str($alignment_method) == 'pasta':
|
|
17 --pasta_script_path '$__tool_directory__/run_pasta.py'
|
|
18 --pasta_iter_limit $alignment_method_cond.pasta_iter_limit
|
|
19 #end if
|
|
20 --num_threads \${GALAXY_SLOTS:-4}
|
|
21 #if str($input_format) == 'ptortho':
|
|
22 --orthogroup_faa '$input_format_cond.input_ptortho.extra_files_path'
|
|
23 #else:
|
|
24 ## str($input_format) == 'ptorthocs'
|
|
25 --orthogroup_faa '$input_format_cond.input_ptorthocs.extra_files_path'
|
|
26 #if str($input_format_cond.codon_alignments) == 'yes':
|
|
27 --codon_alignments 'true'
|
|
28 #end if
|
|
29 #end if
|
|
30 #if str($options_type_cond.options_type) == 'advanced':
|
|
31 #set remove_gappy_sequences_cond = $options_type_cond.remove_gappy_sequences_cond
|
|
32 #set remove_gappy_sequences = $remove_gappy_sequences_cond.remove_gappy_sequences
|
|
33 #if str($remove_gappy_sequences) == 'yes':
|
|
34 #set trim_type_cond = $remove_gappy_sequences_cond.trim_type_cond
|
|
35 #set trim_type = $trim_type_cond.trim_type
|
|
36 #if str($trim_type) == 'gap_trimming':
|
|
37 --gap_trimming $trim_type_cond.gap_trimming
|
|
38 #else:
|
|
39 ## str($trim_type) == 'automated_trimming'
|
|
40 --automated_trimming 'true'
|
|
41 #end if
|
|
42 #set remove_sequences_with_gaps_cond = $remove_gappy_sequences_cond.remove_sequences_with_gaps_cond
|
|
43 #set remove_sequences_with_gaps = $remove_sequences_with_gaps_cond.remove_sequences_with_gaps
|
|
44 #if str($remove_sequences_with_gaps) == 'yes':
|
|
45 --remove_sequences $remove_sequences_with_gaps_cond.remove_sequences_with_gaps_of
|
|
46 --iterative_realignment $remove_sequences_with_gaps_cond.iterative_realignment
|
10
|
47 #if str($input_format) == 'ptortho' or (str($input_format) == 'ptorthocs' and str($input_format_cond.codon_alignments) == 'no'):
|
|
48 --output '$output_aln_filtered'
|
|
49 --output_dir '$output_aln_filtered.files_path'
|
|
50 #else:
|
|
51 --output '$output_aln_filtered_ca'
|
|
52 --output_dir '$output_aln_filtered_ca.files_path'
|
|
53 #end if
|
8
|
54 #else:
|
10
|
55 #if str($input_format) == 'ptortho' or (str($input_format) == 'ptorthocs' and str($input_format_cond.codon_alignments) == 'no'):
|
|
56 --output '$output_aln_trimmed'
|
|
57 --output_dir '$output_aln_trimmed.files_path'
|
|
58 #else:
|
|
59 --output '$output_aln_trimmed_ca'
|
|
60 --output_dir '$output_aln_trimmed_ca.files_path'
|
|
61 #end if
|
0
|
62 #end if
|
8
|
63 #else:
|
10
|
64 #if str($input_format) == 'ptortho' or (str($input_format) == 'ptorthocs' and str($input_format_cond.codon_alignments) == 'no'):
|
|
65 --output '$output_aln'
|
|
66 --output_dir '$output_aln.files_path'
|
|
67 #else:
|
|
68 --output '$output_aln_ca'
|
|
69 --output_dir '$output_aln_ca.files_path'
|
|
70 #end if
|
|
71 #end if
|
|
72 #esle:
|
|
73 #if str($input_format) == 'ptortho' or (str($input_format) == 'ptorthocs' and str($input_format_cond.codon_alignments) == 'no'):
|
8
|
74 --output '$output_aln'
|
|
75 --output_dir '$output_aln.files_path'
|
10
|
76 #else:
|
|
77 --output '$output_aln_ca'
|
|
78 --output_dir '$output_aln_ca.files_path'
|
0
|
79 #end if
|
|
80 #end if
|
|
81 ]]>
|
|
82 </command>
|
|
83 <inputs>
|
|
84 <conditional name="input_format_cond">
|
|
85 <param name="input_format" type="select" label="Select type of data to sub sample">
|
|
86 <option value="ptortho">Gene family clusters</option>
|
|
87 <option value="ptorthocs">Gene family clusters with corresponding coding sequences</option>
|
|
88 </param>
|
|
89 <when value="ptortho">
|
|
90 <param name="input_ptortho" format="ptortho" type="data" label="Gene family clusters" />
|
|
91 <expand macro="cond_alignment_method" />
|
|
92 </when>
|
|
93 <when value="ptorthocs">
|
|
94 <param name="input_ptorthocs" format="ptorthocs" type="data" label="Gene family clusters with corresponding coding sequences" />
|
|
95 <expand macro="cond_alignment_method" />
|
|
96 <expand macro="param_codon_alignments" />
|
|
97 </when>
|
|
98 </conditional>
|
|
99 <conditional name="options_type_cond">
|
|
100 <expand macro="param_options_type" />
|
|
101 <when value="basic" />
|
|
102 <when value="advanced">
|
|
103 <expand macro="cond_remove_gappy_sequences" />
|
|
104 </when>
|
|
105 </conditional>
|
|
106 </inputs>
|
|
107 <outputs>
|
8
|
108 <data name="output_aln" format="ptalign" label="Aligned gene family sequences on ${on_string}">
|
10
|
109 <filter>(input_format_cond['input_format'] == 'ptortho' or (input_format_cond['input_format'] == 'ptorthocs' and input_format_cond['codon_alignments'] == 'no')) and (options_type_cond['options_type'] == 'basic' or (options_type_cond['options_type'] == 'advanced' and options_type_cond['remove_gappy_sequences_cond']['remove_gappy_sequences'] == 'no'))</filter>
|
|
110 </data>
|
|
111 <data name="output_aln_ca" format="ptalignca" label="Aligned gene family sequences with codon alignments on ${on_string}">
|
|
112 <filter>(input_format_cond['input_format'] == 'ptortho' or (input_format_cond['input_format'] == 'ptorthocs' and input_format_cond['codon_alignments'] == 'yes')) and (options_type_cond['options_type'] == 'basic' or (options_type_cond['options_type'] == 'advanced' and options_type_cond['remove_gappy_sequences_cond']['remove_gappy_sequences'] == 'no'))</filter>
|
8
|
113 </data>
|
|
114 <data name="output_aln_filtered" format="ptalignfiltered" label="Filtered aligned gene family sequences on ${on_string}">
|
10
|
115 <filter>(input_format_cond['input_format'] == 'ptortho' or (input_format_cond['input_format'] == 'ptorthocs' and input_format_cond['codon_alignments'] == 'no')) and (options_type_cond['options_type'] == 'advanced' and options_type_cond['remove_gappy_sequences_cond']['remove_gappy_sequences'] == 'yes' and options_type_cond['remove_gappy_sequences_cond']['remove_sequences_with_gaps_cond']['remove_sequences_with_gaps'] == 'yes'</filter>
|
|
116 </data>
|
|
117 <data name="output_aln_filtered_ca" format="ptalignfilteredca" label="Filtered aligned gene family sequences with codon alignments on ${on_string}">
|
|
118 <filter>(input_format_cond['input_format'] == 'ptortho' or (input_format_cond['input_format'] == 'ptorthocs' and input_format_cond['codon_alignments'] == 'yes')) and (options_type_cond['options_type'] == 'advanced' and options_type_cond['remove_gappy_sequences_cond']['remove_gappy_sequences'] == 'yes' and options_type_cond['remove_gappy_sequences_cond']['remove_sequences_with_gaps_cond']['remove_sequences_with_gaps'] == 'yes'</filter>
|
8
|
119 </data>
|
|
120 <data name="output_aln_trimmed" format="ptaligntrimmed" label="Trimmed aligned gene family sequences on ${on_string}">
|
10
|
121 <filter>(input_format_cond['input_format'] == 'ptortho' or (input_format_cond['input_format'] == 'ptorthocs' and input_format_cond['codon_alignments'] == 'no')) and (options_type_cond['options_type'] == 'advanced' and options_type_cond['remove_gappy_sequences_cond']['remove_gappy_sequences'] == 'yes' and options_type_cond['remove_gappy_sequences_cond']['remove_sequences_with_gaps_cond']['remove_sequences_with_gaps'] == 'no')</filter>
|
|
122 </data>
|
|
123 <data name="output_aln_trimmed_ca" format="ptaligntrimmedca" label="Trimmed aligned gene family sequences with codon alignments on ${on_string}">
|
|
124 <filter>(input_format_cond['input_format'] == 'ptortho' or (input_format_cond['input_format'] == 'ptorthocs' and input_format_cond['codon_alignments'] == 'yes')) and (options_type_cond['options_type'] == 'advanced' and options_type_cond['remove_gappy_sequences_cond']['remove_gappy_sequences'] == 'yes' and options_type_cond['remove_gappy_sequences_cond']['remove_sequences_with_gaps_cond']['remove_sequences_with_gaps'] == 'no')</filter>
|
8
|
125 </data>
|
0
|
126 </outputs>
|
|
127 <tests>
|
|
128 <!-- Test framework does not currently support inputs whose associated files_path contains files to be analyzed.
|
|
129 <test>
|
|
130 </test>
|
|
131 -->
|
|
132 </tests>
|
|
133 <help>
|
|
134 This tool is one of the PlantTribes collection of automated modular analysis pipelines for comparative and evolutionary
|
|
135 analyses of genome-scale gene families and transcriptomes. This tool aligns gene family sequences.
|
|
136
|
|
137 -----
|
|
138
|
|
139 **Required options**
|
|
140
|
|
141 * **Select type of data to sub sample**
|
|
142
|
|
143 - **Gene family clusters** - sequences classified into gene family clusters.
|
|
144 - **Gene family clusters with corresponding coding sequences** - sequences classified into gene family clusters including corresponding coding sequences.
|
|
145
|
|
146 - **Construct orthogroup multiple codon alignments** - construct orthogroup multiple codon alignments.
|
|
147
|
|
148 * **Select method for multiple sequence alignments**
|
|
149
|
|
150 - **MAFFT algorithm** - mafft algorithm.
|
|
151 - **Pasta algorithm** - pasta algorithm.
|
|
152
|
|
153 - **Maximum number of iterations that the PASTA algorithm will execute** - maximum number of iterations that the PASTA algorithm will execute.
|
|
154
|
|
155 **Other options**
|
|
156
|
|
157 * **Remove gappy sequences in alignments**
|
|
158
|
|
159 - **Select process used for gap trimming** - either nucleotide based or using trimAl's ML heuristic trimming approach
|
|
160
|
|
161 - **Nucleotide based**
|
|
162
|
|
163 - **Remove sites in alignments with gaps of**
|
|
164 - **Maximum number of iterations** - maximum number of iterations for iterative orthogroups realignment, trimming and fitering
|
|
165
|
|
166 </help>
|
|
167 <citations>
|
|
168 <expand macro="citation1" />
|
|
169 <expand macro="citations2to4" />
|
|
170 </citations>
|
|
171 </tool>
|