Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Approximator
    Junior Member
    • Mar 2015
    • 2

    #1

    DESeq2: genes significant under more stringent model but NOT with standard model

    hello everybody,

    I noticed some inconsistency in the DESeq2 results when calling results() under the default and the alternative hypothesis option.
    Some genes are called signifcant above a certain threshold (e.g. LFC>0.5) but not significant when no threshold is applied (i.e. just differentially expressed no matter the strength).
    The issue is caused by independent filtering, which in my case filters out lowly-expressed genes under the default (i.e. sets their padj to NA) but does not so under the alternative hypothesis.

    Is this
    (a) just some negligible consequence of independent filtering and perhaps the tradeoff for having a greater number of DEG under the default
    (b) possibly a kind of bug and filtering should be the same for both
    or
    (c) am I doing/understanding something wrong?

    pls let me know if you require additional information
    btw: I like to add the stereotypical "I am a biologist and don't know much about statistics/informatics"-excuse
    bye



    Code:
    [COLOR="Blue"]> #without independent filtering
    > #standard method
    > res <- results(dds, contrast = c("condition", "C", "A"), independentFiltering = FALSE)
    > summary(res, alpha=0.01)[/COLOR]
    
    out of 13821 with nonzero total read count
    adjusted p-value < 0.01
    LFC > 0 (up)     : 547, 4% 
    LFC < 0 (down)   : 896, 6.5% 
    outliers [1]     : 0, 0% 
    low counts [2]   : 0, 0% 
    (mean count < 0)
    [1] see 'cooksCutoff' argument of ?results
    [2] see 'independentFiltering' argument of ?results
    
    [COLOR="blue"]> res <- na.omit(res)
    > res <- res[res[,6] < 0.01,]
    > #alternative hypothesis
    > resGA <- results(dds, contrast = c("condition", "C", "A"), independentFiltering = FALSE, 
    +                  lfcThreshold=0.5, altHypothesis="greaterAbs")
    > summary(resGA, alpha=0.01)[/COLOR]
    
    out of 13821 with nonzero total read count
    adjusted p-value < 0.01
    LFC > 0 (up)     : 40, 0.29% 
    LFC < 0 (down)   : 9, 0.065% 
    outliers [1]     : 0, 0% 
    low counts [2]   : 0, 0% 
    (mean count < 0)
    [1] see 'cooksCutoff' argument of ?results
    [2] see 'independentFiltering' argument of ?results
    
    [COLOR="blue"]> resGA <- na.omit(resGA)
    > resGA <- resGA[resGA[,6] < 0.01,]
    > #is resGA subset of res?
    > table(is.element(rownames(resGA), rownames(res)))[/COLOR]
    
    TRUE 
      49 
    [COLOR="blue"]> 
    > #with independent filtering
    > #standard method
    > res <- results(dds, contrast = c("condition", "C", "A"), independentFiltering = TRUE)
    > summary(res, alpha=0.01)[/COLOR]
    
    out of 13821 with nonzero total read count
    adjusted p-value < 0.01
    LFC > 0 (up)     : 549, 4% 
    LFC < 0 (down)   : 911, 6.6% 
    outliers [1]     : 0, 0% 
    low counts [2]   : 1382, 10% 
    (mean count < 15.2)
    [1] see 'cooksCutoff' argument of ?results
    [2] see 'independentFiltering' argument of ?results
    
    [COLOR="blue"]> res <- na.omit(res)
    > res <- res[res[,6] < 0.01,]
    > #alternative hypothesis
    > resGA <- results(dds, contrast = c("condition", "C", "A"), independentFiltering = TRUE, 
    +                  lfcThreshold=0.5, altHypothesis="greaterAbs")
    > summary(resGA, alpha=0.01)
    [/COLOR]
    out of 13821 with nonzero total read count
    adjusted p-value < 0.01
    LFC > 0 (up)     : 40, 0.29% 
    LFC < 0 (down)   : 9, 0.065% 
    outliers [1]     : 0, 0% 
    low counts [2]   : 0, 0% 
    (mean count < 0)
    [1] see 'cooksCutoff' argument of ?results
    [2] see 'independentFiltering' argument of ?results
    
    [COLOR="blue"]> resGA <- na.omit(resGA)
    > resGA <- resGA[resGA[,6] < 0.01,]
    > #is resGA subset of res?
    > table(is.element(rownames(resGA), rownames(res)))[/COLOR]
    
    FALSE  TRUE 
        2    47
  • Michael Love
    Senior Member
    • Jul 2013
    • 333

    #2
    hi,

    the answer is (a). In the first run, independent filtering at 15.2 increases the total # of DEG for an FDR cutoff of 10%. (Note that 0.1 is the default target FDR for independent filtering as specified by 'alpha' argument of results(). I find that 1% is a very low FDR cutoff, but if you want to use 1% you should change 'alpha'.) And the optimal filter for the second run is no filter. So you have found some genes which were filtered for having low counts in the first run, although they are significant even for a more stringent test.

    Comment

    • Approximator
      Junior Member
      • Mar 2015
      • 2

      #3
      thank you for the explanation and especially for the hint to set 'alpha' in results()
      at least in my very case the inconsistency has disappeared now

      bye

      Comment

      Latest Articles

      Collapse

      • SEQadmin2
        Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
        by SEQadmin2



        Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

        Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
        ...
        10-14-2026, 09:55 AM
      • SEQadmin2
        New Genomics Technologies Take Aim at Long-Standing Limits
        by SEQadmin2


        Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

        We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
        ...
        09-28-2026, 10:25 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, 10-22-2026, 11:13 AM
      0 responses
      33 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-22-2026, 10:48 AM
      0 responses
      23 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-15-2026, 10:52 AM
      0 responses
      41 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-14-2026, 05:39 AM
      0 responses
      45 views
      0 reactions
      Last Post SEQadmin2  
      Working...