Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • descostes
    Junior Member
    • May 2019
    • 1

    #1

    understanding design formula in DESeq2

    Hi,

    I am trying to understand the role of using an interaction term in the design formula of DESeq2. I have read this explanation: http://bioconductor.org/packages/dev...l#interactions

    This contains the following paragraph:

    The key point to remember about designs with interaction terms is that, unlike for a design ~genotype + condition, where the condition effect represents the overall effect controlling for differences due to genotype, by adding genotype:condition, the main condition effect only represents the effect of condition for the reference level of genotype (I, or whichever level was defined by the user as the reference level). The interaction terms genotypeII.conditionB and genotypeIII.conditionB give the difference between the condition effect for a given genotype and the condition effect for the reference genotype.

    I would be happy if someone can confirm these affirmations to know if I understand this correctly:

    1) = ~condition + genotype + condition:genotype

    This is not looking at differential expression between conditions, typically a WT vs KO. This is in fact detecting the genes that are differentially expressed between conditions AND differently between genotypes.

    2) = ~ condition + genotype

    This is detecting differentially expressed genes correcting for the genotype effect. In other words, this is looking at differentially expressed genes between all the samples of condition A and all the samples of condition B, but correcting for the effect of the genotype (like we can correct for the batch effect).


    3) =~condition

    Same as above but not correcting for the genotype effect.


    I would like also to know if the following statement is correct:

    If now considering batches instead of genotypes, if one uses a package for batch effect correction such as sva, we can say that:

    1) (~condition + USAGE OF SVA) is equivalent, in the principle, to (~condition + batch). The difference is that a particular package will use a different method.



    Question:

    If the above statements are true, is it correct to say that the following code is equivalent to a 2 by 2 comparision in each genotype using only ~condition:

    `results(dds, contrast=c("group", "IB", "IA"))
    results(dds, contrast=c("group", "IIB", "IIA"))
    results(dds, contrast=c("group", "IIIB", "IIIA"))`

    or is it only subselecting genes that are different between all genotypes AND different between conditions for genotype X (X=c("I", "II", "III"))?

    Thanks a lot in advance.
  • Wolfgang Huber
    Senior Member
    • Aug 2009
    • 109

    #2
    Hi Nicolas

    Assertions 2-4 seem OK, but 1 is not correct. The best I could come up with to explain this is in the recent book: https://www.huber.embl.de/msmb/Chap-...ec:multifactor

    In particular, note that model formulae are not detecting any genes. They are a concise way of specifying a model with multiple parameters ("betas"), and the next step is saying which particular one of these parameters, or linear combination of them ("contrasts") you care about, and *then* you look for genes with a large value of this (univariate) parameter.

    Sorry, I didn't understand the "Question".

    Hope this helps (a little) -
    Wolfgang
    Last edited by Wolfgang Huber; 05-19-2019, 12:12 PM.
    Wolfgang Huber
    EMBL

    Comment

    Latest Articles

    Collapse

    • SEQadmin2
      Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
      by SEQadmin2



      Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

      Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
      ...
      10-14-2026, 09:55 AM
    • SEQadmin2
      New Genomics Technologies Take Aim at Long-Standing Limits
      by SEQadmin2


      Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

      We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
      ...
      09-28-2026, 10:25 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by SEQadmin2, Yesterday, 11:13 AM
    0 responses
    17 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, Yesterday, 10:48 AM
    0 responses
    18 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-15-2026, 10:52 AM
    0 responses
    36 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-14-2026, 05:39 AM
    0 responses
    42 views
    0 reactions
    Last Post SEQadmin2  
    Working...