cat > download_fq_paired.ascp.txt
SRR15999522
SRR15999523
SRR15999524
Ctrl+C
打开ENA Browser,链接:ENA Browser
era-fasp@fasp.sra.ebi.ac.uk:/vol1/fastq/SRR159/022/SRR15999522/SRR15999522_1.fastq.gz
总结规律,批量下载链接如下:
era-fasp@fasp.sra.ebi.ac.uk:/vol1/fastq/${id:0:6}/0${id:9:11}/$id/${id}_1.fastq.gz
由于是双端测序,补充另一端:
era-fasp@fasp.sra.ebi.ac.uk:/vol1/fastq/${id:0:6}/0${id:9:11}/$id/${id}_2.fastq.gz
批量下载脚本:
cat download_fq_paired.ascp.txt |while read id;do
~/.aspera/connect/bin/ascp -QT -l 300m -P33001 -i ~/.aspera/connect/etc/asperaweb_id_dsa.openssh era-fasp@fasp.sra.ebi.ac.uk:/vol1/fastq/${id:0:6}/0${id:9:11}/$id/${id}_1.fastq.gz ./
~/.aspera/connect/bin/ascp -QT -l 300m -P33001 -i ~/.aspera/connect/etc/asperaweb_id_dsa.openssh era-fasp@fasp.sra.ebi.ac.uk:/vol1/fastq/${id:0:6}/0${id:9:11}/$id/${id}_2.fastq.gz ./
done
下载速度100M左右
reference:
//www.greatytc.com/p/f16ed4c79739
https://cloud.tencent.com/developer/article/1587554