| kmeansClust {tomoda} | R Documentation |
Performs K-Means clustering across sections in a SummarizedExperiment object.
kmeansClust(object, centers, matrix = "normalized", ...)
object |
A |
centers |
Integer, number of clusters, namely k. |
matrix |
Character, must be one of |
... |
other parameters passed to |
A SummarizedExperiment object. The obtained cluster labels are saved in slot meta.
kmeans for performing K-Means clustering on a matrix.
data(zh.data) zh <- createTomo(zh.data) zh <- kmeansClust(zh, 3) # Use scaled read counts to calculate distance zh <- scaleTomo(zh) zh <- kmeansClust(zh, 3, matrix="scaled")