nLineages {condiments} | R 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)

[Package condiments version 1.0.0 Index]