log fold change threshold in Deseq2 - using lfcthreshold
1
2
Entering edit mode
@lirongrossmann-13938
Last seen 4.2 years ago

Hi Everyone, 

I am running a rna seq differential gene expression experiment with the following code:

dds <-DESeqDataSetFromMatrix(countData = ep,colData = cp,design =~Age+Gender+Response)
dds <- DESeq(dds)
res <- results(dds,contrast=c("Response","Yes","No"))

Looking at the results I get about thousands genes with absolute log fold change > 0.5.

However, when I run the following command:

resGA <- results(dds, lfcThreshold=0.5, altHypothesis="greaterAbs")

I only get 256 with absolute log fold change > 0.5.

Anyone can help me figure out what is the source of this discrepancy?

Thanks

lfcthreshold deseq2 • 6.0k views
ADD COMMENT
2
Entering edit mode

Your first test is the following: pvalue is describing the probability that log fold change != 0, and the log fold change value is the most likely value given the data.

Your second test is: pvalue is describing the probability that the abs(log fold change value) < 0.5

You can therefore see how a gene with lfc of 0.51 may be significantly more than zero, but not significantly greater than 0.5

ADD REPLY
5
Entering edit mode
@mikelove
Last seen 6 days ago
United States

Using lfcThreshold is testing against an LFC threshold of 0.5, which is not the same as asking for which genes the estimated LFC is larger than 0.5. See the DESeq2 paper for discussion of this topic, under the heading, "Specifying minimum effect size":

https://genomebiology.biomedcentral.com/articles/10.1186/s13059-014-0550-8

ADD COMMENT

Login before adding your answer.

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