coerce: Methods for Coercing an Object to a Class

Description Value SingleCellExperiment to seurat seurat to SingleCellExperiment Author(s) See Also Examples

Description

Methods for Coercing an Object to a Class

Value

Object of new class.

SingleCellExperiment to seurat

Interally Seurat::CreateSeuratObject() is called without applying any additional filtering cutoffs, since we have already defined them during our quality control analysis. Here we are passing the raw gene-level counts of the filtered cells into a new seurat class object.

seurat to SingleCellExperiment

Super basic S4 coercion support for taking the raw counts matrix from a seurat class object and coercing to a SingleCellExperiment.

Author(s)

Michael Steinbaugh

See Also

Other S4 Object: bcbioSingleCell, extract, show, updateObject

Examples

1
2
3
4
5
6
7
8
# SingleCellExperiment to seurat ====
x <- as(indrops_small, "seurat")
class(x)
print(x)
# seurat to SingleCellExperiment ====
x <- as(seurat_small, "SingleCellExperiment")
class(x)
print(x)

WeiSong-bio/roryk-bcbioSinglecell documentation built on July 6, 2019, 12:03 a.m.