Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • IsBeth
    Member
    • Nov 2013
    • 28

    Getting normalized counts

    Hello,

    I've tried to find differential expression with edgeR and DESeq2. These packages normalize my count data first, but they do not automatically provide normalized read counts to the end user. Any ideas how to obtain them through a series of R commands? Where could I look for this?

    Thank you in advance!
  • blancha
    Senior Member
    • May 2013
    • 367

    #2
    For DESeq2, use the counts function, passing as arguments the DESeqDataSet object created by your call to the function DESeq, and the argument, normalized=True.

    The function will return an integer matrix.
    In the following example, I convert the matrix to a data frame.

    Code:
    # Create a DESeqDataSet object, and perform calculattions.
    dds <- DESeqDataSetFromHTSeqCount(sampleTable=sampleTable, directory="../../htseqcount", design= ~ condition)
    dds <- DESeq(dds)
    
    # Calculate and save the annotated normalized counts.
    normalized.counts <- as.data.frame(counts( dds, normalized=TRUE ))
    As to where you can get this information, you should read the DESeq2 vignette.
    It is quite complete, and updated regularly.
    After reading it a dozen times , I have a clearer idea how to use DESeq2, especially for more complex analyses, like multi-factorial analyses.
    The Bioconductor project aims to develop and share open source software for precise and repeatable analysis of biological data. We foster an inclusive and collaborative community of developers and data scientists.
    Last edited by blancha; 05-31-2014, 08:38 AM.

    Comment

    • dpryan
      Devon Ryan
      • Jul 2011
      • 3478

      #3
      For the edgeR verions, just:
      Code:
      normalized.counts <- 1e6 * cpm(dge)
      where "dge" is a DGEList.

      Comment

      Latest Articles

      Collapse

      • SEQadmin2
        Nine Things a Sample Prep Scientist Thinks About Before Sequencing
        by SEQadmin2


        I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.

        Here are nine questions we think about, in roughly the order they matter, before...
        06-18-2026, 07:11 AM
      • SEQadmin2
        From Collection to Sequencing: Why Sample Preparation and Preservation Define Sequencing Data
        by SEQadmin2


        Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.


        The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
        ...
        06-02-2026, 10:05 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, Yesterday, 11:10 AM
      0 responses
      7 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-17-2026, 06:09 AM
      0 responses
      43 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-09-2026, 11:58 AM
      0 responses
      104 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-05-2026, 10:09 AM
      0 responses
      125 views
      0 reactions
      Last Post SEQadmin2  
      Working...