states-set: SET states

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Sets states to a SingleCellExperiment object

Usage

1
states(object) <- value

Arguments

object

An object of class SingleCellExperiment

value

A numeric, character or factor vector

Details

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.

Value

An updated object of class SingleCellExperiment

Author(s)

Daniel C. Ellwanger

See Also

colData

Examples

1
2
3
4
5
6
# Example data
data(exSCE)

# Assign clusters
cl <- kmeans(logcounts(exSCE), centers=10)$cluster
states(exSCE) <- cl

dcellwanger/CellTrails documentation built on May 12, 2020, 2:01 a.m.