Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tirohia
    Member
    • Nov 2011
    • 47

    #1

    EdgeR TMM normalization with the glm model

    So I've had edgeR running on some time course data. When comparing any two samples using a basic edgeR analysis, I include the line

    y <- calcNormFactors(y)

    in my pipeline. I note that this step appears to be absent from the glm approach. When I'm setting up my glm pipeline, if I include this calculation of normalization factors in the process, then the next step :

    y <- estimateGLMCommonDisp(y,design)

    fails, returning
    Error in qr.default(x) : NA/NaN/Inf in foreign function call (arg 1)
    In addition: Warning message:
    In qr.default(x) : NAs introduced by coercion

    If I leave the normalization out, it works. Scanning through the manual, I find, in section 2.6.6, this:

    The correction factors may take the form of scaling factors for the library sizes, such as computed by calcNormFactors, which are then used to compute the effective library sizes. Alternatively, gene-specific correction factors can be entered into the glm functions of edgeR as offsets. In the latter case, the offset matrix will be assumed to account for all normalization issues, including sequencing depth and RNA composition.


    Which is all well and good. Two questions though. Firstly, are the offsets automatically generated and applied? The suggested method of running a glm model,

    design <- model.matrix(~group)
    y <- estimateGLMCommonDisp(y,design)
    y <- estimateGLMTrendedDisp(y,design)
    y <- estimateGLMTagwiseDisp(y,design)
    fit <- glmFit(y,design)

    doesn't, on the face of it suggest that they are. Question 1a) if they're not, how/where do I generate and apply them?

    Secondly, the manual suggests that this accounts for all normalization issues, but it also suggests that this is a gene-wise model based normalization procedure. Does it then take library size into account?

    Cheers
    Ben.
  • AJERYC
    Member
    • Jan 2012
    • 26

    #2
    I've got the same error message when trying to get a pairwise model estimateGLMCommonDisp. My mistake was with the design matrix.
    If you type on R

    >?estimateGLMCommonDisp

    you get a full information about this command and at the end there is an example that you can run with a routine that generates data and their design matrix. Check out this design matrix and change it to your data to see if the problem is with the data or with the design. It has worked for me.
    Cheers.

    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, Yesterday, 07:41 AM
    0 responses
    12 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 08-03-2026, 10:13 AM
    0 responses
    26 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 07-31-2026, 02:55 AM
    0 responses
    39 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 07-24-2026, 12:17 PM
    0 responses
    25 views
    0 reactions
    Last Post SEQadmin2  
    Working...