| slingClusterLabels {slingshot} | R Documentation |
Extract the cluster labels used by slingshot.
slingClusterLabels(x) ## S4 method for signature 'PseudotimeOrdering' slingClusterLabels(x) ## S4 method for signature 'SlingshotDataSet' slingClusterLabels(x) ## S4 method for signature 'SingleCellExperiment' slingClusterLabels(x)
x |
an object containing |
Typically returns a matrix of cluster assignment weights
(#cells by #clusters). Rarely, a vector of cluster labels.
data("slingshotExample")
rd <- slingshotExample$rd
cl <- slingshotExample$cl
pto <- slingshot(rd, cl, start.clus = '1')
slingClusterLabels(pto)