ProjectDim: Project Dimensional reduction onto full dataset

Description Usage Arguments Value Examples

View source: R/dimensional_reduction.R

Description

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.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
ProjectDim(
  object,
  reduction = "pca",
  assay = NULL,
  dims.print = 1:5,
  nfeatures.print = 20,
  overwrite = FALSE,
  do.center = FALSE,
  verbose = TRUE
)

Arguments

object

Seurat object

reduction

Reduction to use

assay

Assay to use

dims.print

Number of dims to print features for

nfeatures.print

Number of features with highest/lowest loadings to print for each dimension

overwrite

Replace the existing data in feature.loadings

do.center

Center the dataset prior to projection (should be set to TRUE)

verbose

Print top genes associated with the projected dimensions

Value

Returns Seurat object with the projected values

Examples

1
2
3
4
5
data("pbmc_small")
pbmc_small
pbmc_small <- ProjectDim(object = pbmc_small, reduction = "pca")
# Vizualize top projected genes in heatmap
DimHeatmap(object = pbmc_small, reduction = "pca", dims = 1, balanced = TRUE)

ibseq/scs-analysis documentation built on Feb. 27, 2021, 12:35 a.m.