forked from satijalab/seurat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ProjectDim.Rd
44 lines (36 loc) · 1.33 KB
/
ProjectDim.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dimensional_reduction.R
\name{ProjectDim}
\alias{ProjectDim}
\title{Project Dimensional reduction onto full dataset}
\usage{
ProjectDim(object, reduction = "pca", assay = NULL, dims.print = 1:5,
nfeatures.print = 20, overwrite = FALSE, do.center = FALSE,
verbose = TRUE)
}
\arguments{
\item{object}{Seurat object}
\item{reduction}{Reduction to use}
\item{assay}{Assay to use}
\item{dims.print}{Number of dims to print features for}
\item{nfeatures.print}{Number of features with highest/lowest loadings to print for
each dimension}
\item{overwrite}{Replace the existing data in feature.loadings}
\item{do.center}{Center the dataset prior to projection (should be set to TRUE)}
\item{verbose}{Print top genes associated with the projected dimensions}
}
\value{
Returns Seurat object with the projected values
}
\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.
}
\examples{
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)
}