This is a test version of Biostars. For the public version, visit https://www.biostars.org.
combat-Seq error

I'm running combat-seq, but receiving the following error message:

Error in sva::ComBat_seq(count_matrix, batch = batches, group = groups) : 
  The covariate is confounded with batch! Remove the covariate and rerun ComBat-Seq

Can you help me out?

combat-seq r

1 answer

Without any more information on what your batches and groups are we can't really suggest much more but the error message is quite clear: your batches are confounded with the covariate which means that removing batch effect will likely remove biological differences.

^This

Groups A-A-A-B-B-B and Batches 1-1-1-2-2-2, that is what confounded means. Group is the same as batch, which means you cannot correct. Likely inevitable batches or, very often, poor experimental design.

Log in to answer this question.