coerce: Force an object to belong to a class

coerceR Documentation

Force an object to belong to a class

Description

Force an object to belong to a class

Note

Updated 2023-08-16.

Examples

data(Seurat, SingleCellExperiment_Seurat, package = "AcidTest")

## SingleCellExperiment to Seurat ====
from <- SingleCellExperiment_Seurat
to <- as(from, "Seurat")
class(to)
print(to)

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

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