Entering edit mode
18 months ago
biology_inform
▴
50
Hi all, I created a heatmap and I want to see the genes in specific dendogram groups. To exemplify, I want to see the genes in the highlighted with red box
Have you searched the manual thoroughly and read all relevant parts?
I believe I did, to be clear I did splitting in my heatmap I think it is going to be more clear.
To do this heatmap, I used Km clustering, so ultimately I would like learn the genes in Cluster 6 for instance.
You're going to have to draw the heatmap (just on a
pdf(NULL)
while saving the drawn heatmap to an object), then use something likeget_row_order
(or a similar dendrogram getter) on that object to get the portion you're interested then and then extract the names from that. If you only wish to add those as labels (not sure if that'll look any good), you'll need to use therow_annotation
asrow_labels
cannot be selectively hidden (as far as I am aware at least).EDIT: Like I said, if you read the manual properly, you'll find the solution more often than not: https://jokergoo.github.io/ComplexHeatmap-reference/book/a-single-heatmap.html#get-orders-and-dendrograms-from-heatmap
Also, have you read and tested the suggestions here in a very similar post of yours?
You can make it interactive and click to see the gene names too https://jokergoo.github.io/InteractiveComplexHeatmap/