I am using GEOquery package from bioconductor to download geoseries data:
library(GEOquery)
options(timeout = 600) # Set timeout to 10 minutes (600 seconds)
options(download.file.method.GEOquery = 'curl')
GSE1145 <- getGEO("GSE1145", GSEMatrix=TRUE) #get the GEO object
But after running 5 times , it throws me the same error:
Found 2 file(s)
GSE1145-GPL570_series_matrix.txt.gz
Timeout was reached: [] Operation timed out after 120005 milliseconds with 3457024 out of 10863499 bytes receivedFile stored at:
C:\Users\Home\AppData\Local\Temp\RtmpaEE2lp/GSE1145-GPL570_series_matrix.txt.gz
Error in downloadFile(url, destfile = destfile, mode = "wb") :
Failed to download C:\Users\Home\AppData\Local\Temp\RtmpaEE2lp/GSE1145-GPL570_series_matrix.txt.gz!
What is the issue? Is there any problem with Geoquery package nowadays? I am using R-4.4.0 with Rstudio 2024.04.1
Query seems to be timing out. Try getting the file directly here: https://ftp.ncbi.nlm.nih.gov/geo/series/GSE1nnn/GSE1145/matrix/GSE1145-GPL570_series_matrix.txt.gz
I want to get lot of files through code
It just runs fine for me with just a single line of code.