heatmap reordering samples

I have created a heatmap of my data where I have reordered my samples based on weight change (my two groups labelled AisGS vs BisLoss) using the following command:

qiime feature-table heatmap
--i-table table.qza
--m-sample-metadata-file metadata.tsv
--m-sample-metadata-column wt_category
--p-cluster features
--o-visualization heatmaptrial.qzv

However, I would like to now reorder the heatmap samples or 'rows' based on how similar they are to one another independent of weight change category - this way I can compare and see if the samples still separate in two groups (i.e.reordered based on weight change, ie. AisGS group on top and BisLoss group at bottom ). Not sure if I'm making sense but any ideas if this is doable?

Thank you!

using QIIME2-2022.2

This is possible!

From the docs for feature-table heatmap,

--m-sample-metadata-column COLUMN MetadataColumn[Categorical]
Annotate the sample IDs with these sample metadata
values. When metadata is present and
cluster='feature', samples will be sorted by the
metadata values. [optional]

--p-cluster TEXT Choices('features', 'samples', 'both', 'none')
Specify which axes to cluster. [default: 'both']

Try changing those and see if you can get samples to cluster by similarity and not metadata.

1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.