Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Azazel
    Member
    • Oct 2010
    • 52

    #1

    [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.
  • Simon Anders
    Senior Member
    • Feb 2010
    • 995

    #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

    • 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
    22 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-22-2026, 10:48 AM
    0 responses
    19 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-15-2026, 10:52 AM
    0 responses
    36 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-14-2026, 05:39 AM
    0 responses
    42 views
    0 reactions
    Last Post SEQadmin2  
    Working...