Dear R user,
I have a Heatmap obtained from package ComplexHeatmap. My samples in columns cluster in 3 well differentiated groups.
To perform a survival analysis I would like a df or vector giving for each sample the clustering group it belongs (1, 2 or 3 ; or A, B or C).
With the pheatmap function it is quite easy to get the tree_col : pheatmap$tree_col and to use the cutter function, but I do not find how to get the tree_col with ComplexHeatmap.
Best
Simon