Plotting Gene Expression Data From Multiple Batches
1
1
Entering edit mode
tcalvo ▴ 90
@tcalvo-12466
Last seen 10 months ago
Brazil

I'm currently analyzing 4 microarray experiments in an integrated manner. For this, I'm using limma accounting for the batches through the design matrix:

design <- model.matrix(~0+Class+Batch, data = phenot)

Since removing the batch effects, for example, with Combat is not advisable before DEG analysis through limma. Can I correct the batch effects and then plot the values? For example, I've found 10 TOP DEG, so I want to do a boxplot with those 10 genes from the combined data sets. The problem is, doing this using the combined dataset without accounting for the batch will introduce cluster in the plot. My idea is to remove the batch effects and the plot these values. Is this feasible? I'm changing the values, so I'm not very comfortable in doing this. 

Thanks.

batch effect microarray plot • 926 views
ADD COMMENT
1
Entering edit mode
Jenny Drnevich ★ 2.0k
@jenny-drnevich-2812
Last seen 21 days ago
United States

Use the removeBatchEffect() function to get data values suitable for visualization without the batch effects. Say you do your modeling like this where Data is an EList :

fit <- lmFit(Data, design)

To remove your batch effects, do:

design2 <-  model.matrix(~0+Class, data = phenot)

no.batch <- removeBatchEffect(Data, design = design, batch = Batch)

You can then use no.batch in any plotting, heatmap, clustering, etc.

Best,
Jenny

ADD COMMENT

Login before adding your answer.

Traffic: 840 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