as.SlingshotDataSet: Conversion to SlingshotDataSet

as.SlingshotDataSetR 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)


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