Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • A stats question about DESeq

    It may be a slightly outdated question now that GLM-based testing is preferred to the exact test, but I'm just very curious...

    In the 2010 Genome Biology paper (http://genomebiology.com/2010/11/10/r106), formula 14 describes how in the negative binomial test, variance of condition A is estimated under the null hypothesis of the equality of per-condition means:

    σˆ2_{A} = ∑{all_j∈A} [ s{j}*q0+s{j}ˆ2 * v{A}(q0) ],

    where:
    ∑{all_j∈A} is the sum across all samples in condition A,
    s{j} are scaling factors for each of these samples,
    q0 is the pooled mean estimate,
    v{A} is the raw variance estimate for condition A given the mean.

    However, looking at the DESeq code, I'm not sure v{A} is actually estimated based on q0. Rather, it seems to me it is estimated based on q{A} - the observed mean of counts for condition A.

    Am I getting it wrong or there have been some changes that I'm not aware of?

    Thanks very much!

  • #2
    If I am still read my old code correctly, then the variance-mean relation for condition A is fitted by a local regression of the per-gene variances onto the mean of the counts only from condition A (in the code for the estimateDispersion method, 'if' clause for 'per-condition': bmv$baseMean, where bmv is calculated from only the columns for the current condition), but to get the fitted value, this function is then evaluated for the overall mean (in the code: overall_basemeans). This is consistent with what we wrote in the paper, I think.

    However, in DESeq2, we now dropped the "per-condition" mode, because it was a bit difficult to reconcile with our general improvements to the dispersion estimation.

    Comment


    • #3
      Thanks a lot for your reply Simon!

      Comment


      • #4
        Sorry, one more question... Am I right then that for sharing mode == "maximum" and method == "per-condition", the maximum is computed between the fitted SCV given the overall mean and the observed SCV given the mean for a given condition?

        Many thanks!
        Last edited by a11msp; 10-15-2013, 08:02 AM.

        Comment


        • #5
          Just looked through my code again. Yes, this is what I've put there. The reason, If I remember correctly, had something to do with the handling of zeroes.

          Comment


          • #6
            OK, thanks!

            Comment

            Latest Articles

            Collapse

            • seqadmin
              Exploring the Dynamics of the Tumor Microenvironment
              by seqadmin




              The complexity of cancer is clearly demonstrated in the diverse ecosystem of the tumor microenvironment (TME). The TME is made up of numerous cell types and its development begins with the changes that happen during oncogenesis. “Genomic mutations, copy number changes, epigenetic alterations, and alternative gene expression occur to varying degrees within the affected tumor cells,” explained Andrea O’Hara, Ph.D., Strategic Technical Specialist at Azenta. “As...
              07-08-2024, 03:19 PM
            • seqadmin
              Exploring Human Diversity Through Large-Scale Omics
              by seqadmin


              In 2003, researchers from the Human Genome Project (HGP) announced the most comprehensive genome to date1. Although the genome wasn’t fully completed until nearly 20 years later2, numerous large-scale projects, such as the International HapMap Project and 1000 Genomes Project, continued the HGP's work, capturing extensive variation and genomic diversity within humans. Recently, newer initiatives have significantly increased in scale and expanded beyond genomics, offering a more detailed...
              06-25-2024, 06:43 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by seqadmin, Today, 07:20 AM
            0 responses
            12 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 07-16-2024, 05:49 AM
            0 responses
            32 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 07-15-2024, 06:53 AM
            0 responses
            36 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 07-10-2024, 07:30 AM
            0 responses
            41 views
            0 likes
            Last Post seqadmin  
            Working...
            X