This is a test version of Biostars. For the public version, visit https://www.biostars.org.
R: Error when using ComBat

I'm trying to use ComBat function in sva package. So, I followed example in http://jtleek.com/genstats/inst/doc/02_13_batch-effects.html

However,

Error in ComBat(dat = edata, batch = batch, mod = modcombat, par.prior = TRUE, : unused arguments (dat = edata, batch = batch, mod = modcombat)

was occurred. How can I fix it?

Thanks in advance

r sva combat

1 answer

I see this is pretty old and I'm guessing you solved this by now, but I had a similar problem and was able to solve it by using batch=sif$batch with sif being my annotation file and batch being the column header where batch was stored.

Log in to answer this question.