Error in simpleLoess when running DEXSeq
1
0
Entering edit mode
cfreije ▴ 10
@cfreije-6767
Last seen 9.5 years ago
United States

I am attempting to run DEXSeq on an RNASeq data set to determine if there is differential splicing due to treatment condition. However, during the estimate dispersions step I get the following error: simpleLoess(y, x, w, span, degree, parametric, drop.square, normalize, : NA/NaN/Inf in foreign function call (arg 1) What would cause such an error given the experimental design and provided design formulas?

My experimental set up has 23 patients, and each patient has two conditions - time 0 (t0) and time 1 (t1).The sample metadata looks like the following:

PatientID    SampleID    Condition

p1              p1-t0           t0

p1              p1-t1           t1

p2              p2-t0           t0

p2              p2-t1           t1

…              …               ...

p23              p23-t0           t0

p23              p23-t1           t1

Due to patient variability, I would like to block by PatientID. Following the DEXSeq vignette example, I set up my design formula and null model as the following:

> design.dex <- ~ sample + exon + PatientID:exon + Condition:exon
> null.model <- ~ sample + exon + PatientID:exon

I am using the wrapper function to complete the entire analysis with the following command: 

> output <- DEXSeq(dexSeqdataset,fullModel = design.dex, reducedModel = null.model, BPPARAM = MulticoreParam(workers=8),fitExpToVar="Condition",quiet=FALSE)


> sessionInfo()
R version 3.1.0 (2014-04-10)
Platform: x86_64-unknown-linux-gnu (64-bit)

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] parallel  stats     graphics  grDevices utils     datasets  methods  
[8] base     

other attached packages:
 [1] DEXSeq_1.10.6             BiocParallel_0.6.1       
 [3] DESeq2_1.4.5              RcppArmadillo_0.4.300.8.0
 [5] Rcpp_0.11.2               GenomicRanges_1.16.3     
 [7] GenomeInfoDb_1.0.2        IRanges_1.22.9           
 [9] Biobase_2.24.0            BiocGenerics_0.10.0      
[11] BiocInstaller_1.14.2     

loaded via a namespace (and not attached):
 [1] annotate_1.42.0      AnnotationDbi_1.26.0 BatchJobs_1.2       
 [4] BBmisc_1.7           biomaRt_2.20.0       Biostrings_2.32.0   
 [7] bitops_1.0-6         brew_1.0-6           checkmate_1.0       
[10] codetools_0.2-8      DBI_0.2-7            digest_0.6.4        
[13] fail_1.2             foreach_1.4.2        genefilter_1.46.1   
[16] geneplotter_1.42.0   grid_3.1.0           hwriter_1.3         
[19] iterators_1.0.7      lattice_0.20-29      locfit_1.5-9.1      
[22] plyr_1.8.1           RColorBrewer_1.0-5   RCurl_1.95-4.1      
[25] Rsamtools_1.16.1     RSQLite_0.11.4       sendmailR_1.1-2     
[28] splines_3.1.0        statmod_1.4.20       stats4_3.1.0        
[31] stringr_0.6.2        survival_2.37-7      tools_3.1.0         
[34] XML_3.98-1.1         xtable_1.7-3         XVector_0.4.0       
[37] zlibbioc_1.10.0     
DEX error simpleLoess RNAseq • 2.9k views
ADD COMMENT
0
Entering edit mode
Alejandro Reyes ★ 1.9k
@alejandro-reyes-5124
Last seen 4 months ago
Novartis Institutes for BioMedical Rese…

Hi cfreije,

This issue has to do with your big number of samples and should be solved in the development version of DEXSeq! Could you try to update to these and give it a try?

 

Alejandro

ADD COMMENT
0
Entering edit mode

Thank you for your help Alejandro.

I just want to check before I attempt to run this again. The development version of DEXSeq would be version 1.11.14?

ADD REPLY
0
Entering edit mode

Just to follow up, I am attempting to use the development version of DEXSeq (version 1.11.14). I used the commands provided on the DEXSeq developmental version bioconductor page (http://bioconductor.jp/packages/3.0/bioc/html/DEXSeq.html) :

> source("http://bioconductor.org/biocLite.R")
> biocLite("DEXSeq")

However, this still installs version 1.10.8. Furthermore, I attempted to download and install from source, but when I click on the source link I get the following message: "Forbidden - You don't have permission to access /packages/3.0/bioc/src/contrib/DEXSeq_1.11.14.tar.gz on this server."

How would you suggest I upgrade to this development version?

ADD REPLY
0
Entering edit mode

There are instructions for how to use the devel version of Bioconductor; be sure to keep your 'release' and 'devel' libraries separate, and be aware that you're making a more than trivial change to your set-up so expect the worst (though the update may well go smoothly). The next release of Bioconductor is scheduled for October 14.

ADD REPLY
0
Entering edit mode

And the link you provide is to a Japanese mirror; try visiting http://bioconductor.org/packages/3.0/bioc/html/DEXSeq.html (Bioconductor uses a service from Amazon to distribute packages globally, so there is less need than in the past to use a mirror).

ADD REPLY
0
Entering edit mode

Martin,

Thank you for your help. Following your instructions, I installed and loaded the developmental version of DEXSeq:

> library(BiocInstaller)
> useDevel()
> biocLite("DEXSeq")
> library(DEXSeq)

However, when I make the DEXSeq count data set I get the following error:

>  dsds.IFNstim <- DEXSeqDataSetFromHTSeq(sample.metadata.DEX$countfile,sampleData=sample.metadata.DEX,design=design.dex,flattenedfile="~/Projects/External/IFNL3-HCV/Ensembl66_standard_genes+IFNL4_chrDEXSeq.gtf")

Error in ncol(mcols(dds)) :
  error in evaluating the argument 'x' in selecting a method for function 'ncol': Error in (function (classes, fdef, mtable)  :
  unable to find an inherited method for function ‘mcols’ for signature ‘"DESeqDataSet"’

'mcols' is a method from S4Vectors which is loaded. Do you think this is an error due to using the developmental versions or is this something more systematic with my set up?

> sessionInfo()
R version 3.1.1 (2014-07-10)
Platform: x86_64-apple-darwin10.8.0 (64-bit)

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats4    parallel  stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] DEXSeq_1.11.16            BiocParallel_0.6.1        DESeq2_1.5.68             RcppArmadillo_0.4.450.1.0
 [5] Rcpp_0.11.2               S4Vectors_0.2.4           GenomicRanges_1.16.4      GenomeInfoDb_1.0.2       
 [9] IRanges_1.22.10           Biobase_2.24.0            BiocGenerics_0.11.5       BiocInstaller_1.15.5     

loaded via a namespace (and not attached):
 [1] acepack_1.3-3.3      annotate_1.42.1      AnnotationDbi_1.26.0 base64enc_0.1-2      BatchJobs_1.3       
 [6] BBmisc_1.7           biomaRt_2.20.0       Biostrings_2.32.1    bitops_1.0-6         brew_1.0-6          
[11] checkmate_1.4        cluster_1.15.3       codetools_0.2-9      colorspace_1.2-4     DBI_0.3.1           
[16] digest_0.6.4         fail_1.2             foreach_1.4.2        foreign_0.8-61       Formula_1.1-2       
[21] genefilter_1.46.1    geneplotter_1.43.0   ggplot2_1.0.0        grid_3.1.1           gtable_0.1.2        
[26] Hmisc_3.14-5         hwriter_1.3.2        iterators_1.0.7      lattice_0.20-29      latticeExtra_0.6-26
[31] locfit_1.5-9.1       MASS_7.3-34          munsell_0.4.2        nnet_7.3-8           plyr_1.8.1          
[36] proto_0.3-10         RColorBrewer_1.0-5   RCurl_1.95-4.3       reshape2_1.4         rpart_4.1-8         
[41] Rsamtools_1.16.1     RSQLite_0.11.4       scales_0.2.4         sendmailR_1.2-1      splines_3.1.1       
[46] statmod_1.4.20       stringr_0.6.2        survival_2.37-7      tools_3.1.1          XML_3.98-1.1        
[51] xtable_1.7-4         XVector_0.4.0        zlibbioc_1.10.0     
ADD REPLY
0
Entering edit mode

'Release' versions of Bioconductor have even numbers in the second field, e.g., the '22' in IRanges 1.22.10, whereas 'devel' versions are odd-numbered, '11' in DEXSeq. So you have a mixture of release and devel packages. biocLite() should update to devel; biocValid() should confirm that things are ok.

ADD REPLY
0
Entering edit mode

Martin,

Thanks again for your help. That worked great!

cfreije

ADD REPLY

Login before adding your answer.

Traffic: 614 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6