Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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?

  • #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


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

      Comment


      • #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
          Advancing Precision Medicine for Rare Diseases in Children
          by seqadmin




          Many organizations study rare diseases, but few have a mission as impactful as Rady Children’s Institute for Genomic Medicine (RCIGM). “We are all about changing outcomes for children,” explained Dr. Stephen Kingsmore, President and CEO of the group. The institute’s initial goal was to provide rapid diagnoses for critically ill children and shorten their diagnostic odyssey, a term used to describe the long and arduous process it takes patients to obtain an accurate...
          12-16-2024, 07:57 AM
        • seqadmin
          Recent Advances in Sequencing Technologies
          by seqadmin



          Innovations in next-generation sequencing technologies and techniques are driving more precise and comprehensive exploration of complex biological systems. Current advancements include improved accessibility for long-read sequencing and significant progress in single-cell and 3D genomics. This article explores some of the most impactful developments in the field over the past year.

          Long-Read Sequencing
          Long-read sequencing has seen remarkable advancements,...
          12-02-2024, 01:49 PM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by seqadmin, 12-17-2024, 10:28 AM
        0 responses
        26 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 12-13-2024, 08:24 AM
        0 responses
        42 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 12-12-2024, 07:41 AM
        0 responses
        28 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 12-11-2024, 07:45 AM
        0 responses
        42 views
        0 likes
        Last Post seqadmin  
        Working...
        X