Function to access object data
Usage
object_data(object, ...)
# S3 method for class 'Seurat'
object_data(object, slot, n_genes = 1000, ...)
# S3 method for class 'SingleCellExperiment'
object_data(object, slot, ...)
Examples
so <- so_pbmc()
mat <- object_data(
object = so,
slot = "data"
)
mat[1:3, 1:3]
#> 3 x 3 sparse Matrix of class "dgCMatrix"
#> AAACATACAACCAC AAACATTGAGCTAC AAACATTGATCAGC
#> PPBP . . .
#> LYZ 1.635873 1.962726 1.995416
#> S100A9 . . .
sce <- sce_pbmc()
mat <- object_data(
object = sce,
slot = "data"
)
mat[1:3, 1:3]
#> 3 x 3 sparse Matrix of class "dgCMatrix"
#> AAACATACAACCAC AAACATTGAGCTAC AAACATTGATCAGC
#> PPBP . . .
#> LYZ 1.635873 1.962726 1.995416
#> S100A9 . . .