mkatari-bioinformatics-august-2013-clustering
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
mkatari-bioinformatics-august-2013-clustering [2014/12/15 12:45] – mkatari | mkatari-bioinformatics-august-2013-clustering [2014/12/15 12:52] – mkatari | ||
---|---|---|---|
Line 90: | Line 90: | ||
< | < | ||
- | SigGenes.kmeans.2 = kmeans(t(scaledSigGenes), 2, nstart=25) | + | SigGenes.kmeans.2 = kmeans(scaledSigGenes, |
</ | </ | ||
Line 108: | Line 108: | ||
for (i in 2:20) { | for (i in 2:20) { | ||
| | ||
- | | + | #alternate way of looking at proportion of ss that is provided by between groups. |
- | + | #kmeans_ss[i] = kmeans_tmp$betweenss/ | |
+ | |||
+ | # | ||
+ | | ||
+ | | ||
+ | |||
} | } | ||
return(kmeans_ss) | return(kmeans_ss) | ||
Line 124: | Line 130: | ||
</ | </ | ||
- | |||
- | </ | ||
The code below plots k-means clustering results. You simply have to provide the k-means output and the labels. | The code below plots k-means clustering results. You simply have to provide the k-means output and the labels. |
mkatari-bioinformatics-august-2013-clustering.txt · Last modified: 2015/06/17 13:26 by mkatari