Takes a pre-computed dimensional reduction (typically calculated on a subset of genes) and projects this onto the entire dataset (all genes). Note that the cell loadings will remain unchanged, but now there are gene loadings for all genes.
ProjectDim(object, reduction.type = "pca", dims.print = 1:5,
dims.store = 30, genes.print = 30, replace.dim = FALSE,
do.center = FALSE, do.print = TRUE, assay.type = "RNA")
Seurat object
Number of dims to print genes for
Number of dims to store (default is 30)
Number of genes with highest/lowest loadings to print for each PC
Replace the existing data (overwrite object@dr$XXX@gene.loadings), not done by default.
Center the dataset prior to projection (should be set to TRUE)
Print top genes associated with the projected dimensions
Data type, RNA by default. Can be changed for multimodal datasets (i.e. project a PCA done on RNA, onto CITE-seq data)
Returns Seurat object with the projected values in object@dr$XXX@gene.loadings.full