Entering edit mode
jianwang2010
▴
10
@jianwang2010-7648
Last seen 9.6 years ago
Dear GEOquery users/developers:
I encountered an error while using GEOquery package to download GSExxx from GEO database. Googled and saw similar error messages posted by others but no suitable solutions seem available.
Any help is greatly appreciated.
This is the R code: =================== library(Biobase) library(GEOquery) gse <- "GSE49279" gset <- try(getGEO(gse, GSEMatrix =TRUE, getGPL=FALSE)) The error message: ================= Setting options('download.file.method.GEOquery'='curl') ftp://ftp.ncbi.nlm.nih.gov/geo/series/GSE9nnn/GSE9105/matrix/ Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : line 1 did not have 6 elements ftp://ftp.ncbi.nlm.nih.gov/geo/series/GSE49nnn/GSE49279/matrix/ Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : line 1 did not have 6 elements
Here is my sessionInfo()
R version 3.1.2 (2014-10-31)
Platform: x86_64-unknown-linux-gnu (64-bit)
locale:
[1] LC_CTYPE=en_US LC_NUMERIC=C LC_TIME=en_US
[4] LC_COLLATE=en_US LC_MONETARY=en_US LC_MESSAGES=en_US
[7] LC_PAPER=en_US LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=en_US LC_IDENTIFICATION=C
attached base packages:
[1] parallel stats graphics grDevices utils datasets methods
[8] base
other attached packages:
[1] GEOquery_2.32.0 RCurl_1.95-4.3 Biobase_2.26.0
[4] BiocGenerics_0.12.0 nza_3.0.1 rpart_4.1-8
[7] arules_1.1-5 Matrix_1.1-4 XML_3.98-1.1
[10] ca_0.55 MASS_7.3-35 e1071_1.6-4
[13] tree_1.0-35 nzr_3.0.1 bitops_1.0-6
[16] RODBC_1.3-10
This GSE Series Matrix file has no data in it, so using getGEO on the GSEMatrix file will not get you anything except the annotation.
It might be because that is an RNA-Seq analysis. There doesn't appear to be any data in the matrix.txt.gz file - it just has pointers to the SRA.
This is handled by recent versions of GEOquery and shouldn't result in an error. I need to check on when I made that change. In any case, an update to the newest version of R is likely a good idea.