Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/database/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
加载包时出现Rsamtools错误_R_Bioconductor - Fatal编程技术网

加载包时出现Rsamtools错误

加载包时出现Rsamtools错误,r,bioconductor,R,Bioconductor,当我想在R中加载Rsamtools包时,我看到错误如下: Error in get(method, envir = home) : lazy-load database'/Library/Frameworks/R.framework/Versions/3.2/Resources/library/Rsamtools/ R/Rsamtools.rdb' is corrupt In addition: Warning messages: 1: In .registerS

当我想在R中加载Rsamtools包时,我看到错误如下:

  Error in get(method, envir = home) : 
    lazy-load database'/Library/Frameworks/R.framework/Versions/3.2/Resources/library/Rsamtools/      R/Rsamtools.rdb' is corrupt
  In addition: Warning messages:
  1: In .registerS3method(fin[i, 1], fin[i, 2], fin[i, 3], fin[i, 4],  :
    restarting interrupted promise evaluation
  2: In get(method, envir = home) :
    restarting interrupted promise evaluation
  3: In get(method, envir = home) : internal error -3 in R_decompress1
  Error: package or namespace load failed for ‘Rsamtools’
sessionInfo的输出为:

  R version 3.2.0 (2015-04-16)
  Platform: x86_64-apple-darwin13.4.0 (64-bit)
  Running under: OS X 10.9 (Mavericks)

  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  
  [9] base     

  other attached packages:
   [1] UniProt.ws_2.8.0     RCurl_1.95-4.6       bitops_1.0-6               RSQLite_1.0.0       
   [5] DBI_0.3.1            BiocInstaller_1.18.2 Biostrings_2.36.1    XVector_0.8.0       
   [9] AnnotationDbi_1.30.1 Biobase_2.28.0       GenomicRanges_1.20.4       GenomeInfoDb_1.4.0  
  [13] IRanges_2.2.3        S4Vectors_0.6.0      BiocGenerics_0.14.0 

  loaded via a namespace (and not attached):
  [1] zlibbioc_1.14.0 tools_3.2.0     biomaRt_2.24.0  XML_3.98-1.2   
不仅我不能使用Rsamtools,而且当我想使用我的旧软件包时,我可以在出现以下错误之前使用它们,例如使用“TxDb.Hsapiens.UCSC.hg19.knownge”软件包:

  Loading required package: GenomicFeatures
  Error in get(method, envir = home) : 
    lazy-load database       '/Library/Frameworks/R.framework/Versions/3.2/Resources/library/Rsamtools/R/Rsamto      ols.rdb' is corrupt
  In addition: Warning messages:
  1: In .registerS3method(fin[i, 1], fin[i, 2], fin[i, 3], fin[i, 4],  :
    restarting interrupted promise evaluation
  2: In get(method, envir = home) :
    restarting interrupted promise evaluation
  3: In get(method, envir = home) : internal error -3 in R_decompress1                          Error: package ‘GenomicFeatures’ could not be loaded

我该怎么办?

出人意料!重新启动会话解决了问题:|

是否运行了
update.packages(checkbuild=TRUE)
?此外,还应运行
source(“http://bioconductor.org/biocLite.R"); BioLite()
。是的,我现在做了,没有任何改变。错误与以前相同使用命令biocLite()时,它识别“BSgenome.Hsapiens.UCSC.hg19”是一个旧软件包,但我总是重新选择更新此软件包,因为它大约有600万,并且我的internet连接速度不是很快。您认为错误的原因是“BSgenome.Hsapiens.UCSC.hg19”的旧版本吗?请尝试指定包:
biocLite(“Rsamtools”)
。另外,根据这一页,建议使用
BSgenome.Hsapiens.UCSC.hg19
。我使用了BioLite(“Rsamtools”),但问题尚未解决。相同的问题和相同的解决方案。相同的问题和相同的解决方案!!我只想说,WTF。