This function calls sctransform::get_residuals.
FetchResiduals(object, ...)# S3 method for Seurat
FetchResiduals(
object,
features,
assay = NULL,
umi.assay = "RNA",
layer = "counts",
clip.range = NULL,
reference.SCT.model = NULL,
replace.value = FALSE,
na.rm = TRUE,
verbose = TRUE,
...
)
# S3 method for SCTAssay
FetchResiduals(
object,
umi.object,
features,
layer = "counts",
clip.range = NULL,
reference.SCT.model = NULL,
replace.value = FALSE,
na.rm = TRUE,
verbose = TRUE,
...
)
A matrix containing the requested pearson residuals.
An SCTAssay object.
Arguments passed to other methods (not used)
Name of features to fetch residuals for.
Name of the assay to fetch residuals for.
Name of the assay of the seurat object containing counts matrix to use when recalculating any missing residuals.
The name of the layer(s) in `umi.assay` to use when recalculating any missing residuals.
Numeric of length two specifying the min and max values the Pearson residual will be clipped to.
If provided, the reference model will be used to recalculate missing residuals instead of the
Recalculate residuals for all features, even if they are already present. Useful if you want to change the clip.range.
For features where there is no feature model stored, return NA for residual value in scale.data when na.rm = FALSE. When na.rm is TRUE, only return residuals for features with a model stored for all cells.
Whether to print messages and progress bars
TK.
get_residuals