object_data: Function to access object data

Description Usage Arguments Value Examples

View source: R/seurat_wrapper.R

Description

Function to access object data

Usage

1
2
3
4
5
6
7
object_data(object, ...)

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

## 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

n_genes

number of genes limit for Seurat variable genes, by default 1000, set to 0 to use all variable genes (generally not recommended)

Value

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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]

NCBI-Hackathons/RClusterCT documentation built on Aug. 5, 2021, 10:48 p.m.