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