Heatmap sample group ordering

Hi friends!!! @fbeghini
I am generating a heatmap from metaphlan output. I have suppose, 9 samples. 3 test and 6 control samples. They are named as like: test_prjna312320, test_prjeb35647, control_prjeb984715, etc. In the heatmap output, they are not ordered according to alphabetically, e.g., first control samples and then test samples…
They are not ordered. How can I order them? Any suggestions? i am not getting any clue from hclust.py -h

Thanks and Regards,

Samples are ordered using the order retrieved by the hierarchical clustering, you can suppress the hierarchical clustering on samples using --no_sclustering and provide a manually ordered input file

1 Like