Return the number of lineages for a slingshot object

nLineages(sds, ...)

# S4 method for SingleCellExperiment
nLineages(sds)

# S4 method for SlingshotDataSet
nLineages(sds)

# S4 method for PseudotimeOrdering
nLineages(sds)

Arguments

sds

A slingshot object already run on the full dataset. Can be either a SlingshotDataSet or a SingleCellExperiment object.

...

parameters including:

Value

The number of lineages in the slingshot object

Examples

data(list = 'slingshotExample', package = "slingshot") if (!"cl" %in% ls()) { rd <- slingshotExample$rd cl <- slingshotExample$cl } sds <- slingshot::slingshot(rd, cl) nLineages(sds)
#> [1] 2