as.SlingshotDataSet {slingshot} | R Documentation |
This function converts objects that contain slingshot
results into a SlingshotDataSet
.
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)
x |
an object containing |
... |
additional arguments to pass to object-specific methods. |
A SlingshotDataSet
object containing the slingshot
results from the original object, x
.
data("slingshotExample") rd <- slingshotExample$rd cl <- slingshotExample$cl pto <- slingshot(rd, cl, start.clus = '1') as.SlingshotDataSet(pto)