Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • id0
    Senior Member
    • Sep 2012
    • 130

    DESeq2 multi-factor designs

    I am getting started with DESeq2. I am trying to understand how multi-factor design works. This is fairly basic question, but I can't find the proper answer.

    From the vignette:
    Code:
    We can account for the different types of sequencing, and get a clearer 
    picture of the differences attributable to the treatment. As condition is the 
    variable of interest, we put it at the end of the formula. Here we
    
    design(dds) <- formula(~ type + condition)
    dds <- DESeq(dds)
    So how exactly are the two parameters treated? What do the significant genes in the results mean? Are they the ones that are changing in condition regardless of type, or the ones that are changing in both type and condition? What happens when you have three or more parameters?

    Additionally, although results for condition are output by default, results for type can be retrieved as well. Does the order or parameters only matter for the output or is the test performed differently?
  • dpryan
    Devon Ryan
    • Jul 2011
    • 3478

    #2
    The normal phrasing for that would be "differences due to type when controlling for condition" for the "type" results and "differences due to condition when controlling for type" for the "condition" results. The syntax is the same as is used for other linear and generalized linear models in R, so that's why it's not described in depth. If "condition" has levels "A", "B", and "C", then (generally) "A" will be treated as the baseline level and you get statistics for the "BvsA" and "CvsA" comparisons (I think the most recent version of DESeq2 implements contrasts, so you can then test whatever you really want).

    Comment

    • id0
      Senior Member
      • Sep 2012
      • 130

      #3
      Originally posted by dpryan View Post
      The normal phrasing for that would be "differences due to type when controlling for condition" for the "type" results and "differences due to condition when controlling for type" for the "condition" results. The syntax is the same as is used for other linear and generalized linear models in R, so that's why it's not described in depth. If "condition" has levels "A", "B", and "C", then (generally) "A" will be treated as the baseline level and you get statistics for the "BvsA" and "CvsA" comparisons (I think the most recent version of DESeq2 implements contrasts, so you can then test whatever you really want).
      That was very helpful.

      I think you misunderstood the part of my question regarding multiple parameters, though. What happens when the design goes from formula(~ x + y) to formula(~ x + y + z)?

      Comment

      • dpryan
        Devon Ryan
        • Jul 2011
        • 3478

        #4
        Ah, with more parameters things are the same. You're always testing one thing while accounting for the others.

        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, 07-02-2026, 11:08 AM
        0 responses
        21 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 06-30-2026, 05:37 AM
        0 responses
        22 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 06-26-2026, 11:10 AM
        0 responses
        21 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 06-17-2026, 06:09 AM
        0 responses
        54 views
        0 reactions
        Last Post SEQadmin2  
        Working...