Learn R Programming

Seurat (version 2.0.0)

RegressOutResid: Regress out technical effects and cell cycle

Description

Remove unwanted effects from scale.data

Usage

RegressOutResid(object, vars.to.regress, genes.regress = NULL,
  model.use = "linear", use.umi = FALSE)

Arguments

object

Seurat object

vars.to.regress

effects to regress out

genes.regress

gene to run regression for (default is all genes)

model.use

Use a linear model or generalized linear model (poisson, negative binomial) for the regression. Options are 'linear' (default), 'poisson', and 'negbinom'

use.umi

Regress on UMI count data. Default is FALSE for linear modeling, but automatically set to TRUE if model.use is 'negbinom' or 'poisson'

Value

Returns the residuals from the regression model