This is a test version of Biostars. For the public version, visit https://www.biostars.org.
R script to extract multiple GEO IDs and run on them

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 answer

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

readGEO <- function(ID) {
 ...
}

readGEO(ID = 'GSE12345')

Log in to answer this question.