Learn R Programming

Seurat (version 1.2.1)

project.pca: Project Principal Components Analysis onto full dataset

Description

Takes a pre-computed PCA (typically calculated on a subset of genes) and projects this onto the entire dataset (all genes). Note that the cell loadings (PCA rotation matrices) remains unchanged, but now there are gene scores for all genes.

Usage

project.pca(object, do.print = TRUE, pcs.print = 5, pcs.store = 30, genes.print = 30, replace.pc = FALSE, do.center = TRUE)

Arguments

object
Seurat object
do.print
Print top genes associated with the projected PCs
pcs.print
Number of PCs to print genes for
pcs.store
Number of PCs to store (default is 30)
genes.print
Number of genes with highest/lowest loadings to print for each PC
replace.pc
Replace the existing PCA (overwite object@pca.x), not done by default.
do.center
Center the dataset prior to projection (should be set to TRUE)

Value

Returns Seurat object with the projected PCA values in object@pca.x.full