Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • bryand
    Junior Member
    • Aug 2010
    • 9

    DESeq2 - paired formula design with replicates

    Hi all,

    I know that this is a frequently asked question, but I still haven't quite grasped how to build the formula design for a multifactorial paired study. My sample table is as follows:

    Has.disease PatientName Replicate Treatment Individual
    N Control 1 Ctrl 1
    N Control 1 Epi 1
    N Control 2 Ctrl 2
    N Control 2 Epi 2
    N Control 3 Ctrl 3
    N Control 3 Epi 3
    Y Patient1 1 Ctrl 1
    Y Patient1 1 Epi 1
    Y Patient1 2 Ctrl 2
    Y Patient1 2 Epi 2
    Y Patient2 1 Ctrl 1
    Y Patient2 1 Epi 1
    Y Patient2 2 Ctrl 2
    Y Patient2 2 Epi 2
    Y Patient2 3 Ctrl 3
    Y Patient2 3 Epi 3

    I'm interested in identifying those genes which have a different expression profile between disease/not-disease patients after treatment with Epi. I finally settled on a design formula of: ~Has.disease + Has.disease:Replicate + Has.disease:Treatment (per the vignette), but I really don't know 1) What exactly the formula is measuring, and 2) How I should set my corresponding contrasts.

    As an aside, I've had a very hard time understanding when I should be using the : or the * interaction term in the design formula - I've had no luck with the DESeq2 documentation or on the online forums with finding a good guideline.
  • jp.
    Senior Member
    • Jul 2013
    • 142

    #2
    ops.. I also want that DESeq2 treats samples as replicates but it doesnt as attached
    Attached Files

    Comment

    • Michael Love
      Senior Member
      • Jul 2013
      • 333

      #3
      This means you want to test the interaction of treatment and disease, controlling for the individuals within each disease group.

      In R formula this is:

      ~ disease + disease:replicate + treatment + disease:treatment

      Make sure that replicate is a factor, not a numeric. Make sure you set the reference level of disease and treatment using relevel() or the levels argument to factor() (see vignette).

      And you test the final term, disease:treatment. You can do this with:

      dds <- DESeq(dds, betaPrior=FALSE)
      res <- results(dds)

      The betaPrior=FALSE is recommended for designs with interaction terms. This will happen by default in the next release (Oct 2015).

      The interpretation of the interaction term is the additional effect of treatment in the disease group compared to the no disease group.

      If you are not familiar with interaction terms, and want to learn more, it's best to have a local statistician explain them (this is not specific to DESeq2 but a general concept in statistical analysis).
      Last edited by Michael Love; 07-27-2015, 09:33 AM.

      Comment

      • jp.
        Senior Member
        • Jul 2013
        • 142

        #4
        Thank you Michael for solving my trouble
        you are the leader

        Comment

        Latest Articles

        Collapse

        • SEQadmin2
          From Collection to Sequencing: Why Sample Preparation and Preservation Define Sequencing Data
          by SEQadmin2


          Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.


          The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
          ...
          06-02-2026, 10:05 AM
        • SEQadmin2
          Single-Cell Sequencing at an Inflection Point: Early Impacts of New Platforms and Emerging Trends
          by SEQadmin2


          With the launch of new single-cell sequencing platforms in 2026, the field stands at an exciting inflection point. This article surveys the most impactful advances in the field and discusses how they’re reshaping research in cancer, immunology, and beyond.


          Introduction

          Single-cell sequencing technologies have undergone remarkable advances over the past decade, transitioning from low-throughput experimental approaches to highly scalable platforms capable of...
          05-22-2026, 06:42 AM
        • SEQadmin2
          Environmental Genomics in the Age of NGS: From Microbes to Conservation Strategies
          by SEQadmin2

          Studying ecosystems means dealing with complex, multi-species communities that are hard to observe at scale. This complexity, however, hides many important questions to be answered, from how biogeochemical cycles work and how climate change can affect species distribution to how conservation strategies can work best.


          Genomics, particularly since the expansion of NGS, has transformed ecosystem ecology. By sequencing environmental DNA, we can now assess biodiversity without direct...
          05-06-2026, 09:04 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, Today, 08:59 AM
        0 responses
        9 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 06-02-2026, 12:03 PM
        0 responses
        21 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 06-02-2026, 11:40 AM
        0 responses
        17 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 05-28-2026, 11:40 AM
        0 responses
        30 views
        0 reactions
        Last Post SEQadmin2  
        Working...