Combine Two Affymetrix Datasets With Same Platform
2
2
Entering edit mode
11.5 years ago

I am trying to analyze GSE 30321 datasets in R. However, it has 295 samples separated into two files. I use

gset <- getGEO('GSE30321',GSEMatrix=TRUE)

In this way, gset has two elements. Does anyone know how to merge the two files into one and gset has only one element with 295 files? Thank you.

affymetrix • 5.6k views
ADD COMMENT
0
Entering edit mode

Fixed typo and formatting in your code.

ADD REPLY
3
Entering edit mode
11.5 years ago
gselist = getGEO("GSE30321")
eset = combine(gselist[[1]],gselist[[2]])

This is usually all that is needed.

ADD COMMENT
0
Entering edit mode

Thank you so much!!!

ADD REPLY
0
Entering edit mode

I always forget about combine(), very useful.

ADD REPLY
2
Entering edit mode
10.6 years ago
alaincoletta ▴ 170

The limitation with the combine() function is that you are leaving the clinical annotations behind.

InSilico DB has a "merging" R-Bioconductor package to combine public datasets from GEO and their clinical annotations. If you are not using R you can also combine data from the online platform (See this short step-by-step tutorial)

Example:

# Retrieve 2 datasets
eset1 = getDataset(gse="GSE10072", gpl="GPL96", norm="ORIGINAL", genes=TRUE);
eset2 = getDataset(gse="GSE7670", gpl="GPL96", norm="ORIGINAL", genes=TRUE);

#combine them
esets = list(eset1, eset2);
eset = merge(esets, method="NONE");

#plot them
plotMDS(eset, targetAnnot="Disease", batchAnnot="Study");

InSilico DB packaged various batch removal effects methods so line 4 could be replaced with:

eset = merge(esets, method="XPN");

or

eset = merge(esets, method="COMBAT");

Hope this helps.

For more info Bioinformatics paper reference; InSilico DB and InSIlico Merging packages links, and blog link.

R-Bioconductor packages:

ADD COMMENT

Login before adding your answer.

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