Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • DEseq2 gives constant adjusted p-values

    I am doing some exploratory analyses on two datasets without replicates. i found it strange that irrespective of the calculated p-value, the adjusted p-value has constant value across all features. this value was 0.9999295.

    is there a known cause to this? does it relate to the fact that no replicates are being used?

    Thanks

  • #2
    No replicates? Yeah, you shouldn't expect to get anything significant in that case. Anyway, the actual answer is that the resulting adjusted values isn't strictly related to the lack of replicates, but is instead dependent on the distribution of the unadjusted p-values. DESeq2 uses the BH method from the p.adjust() function, as is the case for pretty much every other package. If you have a more or less uniform distribution of raw p-values, you should expect the adjusted p-values to be ~1.

    Comment


    • #3
      I am well aware of the consequences of having no replicates, as it has rightly been stated in multiple threads already

      i just find it odd that every single adjusted p-value has the same exact value. i just checked the distribution of p-values and it is rather uniform (with a downward trend when approaching zero), but i still don't understand how having exactly the same value at all genes is possible.

      Comment


      • #4
        Well, given what you describe, they should all be about 1. Any deviation from that is just due to how things are implemented (plus the joys of floating point arithmetic).

        Comment


        • #5
          ooooh, so the value would be 1 everywhere but because of floating point approximation shenanigans it turns out to be 0.99 bla bla.

          it makes sense, i tried other correction methods and they all give either 1 or the same 0.999 value i had with the benjamini. so i would say it makes sense.

          Comment


          • #6
            Yup. If you're curious, this is how R does the BH adjustment method:
            Code:
            i <- lp:1L
            o <- order(p, decreasing = TRUE)
            ro <- order(o)
            pmin(1, cummin(n/i * p[o]))[ro]
            You input "p" and the adjusted values are the output of cummin() with a max value of 1. "lp" is just the length of the input vector.

            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, 05-10-2024, 06:35 AM
            0 responses
            20 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 05-09-2024, 02:46 PM
            0 responses
            26 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 05-07-2024, 06:57 AM
            0 responses
            21 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 05-06-2024, 07:17 AM
            0 responses
            21 views
            0 likes
            Last Post seqadmin  
            Working...
            X