Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kentnf
    Member
    • Jan 2009
    • 26

    #1

    How to assign values to size factor (DESeq)

    I updated my DESeq recently, but got problem when assigning values (No. of total mapped read) to the size factor.

    here is my code:
    Code:
    libsizes<-c( wt_rep1=18303917, wt_rep2=18947532, mu_rep1=20295971, mu_rep2=18256798)
    sizeFactors(cds)<-libsizes
    cds <- estimateDispersions( cds )
    The R has warnings like this:

    1: In log(ifelse(y == 0, 1, y/mu)) : NaNs produced
    2: step size truncated due to divergence

    Does anyone encounter the same problem or know the reason.

    Thanks a lot!
  • kentnf
    Member
    • Jan 2009
    • 26

    #2
    By the way, I got another warning when analysis data without replicate using DESeq.

    when running below script follows the manual:
    cds1<-estimateDispersions( cds1, method="blind", sharingMode="fit-only" )

    I got the warning like this:
    Warning message:
    In parametricDispersionFit(means, disps) : Dispersion fit did not converge.

    Comment

    • labunit
      Member
      • Sep 2010
      • 10

      #3
      I am also experiencing difficulties when trying to use sizeFactors different from those estimated by estimateSizeFactors(). The local fit fails for some datasets when using custom sizeFactors but is successful when using estimateSizeFactors().
      Maybe Simon could shed some light on the dependence of the local fit on the sizeFactors?

      Comment

      • Simon Anders
        Senior Member
        • Feb 2010
        • 995

        #4
        It is rarely a good idea anyway to assign size factors manually. Especially the total number of reads is hardly ever useful. Furthermore, size factors are typically values around1 (they are relative scaling factors), so if you use your own numbers (for whatever reason), better divide them by their geometric mean before assigning them).

        I should remove the explanation how to assign values to sizeFactors from the vignette to make clear that this is not something one should usually do.

        Comment

        • frymor
          Senior Member
          • May 2010
          • 151

          #5
          I get this same massage without having to calculate my own size factors. I have three replica and I use the default settings of the package.

          I still get this message . Is it because the size factors differs so greatly from each other?
          Code:
          [1] "sizeFactors( cds )"
                      rep1_1                 rep1_2                 rep1_3 
                     0.8318137            0.8369557            0.8329977 
                      rep2_1                 rep2_2                 rep2_3
                     1.2068798            1.2132170            1.2147831

          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-22-2026, 11:13 AM
          0 responses
          42 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-22-2026, 10:48 AM
          0 responses
          33 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-15-2026, 10:52 AM
          0 responses
          44 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-14-2026, 05:39 AM
          0 responses
          45 views
          0 reactions
          Last Post SEQadmin2  
          Working...