states<- {CellTrails} | R Documentation |
Sets states to a SingleCellExperiment
object
states(object) <- value
object |
An object of class |
value |
A numeric, character or factor vector |
State information is added to a
SingleCellExperiment
object via colData
. If the
vector containing the cluster assignments is numeric, the prefix
"S" is added and the vector is converted to type factor.
An updated object of class SingleCellExperiment
Daniel C. Ellwanger
colData
# Example data data(exSCE) # Assign clusters cl <- kmeans(logcounts(exSCE), centers=10)$cluster states(exSCE) <- cl