nLineages: Number of lineages

nLineagesR Documentation

Number of lineages

Description

Return the number of lineages for a slingshot object

Usage

nLineages(sds, ...)

## S4 method for signature 'SingleCellExperiment'
nLineages(sds)

## S4 method for signature 'SlingshotDataSet'
nLineages(sds)

## S4 method for signature '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)

HectorRDB/condiments documentation built on Dec. 8, 2024, 6:20 a.m.