as.SingleCellExperiment: Coerce object to 'SingleCellExperiment'

as.SingleCellExperimentR Documentation

Coerce object to SingleCellExperiment

Description

Coerce object to SingleCellExperiment

Usage

as.SingleCellExperiment(x, ...)

## S4 method for signature 'Seurat'
as.SingleCellExperiment(x)

Arguments

x

Object.

...

Additional arguments.

Details

S4 coercion support for creating a SingleCellExperiment from a Seurat class object. Internally, this method improves the basic Seurat::as.SingleCellExperiment S3 coercion method, including the object@scale.data matrix, and will keep track of stashed rowRanges and metadata if the Seurat object was originally created from a SingleCellExperiment (i.e. from the bcbioSingleCell package).

Value

DESeqDataSet.

Note

Updated 2023-10-04.

See Also

  • Seurat::as.SingleCellExperiment().

Examples

data(Seurat, package = "AcidTest")

## Seurat to SingleCellExperiment ====
from <- Seurat
to <- as.SingleCellExperiment(from)
class(to)
print(to)

acidgenomics/pointillism documentation built on Oct. 18, 2023, 4:11 p.m.