This is a test version of Biostars. For the public version, visit https://www.biostars.org.
extracting the genes associated with the clusters

Dear all,

after clustering a gene expression dataset (with heatmap.2, or pheatmap), please can you advise, how can i extract the group of gene names corresponding to the dendrogram ? thanks,

-- bogdan

pheatmap heatmap.2 complexheatmap

1 answer

You can use cutree function,

cutree(hc, k)

have a look at following links:

http://stackoverflow.com/questions/20912001/extract-groups-from-distance-matrix-using-cutree-in-r

http://stackoverflow.com/questions/11489696/how-to-know-about-group-information-in-cluster-analysis-hierarchical

hope this will help you !!!

Thanks, Mike, yes, definitely, very useful ;)

This should have been posted as an answer. Thanks!

Log in to answer this question.