batch effect Deseq2 Wald test
1
0
Entering edit mode
5.2 years ago

Hi all,

I'm using Deseq2 to analyze a set of data with a relevant batch effect related to the library preparation day. I used the LR test and added the batch effect. It worked but I'd like to have comparisons between the specific conditions.

Is it possible to use the Wald test while controlling a batch effect??

Thank you for your time and support!

Best Marianna

RNA-Seq deseq2 batch wald test • 2.0k views
ADD COMMENT
0
Entering edit mode
5.2 years ago

Yes, a Wald test is quite flexible (it's usually easier to deal with than an LRT) and you can use it by not specifying LRT in DESeq2 (the default is a Wald test).

ADD COMMENT
0
Entering edit mode

Thank you Davon Ryan,

So to control for batch effect and perform a Wal test I should use the following approach

dds <- DESeqDataSetFromMatrix(countData = cts,
                              colData = coldata,
                              design = ~ batch + condition)

dds <- DESeq(dds, reduced=~batch)

Is it correct?

Thank you!

Best

Marianna

ADD REPLY
0
Entering edit mode

You don't need reduced=~batch, since there's no reduced model used.

ADD REPLY
0
Entering edit mode

Ok, so with the Wald test you cannot control the batch effect. Isn't it?

Marianna

ADD REPLY
0
Entering edit mode

I'm not sure how you got that interpretation, you control it by adding it to your model, just as in an LRT.

ADD REPLY
0
Entering edit mode

Thank you Devon Ryan

ADD REPLY

Login before adding your answer.

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