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
• 3,289 views
•
link
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.
• 0 views
•
link
Log in to answer this question.