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)
sds | A slingshot object already run on the full dataset. Can be either a
|
---|---|
... | parameters including: |
The number of lineages in the slingshot object
data(list = 'slingshotExample', package = "slingshot") if (!"cl" %in% ls()) { rd <- slingshotExample$rd cl <- slingshotExample$cl } sds <- slingshot::slingshot(rd, cl) nLineages(sds)#> [1] 2