Hi, I a using GEOquery to download some microarray datasets. It worked previously without any problem under old R version (3.5 probably), but now run into problem now I've updated R to version 4.0.5.
Code should be placed in three backticks as shown below
library(GEOquery)
gse<-getGEO(GEO="GSE137140")
# Found 1 file(s)
# GSE137140_series_matrix.txt.gz
# trying URL 'https://ftp.ncbi.nlm.nih.gov/geo/series/GSE137nnn/GSE137140/matrix/GSE137140_series_matrix.txt.gz'
# Content type 'application/x-gzip' length 45700106 bytes (43.6 MB)
# downloaded 43.6 MB
# Error: The size of the connection biffer (131072) was not large enough
# to fit a complete line:
# Increase it by setting 'Sys.setenv("VROOM_CONNECTION_SIZE")'
sessionInfo( )
R version 4.0.5 (2021-03-31)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19042)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C LC_TIME=English_United States.1252
attached base packages:
[1] parallel stats graphics grDevices utils datasets methods base
other attached packages:
[1] limma_3.46.0 GEOquery_2.58.0 Biobase_2.50.0 BiocGenerics_0.36.1 BiocManager_1.30.12
loaded via a namespace (and not attached):
[1] xml2_1.3.3 magrittr_2.0.1 hms_1.1.1 bit_4.0.4 tidyselect_1.1.1 R6_2.5.1 rlang_0.4.12 fansi_0.5.0
[9] dplyr_1.0.7 tools_4.0.5 vroom_1.5.7 utf8_1.2.2 DBI_1.1.1 withr_2.4.3 ellipsis_0.3.2 bit64_4.0.5
[17] assertthat_0.2.1 tibble_3.1.6 lifecycle_1.0.1 crayon_1.4.2 tidyr_1.1.4 purrr_0.3.4 readr_2.1.1 tzdb_0.2.0
[25] vctrs_0.3.8 curl_4.3.2 glue_1.5.1 compiler_4.0.5 pillar_1.6.4 generics_0.1.1 pkgconfig_2.0.3
I tried to increase the connection buffer by Sys.setenv("VROOM_CONNECTION_SIZE"=131072*5), but no success.
Can someone tell me what's going on? Why it worked flawlessly, but now the problem with new R and new bioconductor versions?
Thanks,
John
Yes, I tried to increase the connection buffer by Sys.setenv("VROOM_CONNECTION_SIZE"=131072*5), but no success.
And it worked without any problem with old R/bioconductor, why all of sudden the problem came up with new R/bioconductor? Could you try my 2-line of code and see if you have the same problem? I have tried it on 2 computers, with the same problem
Thanks
also tried to increasing to 10 fold of the size, still no success. I think it's not the size problem
And for completeness
And for super extra completeness
So I can download it on my crappidy old Windows box with 16Gb RAM
Thanks!! maybe I need to get the latest R 4.1.2, I'll try that.
And to answer your question about why it doesn't work any more,
GEOquery
now usesvroom
from the tidyverse to read in the data. It's meant to be superduper fast, but like lots of the tidyverse relies on various environment flags, that you sometimes have to set.Thanks, Jim, for answering all this in the time that it took me to have just 1 zoom meeting!
Actually,
GEOquery
doesn't usevroom
anymore for exactly these reasons. It now relies ondata.table::fread
.If your zoom meetings are like mine, I had plenty of time. ;-D
I think this works because of the GEOquery version used, 2.62.1, which is
data.table::fread()
based. Updating R to 4.1 or later and then updating GEOquery will fix thevroom
errors and also some download issues on Windows. Highly recommend the update.Thanks to both. I installed the latest R 4.1.2, but now I got problem with installing the latest bioconductor version 3/14. This is frustrating... what I need to do...
Uh, try again?
BiocVersion
is for sure available for Bioc 3.14yes, I tried uninstalling and reinstalling R 4.1.2 and then use default bioconductor code, still got then same error. And on 2 computers...Very furstrated...
I'm a little stumped. We could guess more, but it might be worth asking a new question just so others can have a look. Sorry for the frustration!
Ok thanks Sean and Jim
Might have something to do with this
As compared to, say
Which looks more reasonable... I'll see what Martin and Lori have to say about that.
Should be repaired now. See Installing Bioconductor. Sorry for the trouble.
H.
Thank you for the fix! All good now