Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • id0
    Senior Member
    • Sep 2012
    • 130

    #1

    DESeq2 multiple levels

    I loaded a set of samples into DESeq2 with one factor that has three levels. There is a single condition I called "Type" with three levels A, B, C.

    This is what I did:
    Code:
    > ddsHTSeq <- DESeqDataSetFromHTSeqCount(sampleTable = sampleTable, directory = directory, design = ~ Type)
    > dds <- DESeq(ddsHTSeq, betaPrior=FALSE)
    > resultsNames(dds)
     [1] "Intercept"             "Type_B_vs_A"    "Type_C_vs_A"
    I can use contrasts to run any of the pairwise comparisons. What if I want to get the differences between all three factors? Is that possible? What is the proper approach for that?
  • Michael Love
    Senior Member
    • Jul 2013
    • 333

    #2
    See the LRT section of the main vignette:

    3.6 Likelihood ratio test

    One reason to use the likelihood ratio test is in order to test the null hypothesis that log2 fold changes for multiple levels of a factor ... are equal to zero.

    Comment

    • id0
      Senior Member
      • Sep 2012
      • 130

      #3
      Thanks for pointing that out. I didn't notice that before.

      The example output is:
      Code:
      ## log2 fold change: condition treated vs untreated
      ## LRT p-value: '~ condition' vs '~ 1'
      ## DataFrame with 2 rows and 6 columns
      ##             baseMean log2FoldChange lfcSE     stat      pvalue    padj
      ##             <numeric><numeric>      <numeric> <numeric> <numeric> <numeric>
      ## FBgn0000003   0.159  15.0447        195.974   0.791     0.374     NA
      ## FBgn0000008   52.226 0.0281         0.298     0.010     0.920     0.971
      It says p-value is "'~ condition' vs '~ 1'", but what exactly does that mean?

      Comment

      • Michael Love
        Senior Member
        • Jul 2013
        • 333

        #4
        The likelihood ratio test is a standard test, I'd recommend consulting a statistics textbook.

        Or you can also start here:



        ~ condition is what we call the "full" model, it is also called the alternative model

        ~ 1 is what we call the "reduced" model, it is also called the null model

        Here we are testing whether the explanatory power (in terms of the likelihood of the observed data) of including the condition information in the model, when compared to the null model (~ 1 means we fit only an intercept term, i.e., all samples belong to the same group), is more than expected by chance alone.

        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, 10-22-2026, 11:13 AM
        0 responses
        26 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-22-2026, 10:48 AM
        0 responses
        20 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
        43 views
        0 reactions
        Last Post SEQadmin2  
        Working...