Inconsistent results from the lfcThreshold argument?
1
0
Entering edit mode
yanmin • 0
@yanmin-13752
Last seen 5.7 years ago

Hi, there. 

I noticed that the DESeq2 package (Version 1.20.0) has some changes comparing to the previous versions.

When extracting the results, I firstly got res <- results(dds, alpha = 0.05, lfcThreshold = 1) to obtain the set of results, it only got 8 significant microbiome taxa, and 4 LFC >1, 4 LFC < -1 according to the summary( ) function of the results. 

However, if I set up the lfcThreshold = 0 in the results function, such as res <- results(dds, alpha = 0.05, lfcThreshold = 0), then filter the log2fold change by using the information in the res table as following:

res.positive <- res[res$log2FoldChange > 1 & res$padj < 0.05 & !is.na(res$padj),] 

I actually get way more than just 4 results, which is inconsistent with the results filtered using lfcThreshold = 1 

I am just wondering whether I misunderstood the lfcThreshold argument and the log2FoldChange in the result table are the same thing, but they are actually not? 

I also tried to rerun some of my old codes (generated using an older version of the DESeq2 package in another laptop), there was no such discrepancy, then I updated the package in the other laptop, I couldn't replicate my old results.

Really need some clarification here.

Thank you so much!

Yan 

deseq2 • 565 views
ADD COMMENT
0
Entering edit mode
@mikelove
Last seen 38 minutes ago
United States

These are not the same. Please take a look at the vignette, workflow or the paper, I think each of them has some text which will explain.

ADD COMMENT

Login before adding your answer.

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