Batch effect removal with Deseq2
1
1
Entering edit mode
@lirongrossmann-13938
Last seen 4.2 years ago

Hello everyone,

I was wondering if there is a way to remove batch effect from an expression matrix (raw counts) for downstream analysis (like pca, clustering, machine learning) using the Deseq2 package. 

I know I can do it using limma with removeBatchEffect, but wasn’t sure if there’s a similar function in Deseq2.

Thanks!

deseq2 batch effect removebatcheffect() limma • 3.5k views
ADD COMMENT
0
Entering edit mode
@mikelove
Last seen 21 hours ago
United States

Yes, for PCA, visualization, you can run limma's removeBatchEffect on the assay of the transformed data. This remove linear shifts associated with batch variables. We recommend to use the limma function, see here:

C: Batch correction in DESeq2

ADD COMMENT
0
Entering edit mode

Thanks! Can I use the output for classification purposes as well or would you recommend a different strategies for accounting for confounders?

ADD REPLY
0
Entering edit mode

Depends on application. For statistical testing, we recommend to include confounder variables when possible as part of model as opposed to removing batch. But then for many possible tests, you could use DESeq() on counts. Otherwise, it seems easy to remove batch for e.g. visualization and prediction tasks.

ADD REPLY

Login before adding your answer.

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