Importing with GEOquery selected GSMs
1
2
Entering edit mode
9.1 years ago
orzech_mag ▴ 230

Hallo,

I have some problem with importing data using GEOquery. I download an ExpressionSet for some further analysis, however in my record only few GSMs from all are interesting for me. My question is how to modify my code to download only the selected GSMs and analyze it further with limma package. I am grateful for any suggestions.

eset<-getGEO('GSE13937')[[1]] #-----> but I would like the data only for e.g. GSM26056, GSM26076, GSM26102, and GSM26123

And, then perform a standard analysis like:

design <-cbind(normal=c(1,1,0,0),
              tumour=c(0,0,1,1))
c <-makeContrasts(normal-tumour,levels=design)
fit <-lmFit(eset, design)
fit2 <-contrasts.fit(fit,c)
fit2 <-eBayes(fit2)
glist <-topTable(fit2, n=50, adjust="BH", sort.by="P", p.value=0.01)​
GEO genomics R • 2.0k views
ADD COMMENT
1
Entering edit mode
9.1 years ago

Well, subsetting an ExpressionSet is pretty easy:

eset1=eset[,c("GSM426056", "GSM426076", "GSM426102", "GSM426123")]

However, you might not want to do things this way. Instead, you can create your design matrix with all "0" except for the two "normals" and the two "tumors". The rest of your code can remain unchanged (the contrasts, testing, etc.). You get the benefit of a more robust measure of variance if you include all samples even though the testing will be based on only your four samples.

ADD COMMENT
0
Entering edit mode

Thank you for help!

ADD REPLY

Login before adding your answer.

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