Go Back   SEQanswers > Bioinformatics > Bioinformatics

Similar Threads
Thread Thread Starter Forum Replies Last Post
edgeR vs. DESeq vs. baySeq vs. NOIseq vs. SAMseq vs. Limma vs. Cuffdiff 2 vs. EBSeq dc3000 RNA Sequencing 0 12-10-2013 10:20 AM
differences between linear models from Limma and EdgeR capricy Bioinformatics 1 12-15-2012 07:19 AM
cuffdiff and limma, puzzled by the differences dawe Bioinformatics 1 08-31-2012 05:44 AM
limma on log tranformed RPKM values biofreak General 1 08-30-2012 11:58 PM
First Question njt638 General 1 08-24-2011 11:56 AM

Thread Tools
Old 02-17-2014, 06:13 AM   #1
Justin AC Powell
Junior Member
Location: Cambridge

Join Date: Jun 2012
Posts: 5
Default Limma removeBatchEffect question

I'm using limma_3.14.1

Suppose I set up:

data<-rbind(data,data) # Two row matrix


We can see from the first 4 data points with identical treatment that the bach effct of b2 vs b1 is +1.


This results in

[,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8]
data 2.5 2.5 2.5 2.5 5 6 7 8
data 2.5 2.5 2.5 2.5 5 6 7 8

i.e. The batch effect has been corrected for in the first 4 columns.
However the last four columns which also belong to batch b1 or b2 are not adjusted.

Whereas, if I run limma with the batch factor included in the design matrix to estimate the fold change between treatment "b" and the control (i.e. the data in the last four columns)

fit <- lmFit(data,design=model.matrix(~batch+treat))
fit <- eBayes(fit)

I get:

row ID logFC AveExpr t P.Value adj.P.Val B
1 data 1 4.5 1.235397 0.2517299 0.2517299 -4.591222
2 data 1 4.5 1.235397 0.2517299 0.2517299 -4.591222

Here we see that limma has effectively reduced the log2(FC) of treatment b vs control from 2 to 1 because of the batch factor.

So my question is, why does removeBatcheffects not act similarly and return rows reading 2.5,2.5,2.5,2.5,5.5,6.5,6.5,7.5? Have I made an error, or does removeBatchEffect work in a subtly different way?

Last edited by Justin AC Powell; 02-17-2014 at 06:26 AM.
Justin AC Powell is offline   Reply With Quote

limma, removebatcheffect

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT -8. The time now is 01:10 PM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Single Sign On provided by vBSSO