R script to extract multiple GEO IDs and run on them
1
0
Entering edit mode
3.7 years ago

I have written a R script for extracting GEO files form NCBI GEO using GEOquery and analyze the data. Now I want to extract multiple files using multiple GEO IDs and run the script on them one by one so that I can get separate files for different IDs. In short, I want to know how can we download multiple files using GEOquery and how to use loop for analyzing all those files? Please tell me. Thanks in advance.

microarray R • 1.1k views
ADD COMMENT
0
Entering edit mode
3.7 years ago
zx8754 11k

Wrap your current one file solution into a function, then use forloop or lapply.

ADD COMMENT
0
Entering edit mode

Can you please tell me how to do it?

ADD REPLY
0
Entering edit mode
readGEO <- function(ID) {
 ...
}

readGEO(ID = 'GSE12345')
ADD REPLY

Login before adding your answer.

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