This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Need advice: I want to display a heatmap of gene expression based on a dendrogram from the WGCNA package

Sorry for the vague question, but I am not really sure how to proceed with this. I have used the WGCNA package in R to identify modules of co-expressed genes. The procedure creates a dendrogram like this:

image: dendrogram

And I would like to create a heatmap of gene expression using the dendrogram from WGCNA. Like this:

image: heatmap

But I am not sure how I can order the expression matrix according to the dendrogram. Any advice will be greatly appreciated!

heatmap clustering rna-seq wgcna r

1 answer

It seems to me that you would like to do is similar to this: http://stats.stackexchange.com/questions/6890/plotting-a-heatmap-given-a-dendrogram-and-a-distance-matrix-in-r

Log in to answer this question.