clusterProfiler运行gseKEGG报错问题
Reading KEGG annotation online:
fail to download KEGG data...
Error in download.KEGG.Path(species) :
'species' should be one of organisms listed in 'http://www.genome.jp/kegg/catalog/org_list.html'...
In addition: Warning message:
In utils::download.file(url, quiet = TRUE, method = method, ...) :
URL 'https://rest.kegg.jp/link/hsa/pathway': status was 'Failure when receiving data from the peer'
原因
clusterProfiler包有下载协议
修改协议即可:
#安装包
install.packages("R.utils")
#加载包
library(R.utils)
#修改协议
R.utils::setOption("clusterProfiler.download.method","auto")
再次运行,完美!