Subscribecluster and the kmeans function in R suggest they work with single points (e.g. gene expression level) as opposed to a vector of points (my score curve, or "profile", which are multiple "expression levels"). Do I just consider that the "time course" or "trial" columns are analogous to each position along the genome, and rows are score values for each TF?
x1<-c(4,0,0,0,1);
x2<-c(0,4,1,0,0);
x3<-c(0,0,4,2,0);
x4<-c(1,0,0,0,3);
y<-rbind(x1,x2,x3,x4);
x<-y;
for (i in 1:15) {
y<-rbind(y,x1+rnorm(n=5),x2+rnorm(n=5),x3+rnorm(n=5),x4+rnorm(n=5));
}
z<-kmeans(y,x);
print(z);
You are not logged in, either login or create an account to post comments
posted by demiurge at 3:11 PM on June 11