forked from satijalab/seurat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GetResidual.Rd
48 lines (41 loc) · 1.31 KB
/
GetResidual.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
45
46
47
48
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/preprocessing.R
\name{GetResidual}
\alias{GetResidual}
\title{Calculate pearson residuals of features not in the scale.data}
\usage{
GetResidual(
object,
features,
assay = "SCT",
umi.assay = "RNA",
clip.range = NULL,
replace.value = FALSE,
verbose = TRUE
)
}
\arguments{
\item{object}{A seurat object}
\item{features}{Name of features to add into the scale.data}
\item{assay}{Name of the assay of the seurat object generated by SCTransform}
\item{umi.assay}{Name of the assay of the seurat object containing UMI matrix and the default is
RNA}
\item{clip.range}{Numeric of length two specifying the min and max values the Pearson residual
will be clipped to}
\item{replace.value}{Recalculate residuals for all features, even if they are already present.
Useful if you want to change the clip.range.}
\item{verbose}{Whether to print messages and progress bars}
}
\value{
Returns a Seurat object containing pearson residuals of added features in its scale.data
}
\description{
This function calls sctransform::get_residuals.
}
\examples{
pbmc_small <- SCTransform(object = pbmc_small, variable.features.n = 20)
pbmc_small <- GetResidual(object = pbmc_small, features = c('MS4A1', 'TCL1A'))
}
\seealso{
\code{\link[sctransform]{get_residuals}}
}