Ming Tang
Sat Jul 25 11:02:24 2015
hclust command is used to do the hierachical clustering# install the package if you do not have it.
# install.packages("ISLR")
library(ISLR)
ncidat = t(NCI60$data)
colnames(ncidat) = NCI60$labs
# how many genes and samples in the data matrix?
dim(ncidat)
[1] 6830 64
# what are the samples
unique(colnames(ncidat))
[1] "CNS" "RENAL" "BREAST" "NSCLC" "UNKNOWN"
[6] "OVARIAN" "MELANOMA" "PROSTATE" "LEUKEMIA" "K562B-repro"
[11] "K562A-repro" "COLON" "MCF7A-repro" "MCF7D-repro"
Different likages give you different clusters. For example: complete linkage.
Access the app on shinyapps
choose different linkage methods and cluster numbers to see the effect.