Embeddings | R Documentation |
Get Cell Embeddings
Embeddings(object, ...)
## S3 method for class 'DimReduc'
Embeddings(object, ...)
## S3 method for class 'Seurat'
Embeddings(object, reduction = "pca", ...)
object |
An object |
... |
Arguments passed to other methods |
reduction |
Name of reduction to pull cell embeddings for |
The embeddings matrix
# Get the embeddings directly from a DimReduc object
Embeddings(object = pbmc_small[["pca"]])[1:5, 1:5]
# Get the embeddings from a specific DimReduc in a Seurat object
Embeddings(object = pbmc_small, reduction = "pca")[1:5, 1:5]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.