Hi i have a query regarding clustering,I have clustered my genes using amap package of top 50 genes but how can i find out the distances between these genes depending upon their expression values.I have used this R script:
library(amap)
clust.genes<-hcluster(x=dat.s,method="euclidean",link="average")
clust.arrays<-hcluster(x=t(dat.s),method="euclidean",link="average")
n<-1:nrow(dat.s)
n.s<-sample(n, nrow(dat.s)*0.1)
dat.sample<-dat.s[n.s,]
library(amap)
clust.genes<-hcluster(x=dat.sample, method="euclidean",link="average")
clust.arrays<-hcluster(x=t(dat.sample), method="euclidean",link="average")
plot(clust.genes)