as.SlingshotDataSet {slingshot} | R Documentation

## Conversion to SlingshotDataSet

### Description

This function converts objects that contain `slingshot` results into a `SlingshotDataSet`.

### Usage

    as.SlingshotDataSet(x, ...)

    ## S4 method for signature 'PseudotimeOrdering'
    as.SlingshotDataSet(x)

    ## S4 method for signature 'SingleCellExperiment'
    as.SlingshotDataSet(x)

    ## S4 method for signature 'SlingshotDataSet'
    as.SlingshotDataSet(x)

### Arguments

`x` | an object containing `slingshot` output.
`...` | additional arguments to pass to object-specific methods.

### Value

A `SlingshotDataSet` object containing the `slingshot` results from the original object, `x`.

### See Also

`PseudotimeOrdering`

### Examples

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

[Package slingshot version 2.2.1 Index]