使用Aspera高速下载NCBI和EBI资源

1. 安装Aspera Connect

wget -c https://download.asperasoft.com/download/sw/connect/3.9.8/ibm-aspera-connect-3.9.8.176272-linux-g2.12-64.tar.gz
tar zxvf ibm-aspera-connect-3.9.8.176272-linux-g2.12-64.tar.gz
bash ibm-aspera-connect-3.9.8.176272-linux-g2.12-64.sh

根据提示,Aspera Connect的安装目录在/home/chenwen/.aspera/connect,我们将这个目录下的bin目录添加到环境变量

echo "export PATH=/home/chenwen/.aspera/connect/bin:$PATH" >> ~/.bashrc
sorce ~/.bashrc

2. 使用Aspera Connect下载NCBI的nt数据库

/home/chenwen/.aspera/connect/bin/ascp -T -k 1 -i /home/chenwen/.aspera/connect/etc/asperaweb_id_dsa.openssh anonftp@ftp.ncbi.nlm.nih.gov:/blast/db/FASTA/nt.gz ./