Hello,
I am trying to use the SVA package to obtain values after batch effect removal in RNA seq data (using DESeq rld counts),
My design:
design
strain batch |
Late_mut_count Late_mut a |
mid_mut_count mid_mut a |
mid_WT_count mid_WT a |
Young_mut_count Young_mut a |
Young_WT_count Young_WT a |
mid2_mut_count mid_mut b |
mid2_WT_count mid_WT b |
mud_count mud b |
y2_mut_count Young_mut b |
y2_WT_count Young_WT b
|
mod = model.matrix(~strain, data=design)
> mod
(Intercept) strainWT
Late_mut_count 1 0
mid_mut_count 1 0
mid_WT_count 1 1
Young_mut_count 1 0
Young_WT_count 1 1
mid2_mut_count 1 0
mid2_WT_count 1 1
y2_mut_count 1 0
y2_WT_count 1 1
attr(,"assign")
[1] 0 1
attr(,"contrasts")
attr(,"contrasts")$strain
[1] "contr.treatment"
I am using the DESeq's rld transformation: For the first columns, it looks like this:
Late_mut_count mid_mut_count mid_WT_count Young_mut_count Young_WT_count gene1 2.719515 2.722055 2.742202 2.673428 2.678986 |
batch = design$batch Now, I am trying to use ComBat:
combat_edata = ComBat(dat=rldCounts, batch=batch, mod=mod, numCovs=NULL, par.prior=TRUE)
But I get the following error:
Error in ComBat(dat = rldCounts, batch = batch, mod = mod, numCovs = NULL, : unused argument (numCovs = NULL)
Can you possibly help with this error please?
Thanks
Also: how did you end up filling in the code in this question? I mean, where did you copy/paste from?
I went back in to try and clean up its formatting a bit, and it's all sorts of crazy in there ...