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