slingBranchID: Get slingshot branch labels

Description Usage Arguments Value Examples

Description

Extracts lineage assignments from slingshot results. This produces a categorical variable indicating which lineage (or combination of lineages) each cell is assigned to.

Usage

1
2
3
4
slingBranchID(x, ...)

## S4 method for signature 'ANY'
slingBranchID(x, thresh = NULL)

Arguments

x

an object containing slingshot output, generally either a SlingshotDataSet or SingleCellExperiment.

...

additional arguments passed to object-specific methods.

thresh

weight threshold for assigning cells to lineages. A cell's weight on a certain lineage must be at least this value (default = 1/L, for L lineages).

Value

a factor variable that assigns each cell to a particular lineage or set of lineages.

Examples

1
2
3
4
5
data("slingshotExample")
rd <- slingshotExample$rd
cl <- slingshotExample$cl
sds <- slingshot(rd, cl)
slingBranchID(sds)

slingshot documentation built on Nov. 8, 2020, 5:51 p.m.