norm_fix: Adjust for batch effects using an housekeep gene

View source: R/norm_fix.R

norm_fixR Documentation

Adjust for batch effects using an housekeep gene

Description

norm_fix allows users to adjust for batch effects in datasets where the batch covariate is known, using the packages preprocessCore, and the function normalize.quantiles.

Usage

norm_fix(data, ...)

Arguments

data

must be a data.frame or matrix

...

parameter see ?housekeep

Value

data

Examples

y <- matrix( rpois(1000, lambda=5), nrow=200 )
n = dim(y)
colnames(y) = paste(rep("sample",n[[2]]),1:n[[2]])
rownames(y) = paste(rep("gene",n[[1]]),1:n[[1]])
y = as.data.frame(y)
#y_fix2 = norm_fix(y,expcv = 0.3, exphigh = 0.8, explow = 0.4)

wangjiaxuan666/fixbatch documentation built on Jan. 25, 2024, 4:39 p.m.