This is a test version of Biostars. For the public version, visit https://www.biostars.org.
When looking at a heatmap created by DESeq2, how can I find what genes are in specific regions of interest?

Once I have generated my heat map and clustered the rows, how can I find out what genes are there? For example, in my image, I am interested in knowing what gene is shown as up-regulated (in red) which I squared off in my image above sample AS62.

Is there a way to make heat maps interactive? Or how can I view the gene names for certain areas?

enter image description here

pheatmap deseq2 heatmap rnaseq r

1 answer

The clustering information is stored inside heatmap$tree_row.

tmp_heatmap <- pheatmap(...)
plot(tmp_heatmap$tree_row)

Exampl

Based on the clustering cut and the expression values, you should be able to pinpoint your genes of interest.

Log in to answer this question.