
















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

















Yang DaiUIC
Computational Functional Genomics
Sequential
Partition methods
k-mean method
Partitioning around medoids (PAM)
Self-organizing maps (SOM)
Hierarchical
Cost function based
Others
Estimate the number of clusters
Assign each point to a cluster
Assess the strength/confidence of cluster assignments forindividual observations
Assess cluster homogeneity
Computational Functional Genomics
4
Randomly choose
points as the center of the
clusters
Visit each point and calculate the distances from this point to thecenter of every cluster
Assign each point to its closest cluster
Update the center of each newly formed cluster
Repeat steps (2)-(4) until there is no change to the centers (orreach the maximum cycles)
: Relatively efficient; Often terminates at a local optimum; The
global optimum may be found using techniques such as: deterministicannealing and genetic algorithms
: Applicable only when mean is defined; Need to specify
in
advance; Unable to handle noisy data and outliers; Not suitable todiscover clusters with non-convex shapes.
Computational Functional Genomics
Computational Functional Genomics
Computational Functional Genomics
##load cluster package >library(cclust) ## randomly generate 150 objects > x <- rbind(matrix(rnorm(150,sd=0.3),ncol=3),+
matrix(rnorm(150,mean=1,sd=0.3),ncol=3),
matrix(rnorm(150,mean=2,sd=0.3),ncol=3))
##initial values for cluster centers are 6 >c1 <- cclust(x,6,20,verbose=TRUE,method="kmeans")Iteration:
1
Changes:
138
Iteration:
2
Changes:
8
Iteration:
3
Changes:
5
Iteration:
4
Changes:
7
Iteration:
5
Changes:
4
Iteration:
6
Changes:
4
Iteration:
7
Changes:
1
Iteration:
8
Changes:
0
##initial values for cluster centers are 3 >c2 <- cclust(x,3,20,verbose=TRUE,method="kmeans")Iteration:
1
Changes:
102
Iteration:
2
Changes:
3
Iteration:
3
Changes:
0
##plot the above results >opar <- par(mfrow = c(1,2))>plot(x, col=c1$cluster)>plot(x, col=c2$cluster)
Computational Functional Genomics
x <- rbind(matrix(rnorm(150,sd=0.3),ncol=3),
matrix(rnorm(150,mean=1,sd=0.5),ncol=3),matrix(rnorm(150,mean=2,sd=0.5),ncol=3))
Computational Functional Genomics Partitioning around medoids (PAM)
For a prespecified number of clusters
, the PAM procedure
is based on the search for
representative objects, or
medoids
m
1
m
k
), among the observations to be
clustered.
The medoids minimize the sum of the distances of theobservations to their closest medoid:
After finding a set of
medoids,
clusters are constructed
by assigning each observation to the nearest medoid.
Computational Functional Genomics
## first load cluster package >library(cluster) ## randomly generate 25 objects, divided into two clusters
.
x <- rbind(cbind(rnorm(10,0,0.5), rnorm(10,0,0.5)),
cbind(rnorm(15,5,0.5), rnorm(15,5,0.5)))
pamx <- pam(x, 2)>pamx>summary(pamx)>plot(pamx) ## use obs. 1 & 16 as starting medoids – same result (typically) >p2m <- pam(x, 2, medoids = c(1,16))>p2m>summary(p2m)>plot(p2m) ## use obs. 1, 13 & 22 as starting medoids – three clusters >p3m <- pam(x, 3, medoids = c(1,13,22))>p3m>summary(p3m)>plot(p3m)
Computational Functional Genomics
Use randomly
selected
observations as starting medoids Use observation 1and 16 as starting
medoids
Computational Functional Genomics
bottom-up:
agglomerative
clustering
top-down:
divisive
clustering
Computational Functional Genomics
Start with
clusters
At each step, merge the two closest clusters using a measure ofbetween-cluster distance which reflects the shape of theclusters. Until every point is in one cluster.
Single linkage
minimum distance
Complete linkage
maximum distance
Average linkage
average distance
Centroid linkage
the distance between their centroids
Ward
weight squared Euclidean distance between means
Computational Functional Genomics
Experimental protocol
Screen shot of dataset in Excel file
Computational Functional Genomics
Genes distinguishing ALL fromAML. The 50 genes most highlycorrelated with the ALL-AML classdistinction are shown. Each rowcorresponds to a gene, with thecolumns corresponding toexpression levels in differentsamples. Expression levels foreach gene are normalized acrossthe samples such that the mean is0 and the SD is 1. Expressionlevels greater than the mean areshaded in red, and those below themean are shaded in blue.
Reference: Golub
et al
. Molecular classification of cancer: class discovery and
class prediction by gene expression monitoring. Science. 1999 Oct15;286(5439):531-7. (http://www-genome.wi.mit.edu/mpr/data_set_ALL_AML.html)