Remove unwanted effects from scale.data
RegressOut(object, latent.vars, genes.regress = NULL, do.scale = TRUE, ...)
Seurat object
effects to regress out
gene to run regression for (default is all genes)
Z-normalize the residual values (default is TRUE)
Returns Seurat object with the scale.data (object@scale.data) genes returning the residuals from the regression model