Download Geo Tar File Automatically From Linux/Unix
3
2
Entering edit mode
11.9 years ago
dfernan ▴ 770

Hi,

I'd like to automatically download the tar files from the following links, does anyone knows how to do that?

http://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE39977

http://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE36375

Kind of like using wget...

Thanks!

unix geo • 22k views
ADD COMMENT
1
Entering edit mode

check out the tool aspera. GEO supports it. http://www.ncbi.nlm.nih.gov/books/NBK47527/

The download speed will blow you away.

ADD REPLY
0
Entering edit mode

You can also check out cURL: http://curl.haxx.se/

ADD REPLY
0
Entering edit mode

You can automate any task with CRON on unix plateforms.

ADD REPLY
12
Entering edit mode
11.9 years ago
dfernan ▴ 770

Never mind, just figured it out. I can go to the ftp site and do wget:

ftp://ftp.ncbi.nlm.nih.gov/geo/series/GSE39nnn/GSE39977/suppl/

wget 'ftp://ftp.ncbi.nlm.nih.gov/geo/series/GSE39nnn/GSE39977/suppl/GSE39977_RAW.tar'

Thanks!

ADD COMMENT
4
Entering edit mode

Check the parameter -b, love it, sends the download to background and generates log. Good for multiple downloads.

ADD REPLY
1
Entering edit mode

Thanks for the suggestion!

ADD REPLY
0
Entering edit mode

GEO should provide a automatical tools to download the data, such as fastq-dump

ADD REPLY
4
Entering edit mode
11.8 years ago

Just a note that the GEOquery bioconductor package does this for a living, if you happen to be targeting R for further processing/analysis. See the help for getGEOSuppFiles() and getGEO().

ADD COMMENT
1
Entering edit mode
18 months ago
Bioinfotec ▴ 10

wget -r -nH --cut-dirs=3 ftp://ftp.ncbi.nlm.nih.gov/geo/series/GSE39nnn/GSE39977/

The -r option in the wget command stands for "recursive," and tells wget to download files recursively from the specified FTP directory.

The --cut-dirs option tells wget to cut off the specified number of directories from the beginning of the directory hierarchy when saving the downloaded files. In the example command I provided, --cut-dirs=3 tells wget to remove the first three directories from the path of the downloaded files.

ADD COMMENT

Login before adding your answer.

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