Hi All,
I've been using the combat function from the SVA module to try and correct a batch effect. I have two groups but was however done at different time points. here is an example of how I did it. I first dummy coded time into 1 and 2 and called this timebatch.
------------------------------------------------------------------------------------------
pheno1<-read.table(file='batchfile.csv',sep=',')
batch=pheno1$timebatch
modcombat = model.matrix(~1, data=pheno1)
combat_edata = ComBat(dat=RAWsignal, batch=timebatch, mod=modcombat, par.prior=TRUE, prior.plots=FALSE)
------------------------------------------------------------------------------------------
this works however it produces negative results in some of the cells and as such I cannot log2 transform some of the rows. My question is should I log2 transform first then use the Combat function, and then quantile normalize, follow by a a linear design with limma? Is this appropriate or is there something else I can do? thanks in advance.
Ahdee