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
          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, 02:46 PM
        0 responses
        11 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 05-07-2024, 06:57 AM
        0 responses
        13 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 05-06-2024, 07:17 AM
        0 responses
        17 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 05-02-2024, 08:06 AM
        0 responses
        23 views
        0 likes
        Last Post seqadmin  
        Working...
        X