Hi, can somebody help me fix this problem. I have gene expression data of 2314 genes for 15 conditions (alpha6; normalized and log2 transformed). I did hierarchical clustering of the genes based on expression and extracted clusters with the following scripts:
hc <- hclust(dist(alpha6))
clusters_name <- cutree(hc, h=15.15)
table_clusters_name <- data.frame(clusters_name)
I also prepared a heatmap with ‘gplots’ packagae with the following scripts
heatmap.2((alpha6), Rowv=as.dendrogram(hc), RowSideColors=as.character(clusters_name), trace="none", scale="row", density.info="none", col=bluered(2766))
I got 47 clusters. I want to have the cluster no. in the heatmap dendrogram. Can any body help me to do this? Any help will be appreciated.