SlingshotDataSet: Extract Slingshot output

Description Usage Arguments Value Examples

Description

This is a convenience function to extract a SlingshotDataSet from an object containing slingshot output.

Usage

1
2
3
4
5
6
7
SlingshotDataSet(data, ...)

## S4 method for signature 'SingleCellExperiment'
SlingshotDataSet(data)

## S4 method for signature 'SlingshotDataSet'
SlingshotDataSet(data)

Arguments

data

an object containing slingshot output.

...

additional arguments to pass to object-specific methods.

Value

A SlingshotDataSet object containing the output of slingshot.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data("slingshotExample")
rd <- slingshotExample$rd
cl <- slingshotExample$cl
library(SingleCellExperiment)
u <- matrix(rpois(140*50, 5), nrow = 50)
sce <- SingleCellExperiment(assays = list(counts = u), 
                            reducedDims = SimpleList(PCA = rd),
                            colData = data.frame(clus = cl))
sce <- slingshot(sce, clusterLabels = 'clus', reducedDim = 'PCA')
SlingshotDataSet(sce)

slingshot documentation built on Nov. 8, 2020, 5:51 p.m.