Friday, July 11, 2014

How to batch download files from ENCODE or any other ftp server

If you need to batch download files from server, lets say you want to download DNase Seq files from ENCODE consortium you can do this using rsync
Type in terminal:
rsync -a -rsync://ftp.ebi.ac.uk/pub/databases/ensembl/encode/integration_data_jan2011/byDataType/openchrom/jan2011/fdrPeaks/ ./

This will download all the files from the ftp server:

http://ftp.ebi.ac.uk/pub/databases/ensembl/encode/integration_data_jan2011/byDataType/openchrom/jan2011/fdrPeaks/

to the current folder you are in.

No comments:

Post a Comment