Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mevers
    Junior Member
    • Aug 2013
    • 2

    #1

    DESeq2: Difference between condition+type vs. 3 conditions

    Dear all.

    I am unsure about how to use DESeq2 in the case of 3 conditions vs. 2 conditions + 2 types. Assuming I have the following design table
    Code:
              condition    type
    sample1   A            T1
    sample2   A            T1
    sample3   B            T2
    sample4   B            T2
    sample5   A            T2
    sample6   A            T2
    I am unsure about how this would be treated differently from
    Code:
              condition
    sample1   A:T1
    sample2   A:T1
    sample3   B:T2
    sample4   B:T2
    sample5   A:T2
    sample6   A:T2
    The second design table describes a 3-condition scenario.

    Now, obviously one would be interested in a detailed analysis of the counts for
    1. A:T2 vs. B:T2 (since they have the same type but a different conditions), and potentially
    2. A:T2 vs. A:T1 (since they have the same condition but different types).


    Question 1: If I reduce the problem to that of a 3-condition no-type design table, is this correctly taken into account?

    I know I would have to re-factor the columns of the 2nd matrix to reflect the correct order of fold changes that I want to calculate. So for example following re-factoring the levels as
    Code:
    levels=c("A:T2","B:T2","A:T1")
    and performing a DESeq2 analysis
    Code:
    dds<-DESeqDataSetFromMatrix(countData = countData, colData = design, design = ~ condition + type);
    dds<-DESeq(dds);
    Question 2: I could calculate the fold changes of B:T2 wrt A:T2 and A:T1 wrt A:T2, is this correct?
    I do get some issues with non-convergent dispersion fits, which I can get around if I call estimateDispersions manually with fitType="local".

    Question 3: But what happens in the case of the 1st condition+type table? I am confused as to the output of DESeq2. What role does the type play in the differential expression analysis and/or the dispersion fitting?

    Any help on this issue would be greatly appreciated.

    Regards,
    Maurits
    Last edited by mevers; 08-22-2013, 01:38 AM. Reason: Typo
  • Simon Anders
    Senior Member
    • Feb 2010
    • 995

    #2
    In your first table, the type is always the same. Is this a typo? If not, I'm not sure I understand your question.

    Comment

    • mevers
      Junior Member
      • Aug 2013
      • 2

      #3
      Hi Simon.

      Yes, that was a silly mistake, you are absolutely right. I've changed it now in the original post. It should have read
      Code:
      type=c("T1","T1","T2","T2","T2","T2")
      Cheers,
      Maurits

      Comment

      • Michael Love
        Senior Member
        • Jul 2013
        • 333

        #4
        Question 1:

        You can technically represent it either way, although I would recommend to keep the variables separate for the following reason: if you combined the variables (as in "A:T1"), then you cannot make a clean B vs A comparison. Instead you have a B:T2 vs A:T1 comparison which mixes the effect of B vs A and T2 vs T1.

        Question 2:

        Note that fitType is also an argument for DESeq()

        Question 3:

        Both variables are used for finding fitted means (mu in the GLM formula given in the reference manual and vignette). And then the fitted means mu is used to estimate the dispersion. Dispersion is a measure of how far the counts deviate from the mu for that sample. Both variables will have fitted coefficients (betas in the GLM formula) and you can extract tests for each variable of the null hypothesis that the coefficients are equal to zero. By default the results for the last variable is provided by results(). For more, see the section in the vignette on "Multi-factor designs" and the man page for results().

        Comment

        Latest Articles

        Collapse

        • SEQadmin2
          Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
          by SEQadmin2



          CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

          Despite this, “CRISPR helped turn genome editing from a specialized technique into
          ...
          07-31-2026, 11:01 AM
        • SEQadmin2
          Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
          by SEQadmin2


          Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

          The systematic characterization of the human proteome has
          ...
          07-20-2026, 11:48 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, Yesterday, 10:35 AM
        0 responses
        7 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 08-06-2026, 07:41 AM
        0 responses
        25 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 08-03-2026, 10:13 AM
        0 responses
        45 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-31-2026, 02:55 AM
        0 responses
        48 views
        0 reactions
        Last Post SEQadmin2  
        Working...