Unconfigured Ad

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

    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

        • GATTACAT
          Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
          by GATTACAT
          Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
          07-01-2026, 11:43 AM
        • 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

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, Yesterday, 11:08 AM
        0 responses
        6 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 06-30-2026, 05:37 AM
        0 responses
        11 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 06-26-2026, 11:10 AM
        0 responses
        19 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 06-17-2026, 06:09 AM
        0 responses
        53 views
        0 reactions
        Last Post SEQadmin2  
        Working...