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
|
|
41 #if str($trim_type) == 'gap_trimming':
|
|
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':
|
|
50 --remove_sequences $remove_sequences_with_gaps_cond.remove_sequences_with_gaps_of
|
|
51 --iterative_realignment $remove_sequences_with_gaps_cond.iterative_realignment
|
|
52 #if $output_codon_alignments:
|
|
53 --output '$output_aln_filtered_ca'
|
|
54 --output_dir '$output_aln_filtered_ca.files_path'
|
0
|
55 #else:
|
12
|
56 --output '$output_aln_filtered'
|
|
57 --output_dir '$output_aln_filtered.files_path'
|
0
|
58 #end if
|
8
|
59 #else:
|
12
|
60 #if $output_codon_alignments:
|
|
61 --output '$output_aln_trimmed_ca'
|
|
62 --output_dir '$output_aln_trimmed_ca.files_path'
|
10
|
63 #else:
|
12
|
64 --output '$output_aln_trimmed'
|
|
65 --output_dir '$output_aln_trimmed.files_path'
|
10
|
66 #end if
|
|
67 #end if
|
12
|
68 #else:
|
|
69 #if $output_codon_alignments:
|
|
70 --output '$output_aln_ca'
|
|
71 --output_dir '$output_aln_ca.files_path'
|
|
72 #else:
|
8
|
73 --output '$output_aln'
|
|
74 --output_dir '$output_aln.files_path'
|
0
|
75 #end if
|
|
76 #end if
|
|
77 ]]>
|
|
78 </command>
|
|
79 <inputs>
|
|
80 <conditional name="input_format_cond">
|
|
81 <param name="input_format" type="select" label="Select type of data to sub sample">
|
|
82 <option value="ptortho">Gene family clusters</option>
|
|
83 <option value="ptorthocs">Gene family clusters with corresponding coding sequences</option>
|
|
84 </param>
|
|
85 <when value="ptortho">
|
|
86 <param name="input_ptortho" format="ptortho" type="data" label="Gene family clusters" />
|
|
87 <expand macro="cond_alignment_method" />
|
|
88 </when>
|
|
89 <when value="ptorthocs">
|
|
90 <param name="input_ptorthocs" format="ptorthocs" type="data" label="Gene family clusters with corresponding coding sequences" />
|
|
91 <expand macro="cond_alignment_method" />
|
|
92 <expand macro="param_codon_alignments" />
|
|
93 </when>
|
|
94 </conditional>
|
12
|
95 <expand macro="cond_remove_gappy_sequences" />
|
0
|
96 </inputs>
|
|
97 <outputs>
|
8
|
98 <data name="output_aln" format="ptalign" label="Aligned gene family sequences on ${on_string}">
|
12
|
99 <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
|
100 </data>
|
|
101 <data name="output_aln_ca" format="ptalignca" label="Aligned gene family sequences with codon alignments on ${on_string}">
|
12
|
102 <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
|
103 </data>
|
|
104 <data name="output_aln_filtered" format="ptalignfiltered" label="Filtered aligned gene family sequences on ${on_string}">
|
12
|
105 <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
|
106 </data>
|
|
107 <data name="output_aln_filtered_ca" format="ptalignfilteredca" label="Filtered aligned gene family sequences with codon alignments on ${on_string}">
|
12
|
108 <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
|
109 </data>
|
|
110 <data name="output_aln_trimmed" format="ptaligntrimmed" label="Trimmed aligned gene family sequences on ${on_string}">
|
12
|
111 <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
|
112 </data>
|
|
113 <data name="output_aln_trimmed_ca" format="ptaligntrimmedca" label="Trimmed aligned gene family sequences with codon alignments on ${on_string}">
|
12
|
114 <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
|
115 </data>
|
0
|
116 </outputs>
|
|
117 <tests>
|
|
118 <!-- Test framework does not currently support inputs whose associated files_path contains files to be analyzed.
|
|
119 <test>
|
|
120 </test>
|
|
121 -->
|
|
122 </tests>
|
|
123 <help>
|
|
124 This tool is one of the PlantTribes collection of automated modular analysis pipelines for comparative and evolutionary
|
|
125 analyses of genome-scale gene families and transcriptomes. This tool aligns gene family sequences.
|
|
126
|
|
127 -----
|
|
128
|
|
129 **Required options**
|
|
130
|
|
131 * **Select type of data to sub sample**
|
|
132
|
|
133 - **Gene family clusters** - sequences classified into gene family clusters.
|
|
134 - **Gene family clusters with corresponding coding sequences** - sequences classified into gene family clusters including corresponding coding sequences.
|
|
135
|
|
136 - **Construct orthogroup multiple codon alignments** - construct orthogroup multiple codon alignments.
|
|
137
|
|
138 * **Select method for multiple sequence alignments**
|
|
139
|
|
140 - **MAFFT algorithm** - mafft algorithm.
|
|
141 - **Pasta algorithm** - pasta algorithm.
|
|
142
|
|
143 - **Maximum number of iterations that the PASTA algorithm will execute** - maximum number of iterations that the PASTA algorithm will execute.
|
|
144
|
|
145 **Other options**
|
|
146
|
|
147 * **Remove gappy sequences in alignments**
|
|
148
|
|
149 - **Select process used for gap trimming** - either nucleotide based or using trimAl's ML heuristic trimming approach
|
|
150
|
|
151 - **Nucleotide based**
|
|
152
|
|
153 - **Remove sites in alignments with gaps of**
|
|
154 - **Maximum number of iterations** - maximum number of iterations for iterative orthogroups realignment, trimming and fitering
|
|
155
|
|
156 </help>
|
|
157 <citations>
|
|
158 <expand macro="citation1" />
|
|
159 <expand macro="citations2to4" />
|
|
160 </citations>
|
|
161 </tool>
|