Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Michael Love
    Senior Member
    • Jul 2013
    • 333

    #31
    Fitting a GLM is an iterative process, and so you need to define a stopping criteria. We look for relative changes to the likelihood to define convergence. Sometimes the GLM doesn't converge for some rows when the counts are mostly zero and with very sparse model matrices (although in the recent releases, typically all rows converge). You can likely ignore this message, or remove these rows from the results if you like: res = res[mcols(dds)$fullBetaConv,]

    What package version are you using: packageVersion("DESeq2")?

    Comment

    • lmolokin
      Member
      • Jul 2012
      • 24

      #32
      Gotcha. Session info below. Really appreciate your help, Michael!

      Aleksey

      Code:
      R version 3.1.1 (2014-07-10)
      Platform: x86_64-w64-mingw32/x64 (64-bit)
      
      locale:
      [1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252   
      [3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C                          
      [5] LC_TIME=English_United States.1252    
      
      attached base packages:
      character(0)
      
      other attached packages:
      [1] DESeq2_1.6.1
      
      loaded via a namespace (and not attached):
       [1] acepack_1.3-3.3           annotate_1.44.0           AnnotationDbi_1.28.1     
       [4] base_3.1.1                base64enc_0.1-2           BatchJobs_1.4            
       [7] BBmisc_1.7                Biobase_2.26.0            BiocGenerics_0.12.0      
      [10] BiocInstaller_1.16.0      BiocParallel_1.0.0        brew_1.0-6               
      [13] checkmate_1.5.0           cluster_1.15.2            codetools_0.2-8          
      [16] colorspace_1.2-4          datasets_3.1.1            DBI_0.3.1                
      [19] digest_0.6.4              edgeR_3.8.2               fail_1.2                 
      [22] foreach_1.4.2             foreign_0.8-61            Formula_1.1-2            
      [25] genefilter_1.48.1         geneplotter_1.44.0        GenomeInfoDb_1.2.2       
      [28] GenomicRanges_1.18.1      ggplot2_1.0.0             graphics_3.1.1           
      [31] grDevices_3.1.1           grid_3.1.1                gtable_0.1.2             
      [34] Hmisc_3.14-5              IRanges_2.0.0             iterators_1.0.7          
      [37] labeling_0.3              lattice_0.20-29           latticeExtra_0.6-26      
      [40] limma_3.22.1              locfit_1.5-9.1            MASS_7.3-33              
      [43] methods_3.1.1             munsell_0.4.2             nnet_7.3-8               
      [46] parallel_3.1.1            plyr_1.8.1                proto_0.3-10             
      [49] RColorBrewer_1.0-5        Rcpp_0.11.3               RcppArmadillo_0.4.450.1.0
      [52] reshape2_1.4              rpart_4.1-8               RSQLite_1.0.0            
      [55] S4Vectors_0.4.0           scales_0.2.4              sendmailR_1.2-1          
      [58] splines_3.1.1             stats_3.1.1               stats4_3.1.1             
      [61] stringr_0.6.2             survival_2.37-7           tools_3.1.1              
      [64] utils_3.1.1               XML_3.98-1.1              xtable_1.7-4             
      [67] XVector_0.6.0

      Comment

      • Michael Love
        Senior Member
        • Jul 2013
        • 333

        #33
        Ok just curious. The convergence of these rows is not something to worry about. You can just ignore these rows or remove them using the above code.

        Comment

        • lmolokin
          Member
          • Jul 2012
          • 24

          #34
          Originally posted by Michael Love View Post
          Ah, now I see the problem. You can't use nbinomWaldTest(dd) in the last step. You need to use all the lines of code from the thread I pointed you to, which was

          Code:
          dds <- estimateSizeFactors(dds)
          dds <- estimateDispersionsGeneEst(dds, modelMatrix=m)
          dds <- estimateDispersionsFit(dds)
          dds <- estimateDispersionsMAP(dds, modelMatrix=m)
          dds <- nbinomLRT(dds, full=m, reduced=m[,-idx])
          where idx is a numeric vector of columns to remove from the model matrix for the LRT. There is no support with nbinomWaldTest in the current version to supply model matrices, but I've promised to work on this in devel.
          Hi Michael,
          I wanted to clarify the purpose of the reduced model in my code. Since my goal was not to compare deferentially expressed genes between a full and a reduced model, I assume that the purpose of including it above was just a work-around (a place-holder) to allow the workflow to run with a user supplied model matrix?

          So in other words, when I run:
          Code:
          c2 <- results(dds, [B]test="Wald"[/B], contrast=list("txc.time2"))
          ...the results I get are as if I had run a nbinomWaldTest?

          Aleksey

          Comment

          • Michael Love
            Senior Member
            • Jul 2013
            • 333

            #35
            Yes, for version 1.6, this call to results will give Wald test statistics and p-values. Suppling list or numeric arguments to 'contrast' will work, as will using 'name'.

            Comment

            • Michael Love
              Senior Member
              • Jul 2013
              • 333

              #36
              A note: DESeq2 versions >= 1.7 allow user-supplied model matrices to top level functions DESeq() and estimateDispersions(), so the above extra lines of code are no longer necessary.

              Comment

              Latest Articles

              Collapse

              • SEQadmin2
                Cancer Drug Resistance: The Lingering Barrier to Rising Survival
                by SEQadmin2



                Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

                There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
                Today, 05:17 AM
              • GATTACAT
                Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
                by GATTACAT
                Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
                07-01-2026, 11:43 AM
              • SEQadmin2
                Nine Things a Sample Prep Scientist Thinks About Before Sequencing
                by SEQadmin2


                I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.

                Here are nine questions we think about, in roughly the order they matter, before...
                06-18-2026, 07:11 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by SEQadmin2, Today, 10:08 AM
              0 responses
              6 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, Yesterday, 11:05 AM
              0 responses
              8 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 07-02-2026, 11:08 AM
              0 responses
              31 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 06-30-2026, 05:37 AM
              0 responses
              28 views
              0 reactions
              Last Post SEQadmin2  
              Working...