slingClusterLabels {slingshot} | R Documentation |
Extract the cluster labels used by slingshot
.
slingClusterLabels(x) ## S4 method for signature 'SlingshotDataSet' slingClusterLabels(x) ## S4 method for signature 'SingleCellExperiment' slingClusterLabels(x)
x |
an object containing |
a vector of cluster labels or a matrix of cluster assignment weights.
SlingshotDataSet
: returns the cluster labels stored in a
SlingshotDataSet
object.
SingleCellExperiment
: returns the cluster labels used by
slingshot
in a SingleCellExperiment
object.
data("slingshotExample") rd <- slingshotExample$rd cl <- slingshotExample$cl sds <- getLineages(rd, cl) slingClusterLabels(sds)