Error in R for microarray data analysis in GEOquery
1
0
Entering edit mode
4.2 years ago

I want download data from GEO with GEOquery in R but I can not.

the error is

Error in file.exists(destfile) : object 'destfile' not found

my code is:

gset <- getGEO("GSE9476", GSEMatrix =TRUE, AnnotGPL=TRUE, destdir = "data/"

how can I solve error?

GEOquery microarray • 1.7k views
ADD COMMENT
0
Entering edit mode
4.2 years ago

Dear ali.kian.saei,

The problem is that there is no directory called 'data' under your current working directory. You can determine what is your current working directory by typing:

getwd()

If you want to download the series matrix file to a directory called 'data', then you need to do:

dir.create('data')
gset <- getGEO("GSE9476", GSEMatrix =TRUE, AnnotGPL=TRUE, destdir = "data/")

Or, you can also download the series matrix to a temporary location managed by your operating system via:

library(Biobase)
library(GEOquery)
gset <- getGEO("GSE9476", GSEMatrix =TRUE, getGPL=FALSE)
if (length(gset) > 1) idx <- grep("GPL96", attr(gset, "names")) else idx <- 1
gset <- gset[[idx]]

gset
ExpressionSet (storageMode: lockedEnvironment)
assayData: 22283 features, 64 samples 
  element names: exprs 
protocolData: none
phenoData
  sampleNames: GSM239170 GSM239323 ... GSM240509 (64 total)
  varLabels: title geo_accession ... Source:ch1 (51 total)
  varMetadata: labelDescription
featureData: none
experimentData: use 'experimentData(object)'
  pubMedIds: 17910043 
Annotation: GPL96

Kevin

ADD COMMENT
0
Entering edit mode

hi Kevin i do what you say but i see this error

dir.create('data')

gset <- getGEO("GSE9476", GSEMatrix =TRUE, AnnotGPL=TRUE, destdir = "data/")

Error in getAndParseGSEMatrices(GEO, destdir, AnnotGPL = AnnotGPL, getGPL = getGPL, : unused argument (parseCharacteristics = parseCharacteristics)

best

ADD REPLY
0
Entering edit mode

Please restart your computer, re-install GEOquery, and then try again.

ADD REPLY

Login before adding your answer.

Traffic: 1316 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6