Re: [R] cluster samples using self organizing map in R

2018-10-10 Thread Sarah Goslee
Hi Tina, What's wrong with what you did? The output object of som() contains the classification of each sample. You probably do need to read more about self-organizing maps, since you specified you wanted the samples classified into nine groups, and that's unlikely to be your actual intent. I h

Re: [R] cluster samples using self organizing map in R

2018-10-10 Thread Bert Gunter
Search! the rseek.org site gives many hits for "self organizing maps", including the som package among others. -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic stri

[R] cluster samples using self organizing map in R

2018-10-09 Thread A DNA RNA
Dear All, Who can I use Self Organizing Map (SOM) results to cluster samples? I have tried following but this gives me only the clustering of grids, while I want to cluster (150) samples: library(kohonen) iris.sc <- scale(iris[, 1:4]) iris.som <- som(iris.sc, grid=somgrid(xdim = 3, ydim=3, topo="