Downloading multiple samples with GEO accesion numbers
2
0
Entering edit mode
6.8 years ago
osiemen ▴ 30

Dear all,

I have GEO accession numbers for 850 samples I would like to download. What is the easiest way to download a bulk of data from GEO database. I know that it can be done with a ftp or by using R (geoQuery). But I'am not sure how. Can someone please help me or give me advice on how to do this. I am new to this. Here is a link to the paper where the accession numbers can be found in the supplementary : https://academic.oup.com/biostatistics/article/11/2/242/268035?searchresult=1

Example of the accession numbers : GSM20894 GSM20961 GSM20943 GSM20836 GSM20817

Thanks in advance!

microarray GEO • 4.0k views
ADD COMMENT
1
Entering edit mode
6.8 years ago
osiemen ▴ 30

Solution in R:

library(GEOquery)

x <- as.list(scan("files_with_GEO_accesionCodes.txt", what ="" , sep = "" ))

files = lapply(x, getGEOSuppFiles)

ADD COMMENT
0
Entering edit mode

how do you write the input in file?

ADD REPLY
1
0
Entering edit mode

Thanks for the link but, unfortunately this doesn't provide enough information to help me out.

ADD REPLY
0
Entering edit mode

Have you tried the solution provided on the post linked above? What is the preferred format of download for the data?

ADD REPLY
0
Entering edit mode

osieman52 : That solution is using NCBI unix utilities. You can find more information on those here.

ADD REPLY
0
Entering edit mode

and on the GEO help page.

ADD REPLY
0
Entering edit mode

I managed to find an easy way to download the files I need by using R.

library(GEOquery) x <- as.list(scan("files_with_GEO_accesionCodes", what ="" , sep = "" )) files = lapply(x, getGEOSuppFiles)

Thank you for the responds!

ADD REPLY
0
Entering edit mode

A small question added to this quetions, how would one find the batch IDs of the downloaded files? I want to create vectors in orderer to do this I need batch ids. How could I find or generate these batch ids ?

ADD REPLY
0
Entering edit mode

Were you able to find the solution to making a vector with all the GSM(GEO sample accession numbers)?

ADD REPLY

Login before adding your answer.

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