美文网首页
环境配置笔记12-解决SeuratData包InstallDat

环境配置笔记12-解决SeuratData包InstallDat

作者: 江湾青年 | 来源:发表于2021-09-13 16:25 被阅读0次

近期Seurat官网国内上不去,因此在服务器上也无法使用SeuratData包的InstallData()函数,有以下报错:

> library(SeuratData)
> InstallData("pbmcMultiome")
Using cached data manifest, last updated at 2021-09-13 15:27:39
Error: No access to remote SeuratData repository, unable to install new datasets

因此使用自己的电脑在RStudio中下载数据集,尽管也会报错,但得到了pbmcMultiome数据集的网址

> InstallData("pbmcMultiome")
Warning: dependency ‘Signac’ is not available
试开URL’http://seurat.nygenome.org/src/contrib/pbmcMultiome.SeuratData_0.1.0.tar.gz'
Content type 'application/octet-stream' length 280133643 bytes (267.2 MB)
==================================================
downloaded 267.2 MB

ERROR: dependency ‘Signac’ is not available for package ‘pbmcMultiome.SeuratData’
* removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/pbmcMultiome.SeuratData’

The downloaded source packages are in
    ‘/private/var/folders/tx/qmr7ql797js45fq7575mzht00000gn/T/Rtmpq2sIpN/downloaded_packages’
Error in loadNamespace(name) : 
  there is no package called ‘pbmcMultiome.SeuratData’
此外: There were 37 warnings (use warnings() to see them)

于是在服务器上先通过链接下载数据集:

cd /local/txm/software/SeuratData
wget http://seurat.nygenome.org/src/contrib/pbmcMultiome.SeuratData_0.1.0.tar.gz --no-check-certificate

然后再在Rstudio中手动安装

install.packages('/local/txm/software/SeuratData/pbmcMultiome.SeuratData_0.1.0.tar.gz', repos = NULL, type = "source")

大功告成:

Installing package into '/local/txm/R/x86_64-pc-linux-gnu-library/4.0'
(as 'lib' is unspecified)
* installing *source* package ‘pbmcMultiome.SeuratData’ ...
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (pbmcMultiome.SeuratData)

参考

https://github.com/satijalab/seurat-data/issues/15

相关文章

网友评论

      本文标题:环境配置笔记12-解决SeuratData包InstallDat

      本文链接:https://www.haomeiwen.com/subject/cpefgltx.html