Learn R Programming

Seurat (version 2.1.0)

GetCellEmbeddings: Dimensional Reduction Cell Embeddings Accessor Function

Description

Pull cell embeddings matrix for specified stored dimensional reduction analysis

Usage

GetCellEmbeddings(object, reduction.type = "pca", dims.use = NULL,
  cells.use = NULL)

Arguments

object

Seurat object

reduction.type

Type of dimensional reduction to fetch (default is PCA)

dims.use

Dimensions to include (default is all stored dims)

cells.use

Cells to include (default is all cells)

Value

Cell embedding matrix for given reduction, cells, and dimensions

Examples

Run this code
# NOT RUN {
pbmc_small
# Examine the head of the first 5 PC cell embeddings
head(GetCellEmbeddings(object = pbmc_small, reduction.type = "pca", dims.use = 1:5))

# }

Run the code above in your browser using DataLab