Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • highlei
    Junior Member
    • Aug 2011
    • 2

    #1

    size factors in DESeq

    My case is:
    We have a deep-sequencing for RNA: two samples (WT and mutation) and 3 replicates for each one.
    These small RNA sequences were map to ref-genome.
    The ref-genome was seperated into 500bp windows along the whole genome.
    We wanna identify the windows with decreased express from WT to Mutation.

    Firstly, I try to use two different methods to estimate the size factors.
    1. I try to use total counts of reads to estimate the size factors.
    p_adj < 0.05 53,866 windows were got.
    2. I try to use the estimateSizeFactors to estimate the size factors.
    p_adj < 0.05 4,555 windows were got.

    Secondly, since the genome is long, I make a filter: the windows with total raw counts in all 6 libraries < 50 were discarded.
    1. I try to use total counts of reads to estimate the size factors.
    p_adj < 0.05 48,005 windows were got.
    2. I try to use the estimateSizeFactors to estimate the size factors.
    p_adj < 0.05 464 windows were got.
    I donot know I should use the total counts or use estimateSizeFactors to estimate the size factors.
  • Simon Anders
    Senior Member
    • Feb 2010
    • 995

    #2
    To check whether your normalization is good, compare two samples with an MvA plot, as follows:

    First, get the normalized counts:
    Code:
    ncounts <- counts( cds, normalized=TRUE )
    # or, for the release version:
    ncounts <- t( t( counts(cds) ) / sizeFactors(cds) )
    The, plot the mean of, say samples 1 and 2, versus their ratio:
    Code:
    plot( 
       ( ncounts[,2] + ncounts[,1] )/2,
       ncounts[,2] / ncounts[,1],
       log="xy", pch="." )
    abline( h = 1)
    If the normalization is good, the bulk of the counts should lie on the horizontal line marking equal value in both samples.

    You can also plot each sample against the mean of all the other samples:
    Code:
    means <- rowMeans( ncounts )
    plot( 
       means,
       ncounts[,2] / means,
       log="xy", pch="." )
    abline( h = 1)
    Further remarks:

    - "We have a deep-sequencing for RNA: two samples (WT and mutation) and 3 replicates for each one." I hope you mean that you have six samples, 3 WT and 3 mutation. if you really just have sequenced the same sample three times (as you wrote), you better start over.

    - "We wanna identify the windows with decreased express from WT to Mutation." Do you have reason to believe that there is much more down-regulation than up-regulation? If so, you may need a custom normalization procedure (even though the new option "locfunc=shorth" in the devel version of DESeq might already help).

    Comment

    • highlei
      Junior Member
      • Aug 2011
      • 2

      #3
      Thanks for your reply.

      - "We have a deep-sequencing for RNA: two samples (WT and mutation) and 3 replicates for each one." I hope you mean that you have six samples, 3 WT and 3 mutation.
      Yes. I have six samples.
      - "We wanna identify the windows with decreased express from WT to Mutation." Do you have reason to believe that there is much more down-regulation than up-regulation?
      Yes. We mutate a key protein in the pathway.

      I have used your code to plot figures. But I don't know how to evaluate the figures.

      6.ge50.1.jpg sizeFactors with the total counts.
      6.ge50.2.jpg sizeFactors with the total counts.
      6.ge50.SF.1.jpg sizeFactors with estimateSizeFactor.
      6.ge50.SF.2.jpg sizeFactors with estimateSizeFactor.
      Attached Files
      Last edited by highlei; 08-10-2011, 04:00 PM.

      Comment

      • alittleboy
        Member
        • Apr 2011
        • 60

        #4
        Originally posted by Simon Anders View Post
        To check whether your normalization is good, compare two samples with an MvA plot, as follows:

        First, get the normalized counts:
        Code:
        ncounts <- counts( cds, normalized=TRUE )
        # or, for the release version:
        ncounts <- t( t( counts(cds) ) / sizeFactors(cds) )
        The, plot the mean of, say samples 1 and 2, versus their ratio:
        Code:
        plot( 
           ( ncounts[,2] + ncounts[,1] )/2,
           ncounts[,2] / ncounts[,1],
           log="xy", pch="." )
        abline( h = 1)
        If the normalization is good, the bulk of the counts should lie on the horizontal line marking equal value in both samples.

        You can also plot each sample against the mean of all the other samples:
        Code:
        means <- rowMeans( ncounts )
        plot( 
           means,
           ncounts[,2] / means,
           log="xy", pch="." )
        abline( h = 1)
        Further remarks:

        - "We have a deep-sequencing for RNA: two samples (WT and mutation) and 3 replicates for each one." I hope you mean that you have six samples, 3 WT and 3 mutation. if you really just have sequenced the same sample three times (as you wrote), you better start over.

        - "We wanna identify the windows with decreased express from WT to Mutation." Do you have reason to believe that there is much more down-regulation than up-regulation? If so, you may need a custom normalization procedure (even though the new option "locfunc=shorth" in the devel version of DESeq might already help).
        So just curious: when having 6 samples, to check the performance of normalization, shall I plot/check all pairwise MA-plot (e.g. 1 vs. 2, 1 vs. 3, etc.)? I am a little confused as I think normalization is done for different samples (liver vs. kidney, say) -- but in the code, ncounts[ ,1] refers to replicate 1 of the first sample?

        Comment

        Latest Articles

        Collapse

        • 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
        • SEQadmin2
          Cancer Drug Resistance: The Lingering Barrier to Rising Survival
          by SEQadmin2



          Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

          There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
          07-08-2026, 05:17 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, 07-24-2026, 12:17 PM
        0 responses
        10 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-23-2026, 11:41 AM
        0 responses
        11 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-20-2026, 11:10 AM
        0 responses
        23 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-13-2026, 10:26 AM
        0 responses
        37 views
        0 reactions
        Last Post SEQadmin2  
        Working...