annotate qiime2/qiime_feature-classifier_fit-classifier-naive-bayes.xml @ 10:21c7954105a9 draft

Fix
author florianbegusch
date Sun, 25 Aug 2019 10:26:27 -0400
parents f190567fe3f6
children a0a8d77a991c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
1 <?xml version="1.0" ?>
9
f190567fe3f6 Uploaded
florianbegusch
parents: 6
diff changeset
2 <tool id="qiime_feature-classifier_fit-classifier-naive-bayes" name="qiime feature-classifier fit-classifier-naive-bayes" version="2019.7">
0
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
3 <description> - Train the naive_bayes classifier</description>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
4 <requirements>
9
f190567fe3f6 Uploaded
florianbegusch
parents: 6
diff changeset
5 <requirement type="package" version="2019.7">qiime2</requirement>
0
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
6 </requirements>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
7 <command><![CDATA[
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
8
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
9
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
10 #if str( $id_to_taxonomy_fp.selector ) == 'history'
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
11 #set $tax = $id_to_taxonomy_fp.taxonomy_fp
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
12 #else:
6
florianbegusch
parents: 4
diff changeset
13 #set $tax_path = $id_to_taxonomy_fp.taxonomy_fp.fields.path
10
florianbegusch
parents: 9
diff changeset
14 qiime tools import --type 'FeatureData[Taxonomy]' --input-format HeaderlessTSVTaxonomyFormat --input-path $tax_path --output-path ref-taxonomy.qza;
6
florianbegusch
parents: 4
diff changeset
15 #set $tax='ref-taxonomy.qza'
0
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
16 #end if
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
17
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
18
6
florianbegusch
parents: 4
diff changeset
19 qiime feature-classifier fit-classifier-naive-bayes
florianbegusch
parents: 4
diff changeset
20
florianbegusch
parents: 4
diff changeset
21
florianbegusch
parents: 4
diff changeset
22 --i-reference-taxonomy '$tax'
florianbegusch
parents: 4
diff changeset
23
florianbegusch
parents: 4
diff changeset
24
florianbegusch
parents: 4
diff changeset
25 --i-reference-reads=$ireferencereads
florianbegusch
parents: 4
diff changeset
26
0
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
27 #if str($iclassweight) != 'None':
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
28 --i-class-weight=$iclassweight
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
29 #end if
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
30
6
florianbegusch
parents: 4
diff changeset
31 #if str($pclassifyalpha):
0
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
32 --p-classify--alpha=$pclassifyalpha
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
33 #end if
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
34
6
florianbegusch
parents: 4
diff changeset
35 #if str($pclassifychunksize):
0
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
36 --p-classify--chunk-size=$pclassifychunksize
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
37 #end if
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
38
4
florianbegusch
parents: 0
diff changeset
39
florianbegusch
parents: 0
diff changeset
40
florianbegusch
parents: 0
diff changeset
41
florianbegusch
parents: 0
diff changeset
42 #if '__sq__' in str($pclassifyclassprior):
florianbegusch
parents: 0
diff changeset
43 #set $pclassifyclassprior_temp = $pclassifyclassprior.replace('__sq__', "'")
florianbegusch
parents: 0
diff changeset
44 #set $pclassifyclassprior = $pclassifyclassprior_temp
florianbegusch
parents: 0
diff changeset
45 #end if
florianbegusch
parents: 0
diff changeset
46
0
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
47 #if str($pclassifyclassprior):
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
48 --p-classify--class-prior="$pclassifyclassprior"
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
49 #end if
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
50
4
florianbegusch
parents: 0
diff changeset
51
florianbegusch
parents: 0
diff changeset
52
florianbegusch
parents: 0
diff changeset
53
0
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
54 #if $pclassifyfitprior:
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
55 --p-classify--fit-prior
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
56 #end if
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
57
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
58 #if $pfeatextalternatesign:
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
59 --p-feat-ext--alternate-sign
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
60 #end if
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
61
4
florianbegusch
parents: 0
diff changeset
62
florianbegusch
parents: 0
diff changeset
63
florianbegusch
parents: 0
diff changeset
64
florianbegusch
parents: 0
diff changeset
65
florianbegusch
parents: 0
diff changeset
66 #if '__sq__' in str($pfeatextanalyzer):
florianbegusch
parents: 0
diff changeset
67 #set $pfeatextanalyzer_temp = $pfeatextanalyzer.replace('__sq__', "'")
florianbegusch
parents: 0
diff changeset
68 #set $pfeatextanalyzer = $pfeatextanalyzer_temp
florianbegusch
parents: 0
diff changeset
69 #end if
florianbegusch
parents: 0
diff changeset
70
0
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
71 #if str($pfeatextanalyzer):
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
72 --p-feat-ext--analyzer="$pfeatextanalyzer"
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
73 #end if
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
74
4
florianbegusch
parents: 0
diff changeset
75
florianbegusch
parents: 0
diff changeset
76
florianbegusch
parents: 0
diff changeset
77
florianbegusch
parents: 0
diff changeset
78
0
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
79 #if $pfeatextbinary:
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
80 --p-feat-ext--binary
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
81 #end if
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
82
4
florianbegusch
parents: 0
diff changeset
83
florianbegusch
parents: 0
diff changeset
84
florianbegusch
parents: 0
diff changeset
85 #if '__sq__' in str($pfeatextdecodeerror):
florianbegusch
parents: 0
diff changeset
86 #set $pfeatextdecodeerror_temp = $pfeatextdecodeerror.replace('__sq__', "'")
florianbegusch
parents: 0
diff changeset
87 #set $pfeatextdecodeerror = $pfeatextdecodeerror_temp
florianbegusch
parents: 0
diff changeset
88 #end if
florianbegusch
parents: 0
diff changeset
89
0
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
90 #if str($pfeatextdecodeerror):
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
91 --p-feat-ext--decode-error="$pfeatextdecodeerror"
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
92 #end if
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
93
4
florianbegusch
parents: 0
diff changeset
94
florianbegusch
parents: 0
diff changeset
95
florianbegusch
parents: 0
diff changeset
96
florianbegusch
parents: 0
diff changeset
97
florianbegusch
parents: 0
diff changeset
98 #if '__sq__' in str($pfeatextencoding):
florianbegusch
parents: 0
diff changeset
99 #set $pfeatextencoding_temp = $pfeatextencoding.replace('__sq__', "'")
florianbegusch
parents: 0
diff changeset
100 #set $pfeatextencoding = $pfeatextencoding_temp
florianbegusch
parents: 0
diff changeset
101 #end if
florianbegusch
parents: 0
diff changeset
102
0
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
103 #if str($pfeatextencoding):
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
104 --p-feat-ext--encoding="$pfeatextencoding"
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
105 #end if
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
106
4
florianbegusch
parents: 0
diff changeset
107
florianbegusch
parents: 0
diff changeset
108
florianbegusch
parents: 0
diff changeset
109
florianbegusch
parents: 0
diff changeset
110
florianbegusch
parents: 0
diff changeset
111 #if '__sq__' in str($pfeatextinput):
florianbegusch
parents: 0
diff changeset
112 #set $pfeatextinput_temp = $pfeatextinput.replace('__sq__', "'")
florianbegusch
parents: 0
diff changeset
113 #set $pfeatextinput = $pfeatextinput_temp
florianbegusch
parents: 0
diff changeset
114 #end if
florianbegusch
parents: 0
diff changeset
115
0
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
116 #if str($pfeatextinput):
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
117 --p-feat-ext--input="$pfeatextinput"
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
118 #end if
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
119
4
florianbegusch
parents: 0
diff changeset
120
florianbegusch
parents: 0
diff changeset
121
florianbegusch
parents: 0
diff changeset
122
0
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
123 #if $pnofeatextlowercase:
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
124 --p-no-feat-ext--lowercase
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
125 #end if
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
126
6
florianbegusch
parents: 4
diff changeset
127 #if str($pfeatextnfeatures):
0
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
128 --p-feat-ext--n-features=$pfeatextnfeatures
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
129 #end if
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
130
4
florianbegusch
parents: 0
diff changeset
131
florianbegusch
parents: 0
diff changeset
132
florianbegusch
parents: 0
diff changeset
133
florianbegusch
parents: 0
diff changeset
134 #if '__sq__' in str($pfeatextngramrange):
florianbegusch
parents: 0
diff changeset
135 #set $pfeatextngramrange_temp = $pfeatextngramrange.replace('__sq__', "'")
florianbegusch
parents: 0
diff changeset
136 #set $pfeatextngramrange = $pfeatextngramrange_temp
florianbegusch
parents: 0
diff changeset
137 #end if
florianbegusch
parents: 0
diff changeset
138
0
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
139 #if '__ob__' in str($pfeatextngramrange):
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
140 #set $pfeatextngramrange_temp = $pfeatextngramrange.replace('__ob__', '[')
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
141 #set $pfeatextngramrange = $pfeatextngramrange_temp
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
142 #end if
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
143 #if 'X' in str($pfeatextngramrange):
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
144 #set $pfeatextngramrange_temp = $pfeatextngramrange.replace('X', '\\')
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
145 #set $pfeatextngramrange = $pfeatextngramrange_temp
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
146 #end if
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
147
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
148 #if str($pfeatextngramrange):
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
149 --p-feat-ext--ngram-range="$pfeatextngramrange"
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
150 #end if
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
151
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
152
4
florianbegusch
parents: 0
diff changeset
153
florianbegusch
parents: 0
diff changeset
154
florianbegusch
parents: 0
diff changeset
155
0
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
156 #if $pfeatextnonnegative:
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
157 --p-feat-ext--non-negative
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
158 #end if
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
159
4
florianbegusch
parents: 0
diff changeset
160
florianbegusch
parents: 0
diff changeset
161 #if '__sq__' in str($pfeatextnorm):
florianbegusch
parents: 0
diff changeset
162 #set $pfeatextnorm_temp = $pfeatextnorm.replace('__sq__', "'")
florianbegusch
parents: 0
diff changeset
163 #set $pfeatextnorm = $pfeatextnorm_temp
florianbegusch
parents: 0
diff changeset
164 #end if
florianbegusch
parents: 0
diff changeset
165
0
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
166 #if str($pfeatextnorm):
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
167 --p-feat-ext--norm="$pfeatextnorm"
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
168 #end if
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
169
4
florianbegusch
parents: 0
diff changeset
170
florianbegusch
parents: 0
diff changeset
171
florianbegusch
parents: 0
diff changeset
172
florianbegusch
parents: 0
diff changeset
173 #if '__sq__' in str($pfeatextpreprocessor):
florianbegusch
parents: 0
diff changeset
174 #set $pfeatextpreprocessor_temp = $pfeatextpreprocessor.replace('__sq__', "'")
florianbegusch
parents: 0
diff changeset
175 #set $pfeatextpreprocessor = $pfeatextpreprocessor_temp
florianbegusch
parents: 0
diff changeset
176 #end if
florianbegusch
parents: 0
diff changeset
177
0
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
178 #if str($pfeatextpreprocessor):
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
179 --p-feat-ext--preprocessor="$pfeatextpreprocessor"
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
180 #end if
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
181
4
florianbegusch
parents: 0
diff changeset
182
florianbegusch
parents: 0
diff changeset
183
florianbegusch
parents: 0
diff changeset
184
florianbegusch
parents: 0
diff changeset
185 #if '__sq__' in str($pfeatextstopwords):
florianbegusch
parents: 0
diff changeset
186 #set $pfeatextstopwords_temp = $pfeatextstopwords.replace('__sq__', "'")
florianbegusch
parents: 0
diff changeset
187 #set $pfeatextstopwords = $pfeatextstopwords_temp
florianbegusch
parents: 0
diff changeset
188 #end if
florianbegusch
parents: 0
diff changeset
189
0
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
190 #if str($pfeatextstopwords):
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
191 --p-feat-ext--stop-words="$pfeatextstopwords"
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
192 #end if
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
193
4
florianbegusch
parents: 0
diff changeset
194
florianbegusch
parents: 0
diff changeset
195
florianbegusch
parents: 0
diff changeset
196
florianbegusch
parents: 0
diff changeset
197
florianbegusch
parents: 0
diff changeset
198 #if '__sq__' in str($pfeatextstripaccents):
florianbegusch
parents: 0
diff changeset
199 #set $pfeatextstripaccents_temp = $pfeatextstripaccents.replace('__sq__', "'")
florianbegusch
parents: 0
diff changeset
200 #set $pfeatextstripaccents = $pfeatextstripaccents_temp
florianbegusch
parents: 0
diff changeset
201 #end if
florianbegusch
parents: 0
diff changeset
202
0
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
203 #if str($pfeatextstripaccents):
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
204 --p-feat-ext--strip-accents="$pfeatextstripaccents"
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
205 #end if
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
206
4
florianbegusch
parents: 0
diff changeset
207
florianbegusch
parents: 0
diff changeset
208
florianbegusch
parents: 0
diff changeset
209
florianbegusch
parents: 0
diff changeset
210
florianbegusch
parents: 0
diff changeset
211
florianbegusch
parents: 0
diff changeset
212 #if '__sq__' in str($pfeatexttokenpattern):
florianbegusch
parents: 0
diff changeset
213 #set $pfeatexttokenpattern_temp = $pfeatexttokenpattern.replace('__sq__', "'")
florianbegusch
parents: 0
diff changeset
214 #set $pfeatexttokenpattern = $pfeatexttokenpattern_temp
florianbegusch
parents: 0
diff changeset
215 #end if
florianbegusch
parents: 0
diff changeset
216
0
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
217 #if '__ob__' in str($pfeatexttokenpattern):
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
218 #set $pfeatexttokenpattern_temp = $pfeatexttokenpattern.replace('__ob__', '[')
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
219 #set $pfeatexttokenpattern = $pfeatexttokenpattern_temp
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
220 #end if
4
florianbegusch
parents: 0
diff changeset
221
0
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
222 #if 'X' in str($pfeatexttokenpattern):
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
223 #set $pfeatexttokenpattern_temp = $pfeatexttokenpattern.replace('X', '\\')
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
224 #set $pfeatexttokenpattern = $pfeatexttokenpattern_temp
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
225 #end if
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
226
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
227 #if str($pfeatexttokenpattern):
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
228 --p-feat-ext--token-pattern="$pfeatexttokenpattern"
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
229 #end if
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
230
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
231
4
florianbegusch
parents: 0
diff changeset
232
florianbegusch
parents: 0
diff changeset
233
florianbegusch
parents: 0
diff changeset
234
florianbegusch
parents: 0
diff changeset
235 #if '__sq__' in str($pfeatexttokenizer):
florianbegusch
parents: 0
diff changeset
236 #set $pfeatexttokenizer_temp = $pfeatexttokenizer.replace('__sq__', "'")
florianbegusch
parents: 0
diff changeset
237 #set $pfeatexttokenizer = $pfeatexttokenizer_temp
florianbegusch
parents: 0
diff changeset
238 #end if
florianbegusch
parents: 0
diff changeset
239
0
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
240 #if str($pfeatexttokenizer):
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
241 --p-feat-ext--tokenizer="$pfeatexttokenizer"
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
242 #end if
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
243
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
244 --o-classifier=oclassifier
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
245 ;
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
246 cp oclassifier.qza $oclassifier
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
247 ]]></command>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
248 <inputs>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
249 <param format="qza,no_unzip.zip" label="--i-reference-reads: ARTIFACT FeatureData[Sequence] [required]" name="ireferencereads" optional="False" type="data"/>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
250 <param format="qza,no_unzip.zip" label="--i-class-weight: ARTIFACT FeatureTable[RelativeFrequency] [optional]" name="iclassweight" optional="True" type="data"/>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
251
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
252 <conditional name="id_to_taxonomy_fp" optional="True">
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
253 <param name="selector" type="select" label="Reference taxonomy to query">
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
254 <option value="cached">Public databases</option>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
255 <option value="history">Databases from your history</option>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
256 </param>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
257 <when value="cached">
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
258 <param argument="--taxonomy_fp" label="Reference taxonomy" type="select" optional="True">
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
259 <options from_data_table="qiime_taxonomy" />
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
260 </param>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
261 </when>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
262 <when value="history">
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
263 <param argument="--taxonomy_fp" type="data" format="qza,no_unzip.zip" label="Reference databases" optional="True" />
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
264 </when>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
265 </conditional>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
266
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
267 <param label="--p-classify--alpha: NUMBER [default: 0.001]" name="pclassifyalpha" optional="True" type="float" value="0.001"/>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
268 <param label="--p-classify--chunk-size: INTEGER [default: 20000]" name="pclassifychunksize" optional="True" type="integer" value="20000"/>
4
florianbegusch
parents: 0
diff changeset
269 <param label="--p-classify--class-prior: TEXT [default: 'null']" name="pclassifyclassprior" optional="True" type="text" value="null"/>
0
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
270 <param label="--p-classify--fit-prior: --p-no-classify--fit-prior [default: False]" name="pclassifyfitprior" selected="False" type="boolean"/>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
271 <param label="--p-feat-ext--alternate-sign: --p-no-feat-ext--alternate-sign [default: False]" name="pfeatextalternatesign" selected="False" type="boolean"/>
4
florianbegusch
parents: 0
diff changeset
272 <param label="--p-feat-ext--analyzer: TEXT [default: 'char_wb']" name="pfeatextanalyzer" optional="True" type="text" value="char_wb"/>
0
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
273 <param label="--p-feat-ext--binary: --p-no-feat-ext--binary [default: False]" name="pfeatextbinary" selected="False" type="boolean"/>
4
florianbegusch
parents: 0
diff changeset
274 <param label="--p-feat-ext--decode-error: TEXT [default: 'strict']" name="pfeatextdecodeerror" optional="True" type="text" value="strict"/>
florianbegusch
parents: 0
diff changeset
275 <param label="--p-feat-ext--encoding: TEXT [default: 'utf-8']" name="pfeatextencoding" optional="True" type="text" value="utf-8"/>
florianbegusch
parents: 0
diff changeset
276 <param label="--p-feat-ext--input: TEXT [default: 'content']" name="pfeatextinput" optional="True" type="text" value="content"/>
0
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
277 <param label="--p-no-feat-ext--lowercase: [default: False]" name="pnofeatextlowercase" selected="False" type="boolean"/>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
278 <param label="--p-feat-ext--n-features: INTEGER [default: 8192]" name="pfeatextnfeatures" optional="True" type="integer" value="8192"/>
4
florianbegusch
parents: 0
diff changeset
279 <param label="--p-feat-ext--ngram-range: TEXT [default: '[7, 7]']" name="pfeatextngramrange" optional="True" type="text" value="[7, 7]"/>
0
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
280 <param label="--p-feat-ext--non-negative: --p-no-feat-ext--non-negative [default: False]" name="pfeatextnonnegative" selected="False" type="boolean"/>
4
florianbegusch
parents: 0
diff changeset
281 <param label="--p-feat-ext--norm: TEXT [default: 'l2']" name="pfeatextnorm" optional="True" type="text" value="l2"/>
florianbegusch
parents: 0
diff changeset
282 <param label="--p-feat-ext--preprocessor: TEXT [default: 'null']" name="pfeatextpreprocessor" optional="True" type="text" value="null"/>
florianbegusch
parents: 0
diff changeset
283 <param label="--p-feat-ext--stop-words: TEXT [default: 'null']" name="pfeatextstopwords" optional="True" type="text" value="null"/>
florianbegusch
parents: 0
diff changeset
284 <param label="--p-feat-ext--strip-accents: TEXT [default: 'null']" name="pfeatextstripaccents" optional="True" type="text" value="null"/>
florianbegusch
parents: 0
diff changeset
285 <param label="--p-feat-ext--token-pattern: TEXT [default: '(?u)\\b\\w\\w+\\b']" name="pfeatexttokenpattern" optional="True" type="text" value="(?u)\\b\\w\\w+\\b"/>
florianbegusch
parents: 0
diff changeset
286 <param label="--p-feat-ext--tokenizer: TEXT [default: 'null']" name="pfeatexttokenizer" optional="True" type="text" value="null"/>
0
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
287 </inputs>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
288 <outputs>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
289 <data format="qza" label="${tool.name} on ${on_string}: classifier.qza" name="oclassifier"/>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
290 </outputs>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
291 <help><![CDATA[
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
292 Train the naive_bayes classifier
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
293 ################################
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
294
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
295 Create a scikit-learn naive_bayes classifier for reads
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
296
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
297 Parameters
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
298 ----------
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
299 reference_reads : FeatureData[Sequence]
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
300 \
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
301
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
302 reference_taxonomy : FeatureData[Taxonomy]
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
303 \
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
304
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
305 class_weight : FeatureTable[RelativeFrequency], optional
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
306 \
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
307
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
308 classify__alpha : Float, optional
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
309 \
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
310
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
311 classify__chunk_size : Int, optional
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
312 \
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
313
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
314 classify__class_prior : Str, optional
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
315 \
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
316
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
317 classify__fit_prior : Bool, optional
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
318 \
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
319
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
320 feat_ext__alternate_sign : Bool, optional
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
321 \
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
322
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
323 feat_ext__analyzer : Str, optional
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
324 \
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
325
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
326 feat_ext__binary : Bool, optional
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
327 \
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
328
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
329 feat_ext__decode_error : Str, optional
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
330 \
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
331
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
332 feat_ext__encoding : Str, optional
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
333 \
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
334
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
335 feat_ext__input : Str, optional
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
336 \
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
337
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
338 feat_ext__lowercase : Bool, optional
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
339 \
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
340
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
341 feat_ext__n_features : Int, optional
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
342 \
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
343
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
344 feat_ext__ngram_range : Str, optional
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
345 \
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
346
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
347 feat_ext__non_negative : Bool, optional
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
348 \
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
349
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
350 feat_ext__norm : Str, optional
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
351 \
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
352
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
353 feat_ext__preprocessor : Str, optional
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
354 \
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
355
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
356 feat_ext__stop_words : Str, optional
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
357 \
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
358
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
359 feat_ext__strip_accents : Str, optional
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
360 \
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
361
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
362 feat_ext__token_pattern : Str, optional
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
363 \
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
364
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
365 feat_ext__tokenizer : Str, optional
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
366 \
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
367
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
368 Returns
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
369 -------
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
370 classifier : TaxonomicClassifier
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
371 \
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
372
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
373 ]]></help>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
374 <macros>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
375 <import>qiime_citation.xml</import>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
376 </macros>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
377 <expand macro="qiime_citation"/>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
378 </tool>