heatmap generation : clustered groups

Hello,

I used the following script to generate heatmap

qiime taxa collapse
--i-table table.qza
--i-taxonomy taxonomy.qza
--p-level 6
--o-collapsed-table collapsed-table-l6.qza

qiime feature-table heatmap
--i-table
--m-sample-metadata-file
--m-sample-metadata-column Disease
--p-metric correlation
--p-method complete
--o-visualization

i’m investigating microbiome profile of 4 groups : controls, 3 groups of a cohort affected with a disease

I obtained a heatmap summarizing bacteriome species and disease/sampleID it means i got for each sample separately the disease attribute and sample ID

Please indicate how to proceed to generate a heatmap of clustered samples not for individual samples for each group.

Best

Hello,

Please check this post (for the commands) and my comment to it (how to modify the metadata).