slingClusterLabels: Extract cluster labels used by Slingshot

slingClusterLabelsR Documentation

Extract cluster labels used by Slingshot

Description

Extract the cluster labels used by slingshot.

Usage

slingClusterLabels(x)

## S4 method for signature 'PseudotimeOrdering'
slingClusterLabels(x)

## S4 method for signature 'SlingshotDataSet'
slingClusterLabels(x)

## S4 method for signature 'SingleCellExperiment'
slingClusterLabels(x)

Arguments

x

an object containing slingshot output.

Value

Typically returns a matrix of cluster assignment weights (#cells by #clusters). Rarely, a vector of cluster labels.

Examples

data("slingshotExample")
rd <- slingshotExample$rd
cl <- slingshotExample$cl
pto <- slingshot(rd, cl, start.clus = '1')
slingClusterLabels(pto)

kstreet13/slingshot documentation built on April 6, 2023, 11:12 p.m.