Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ysnapus
    Member
    • Jun 2013
    • 22

    #1

    DESeq2 beta prior

    I have a dataset where the condition of interest is a factor with 3 levels. DESeq2 issues me a warning to use betaPrior=False otherwise the log2 FoldChange will be affected by the base level. I thought the fold-change is always calculated w.r.t to a base level.

    In my case, I have 3 time points (0 - control, 15, and 60). I get results for 15_vs_0 and 60_vs_0, and of course, these are different and depend on the fact that I chose 0 as the base point. I ran the DESeq function with and without betaPrior=F, and I get different results for 0_vs_15 fold change and p-values for the betaPrior=T/F cases.

    What is the beta prior for? I tried to look in the DESeq2 paper at bioRXiv (http://biorxiv.org/content/early/2014/02/19/002832) and I don't think there is a beta distribution involved. Or is it talking about the normal prior for the estimated beta parameter in the GLM? i.e., is it the equation (10) of the "Moderated estimation of fold change and dispersion for RNA-Seq data with DESeq2" paper?
  • Michael Love
    Senior Member
    • Jul 2013
    • 333

    #2
    hi,

    Yes you've got it right (it's the zero-centered Normal prior). In the paper, we say "logarithmic fold change prior", and as logarithmic fold changes are written as beta in the GLM, in the software we use the shorter "betaPrior".

    Note this is described in the help file for ?DESeq and ?nbinomWaldTest:

    betaPrior whether or not to put a zero-mean normal prior on the non-intercept coefficients (Tikhonov/ridge regularization) See nbinomWaldTest for description. Only used for the Wald test.

    The warning is discussed on the Bioc list here

    and here


    briefly, in version 1.2, the LFC estimates can change if you choose a different base level, i.e. 15_vs_0 was not the same as -1 * 0_vs_15

    We have fixed this in version 1.3, so that the LFCs are base-level independent. In this case, you can make contrasts of any level against any other level, using the contrast argument to results(). This is accomplished with the expanded model matrix described in the paper and in ?nbinomWaldTest.

    Comment

    • ysnapus
      Member
      • Jun 2013
      • 22

      #3
      Thanks! It's probably better to use version 1.3. How can I install the development version? Bioconductor installed 1.2.10.

      Comment

      • Michael Love
        Senior Member
        • Jul 2013
        • 333

        #4
        it will install automatically, if you are running the development version of R.

        it's not trivial to install devel R alongside release R, but we are really happy to have devel testers

        there is some information on the Bioconductor website under 'developers'

        The devel version 1.3 will become release 1.4 on April 14, 2014.

        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
        34 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...