1.运行R显示"biobase"未安装
R语言安装并使用Biobase包:
install.packages("BiocInstaller", repos="https://bioconductor.org/packages/3.6/bioc")
BiocInstaller::biocLite("Biobase")
2.运行"library(NMF)“报错,提示运行"install.extras(NMF)”
直接运行"install.extras(NMF)"行不通,显示各种错误,例如
Error in contrib.url(repos, "source") :
trying to use CRAN without setting a mirror
Calls: install.packages -> contrib.url
Execution halted
首先怀疑是"install.extras"所在包的问题,运行如下Biomanager行不通:
BiocManager::install("packageExtra")# install the package only once
# 根本就没有这个包??
library(packageExtra)# load the package every new R session
最后发现只需要在R脚本里更新一步:
install.packages('NMF', repos = "http://cran.us.r-project.org")
3.运行NMF的R脚本发现迭代1000次报错:
OpenBLAS blas_thread_init: pthread_create failed for thread 127 of 128: Resource temporarily unavailable
OpenBLAS blas_thread_init: RLIMIT_NPROC 4096 current, 4118090 max
疯了已经。。。
Python创建大量线程时遇上OpenBLAS blas_thread_init报错怎么办?
export OPENBLAS_NUM_THREADS=8
一步就解决了,我哭了