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
            The Factors Reshaping Genome Assembly
            by SEQadmin2



            When the Human Genome Project declared the human genome finished in 2003, portions of the sequence were still missing, including many of its most repetitive and structurally complex regions.1 Still, for the next two decades, researchers analyzed their sequencing data against the single linear reference that came out of this effort. Released in 2013 as GRCh38, that reference has powered countless discoveries, but it has gaps and cannot capture the genetic diversity of the world’s...
            11-24-2026, 07:04 AM
          • SEQadmin2
            16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
            by SEQadmin2





            NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification,...
            10-30-2026, 06:46 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, 11-23-2026, 11:11 AM
          0 responses
          32 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 11-17-2026, 06:27 AM
          0 responses
          42 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 11-12-2026, 07:59 AM
          0 responses
          65 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 11-05-2026, 09:25 AM
          0 responses
          67 views
          0 reactions
          Last Post SEQadmin2  
          Working...