powered by
This function calls sctransform::get_residuals.
GetResidual(object, features, assay = "SCT", verbose = TRUE)
A seurat object
Name of features to add into the scale.data
Name of the assay of the seurat object generated by SCTransform
Whether to print messages and progress bars
Returns a Seurat object containing pearson residuals of added features in its scale.data
get_residuals
# NOT RUN { pbmc_small <- SCTransform(object = pbmc_small, variable.features.n = 20) pbmc_small <- GetResidual(object = pbmc_small, features = c('MS4A1', 'TCL1A')) # }
Run the code above in your browser using DataLab