Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.

  • #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

    • seqadmin
      Strategies for Sequencing Challenging Samples
      by seqadmin


      Despite advancements in sequencing platforms and related sample preparation technologies, certain sample types continue to present significant challenges that can compromise sequencing results. Pedro Echave, Senior Manager of the Global Business Segment at Revvity, explained that the success of a sequencing experiment ultimately depends on the amount and integrity of the nucleic acid template (RNA or DNA) obtained from a sample. “The better the quality of the nucleic acid isolated...
      03-22-2024, 06:39 AM
    • seqadmin
      Techniques and Challenges in Conservation Genomics
      by seqadmin



      The field of conservation genomics centers on applying genomics technologies in support of conservation efforts and the preservation of biodiversity. This article features interviews with two researchers who showcase their innovative work and highlight the current state and future of conservation genomics.

      Avian Conservation
      Matthew DeSaix, a recent doctoral graduate from Kristen Ruegg’s lab at The University of Colorado, shared that most of his research...
      03-08-2024, 10:41 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by seqadmin, 03-27-2024, 06:37 PM
    0 responses
    13 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 03-27-2024, 06:07 PM
    0 responses
    12 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 03-22-2024, 10:03 AM
    0 responses
    53 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 03-21-2024, 07:32 AM
    0 responses
    69 views
    0 likes
    Last Post seqadmin  
    Working...
    X