slingClusterLabels {slingshot} | R 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)

[Package slingshot version 2.0.0 Index]