Seqanswers Leaderboard Ad

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

    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

        • seqadmin
          Pathogen Surveillance with Advanced Genomic Tools
          by seqadmin




          The COVID-19 pandemic highlighted the need for proactive pathogen surveillance systems. As ongoing threats like avian influenza and newly emerging infections continue to pose risks, researchers are working to improve how quickly and accurately pathogens can be identified and tracked. In a recent SEQanswers webinar, two experts discussed how next-generation sequencing (NGS) and machine learning are shaping efforts to monitor viral variation and trace the origins of infectious...
          03-24-2025, 11:48 AM
        • seqadmin
          New Genomics Tools and Methods Shared at AGBT 2025
          by seqadmin


          This year’s Advances in Genome Biology and Technology (AGBT) General Meeting commemorated the 25th anniversary of the event at its original venue on Marco Island, Florida. While this year’s event didn’t include high-profile musical performances, the industry announcements and cutting-edge research still drew the attention of leading scientists.

          The Headliner
          The biggest announcement was Roche stepping back into the sequencing platform market. In the years since...
          03-03-2025, 01:39 PM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by seqadmin, 03-20-2025, 05:03 AM
        0 responses
        49 views
        0 reactions
        Last Post seqadmin  
        Started by seqadmin, 03-19-2025, 07:27 AM
        0 responses
        57 views
        0 reactions
        Last Post seqadmin  
        Started by seqadmin, 03-18-2025, 12:50 PM
        0 responses
        50 views
        0 reactions
        Last Post seqadmin  
        Started by seqadmin, 03-03-2025, 01:15 PM
        0 responses
        201 views
        0 reactions
        Last Post seqadmin  
        Working...