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
|
|
50 #end if
|
|
51 #end if
|
|
52 #end if
|
6
|
53 --output '$output'
|
|
54 --output_dir '$output.files_path'
|
0
|
55 ]]>
|
|
56 </command>
|
|
57 <inputs>
|
|
58 <conditional name="input_format_cond">
|
|
59 <param name="input_format" type="select" label="Select type of data to sub sample">
|
|
60 <option value="ptortho">Gene family clusters</option>
|
|
61 <option value="ptorthocs">Gene family clusters with corresponding coding sequences</option>
|
|
62 </param>
|
|
63 <when value="ptortho">
|
|
64 <param name="input_ptortho" format="ptortho" type="data" label="Gene family clusters" />
|
|
65 <expand macro="param_scaffold" />
|
|
66 <expand macro="param_method" />
|
|
67 <expand macro="cond_alignment_method" />
|
|
68 </when>
|
|
69 <when value="ptorthocs">
|
|
70 <param name="input_ptorthocs" format="ptorthocs" type="data" label="Gene family clusters with corresponding coding sequences" />
|
|
71 <expand macro="param_scaffold" />
|
|
72 <expand macro="param_method" />
|
|
73 <expand macro="cond_alignment_method" />
|
|
74 <expand macro="param_codon_alignments" />
|
|
75 </when>
|
|
76 </conditional>
|
|
77 <conditional name="options_type_cond">
|
|
78 <expand macro="param_options_type" />
|
|
79 <when value="basic" />
|
|
80 <when value="advanced">
|
|
81 <expand macro="cond_remove_gappy_sequences" />
|
|
82 </when>
|
|
83 </conditional>
|
|
84 </inputs>
|
|
85 <outputs>
|
6
|
86 <data name="output" format="ptalign" label="Aligned gene family sequences on ${on_string}" />
|
0
|
87 </outputs>
|
|
88 <tests>
|
|
89 <!-- Test framework does not currently support inputs whose associated files_path contains files to be analyzed.
|
|
90 <test>
|
|
91 </test>
|
|
92 -->
|
|
93 </tests>
|
|
94 <help>
|
|
95 This tool is one of the PlantTribes collection of automated modular analysis pipelines for comparative and evolutionary
|
|
96 analyses of genome-scale gene families and transcriptomes. This tool aligns gene family sequences.
|
|
97
|
|
98 -----
|
|
99
|
|
100 **Required options**
|
|
101
|
|
102 * **Select type of data to sub sample**
|
|
103
|
|
104 - **Gene family clusters** - sequences classified into gene family clusters.
|
|
105 - **Gene family clusters with corresponding coding sequences** - sequences classified into gene family clusters including corresponding coding sequences.
|
|
106
|
|
107 - **Construct orthogroup multiple codon alignments** - construct orthogroup multiple codon alignments.
|
|
108
|
|
109 * **Gene family scaffold** - one of the PlantTribes gene family scaffolds [2-4] installed into Galaxy by the PlantTribes Scaffold Data Manager tool.
|
|
110 * **Protein clustering method** - gene family scaffold protein clustering method as described in the AssemblyPostProcessor tool.
|
|
111
|
|
112 * **Select method for multiple sequence alignments**
|
|
113
|
|
114 - **MAFFT algorithm** - mafft algorithm.
|
|
115 - **Pasta algorithm** - pasta algorithm.
|
|
116
|
|
117 - **Maximum number of iterations that the PASTA algorithm will execute** - maximum number of iterations that the PASTA algorithm will execute.
|
|
118
|
|
119 **Other options**
|
|
120
|
|
121 * **Remove gappy sequences in alignments**
|
|
122
|
|
123 - **Select process used for gap trimming** - either nucleotide based or using trimAl's ML heuristic trimming approach
|
|
124
|
|
125 - **Nucleotide based**
|
|
126
|
|
127 - **Remove sites in alignments with gaps of**
|
|
128 - **Maximum number of iterations** - maximum number of iterations for iterative orthogroups realignment, trimming and fitering
|
|
129
|
|
130 </help>
|
|
131 <citations>
|
|
132 <expand macro="citation1" />
|
|
133 <expand macro="citations2to4" />
|
|
134 </citations>
|
|
135 </tool>
|