R script to extract multiple GEO IDs and run on them
1
0
Entering edit mode
11 months 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 • 433 views
ADD COMMENT
0
Entering edit mode
11 months ago
zx8754 10k

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: 2411 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