Dear BioC community,
I am analyzing microarray data from three different batches. There are many technical and biological replicates in the batches. In the past, when I had only two batches, I was using removeBatchEffect function from limma, giving the batch of each sample as argument (with batch=...). I am not sure if this function works with more than two batches... I am alerted because the user guide says 'between' batches and not 'among'.
I also calculated the contrasts of my batches (following the internal removeBtchEffect code) and here is the result:
> batch [1] 2 2 2 2 2 2 2 3 3 3 2 3 3 3 2 3 3 3 2 2 2 2 3 3 3 2 3 3 3 2 2 2 2 3 3 3 2 2 3 3 3 2 2 3 3 3 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 1 1 attr(,"contrasts") [,1] [,2] 1 1 0 2 0 1 3 -1 -1 Levels: 1 2 3
I think it compares the 1st with the 3rd and the 2nd with the 3rd batches. Could you please help with suggestions on how to better understand what happens here? Is it really correcting all 3 batches? If not, shall I look into the ComBat function?
Thank you very much
Eleni