Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • [DESeq] baseMean

    I would like to ask how exacly baseMean is calculated in DESeq.

    According to the manual from 2012-07-24 (http://tinyurl.com/8krvbny) the meaning of the three baseMean columns is:

    baseMean mean normalised counts, averaged over all samples from both conditions
    baseMeanA mean normalised counts from condition A
    baseMeanB mean normalised counts from condition B
    I interpret this as:
    Code:
    baseMean = (baseMeanA + baseMeanB) / 2
    However I have this result from a DE test which I did with DESeq (only first entry shown):
    Code:
    id	baseMean	baseMeanA	baseMeanB	foldChange	log2FoldChange	pval	padj
    geneA	4.6870306180134	3.72258134619134	6.1337045257465	1.64770194532405	0.720455295377725	0.137300747770432	0.461541670327437
    Code:
    (3.72258134619134+6.1337045257465)/2 == 4.928143
    4.928143 != 4.6870306180134
    There is obviously a discrepancy. Maybe I am interpreting it wrong.

    I'd be thankful if someone could explain how I can replicate the calculation of baseMean.

    P.S.: I asked a similar question in May this year. Simon nicely answered me that:
    Yes, it is the normalized count, i.e., simply the number of reads divided by the size factor (normalization constant) of the sample
    However, I do not know how I can get the "size factor" from the results table. If at all possible, I want to recompute baseMean given only baseMeanA and baseMeanB (is this even possible?). Because this way I wouldn't need to determine the sizeFactor.
    Last edited by Azazel; 09-09-2012, 04:45 PM. Reason: Added a PS for clarification.

  • #2
    1. Maybe you have different numbers of samples in your two conditions. Then, the base mean will not be the average of the two per-condition means.

    2. You real problem seems to be that you do not know how to get the size factors. If so, why do you not ask about this? Simply use the accessor function 'sizeFactors' on your CountDataSet to get a vector of size factors.

    Comment

    Latest Articles

    Collapse

    • seqadmin
      Recent Developments in Metagenomics
      by seqadmin





      Metagenomics has improved the way researchers study microorganisms across diverse environments. Historically, studying microorganisms relied on culturing them in the lab, a method that limits the investigation of many species since most are unculturable1. Metagenomics overcomes these issues by allowing the study of microorganisms regardless of their ability to be cultured or the environments they inhabit. Over time, the field has evolved, especially with the advent...
      09-23-2024, 06:35 AM
    • seqadmin
      Understanding Genetic Influence on Infectious Disease
      by seqadmin




      During the COVID-19 pandemic, scientists observed that while some individuals experienced severe illness when infected with SARS-CoV-2, others were barely affected. These disparities left researchers and clinicians wondering what causes the wide variations in response to viral infections and what role genetics plays.

      Jean-Laurent Casanova, M.D., Ph.D., Professor at Rockefeller University, is a leading expert in this crossover between genetics and infectious...
      09-09-2024, 10:59 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by seqadmin, 10-02-2024, 04:51 AM
    0 responses
    8 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 10-01-2024, 07:10 AM
    0 responses
    14 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 09-30-2024, 08:33 AM
    0 responses
    18 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 09-26-2024, 12:57 PM
    0 responses
    16 views
    0 likes
    Last Post seqadmin  
    Working...
    X