GEO data sample information error
1
1
Entering edit mode
2.1 years ago
Jakpa ▴ 50

Hi,

I ran the following command in R to download GEO data:

library("GEOquery")
library(affy)
library(oligo)
library("org.Hs.eg.db")

asserId = "GSE32894"
gse = getGEO(asserId)

pData(gse) ## sample data
fData(gse) # gene annotation
exprs(gse)[1,] # expression data

I got this errors:

Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘exprs’ for signature ‘"character"’

Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘fData’ for signature ‘"character"’

Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘pData’ for signature ‘"character"’

I have seen some post but not related to GEO. I honestly could not fully understand the errors.

any suggestion on this will be helpful.

Expression Gene Microarray GEO R • 592 views
ADD COMMENT
1
Entering edit mode
2.1 years ago
ATpoint 85k

The getGEO function returns a list, so to access the actual content use gse[[1]], then the commands should work.

ADD COMMENT

Login before adding your answer.

Traffic: 1916 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