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
      Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
      by SEQadmin2



      CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

      Despite this, “CRISPR helped turn genome editing from a specialized technique into
      ...
      07-31-2026, 11:01 AM
    • SEQadmin2
      Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
      by SEQadmin2


      Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

      The systematic characterization of the human proteome has
      ...
      07-20-2026, 11:48 AM
    • SEQadmin2
      Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
      by SEQadmin2



      Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
      ...
      07-09-2026, 11:10 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by SEQadmin2, 08-03-2026, 10:13 AM
    0 responses
    18 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 07-31-2026, 02:55 AM
    0 responses
    33 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 07-24-2026, 12:17 PM
    0 responses
    23 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 07-23-2026, 11:41 AM
    0 responses
    21 views
    0 reactions
    Last Post SEQadmin2  
    Working...