object_data {clustifyr}R Documentation

Function to access object data

Description

Function to access object data

Usage

object_data(object, ...)

## S3 method for class 'seurat'
object_data(object, slot, ...)

## S3 method for class 'Seurat'
object_data(object, slot, ...)

## S3 method for class 'SingleCellExperiment'
object_data(object, slot, ...)

Arguments

object

object after tsne or umap projections and clustering

...

additional arguments

slot

data to access

Value

expression matrix, with genes as row names, and cell types as column names

Examples

mat <- object_data(
    object = s_small,
    slot = "data"
)
mat[1:3, 1:3]
mat <- object_data(
    object = s_small3,
    slot = "data"
)
mat[1:3, 1:3]
mat <- object_data(
    object = sce_small,
    slot = "data"
)
mat[1:3, 1:3]

[Package clustifyr version 1.2.0 Index]