Question: R script to extract multiple GEO IDs and run on them
0
gravatar for smrutimayipanda
17 days ago by
smrutimayipanda10 wrote:

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 • 132 views
ADD COMMENTlink written 17 days ago by smrutimayipanda10
0
gravatar for zx8754
17 days ago by
zx87549.4k
London
zx87549.4k wrote:

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

ADD COMMENTlink modified 17 days ago • written 17 days ago by zx87549.4k

Can you please tell me how to do it?

ADD REPLYlink modified 17 days ago • written 17 days ago by smrutimayipanda10
readGEO <- function(ID) {
 ...
}

readGEO(ID = 'GSE12345')
ADD REPLYlink written 16 days ago by Kevin Blighe63k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1344 users visited in the last hour