View source: R/object_access.R
object_data | R Documentation |
Function to access object data
object_data(object, ...)
## S3 method for class 'Seurat'
object_data(object, slot, n_genes = 1000, ...)
## S3 method for class 'SingleCellExperiment'
object_data(object, slot, ...)
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) |
expression matrix, with genes as row names, and cell types as column names
so <- so_pbmc()
mat <- object_data(
object = so,
slot = "data"
)
mat[1:3, 1:3]
sce <- sce_pbmc()
mat <- object_data(
object = sce,
slot = "data"
)
mat[1:3, 1:3]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.