Batch effect removal
2
0
Entering edit mode
@eleni-christodoulou-2653
Last seen 6.2 years ago
Singapore

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

microarray limma removebatcheffect() • 1.6k views
ADD COMMENT
2
Entering edit mode
@gordon-smyth
Last seen 28 minutes ago
WEHI, Melbourne, Australia

removeBatchEffect() works with any number of batches. You simply use

y <- removeBatchEffect(y, batch)

or

y <- removeBatchEffect(y, batch, design=design)

 

BTW, there is no need to compute your own contrasts. I don't see why the expression "between batches" should cause any confusion but, as it happens, these words do not occur anywhere in the limma documentation.

ADD COMMENT
0
Entering edit mode
@eleni-christodoulou-2653
Last seen 6.2 years ago
Singapore

That simple :) Thank you very much!

ADD COMMENT

Login before adding your answer.

Traffic: 781 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6