Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • mattanswers
    Member
    • Oct 2009
    • 65

    4 conditions in DESeq2

    I have four conditions A, B, C, and D that each have three HTSeq count files.

    I want to use DESeq2 to compare A to B, A to C, A to D, B to C, B to D etc.

    With DESeq, I would bring all the 12 files into a countDataSet and then I could specify which of the conditions to compare.

    With DESeq2, I can bring all the 12 files into a DESeqDataSet, but I can not figure out how to do specify the particular comparisons.
  • Dario1984
    Senior Member
    • Jun 2011
    • 166

    #2
    It's easy. Use the contrast variable of the results function. Comparing all pairs of contrasts is not a good idea, though. Why don't you have a better biological hypothesis ?

    Comment

    • mattanswers
      Member
      • Oct 2009
      • 65

      #3
      We have wild type condition A and wild type condition B as well as treated condition A and treated condition B. So, we would like to see changes in gene expression between condition A and condition B, as well as changes in gene expression between wild type and treated.

      Will contrast provide us with this ? To me it seems like the analysis is done by the DESeq function and the results function just organizes the output of the DESeq function.

      Comment

      • dpryan
        Devon Ryan
        • Jul 2011
        • 3478

        #4
        Yes, a contrast allows you to perform pretty much any comparison you want. Note that the comparisons to A don't require contrasts, since those are just fit coefficients.

        Comment

        • Michael Love
          Senior Member
          • Jul 2013
          • 333

          #5
          hi Matt,

          For lots more information about what you want to do, check out the man page for ?results and section 3.2 Contrasts in: vignette("DESeq2")

          Comment

          • mattanswers
            Member
            • Oct 2009
            • 65

            #6
            Thank you very much for your answers Dario, Devon and Michael !

            Comment

            • Michael Love
              Senior Member
              • Jul 2013
              • 333

              #7
              > "Note that the comparisons to A don't require contrasts, since those are just fit coefficients."

              Safest always to use contrast=c("condition","B","A"), because when we have expanded model matrices for symmetric shrinkage, then the coefficients are not B_vs_A, but simply A, B, etc. This will be clear from resultsNames(dds)
              Last edited by Michael Love; 01-22-2015, 12:24 PM.

              Comment

              • mattanswers
                Member
                • Oct 2009
                • 65

                #8
                OK. Thank you for clarifying that.
                (And also for making DESeq2 !)

                Comment

                Latest Articles

                Collapse

                • SEQadmin2
                  Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                  by SEQadmin2



                  Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
                  ...
                  07-09-2026, 11:10 AM
                • SEQadmin2
                  Cancer Drug Resistance: The Lingering Barrier to Rising Survival
                  by SEQadmin2



                  Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

                  There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
                  07-08-2026, 05:17 AM
                • 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

                ad_right_rmr

                Collapse

                News

                Collapse

                Topics Statistics Last Post
                Started by SEQadmin2, Yesterday, 10:26 AM
                0 responses
                15 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 07-09-2026, 10:04 AM
                0 responses
                28 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 07-08-2026, 10:08 AM
                0 responses
                16 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 07-07-2026, 11:05 AM
                0 responses
                33 views
                0 reactions
                Last Post SEQadmin2  
                Working...