Hello,
I tried to download a gene expression dataset from GEO site. My code worked perfectly in the past but now suddenly I am receiving error messages. I double-checked the GEO Analyze with GEO2R R script and it looks exactly just like mine. I tried it on both PC and Mac. No luck.
Any suggestions are highly appreciated.
Anita
My code:
library(Biobase) library(GEOquery) gset <- getGEO("GSE8401", GSEMatrix =TRUE) if (length(gset) > 1) idx <- grep("GPL96", attr(gset, "names")) else idx <- 1 gset <- gset[[idx]] gset
Error:
> gset <- getGEO("GSE8401", GSEMatrix =TRUE) ftp://ftp.ncbi.nlm.nih.gov/geo/series/GSE8nnn/GSE8401/matrix/ Found 1 file(s) GSE8401_series_matrix.txt.gz Using locally cached version: C:\Users\ANITAL~1\AppData\Local\Temp\RtmpMrh4oX/GSE8401_series_matrix.txt.gz Using locally cached version of GPL96 found here: C:\Users\ANITAL~1\AppData\Local\Temp\RtmpMrh4oX/GPL96.soft Error in xj[i] : only 0's may be mixed with negative subscripts In addition: Warning message: closing unused connection 3 (C:\Users\ANITAL~1\AppData\Local\Temp\RtmpMrh4oX/GPL96.soft) > if (length(gset) > 1) idx <- grep("GPL96", attr(gset, "names")) else idx <- 1 Error: object 'gset' not found > gset <- gset[[idx]] Error: object 'gset' not found
> sessionInfo() R version 3.2.0 (2015-04-16) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 7 x64 (build 7601) Service Pack 1 locale: [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 [3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C [5] LC_TIME=English_United States.1252 attached base packages: [1] parallel stats graphics grDevices utils datasets methods base other attached packages: [1] XML_3.98-1.3 RCurl_1.95-4.7 bitops_1.0-6 limma_3.24.12 GEOquery_2.34.0 [6] BiocInstaller_1.18.3 Biobase_2.28.0 BiocGenerics_0.14.0 loaded via a namespace (and not attached): [1] tools_3.2.0 |
|
|
I think this was an NCBI problem, as other users reported problems yesterday. I'm glad it worked itself out for you.