Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dglemay
    Member
    • Feb 2011
    • 16

    #1

    DESeq: pvalues are NA

    Hello,

    When running DESeq, we get some genes with p-values that are NA (See below). They're probably supposed to be zero or really close to zero. How can we fix this?

    happygrad:~/work/kristen/DEseqTroubleshooting> head -n 1 DE_genes_Reps6_allres.txt
    id baseMean baseMeanA baseMeanB foldChange log2FoldChange pval padj adjLog2FoldChange
    happygrad:~/work/kristen/DEseqTroubleshooting> grep NA DE_genes_Reps6_allres.txt
    NM_001012669 13245.90643904 1967.80257160171 24524.0103064784 12.4626375940331 3.63953752770609 NA NA 3.63886339029247
    NM_001024569 1861.17241176578 0.626705575521935 3721.71811795603 5938.54317453056 12.5358933415034 NA NA 11.1601875099376
    NM_001034039 5972.12221805081 11639.9873990581 304.257037043527 0.0261389490050605 -5.25765505536172 NA NA -5.2530450700836

    We're running version 2.15.0
    Platform = x86_64-pc-linux-gnu (64 bit)

    These are the commands we're using:
    cds <- newCountDataSet(countsTable, cond)
    cds <- estimateSizeFactors(cds)
    cds <- estimateDispersions(cds)
    res <- nbinomTest(cds, "1", "2")

    Thanks,
    Danielle
  • Simon Anders
    Senior Member
    • Feb 2010
    • 995

    #2
    Hi Danielle

    so, only 3 genes are affected? Anything different about the counts for these three genes compared to all the others? Maybe post an excerpt from the count table and from fData(cds).

    Simon

    Comment

    • kristenbeck527
      Junior Member
      • Jul 2012
      • 1

      #3
      Hi Simon,
      I am the grad student working on this project. There are actually between 18-91 entries that are returning p-value = NA, depending on which data set we are working with. I have assembled a tarball with the script we are using and subset of mixed entries some of which give a p-val that is NA and some which are normal. Session information, input and output files are included as well. Take a look and let me know what you think or if you need any more info from me.

      Thanks,
      Kristen
      Attached Files
      Last edited by kristenbeck527; 07-02-2012, 01:07 PM.

      Comment

      • Simon Anders
        Senior Member
        • Feb 2010
        • 995

        #4
        Hi Kristen

        I've had a look at the data now. (Sorry that it took a while.)

        This does not look like RNA-Seq data. You only have 94 genes; this is only barely enough to fit a variance-mean relation.

        Furthermore, your data is sub-Poissonean: the variance is smaller than the mean for more than half of the genes. This is impossible even with technical replicates. You must have done something wrong when obtaining your counts.

        I'd say DESeq was justified in giving strange results here. You will need to tell me more about how the data was obtained before I can give further advice.

        Comment

        • dglemay
          Member
          • Feb 2011
          • 16

          #5
          Dear Simon,

          Thank you for looking at our data. Apologies, we thought it would be easier for you if we gave you a piece of the data set showing the problem, rather than a full data set. Kristen can send a full data set.

          Your detective work is spot-on, because these are data were obtained by "simulating" technical replicates based on a Poisson distribution.... so, some of the genes will have a variance smaller than the mean.

          The NA values are troubling because these are genes with VERY different abundances, so it should be a slam-dunk for DESeq to detect them as differentially expressed.

          Thanks,
          Danielle

          Comment

          • Simon Anders
            Senior Member
            • Feb 2010
            • 995

            #6
            The p values were not "NA" but "NaN", which usually results from a division of zero by zero. Here, it happened because the floating point machine precision turns out to be insufficient in case of extremely low dispersions combined with large means. I guess this can be fixed, but it's maybe not worth the effort because essentially zero dispersions do not happen in practice. (Even between technical replicates, you will usually find dispersion values above 10^-6.)

            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-15-2026, 10:52 AM
            0 responses
            21 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-14-2026, 05:39 AM
            0 responses
            26 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-13-2026, 09:56 AM
            0 responses
            22 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-09-2026, 11:14 AM
            0 responses
            28 views
            0 reactions
            Last Post SEQadmin2  
            Working...