换个网络环境再试一下,有时候是网络的原因
> #args=commandArgs(TRUE)
> ###通过阅读文献获得感兴趣的数据对应的登陆号,并准备下载
> GSE = "GSE66597"
> ########################利用获得的GSE accession 和对应的GPL accession下载数据 ###################
>
> workdir = "H:/gene_family/GEO数据挖掘/GES66597"
>
> if( !file.exists(workdir) ){
+ if( !dir.create(workdir, showWarnings = FALSE, recursive = TRUE) ){
+ stop(paste("dir.create failed: workdir=",workdir,sep=""))
+ }
+ }
> #设置工作路径
> setwd(workdir)
> ###获取数据
> gset = getGEO(GSE, GSEMatrix =TRUE, AnnotGPL=TRUE,destdir=workdir)
Found 1 file(s)
GSE66597_series_matrix.txt.gz
试开URL’https://ftp.ncbi.nlm.nih.gov/geo/series/GSE66nnn/GSE66597/matrix/GSE66597_series_matrix.txt.gz'
Error in download.file(sprintf("https://ftp.ncbi.nlm.nih.gov/geo/series/%s/%s/matrix/%s", :
无法打开URL'https://ftp.ncbi.nlm.nih.gov/geo/series/GSE66nnn/GSE66597/matrix/GSE66597_series_matrix.txt.gz'
此外: Warning message:
In download.file(sprintf("https://ftp.ncbi.nlm.nih.gov/geo/series/%s/%s/matrix/%s", :
InternetOpenUrl失败:’安全频道支持出错'