Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.

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

    Comment


    • #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


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

        Comment

        Latest Articles

        Collapse

        • seqadmin
          Recent Advances in Sequencing Analysis Tools
          by seqadmin


          The sequencing world is rapidly changing due to declining costs, enhanced accuracies, and the advent of newer, cutting-edge instruments. Equally important to these developments are improvements in sequencing analysis, a process that converts vast amounts of raw data into a comprehensible and meaningful form. This complex task requires expertise and the right analysis tools. In this article, we highlight the progress and innovation in sequencing analysis by reviewing several of the...
          05-06-2024, 07:48 AM
        • seqadmin
          Essential Discoveries and Tools in Epitranscriptomics
          by seqadmin




          The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
          04-22-2024, 07:01 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by seqadmin, Yesterday, 06:35 AM
        0 responses
        15 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 05-09-2024, 02:46 PM
        0 responses
        21 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 05-07-2024, 06:57 AM
        0 responses
        18 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 05-06-2024, 07:17 AM
        0 responses
        19 views
        0 likes
        Last Post seqadmin  
        Working...
        X