Seqanswers Leaderboard Ad

Collapse

Announcement

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

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

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


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


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

        • 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
        • seqadmin
          Current Approaches to Protein Sequencing
          by seqadmin


          Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
          04-04-2024, 04:25 PM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by seqadmin, Yesterday, 08:47 AM
        0 responses
        15 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 04-11-2024, 12:08 PM
        0 responses
        60 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 04-10-2024, 10:19 PM
        0 responses
        60 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 04-10-2024, 09:21 AM
        0 responses
        54 views
        0 likes
        Last Post seqadmin  
        Working...
        X