除了利用ascp命令从NCBI下载SRA文件外,SRAtoolkit也提供了prefetch命令用于下载SRA文件。
Usage:
prefetch [options] <SRA accession | kart file> [...]
Download SRA or dbGaP files and their dependencies
prefetch [options] <SRA file> [...]
Check SRA file for missed dependencies and download them
prefetch --list <kart file> [...]
List the content of a kart file
prefetch SRR6232298
结果如下:
2018-10-16T01:43:06 prefetch.2.9.2: Downloading via fasp...
1. 从NCBI网站下载SRA accession no.的列表文件 比如,这是一个Bioproject的相关信息页面: https://trace.ncbi.nlm.nih.gov/Traces/study/?acc=DRP002849 在页面下面列出了所有相关SRA文件信息
点accession list,将下载得到的文本文件上传到服务器/home/Seqs目录
2. 从NCBI网站下载SRA accession no.的列表文件 运行命令:
prefetch --option-file Seqs/SRR_lists.txt
SRR_lists.txt就是刚刚从网站下载的accession list;运行结果:
详细说明参见官方Documentation: https://trace.ncbi.nlm.nih.gov/Traces/sra/sra.cgi?view=toolkit_doc&f=prefetch
全文结束,欢迎在评论区讨论~