# important features heatmap - taxonomy

**URL:** <https://forum.qiime2.org/t/important-features-heatmap-taxonomy/10695>\
**Category:** User Support\
**Created:** [July 16, 2019, 4:25pm UTC](https://forum.qiime2.org/t/important-features-heatmap-taxonomy/10695 "2019-07-16T16:25:49Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Nicholas\_Bokulich](https://forum.qiime2.org/user_avatar/forum.qiime2.org/nicholas_bokulich/32/19937_2.png) [@Nicholas\_Bokulich](https://forum.qiime2.org/u/Nicholas_Bokulich)\
**Post date:** [July 16, 2019, 7:08pm UTC](https://forum.qiime2.org/t/important-features-heatmap-taxonomy/10695/4 "2019-07-16T19:08:19Z")

</div>

Thanks for reminding me, @LenaLapidot. This is something I've been meaning to do this release.

I just made the changes to allow this, but my gut feeling is it will not make it into the 2019.7 release (out at the end of this month). Keep an eye on the changelog that comes out with that release, and/or [this pull request](https://github.com/qiime2/q2-sample-classifier/pull/155) to keep track of this feature.

In the meantime, here is a convoluted workaround (no guarantees it will work "as is"!):

1. export your taxonomy classifications
2. concatenate your feature IDs and taxonomy IDs and add this as an additional column to your taxonomy.tsv file, maybe something like this would work (or maybe not!): `tr '\t' ': ' < taxonomy.tsv | paste taxonomy.tsv - > new-taxonomy.tsv`
3. re-annotate your feature IDs. Use `feature-table group --i-table table.qza --p-axis feature --m-metadata-column 'feature-id: Taxon' --m-metadata-file new-taxonomy.tsv --o-grouped-table table-with-new-feature-ids.qza
4. use that new table to make your heatmap

Again, no guarantees this will work as-is! The goal is to get a taxonomy text file that looks like this:

| feature-id | Taxon | feature-id: Taxon |
| --- | --- | --- |
| feature1 | Bacteria | feature1: Bacteria |
| feature2 | Bacteria;Listeria | feature2: Bacteria;Listeria |
| et cetera | | |

Then whatever is in the third column (which can be named whatever you like!) will be used to relabel your taxon IDs. As long as it is a unique value for each feature, you will keep the unique ASVs and just give them new names. So you can also try making this by hand (e.g., in excel) rather than following the nasty hack I've ad libbed above.

> [@Mehrbod\_Estaki](#):
>
> If you use the [taxa collapse](https://docs.qiime2.org/2019.4/plugins/available/taxa/collapse/) plugin to collapse your feature table down to whatever taxonomic level you want then those names should appear in your heatmap.

That would work but is probably not what you want, since you would potentially be collapsing individual ASVs that are important features in their own right (if your ASVs all have unique taxonomies, you could just follow my convoluted workaround starting at step 3 and using your taxonomy.qza file, no need to attempt the rusty hack of steps 1-2).

---

_[View the full topic](https://forum.qiime2.org/t/important-features-heatmap-taxonomy/10695)._
