DESeq2 result filtering
1
0
Entering edit mode
@pablo_garcia05-12443
Last seen 6.5 years ago

Hello community,

I have a question which comes to me when I compare the output of these 2 approaches to (in appearance) do the same in DESeq2:

  • First way:

AvsB <- results(dge, alpha = 0.05, lfcThreshold = 1, contrast = c("cond","A","B"))
AvsB_tb <- AvsB %>%
  data.frame() %>%
  rownames_to_column(var="gene") %>%
  as_tibble()
AvsB_sig <- AvsB_tb %>%
        filter(padj < 0.05 & abs(log2FoldChange) > 1)

  • Second way:

AvsB <- results(dge, contrast = c("cond","A","B"))
AvsB_tb <- AvsB %>%
  data.frame() %>%
  rownames_to_column(var="gene") %>%
  as_tibble()
AvsB_sig <- AvsB_tb %>%
        filter(padj < 0.05 & abs(log2FoldChange) > 1)

If I missed something obvious sorry

deseq2 • 1.2k views
ADD COMMENT
0
Entering edit mode
@mikelove
Last seen 5 days ago
United States

Take a look at the section of the vignette on lfcThreshold. It's also discussed in the DESeq2 publication. It's changing the null hypothesis, so not the same as simple LFC filtering.

ADD COMMENT
0
Entering edit mode

I have read it before come to ask, however I did not understand the difference (not enough background). I do not know if it is possible but could you give me an summarize idea of what approach is "the correct"?

 

PD: let me apologize about this kind of question, the tool has a great support and the vignette is just clear and useful, the problem it is me.

ADD REPLY
1
Entering edit mode

We recommend in the paper using lfcThreshold:

“It is therefore desirable to include the threshold in the statistical testing procedure directly, i.e., not to filter post hoc on a reported fold-change estimate, but rather to evaluate statistically directly whether there is sufficient evidence that the LFC is above the chosen threshold.”

You’ll notice we have code in the vignette for using lfcThreshold, but not for simple filtering.

ADD REPLY
0
Entering edit mode

Thank you Michael for your time.

Well, I want to warm you about lots of "tutorials" going trough post filters. However, it is our fail to do not go always to the direct source of the method.

ADD REPLY

Login before adding your answer.

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