GetResidual: Calculate pearson residuals of features not in the scale.data

Description Usage Arguments Value See Also Examples

View source: R/preprocessing.R

Description

This function calls sctransform::get_residuals.

Usage

1
2
3
4
5
6
7
8
9
GetResidual(
  object,
  features,
  assay = "SCT",
  umi.assay = NULL,
  clip.range = NULL,
  replace.value = FALSE,
  verbose = TRUE
)

Arguments

object

A seurat object

features

Name of features to add into the scale.data

assay

Name of the assay of the seurat object generated by SCTransform

umi.assay

Name of the assay of the seurat object containing UMI matrix and the default is RNA

clip.range

Numeric of length two specifying the min and max values the Pearson residual will be clipped to

replace.value

Recalculate residuals for all features, even if they are already present. Useful if you want to change the clip.range.

verbose

Whether to print messages and progress bars

Value

Returns a Seurat object containing pearson residuals of added features in its scale.data

See Also

get_residuals

Examples

1
2
pbmc_small <- SCTransform(object = pbmc_small, variable.features.n = 20)
pbmc_small <- GetResidual(object = pbmc_small, features = c('MS4A1', 'TCL1A'))

lambdamoses/SeuratBasics documentation built on May 6, 2020, 9:32 a.m.