slingAdjacency {slingshot} | R Documentation

## Extract Slingshot adjacency matrix

### Description

Extract the adjacency matrix from an object containing `slingshot` output.

### Usage

    slingAdjacency(x)

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

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

### Arguments

`x` | an object containing `slingshot` output.

### Value

the matrix of connections between clusters, inferred by the MST.

### Methods (by class)

- `SlingshotDataSet`: returns the adjacency matrix between clusters from a `SlingshotDataSet` object.

- `SingleCellExperiment`: returns the adjacency matrix between clusters from a `SingleCellExperiment` object.

### Examples

    data("slingshotExample")
    sds <- getLineages(rd, cl)
    slingAdjacency(sds)

[Package slingshot version 1.4.0 Index]