0
|
1 <tool id="data_manager_malt_index_builder" name="MALT index builder" tool_type="manage_data" version="0.5.3+galaxy0" profile="21.01">
|
|
2 <description></description>
|
|
3 <requirements>
|
|
4 <requirement type="package" version="0.53">malt</requirement>
|
|
5 </requirements>
|
|
6 <command detect_errors="exit_code"><![CDATA[
|
|
7 python '$__tool_directory__/malt_index_builder.py'
|
|
8 '${out_file}'
|
|
9 --fasta_filename '${all_fasta_source.fields.path}'
|
|
10 --fasta_dbkey '${all_fasta_source.fields.dbkey}'
|
|
11 --fasta_description '${all_fasta_source.fields.name}'
|
|
12 --sequence_type '${sequence_type}'
|
1
|
13 #if str($protein_reduct_setting_cond.protein_reduct_setting) == 'yes':
|
|
14 --protein_reduct '${protein_reduct_setting_cond.protein_reduct}'
|
|
15 #end if
|
0
|
16 #if str($seed_setting_cond.seed_setting) == 'yes':
|
|
17 --shapes '${seed_setting_cond.shapes}'
|
1
|
18 ## malt-build requires a string here.
|
|
19 --max_hits_per_seed '${seed_setting_cond.max_hits_per_seed}'
|
0
|
20 #end if
|
|
21 ]]></command>
|
|
22 <inputs>
|
|
23 <param name="all_fasta_source" type="select" label="Source FASTA Sequence">
|
|
24 <options from_data_table="all_fasta"/>
|
|
25 </param>
|
1
|
26 <param name="sequence_name" type="text" value="" label="Name of sequence"/>
|
|
27 <param name="sequence_id" type="text" value="" label="ID for sequence"/>
|
|
28 <param name="sequence_type" type="select" label="Reference sequences type" help="Use the DNA setting For RNA sequences">
|
0
|
29 <option value="DNA" selected="true">DNA</option>
|
|
30 <option value="Protein">Protein</option>
|
|
31 </param>
|
1
|
32 <conditional name="protein_reduct_setting_cond">
|
|
33 <param name="protein_reduct_setting" type="select" label="Specify protein alphabet resuction?" help="Used only if the reference sequences are Protein sequences">
|
0
|
34 <option selected="true" value="no">No</option>
|
|
35 <option value="yes">Yes</option>
|
|
36 </param>
|
|
37 <when value="no"/>
|
|
38 <when value="yes">
|
|
39 <param name="protein_reduct" type="select" label="Name or definition of protein alphabet reduction">
|
|
40 <option selected="true" value="DIAMOND_11">DIAMOND_11</option>
|
|
41 <option value="BLOSUM50_10">BLOSUM50_10</option>
|
|
42 <option value="BLOSUM50_11">BLOSUM50_11</option>
|
|
43 <option value="BLOSUM50_15">BLOSUM50_15</option>
|
|
44 <option value="BLOSUM50_4">BLOSUM50_4</option>
|
|
45 <option value="BLOSUM50_8">BLOSUM50_8</option>
|
|
46 <option value="GBMR4">GBMR4</option>
|
|
47 <option value="HSDM17">HSDM17</option>
|
|
48 <option value="MALT_10">MALT_10</option>
|
|
49 <option value="SDM12">SDM12</option>
|
|
50 <option value="UNREDUCED">UNREDUCED</option>
|
|
51 </param>
|
|
52 </when>
|
|
53 </conditional>
|
1
|
54 <conditional name="seed_setting_cond">
|
|
55 <param name="seed_setting" type="select" label="Specify seed settings?">
|
|
56 <option selected="true" value="no">No</option>
|
|
57 <option value="yes">Yes</option>
|
|
58 </param>
|
|
59 <when value="no"/>
|
|
60 <when value="yes">
|
|
61 <param name="shapes" type="text" value="" label="Comma-separated list of seed shapes" help="See help text below">
|
|
62 <sanitizer invalid_char="">
|
|
63 <valid initial="string.printable">
|
|
64 <remove value="'"/>
|
|
65 </valid>
|
|
66 <mapping initial="none">
|
|
67 <add source="'" target="'"'"'"/>
|
|
68 </mapping>
|
|
69 </sanitizer>
|
|
70 </param>
|
|
71 <param name="max_hits_per_seed" type="integer" value="1" min="1" label="Maximum number of hits per seed"/>
|
|
72 </when>
|
|
73 </conditional>
|
0
|
74 </inputs>
|
|
75 <outputs>
|
1
|
76 <data name="out_file" format="data_manager_json"/>
|
0
|
77 </outputs>
|
|
78 <tests>
|
|
79 <test>
|
|
80 <param name="all_fasta_source" value="phiX174"/>
|
1
|
81 <param name="sequence_name" value="Pretty name for phiX174"/>
|
|
82 <param name="sequence_id" value="phiX174-1"/>
|
|
83 <output name="out_file" value="malt_index_builder1.json"/>
|
|
84 </test>
|
|
85 <test>
|
|
86 <param name="all_fasta_source" value="phiX174"/>
|
|
87 <param name="sequence_name" value="Pretty name for phiX174"/>
|
|
88 <param name="sequence_id" value="phiX174-1"/>
|
|
89 <param name="seed_setting" value="yes"/>
|
|
90 <param name="shapes" value="111110111011110110111111"/>
|
|
91 <output name="out_file" value="malt_index_builder1.json"/>
|
|
92 </test>
|
|
93 <test>
|
|
94 <param name="all_fasta_source" value="phiX174"/>
|
|
95 <param name="sequence_name" value="Pretty name for phiX174"/>
|
|
96 <param name="sequence_id" value="phiX174-2"/>
|
|
97 <param name="sequence_type" value="Protein"/>
|
|
98 <param name="protein_reduct_setting" value="yes"/>
|
|
99 <param name="protein_reduct" value="BLOSUM50_10"/>
|
|
100 <output name="out_file" value="malt_index_builder2.json"/>
|
0
|
101 </test>
|
|
102 </tests>
|
|
103 <help>
|
|
104 .. class:: infomark
|
|
105
|
1
|
106 **Notice:** Values for Name and ID of sequence will be generated automatically if left blank.
|
0
|
107
|
|
108 **What it does**
|
|
109
|
|
110 Takes a reference sequence database (represented by a FastA file, possibly in gzip format) as input and produces an index that
|
|
111 can be used by the malt tool as input. If MALT is to be used as a taxonomic and/or functional analysis tool as well as an
|
|
112 alignment tool, then this MALT index builder tool must be provided with a number of mapping files that are used to map reference
|
|
113 sequences to taxonomic or functional classes or to locate genes in DNA reference sequences.
|
|
114
|
|
115 **Options**
|
|
116
|
|
117 * **Specify seed settings** - specify the settings for controlling how MALT uses its seed-and-extend approach based on “spaced seeds”.
|
|
118
|
|
119 * **Shapes** - specify the seed shapes used. For DNA sequences, the default seed shape is: 111110111011110110111111. For protein sequences, by default MALT uses the following four shapes: 111101101110111, 1111000101011001111, 11101001001000100101111 and 11101001000010100010100111.
|
|
120 * **Maximim hits per seed** - specify the maximum number of hits per seed - MALT uses this to calculate a maximum number of hits per hash value.
|
|
121 * **Protein reduction** - specify the alphabet reduction in the case of protein reference sequences. By default, MALT reduces amino acids to 8 different letters, grouped as follows: [LVIMC] [AG] [ST] [P] [FYW] [EDNQ] [KR] [H].
|
|
122 </help>
|
|
123 <citations>
|
|
124 <citation type="doi">https://doi.org/10.1101/050559</citation>
|
|
125 </citations>
|
|
126 </tool>
|