Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Commit 653d9ac

Browse files
nbokulichthermokarst
authored andcommitted
MAINT: importance features heatmap (#401)
1 parent c7f996a commit 653d9ac

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

source/tutorials/sample-classifier.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,21 @@ If ``--p-optimize-feature-selection`` is enabled, only the selected features (i.
9494
--o-filtered-table moving-pictures-classifier/important-feature-table.qza
9595

9696

97+
We can also use the ``heatmap`` pipeline to generate an abundance heatmap of the most important features in each sample or group. Let's make a heatmap of the top 30 most abundant features in each of our sample types:
98+
99+
.. command-block::
100+
101+
qiime sample-classifier heatmap \
102+
--i-table moving-pictures-table.qza \
103+
--i-importance moving-pictures-classifier/feature_importance.qza \
104+
--m-metadata-file moving-pictures-sample-metadata.tsv \
105+
--m-metadata-column BodySite \
106+
--p-group-samples \
107+
--p-feature-count 30 \
108+
--o-filtered-table moving-pictures-classifier/important-feature-table-top-30.qza \
109+
--o-heatmap moving-pictures-classifier/important-feature-heatmap.qzv
110+
111+
97112
This pipeline also produces a visualization containing a summary of the model parameters used by the supervised learning estimator in ``model_summary.qzv``. If ``--p-optimize-feature-selection`` is enabled, the visualization will also display a `recursive feature elimination`_ plot, which illustrates how model accuracy changes as a function of feature count. The combination of features that maximize accuracy are automatically selected for the final model, which is used for sample prediction results that are displayed in the other outputs.
98113

99114
.. question::

0 commit comments

Comments
 (0)