Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thurisaz
    Member
    • Jun 2011
    • 24

    #1

    NaN result with DEXSeq

    I'm having some trouble getting running DEXSeq. I generated count files using the python scripts and have gotten as far as trying to fit the dispersion function, which fails with an error:

    > a186Exons
    ExonCountSet (storageMode: environment)
    assayData: 170526 features, 4 samples
    element names: counts
    protocolData: none
    phenoData
    sampleNames: wt-1 wt-2 a186-3 a186-4
    varLabels: sizeFactor condition ... countfiles (5 total)
    varMetadata: labelDescription
    featureData
    featureNames: AT1G01010:001 AT1G01010:002 ... ATMG01410:001 (170526 total)
    fvarLabels: geneID exonID ... transcripts (13 total)
    fvarMetadata: labelDescription
    experimentData: use 'experimentData(object)'
    Annotation:

    > pData(a186Exons)
    sizeFactor condition replicate type countfiles
    wt-1 1.9951460 W 1 paired-end wt-1
    wt-2 1.2640540 W 2 paired-end wt-2
    a186-3 0.8502673 m 1 paired-end a186-3
    a186-4 0.5048640 m 2 paired-end a186-4

    > a186Exons=fitDispersionFunction(a186Exons)
    Error in if (sum(log(coefs/oldcoefs)^2) < 0.005) break :
    missing value where TRUE/FALSE needed
    In addition: Warning message:
    In log(coefs/oldcoefs) : NaNs produced
    I'm guessing the error (about missing values) is probably a result of the NaNs produced. estimateDispersions didn't give any warnings or errors. To be honest, I'm not even sure where the NaNs are coming from -- I'm guessing it's not a problem that there are exons with a zero count, right? I'm at a loss about what to try next, so I would be very grateful for a pointer in the right direction (or maybe even a solution). If some extra information would be helpful in sorting this out, please let me know.

    Thanks!
  • areyes
    Senior Member
    • Aug 2010
    • 165

    #2
    fixed!

    Hi!

    Thank you very much for the error report and from sending me your ecs object. I found the problem and its now fixed in version DEXSeq 0.99.3,
    it was a detail when dealing with NAs.

    Details, I did not know this happened in R:

    Code:
    > x <- rnorm(100, 0, 1)
    > x <- c(x, rep(NA, 2))  ## introduce some NAs
    > x[which(x < 0)] == x[x < 0]
     [1]  TRUE  TRUE  TRUE  TRUE  TRUE  TRUE  TRUE  TRUE  TRUE  TRUE  TRUE  TRUE
    [13]  TRUE  TRUE  TRUE  TRUE  TRUE  TRUE  TRUE  TRUE  TRUE  TRUE  TRUE  TRUE
    [25]  TRUE  TRUE  TRUE  TRUE    NA FALSE FALSE FALSE FALSE FALSE FALSE FALSE
    [37]    NA FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
    [49] FALSE
    Warning message:
    In x[which(x < 0)] == x[x < 0] :
      longer object length is not a multiple of shorter object length
    If there are NAs in a logical vector, subsetting in the below way does not work, a 'which' needs to be added

    Code:
    x[x < 0]
    Thanks again!

    Comment

    • thurisaz
      Member
      • Jun 2011
      • 24

      #3
      Thanks very much for the quick fix! The Bioconductor website still lists version 0.99.2 (http://www.bioconductor.org/packages...ml/DEXSeq.html). Is there somewhere else to look for the new version or should I just wait for it to be updated there?

      Comment

      • areyes
        Senior Member
        • Aug 2010
        • 165

        #4
        You can get it directly from the bioconductor svn repository a indicated here:



        And install it manually!

        Comment

        • MerFer
          Member
          • Sep 2009
          • 21

          #5
          I've installed the fixed version of DEXSeq. But I get the same errors again.

          ecsExons <- fitDispersionFunction(ecsExons)
          Error in if (sum(log(coefs/oldcoefs)^2) < 0.005) break :
          missing value where TRUE/FALSE needed
          In addition: Warning message:
          In log(coefs/oldcoefs) : NaNs produced

          Comment

          • thurisaz
            Member
            • Jun 2011
            • 24

            #6
            Thanks, areyes. I installed the new version and my problem is solved.

            Comment

            • leda
              Junior Member
              • Feb 2013
              • 7

              #7
              This is an old thread and it seems the wiki link is broken now... is there another bioconductor svn how-to somewhere?

              thanks,
              Leda

              Originally posted by areyes View Post
              You can get it directly from the bioconductor svn repository a indicated here:



              And install it manually!

              Comment

              • areyes
                Senior Member
                • Aug 2010
                • 165

                #8
                Google "bioconductor svn repository":

                The Bioconductor project is maintained in a Git source control system. Package maintainers update their packages by pushing changes to their git repositories. This chapter contains several...

                Comment

                • Simon Anders
                  Senior Member
                  • Feb 2010
                  • 995

                  #9
                  No need to use the SVN repository, anyway. Changes get propagated from the SVN repo to the downloadable packages within a few days, and this fix is several months old.

                  Comment

                  Latest Articles

                  Collapse

                  • SEQadmin2
                    Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
                    by SEQadmin2



                    CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

                    Despite this, “CRISPR helped turn genome editing from a specialized technique into
                    ...
                    07-31-2026, 11:01 AM
                  • SEQadmin2
                    Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
                    by SEQadmin2


                    Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

                    The systematic characterization of the human proteome has
                    ...
                    07-20-2026, 11:48 AM
                  • SEQadmin2
                    Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                    by SEQadmin2



                    Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
                    ...
                    07-09-2026, 11:10 AM

                  ad_right_rmr

                  Collapse

                  News

                  Collapse

                  Topics Statistics Last Post
                  Started by SEQadmin2, Today, 10:13 AM
                  0 responses
                  13 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 07-31-2026, 02:55 AM
                  0 responses
                  23 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 07-24-2026, 12:17 PM
                  0 responses
                  19 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 07-23-2026, 11:41 AM
                  0 responses
                  18 views
                  0 reactions
                  Last Post SEQadmin2  
                  Working...