Learn R Programming

slingshot (version 2.1.1)

slingClusterLabels: Extract cluster labels used by Slingshot

Description

Extract the cluster labels used by slingshot.

Usage

slingClusterLabels(x)

# S4 method for PseudotimeOrdering slingClusterLabels(x)

# S4 method for SlingshotDataSet slingClusterLabels(x)

# S4 method for SingleCellExperiment slingClusterLabels(x)

Arguments

x

an object containing slingshot output.

Value

Typically returns a matrix of cluster assignment weights (#cells by #clusters). Rarely, a vector of cluster labels.

Examples

Run this code
# NOT RUN {
data("slingshotExample")
rd <- slingshotExample$rd
cl <- slingshotExample$cl
pto <- slingshot(rd, cl, start.clus = '1')
slingClusterLabels(pto)
# }

Run the code above in your browser using DataLab