0
|
1 <?xml version="1.0" ?>
|
|
2 <tool id="qiime_sample-classifier_heatmap" name="qiime sample-classifier heatmap" version="2019.4">
|
|
3 <description> - Generate heatmap of important features.</description>
|
|
4 <requirements>
|
|
5 <requirement type="package" version="2019.4">qiime2</requirement>
|
|
6 </requirements>
|
|
7 <command><![CDATA[
|
|
8 qiime sample-classifier heatmap
|
|
9
|
|
10 --i-table=$itable
|
|
11 --i-importance=$iimportance
|
|
12
|
|
13
|
5
|
14
|
|
15
|
|
16 #if $metadatafile:
|
|
17 --m-metadata-file=$metadatafile
|
0
|
18 #end if
|
|
19
|
|
20
|
|
21
|
5
|
22
|
|
23
|
0
|
24 #if str($mmetadatacolumn):
|
|
25 --m-metadata-column="$mmetadatacolumn"
|
|
26 #end if
|
|
27
|
5
|
28 #if str($pfeaturecount):
|
0
|
29 --p-feature-count=$pfeaturecount
|
|
30 #end if
|
|
31
|
5
|
32 #if str($pimportancethreshold):
|
0
|
33 --p-importance-threshold=$pimportancethreshold
|
|
34 #end if
|
|
35
|
|
36 #if $pgroupsamples:
|
|
37 --p-group-samples
|
|
38 #end if
|
|
39
|
|
40 #if $pnonormalize:
|
|
41 --p-no-normalize
|
|
42 #end if
|
|
43
|
|
44 #if str($pmetric) != 'None':
|
|
45 --p-metric=$pmetric
|
|
46 #end if
|
|
47
|
|
48 #if str($pmethod) != 'None':
|
|
49 --p-method=$pmethod
|
|
50 #end if
|
|
51
|
|
52 #if str($pcluster) != 'None':
|
|
53 --p-cluster=$pcluster
|
|
54 #end if
|
|
55
|
|
56 #if str($pcolorscheme) != 'None':
|
|
57 --p-color-scheme=$pcolorscheme
|
|
58 #end if
|
|
59
|
|
60 --o-heatmap=oheatmap
|
|
61 --o-filtered-table=ofilteredtable
|
|
62 ;
|
|
63 qiime tools export --input-path oheatmap.qzv --output-path out && mkdir -p '$oheatmap.files_path'
|
|
64 && cp -r out/* '$oheatmap.files_path'
|
|
65 && mv '$oheatmap.files_path/index.html' '$oheatmap';
|
|
66 cp ofilteredtable.qza $ofilteredtable
|
|
67 ]]></command>
|
|
68 <inputs>
|
|
69 <param format="qza,no_unzip.zip" label="--i-table: ARTIFACT FeatureTable[Frequency] Feature table containing all features that should be used for target prediction. [required]" name="itable" optional="False" type="data"/>
|
|
70 <param format="qza,no_unzip.zip" label="--i-importance: ARTIFACT FeatureData[Importance] Feature importances. [required]" name="iimportance" optional="False" type="data"/>
|
|
71 <param label="--m-metadata-column: COLUMN MetadataColumn[Categorical] Metadata file to convert to feature table. [optional]" name="mmetadatacolumn" optional="True" type="text"/>
|
|
72 <param label="--p-feature-count: INTEGER Range(0, None) Filter feature table to include top N most important features. Set to zero to include all features. [default: 50]" name="pfeaturecount" optional="True" type="integer" value="50" min="0"/>
|
|
73 <param label="--p-importance-threshold: NUMBER Range(0, None) Filter feature table to exclude any features with an importance score less than this threshold. Set to zero to include all features. [default: 0]" name="pimportancethreshold" optional="True" type="float" value="0" min="0"/>
|
|
74 <param label="--p-group-samples: --p-no-group-samples Group samples by metadata. [default: False]" name="pgroupsamples" selected="False" type="boolean"/>
|
|
75 <param label="--p-no-normalize: Normalize the feature table by adding a psuedocount of 1 and then taking the log10 of the table. [default: False]" name="pnonormalize" selected="False" type="boolean"/>
|
|
76 <param label="--p-metric: " name="pmetric" optional="True" type="select">
|
|
77 <option selected="True" value="None">Selection is Optional</option>
|
|
78 <option value="kulsinski">kulsinski</option>
|
|
79 <option value="correlation">correlation</option>
|
|
80 <option value="hamming">hamming</option>
|
|
81 <option value="canberra">canberra</option>
|
|
82 <option value="sqeuclidean">sqeuclidean</option>
|
|
83 <option value="sokalmichener">sokalmichener</option>
|
|
84 <option value="cityblock">cityblock</option>
|
|
85 <option value="braycurtis">braycurtis</option>
|
|
86 <option value="matching">matching</option>
|
|
87 <option value="russellrao">russellrao</option>
|
|
88 <option value="cosine">cosine</option>
|
|
89 <option value="yule">yule</option>
|
|
90 <option value="minkowski">minkowski</option>
|
|
91 <option value="euclidean">euclidean</option>
|
|
92 <option value="rogerstanimoto">rogerstanimoto</option>
|
|
93 <option value="seuclidean">seuclidean</option>
|
|
94 <option value="jaccard">jaccard</option>
|
|
95 <option value="sokalsneath">sokalsneath</option>
|
|
96 <option value="chebyshev">chebyshev</option>
|
|
97 <option value="dice">dice</option>
|
|
98 <option value="mahalanobis">mahalanobis</option>
|
|
99 </param>
|
|
100 <param label="--p-method: " name="pmethod" optional="True" type="select">
|
|
101 <option selected="True" value="None">Selection is Optional</option>
|
|
102 <option value="complete">complete</option>
|
|
103 <option value="centroid">centroid</option>
|
|
104 <option value="weighted">weighted</option>
|
|
105 <option value="single">single</option>
|
|
106 <option value="ward">ward</option>
|
|
107 <option value="average">average</option>
|
|
108 <option value="median">median</option>
|
|
109 </param>
|
|
110 <param label="--p-cluster: " name="pcluster" optional="True" type="select">
|
|
111 <option selected="True" value="None">Selection is Optional</option>
|
|
112 <option value="features">features</option>
|
|
113 <option value="both">both</option>
|
|
114 <option value="samples">samples</option>
|
|
115 <option value="none">none</option>
|
|
116 </param>
|
|
117 <param label="--p-color-scheme: " name="pcolorscheme" optional="True" type="select">
|
|
118 <option selected="True" value="None">Selection is Optional</option>
|
|
119 <option value="bone">bone</option>
|
|
120 <option value="PRGn_r">PRGn_r</option>
|
|
121 <option value="Vega10_r">Vega10_r</option>
|
|
122 <option value="GnBu">GnBu</option>
|
|
123 <option value="hsv">hsv</option>
|
|
124 <option value="binary_r">binary_r</option>
|
|
125 <option value="GnBu_r">GnBu_r</option>
|
|
126 <option value="icefire">icefire</option>
|
|
127 <option value="winter">winter</option>
|
|
128 <option value="BuGn_r">BuGn_r</option>
|
|
129 <option value="plasma_r">plasma_r</option>
|
|
130 <option value="Vega20_r">Vega20_r</option>
|
|
131 <option value="summer_r">summer_r</option>
|
|
132 <option value="cool_r">cool_r</option>
|
|
133 <option value="Spectral">Spectral</option>
|
|
134 <option value="gist_heat_r">gist_heat_r</option>
|
|
135 <option value="Vega20b_r">Vega20b_r</option>
|
|
136 <option value="mako_r">mako_r</option>
|
|
137 <option value="RdBu_r">RdBu_r</option>
|
|
138 <option value="cubehelix">cubehelix</option>
|
|
139 <option value="tab20b_r">tab20b_r</option>
|
|
140 <option value="CMRmap">CMRmap</option>
|
|
141 <option value="Greys">Greys</option>
|
|
142 <option value="PuOr">PuOr</option>
|
|
143 <option value="cubehelix_r">cubehelix_r</option>
|
|
144 <option value="Wistia">Wistia</option>
|
|
145 <option value="gnuplot2">gnuplot2</option>
|
|
146 <option value="bwr">bwr</option>
|
|
147 <option value="gnuplot_r">gnuplot_r</option>
|
|
148 <option value="viridis">viridis</option>
|
|
149 <option value="gist_ncar_r">gist_ncar_r</option>
|
|
150 <option value="gist_ncar">gist_ncar</option>
|
|
151 <option value="plasma">plasma</option>
|
|
152 <option value="PuRd">PuRd</option>
|
|
153 <option value="afmhot">afmhot</option>
|
|
154 <option value="icefire_r">icefire_r</option>
|
|
155 <option value="tab20b">tab20b</option>
|
|
156 <option value="gist_yarg_r">gist_yarg_r</option>
|
|
157 <option value="hot">hot</option>
|
|
158 <option value="YlOrRd_r">YlOrRd_r</option>
|
|
159 <option value="Vega20c">Vega20c</option>
|
|
160 <option value="Dark2_r">Dark2_r</option>
|
|
161 <option value="Set3">Set3</option>
|
|
162 <option value="PuBu">PuBu</option>
|
|
163 <option value="magma">magma</option>
|
|
164 <option value="Pastel2">Pastel2</option>
|
|
165 <option value="terrain">terrain</option>
|
|
166 <option value="autumn_r">autumn_r</option>
|
|
167 <option value="spectral">spectral</option>
|
|
168 <option value="brg">brg</option>
|
|
169 <option value="Set3_r">Set3_r</option>
|
|
170 <option value="coolwarm">coolwarm</option>
|
|
171 <option value="Set2_r">Set2_r</option>
|
|
172 <option value="Paired_r">Paired_r</option>
|
|
173 <option value="tab20c_r">tab20c_r</option>
|
|
174 <option value="mako">mako</option>
|
|
175 <option value="gist_rainbow_r">gist_rainbow_r</option>
|
|
176 <option value="RdBu">RdBu</option>
|
|
177 <option value="PuBu_r">PuBu_r</option>
|
|
178 <option value="jet_r">jet_r</option>
|
|
179 <option value="gist_earth_r">gist_earth_r</option>
|
|
180 <option value="Greys_r">Greys_r</option>
|
|
181 <option value="gray">gray</option>
|
|
182 <option value="winter_r">winter_r</option>
|
|
183 <option value="rocket">rocket</option>
|
|
184 <option value="Set2">Set2</option>
|
|
185 <option value="seismic_r">seismic_r</option>
|
|
186 <option value="Pastel1">Pastel1</option>
|
|
187 <option value="RdYlGn_r">RdYlGn_r</option>
|
|
188 <option value="copper">copper</option>
|
|
189 <option value="spring_r">spring_r</option>
|
|
190 <option value="BuGn">BuGn</option>
|
|
191 <option value="Greens">Greens</option>
|
|
192 <option value="Blues">Blues</option>
|
|
193 <option value="PiYG_r">PiYG_r</option>
|
|
194 <option value="YlGnBu">YlGnBu</option>
|
|
195 <option value="Paired">Paired</option>
|
|
196 <option value="YlGn_r">YlGn_r</option>
|
|
197 <option value="RdPu_r">RdPu_r</option>
|
|
198 <option value="BrBG_r">BrBG_r</option>
|
|
199 <option value="bone_r">bone_r</option>
|
|
200 <option value="RdYlBu">RdYlBu</option>
|
|
201 <option value="gist_rainbow">gist_rainbow</option>
|
|
202 <option value="bwr_r">bwr_r</option>
|
|
203 <option value="inferno_r">inferno_r</option>
|
|
204 <option value="inferno">inferno</option>
|
|
205 <option value="gist_stern_r">gist_stern_r</option>
|
|
206 <option value="gray_r">gray_r</option>
|
|
207 <option value="Purples">Purples</option>
|
|
208 <option value="RdGy">RdGy</option>
|
|
209 <option value="hot_r">hot_r</option>
|
|
210 <option value="YlOrBr_r">YlOrBr_r</option>
|
|
211 <option value="nipy_spectral">nipy_spectral</option>
|
|
212 <option value="nipy_spectral_r">nipy_spectral_r</option>
|
|
213 <option value="ocean">ocean</option>
|
|
214 <option value="Set1">Set1</option>
|
|
215 <option value="Dark2">Dark2</option>
|
|
216 <option value="Oranges">Oranges</option>
|
|
217 <option value="Pastel1_r">Pastel1_r</option>
|
|
218 <option value="Oranges_r">Oranges_r</option>
|
|
219 <option value="Pastel2_r">Pastel2_r</option>
|
|
220 <option value="YlGn">YlGn</option>
|
|
221 <option value="Vega20b">Vega20b</option>
|
|
222 <option value="PuRd_r">PuRd_r</option>
|
|
223 <option value="PuBuGn_r">PuBuGn_r</option>
|
|
224 <option value="afmhot_r">afmhot_r</option>
|
|
225 <option value="spring">spring</option>
|
|
226 <option value="tab20_r">tab20_r</option>
|
|
227 <option value="PuBuGn">PuBuGn</option>
|
|
228 <option value="gist_yarg">gist_yarg</option>
|
|
229 <option value="PiYG">PiYG</option>
|
|
230 <option value="flag">flag</option>
|
|
231 <option value="rainbow_r">rainbow_r</option>
|
|
232 <option value="hsv_r">hsv_r</option>
|
|
233 <option value="prism_r">prism_r</option>
|
|
234 <option value="ocean_r">ocean_r</option>
|
|
235 <option value="magma_r">magma_r</option>
|
|
236 <option value="flag_r">flag_r</option>
|
|
237 <option value="Blues_r">Blues_r</option>
|
|
238 <option value="gnuplot2_r">gnuplot2_r</option>
|
|
239 <option value="gist_gray">gist_gray</option>
|
|
240 <option value="spectral_r">spectral_r</option>
|
|
241 <option value="CMRmap_r">CMRmap_r</option>
|
|
242 <option value="rainbow">rainbow</option>
|
|
243 <option value="gnuplot">gnuplot</option>
|
|
244 <option value="vlag">vlag</option>
|
|
245 <option value="Set1_r">Set1_r</option>
|
|
246 <option value="Accent">Accent</option>
|
|
247 <option value="coolwarm_r">coolwarm_r</option>
|
|
248 <option value="brg_r">brg_r</option>
|
|
249 <option value="pink_r">pink_r</option>
|
|
250 <option value="YlOrBr">YlOrBr</option>
|
|
251 <option value="Vega20c_r">Vega20c_r</option>
|
|
252 <option value="Wistia_r">Wistia_r</option>
|
|
253 <option value="RdGy_r">RdGy_r</option>
|
|
254 <option value="tab20">tab20</option>
|
|
255 <option value="BrBG">BrBG</option>
|
|
256 <option value="rocket_r">rocket_r</option>
|
|
257 <option value="OrRd_r">OrRd_r</option>
|
|
258 <option value="YlGnBu_r">YlGnBu_r</option>
|
|
259 <option value="viridis_r">viridis_r</option>
|
|
260 <option value="copper_r">copper_r</option>
|
|
261 <option value="gist_heat">gist_heat</option>
|
|
262 <option value="Vega10">Vega10</option>
|
|
263 <option value="PuOr_r">PuOr_r</option>
|
|
264 <option value="binary">binary</option>
|
|
265 <option value="pink">pink</option>
|
|
266 <option value="Reds">Reds</option>
|
|
267 <option value="Purples_r">Purples_r</option>
|
|
268 <option value="cool">cool</option>
|
|
269 <option value="prism">prism</option>
|
|
270 <option value="terrain_r">terrain_r</option>
|
|
271 <option value="BuPu_r">BuPu_r</option>
|
|
272 <option value="Spectral_r">Spectral_r</option>
|
|
273 <option value="Greens_r">Greens_r</option>
|
|
274 <option value="gist_gray_r">gist_gray_r</option>
|
|
275 <option value="RdYlGn">RdYlGn</option>
|
|
276 <option value="tab20c">tab20c</option>
|
|
277 <option value="Reds_r">Reds_r</option>
|
|
278 <option value="tab10">tab10</option>
|
|
279 <option value="summer">summer</option>
|
|
280 <option value="gist_stern">gist_stern</option>
|
|
281 <option value="tab10_r">tab10_r</option>
|
|
282 <option value="YlOrRd">YlOrRd</option>
|
|
283 <option value="jet">jet</option>
|
|
284 <option value="Vega20">Vega20</option>
|
|
285 <option value="vlag_r">vlag_r</option>
|
|
286 <option value="RdPu">RdPu</option>
|
|
287 <option value="OrRd">OrRd</option>
|
|
288 <option value="Accent_r">Accent_r</option>
|
|
289 <option value="autumn">autumn</option>
|
|
290 <option value="BuPu">BuPu</option>
|
|
291 <option value="RdYlBu_r">RdYlBu_r</option>
|
|
292 <option value="gist_earth">gist_earth</option>
|
|
293 <option value="seismic">seismic</option>
|
|
294 <option value="PRGn">PRGn</option>
|
|
295 </param>
|
|
296
|
5
|
297
|
|
298 <param label="--m-metadata-file METADATA" name="metadatafile" type="data" format="tabular,qza,no_unzip.zip" />
|
|
299
|
0
|
300
|
|
301 </inputs>
|
|
302 <outputs>
|
|
303 <data format="html" label="${tool.name} on ${on_string}: heatmap.qzv" name="oheatmap"/>
|
|
304 <data format="qza" label="${tool.name} on ${on_string}: filteredtable.qza" name="ofilteredtable"/>
|
|
305 </outputs>
|
|
306 <help><![CDATA[
|
|
307 Generate heatmap of important features.
|
|
308 #######################################
|
|
309
|
|
310 Generate a heatmap of important features. Features are filtered based on
|
|
311 importance scores; samples are optionally grouped by metadata; and a
|
|
312 heatmap is generated that displays (normalized) feature abundances per
|
|
313 sample.
|
|
314
|
|
315 Parameters
|
|
316 ----------
|
|
317 table : FeatureTable[Frequency]
|
|
318 Feature table containing all features that should be used for target
|
|
319 prediction.
|
|
320 importance : FeatureData[Importance]
|
|
321 Feature importances.
|
|
322 metadata : MetadataColumn[Categorical], optional
|
|
323 Metadata file to convert to feature table.
|
|
324 feature_count : Int % Range(0, None), optional
|
|
325 Filter feature table to include top N most important features. Set to
|
|
326 zero to include all features.
|
|
327 importance_threshold : Float % Range(0, None), optional
|
|
328 Filter feature table to exclude any features with an importance score
|
|
329 less than this threshold. Set to zero to include all features.
|
|
330 group_samples : Bool, optional
|
|
331 Group samples by metadata.
|
|
332 normalize : Bool, optional
|
|
333 Normalize the feature table by adding a psuedocount of 1 and then
|
|
334 taking the log10 of the table.
|
|
335 metric : Str % Choices('sokalmichener', 'yule', 'russellrao', 'rogerstanimoto', 'minkowski', 'correlation', 'jaccard', 'cosine', 'chebyshev', 'euclidean', 'sqeuclidean', 'cityblock', 'matching', 'dice', 'mahalanobis', 'kulsinski', 'seuclidean', 'sokalsneath', 'canberra', 'hamming', 'braycurtis'), optional
|
|
336 Metrics exposed by seaborn (see http://seaborn.pydata.org/generated/sea
|
|
337 born.clustermap.html#seaborn.clustermap for more detail).
|
|
338 method : Str % Choices('average', 'complete', 'median', 'centroid', 'single', 'ward', 'weighted'), optional
|
|
339 Clustering methods exposed by seaborn (see http://seaborn.pydata.org/ge
|
|
340 nerated/seaborn.clustermap.html#seaborn.clustermap for more detail).
|
|
341 cluster : Str % Choices('features', 'samples', 'none', 'both'), optional
|
|
342 Specify which axes to cluster.
|
|
343 color_scheme : Str % Choices('rocket', 'RdYlBu_r', 'winter', 'viridis', 'BrBG', 'magma_r', 'YlOrBr', 'seismic', 'Set1', 'gist_yarg_r', 'gist_rainbow', 'autumn_r', 'Wistia_r', 'cool_r', 'hsv_r', 'flag', 'Vega20b_r', 'mako_r', 'coolwarm', 'Vega20_r', 'jet', 'cubehelix_r', 'bwr_r', 'brg', 'RdPu', 'gist_ncar', 'RdPu_r', 'cool', 'gnuplot_r', 'Set3', 'ocean_r', 'tab20b', 'tab20b_r', 'OrRd_r', 'Spectral_r', 'gray', 'OrRd', 'prism_r', 'Wistia', 'hot', 'icefire', 'plasma', 'Purples_r', 'viridis_r', 'gnuplot2_r', 'CMRmap', 'YlGnBu_r', 'Set3_r', 'PuRd_r', 'Reds_r', 'gray_r', 'Dark2', 'Vega20b', 'Paired', 'gist_yarg', 'RdYlGn_r', 'Greens', 'YlGnBu', 'tab20', 'gnuplot', 'PuBuGn_r', 'spectral_r', 'tab20c_r', 'gist_rainbow_r', 'hot_r', 'spring_r', 'gist_gray', 'Blues_r', 'Spectral', 'magma', 'GnBu_r', 'inferno_r', 'tab10', 'gist_gray_r', 'seismic_r', 'spring', 'BuPu_r', 'spectral', 'BrBG_r', 'PiYG', 'inferno', 'YlOrBr_r', 'Set1_r', 'YlOrRd_r', 'summer', 'vlag', 'Oranges_r', 'Dark2_r', 'binary_r', 'icefire_r', 'RdYlGn', 'hsv', 'gist_heat', 'PRGn_r', 'pink_r', 'Pastel2_r', 'copper_r', 'BuGn', 'gist_stern_r', 'PuRd', 'gist_earth_r', 'YlOrRd', 'Reds', 'gist_earth', 'Greens_r', 'Vega10', 'ocean', 'brg_r', 'rainbow_r', 'tab20_r', 'Purples', 'Blues', 'Accent', 'afmhot_r', 'Set2_r', 'RdBu', 'Vega20c', 'Pastel1', 'RdGy_r', 'PuBuGn', 'copper', 'PuOr', 'jet_r', 'YlGn_r', 'gist_heat_r', 'PuOr_r', 'bone', 'BuGn_r', 'terrain_r', 'mako', 'Vega20c_r', 'Paired_r', 'PuBu_r', 'tab20c', 'Pastel1_r', 'flag_r', 'plasma_r', 'Oranges', 'autumn', 'bone_r', 'GnBu', 'bwr', 'Greys', 'RdBu_r', 'RdGy', 'winter_r', 'gnuplot2', 'coolwarm_r', 'pink', 'nipy_spectral', 'Greys_r', 'summer_r', 'Vega20', 'BuPu', 'afmhot', 'gist_stern', 'binary', 'PiYG_r', 'YlGn', 'rocket_r', 'cubehelix', 'rainbow', 'Accent_r', 'CMRmap_r', 'PRGn', 'PuBu', 'tab10_r', 'prism', 'vlag_r', 'Set2', 'gist_ncar_r', 'nipy_spectral_r', 'Pastel2', 'terrain', 'RdYlBu', 'Vega10_r'), optional
|
|
344 Color scheme for heatmap.
|
|
345
|
|
346 Returns
|
|
347 -------
|
|
348 heatmap : Visualization
|
|
349 Heatmap of important features.
|
|
350 filtered_table : FeatureTable[Frequency]
|
|
351 Filtered feature table containing data displayed in heatmap.
|
|
352 ]]></help>
|
|
353 <macros>
|
|
354 <import>qiime_citation.xml</import>
|
|
355 </macros>
|
|
356 <expand macro="qiime_citation"/>
|
|
357 </tool>
|