Learn R Programming

slingshot (version 2.1.1)

as.SlingshotDataSet: Conversion to SlingshotDataSet

Description

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

Usage

as.SlingshotDataSet(x, ...)

# S4 method for PseudotimeOrdering as.SlingshotDataSet(x)

# S4 method for SingleCellExperiment as.SlingshotDataSet(x)

# S4 method for 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

Run this code
# NOT RUN {
data("slingshotExample")
rd <- slingshotExample$rd
cl <- slingshotExample$cl
pto <- slingshot(rd, cl, start.clus = '1')
as.SlingshotDataSet(pto)

# }

Run the code above in your browser using DataLab