纠正错误 / Fix 添加实例 / Add example
文件格式 / Formats

SRA Toolkit

NCBI SRA 数据下载与 FASTQ 转换工具集,常用 prefetch 下载 .sra 缓存,再用 fasterq-dump 转换为 FASTQ。Toolkit for downloading and converting SRA sequencing reads.

速览 | Quick Look

安装 | Install

mamba install -c bioconda sra-tools

常用命令 | Common Commands

下载一个 run:

prefetch SRR12345678 --output-directory sra_cache

转换为双端 FASTQ:

fasterq-dump sra_cache/SRR12345678/SRR12345678.sra \
  --split-files --threads 8 --outdir fastq

转换后压缩:

pigz -p 8 fastq/SRR12345678_*.fastq

批量处理 accession 列表:

while read acc; do
  prefetch "$acc" --output-directory sra_cache
  fasterq-dump "sra_cache/$acc/$acc.sra" --split-files --threads 8 --outdir fastq
done < runs.txt

关键参数 | Key Options

常见坑 | Pitfalls

参考 | References