Extracting subclusters from original data
1
0
Entering edit mode
Mina • 0
@mina-13589
Last seen 5.2 years ago

I am analyzing a nontargeted metabolomic data set using ComplexHeatmap. After I made a heatmap of all identified metabolites, I decided to continue the analyses only of compounds that are in one cluster. How do I extract the data from e.g. Cluster1 and make a new dataframe out of it?

complexheatmap metabolomics • 1.2k views
0
Entering edit mode
sina.nassiri ▴ 120
@sinanassiri-10062
Last seen 14 months ago
Switzerland/Lausanne

I'm not familiar with ComplexHeatmap, but if it produces a tree (as resulting from hclust e.g.) you can directly pass it to cutree().

0
Entering edit mode

Thank you Sina.  That did help.