0%

使用Aspera下载EBI和NCBI的数据

使用Aspera下载EBI和NCBI的数据

安装

下载客户端官网手册,然后

1
2
$ cp ~/.aspera/connect/bin/ascp ~/bin
$ cp ~/.aspera/connect/etc/aspera-license ~/bin

使用

1
2
3
ascp -k2 -T -i ~/.aspera/connect/etc/asperaweb_id_dsa.openssh era-fasp@fasp.sra.ebi.ac.uk:<file or files to download> <download location>
ascp -k2 -T -i ~/.aspera/connect/etc/asperaweb_id_dsa.openssh era-fasp@fasp.sra.ebi.ac.uk --host ftp-private.ncbi.nlm.nih.gov --user anonftp --file-list listfile .
# NCBI: anonftp@ftp.ncbi.nlm.nih.gov

参考: http://www.ebi.ac.uk/ena/browse/read-download#downloading_files_aspera

可使用自制脚本来下载ENA和SRA数据,运行如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$ asperadown
Program: asperadown.sh (download files from ncbi/ebi)
Version: 0.2.0
Contact: zz_zigzag <zz_zigzag@outlook.com>

Usage: asperadown.sh [options] <LIST-FILE> <MAX-RATE(default []bps)>
Options: -n download from ncbi-sra(ftp.ncbi.nlm.nih.gov/130.14.250.13)
-e download from ebi-ena(fasp.sra.ebi.ac.uk/193.62.192.6)
-s url/ip site to download
-u string user to sign in the site
-r max rate of speed[100m]bps
-h display this help

$ asperadown -n list2
$ asperadown -e list2

Example of list file:

1
2
/10G
/sra/sra-instant/reads/ByRun/sra/SRR/SRR494/SRR494342/SRR494342.sra