Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SMcTaggart
    Member
    • Jul 2010
    • 10

    #1

    GLM in DESeq

    Hello;

    I am using the nbinomFitGLM and nbinomGLMTest in DeSeq, which have worked well. However, I would like to know if both of the factors in my model (in my case genotype and treatment), as well as their interaction, explain a significant proportion of the variance in the model. Does anyone know the commands that would get at this information (i.e the type of output that one could access with summary.glm)?

    Many thanks,

    Seanna
  • Emanuel Heitlinger
    Member
    • Mar 2009
    • 11

    #2
    Hi Seanna,
    Not sure wether this is really answering you questions, but I have fun at the moment playing around with the R-package vegan:
    You can use principal component analysis (e.g. in the rda function in vegan) on you set of DE-genes. Plot the results to see if one of the PCs is somehow corresponding to the original factors you used to identify the DE-genes.
    You can also use rda or cca to constrain a component to one of your factors. This gives you a variance explained by these factors and the variance explained by additional PCs.

    Emanuel

    P.S. drop me a mail if you want code-examples. I just wanted to post this here as I am not sure, that what I am saying/doing makes sense... Maybe somebody more competent will to come by and debunk it as nonsense ;-)

    Comment

    • Simon Anders
      Senior Member
      • Feb 2010
      • 995

      #3
      For an analysis of deviance, you do a number of fits, progressively including more factors:

      Code:
      fit0a <- nbinomGLMTest( cds, count ~ genotype )
      fit0b <- nbinomGLMTest( cds, count ~ treatment )
      fit1 <- nbinomGLMTest( cds, count ~ genotype + treatment )
      fit2 <- nbinomGLMTest( cds, count ~ genotype + treatment + genotype:treatment )
      Now, you can compare to fits in order to see whether the factor in which the two differ is significant. For example, to see whether treatment has an effect, you do
      Code:
      pvalT <- nbinomGLMTest( fit1, fit0a )
      Similarly, comparing fit1 with fit0b shows whether genotype has an effect and to test for the interaction, compare fit2 with fit1.

      Remember to adjust for multiple testing. Also be aware that once you have significant interaction, it can become debatable whether the the concept of significant main effect for the genes with interaction is still meaningful.
      Last edited by Simon Anders; 12-10-2011, 01:19 PM. Reason: typo in code

      Comment

      • Emanuel Heitlinger
        Member
        • Mar 2009
        • 11

        #4
        Did I misunderstand "if both of the factors in my model [...] explain a significant proportion of the variance in the model" ?

        I thought Seanna wanted to know how much variance the significant factors (or factor combination) explain in the respective significant subset of the data in total (all genes).

        Emanuel
        Last edited by Emanuel Heitlinger; 12-11-2011, 12:07 AM. Reason: unclear writing

        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

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, 08-06-2026, 07:41 AM
        0 responses
        15 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 08-03-2026, 10:13 AM
        0 responses
        31 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-31-2026, 02:55 AM
        0 responses
        42 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-24-2026, 12:17 PM
        0 responses
        26 views
        0 reactions
        Last Post SEQadmin2  
        Working...