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
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 !!!
