Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • [DESeq2] multiple variables analysis

    So I create a DeseqDataset like this:

    dds<-DESeqDataSetFromMatrix (countData=countdata,colData=coldata,design=~A+B)

    here A is one factor containing levels A1. A2 ; B is the other factor containg levels B1. B2

    So the default

    ddsMF<-DESeq(dds)

    will tell me the influence of B1 and B2
    -----

    IF I want to look into factor A . I have two methods

    first: results(ddsMF,contrast=c('A','A1','A2'))

    second: dds <- estimateSizeFactors(dds)
    dds <- estimateDispersions(dds)
    dds <- nbinomLRT(dds,full=design(dds), reduced = ~ B)

    So I want to know : what is the difference between above two methods for 'A' ?

  • #2
    The Wald test and the Likelihood ratio test are just different statistical tests (like the t-test vs the rank test). With this setup, they are testing for the same thing: differences due to A controlling for B. In DESeq2, they tend to perform very similarly in these two group comparisons.

    If there were more than 2 levels to A, then the LRT is testing all levels at once, while the Wald test in DESeq2 is for comparing two groups, using 'contrast'. Since A has only two levels, the Wald and LRT are testing the same thing here.

    Note that for the second, you can just do:

    dds <- DESeq(dds, test="LRT", reduced=~B)

    Comment


    • #3
      Originally posted by Michael Love View Post
      The Wald test and the Likelihood ratio test are just different statistical tests (like the t-test vs the rank test). With this setup, they are testing for the same thing: differences due to A controlling for B. In DESeq2, they tend to perform very similarly in these two group comparisons.

      If there were more than 2 levels to A, then the LRT is testing all levels at once, while the Wald test in DESeq2 is for comparing two groups, using 'contrast'. Since A has only two levels, the Wald and LRT are testing the same thing here.

      Note that for the second, you can just do:

      dds <- DESeq(dds, test="LRT", reduced=~B)
      Thang you!

      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