
Last chance! 50% off unlimited learning
Sale ends in
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 = "pca",
assay = NULL,
dims.print = 1:5,
nfeatures.print = 20,
overwrite = FALSE,
do.center = FALSE,
verbose = TRUE
)
Seurat object
Reduction to use
Assay to use
Number of dims to print features for
Number of features with highest/lowest loadings to print for each dimension
Replace the existing data in feature.loadings
Center the dataset prior to projection (should be set to TRUE)
Print top genes associated with the projected dimensions
Returns Seurat object with the projected values
# NOT RUN {
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)
# }
Run the code above in your browser using DataLab