I am using R (version 3.4.4) on a computer running Linux Ubuntu 18.04.3 LTS. I am trying to download a dataset from Gene Expression Omnibus (GEO) with the function getGEO() of the bioconductor package GEOquery. The dataset GEO code is GSE134381.
Unexpectedly, the getGEO() generates an HTTP error 404. How to fix it?
I am using the following R commands:
setwd(".")
options(stringsAsFactors = FALSE)
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("GEOquery")
library(GEOquery)
GSE_code <- "GSE134381"
gset <- getGEO(GSE_code, GSEMatrix =TRUE, getGPL=FALSE)
and it generates the following error:
Error in open.connection(x, "rb") : HTTP error 404.
How to solve this problem? Why is it happening?
Thanks!