varRegression | R Documentation |
This functions regresses out variability associated with particular sources.
varRegression(object, vars = NULL, logscale = FALSE, Batch = FALSE)
object |
|
vars |
data.frame of variables to be regressed out. Each column corresponds to a variable and each variable corresponds to a cell.
The object must contain all cells, i.e. column names of the slot |
logscale |
logical. If |
Batch |
logical. If |
The function returns an updated SCseq
object with the corrected expression matrix written to the slot dimRed$x
of the SCseq
object.
sc <- SCseq(intestinalDataSmall)
sc <- filterdata(sc)
b <- sub("(\\_\\d+)$","",colnames(intestinalData))
vars <- data.frame(row.names=colnames(intestinalData),batch=b)
sc <- varRegression(sc,vars)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.