天天看點

SRA toolkit下載下傳資料

1.sra toolkit 的安裝

wget https://ftp-trace.ncbi.nlm.nih.gov/sra/sdk/2.10.8/sratoolkit.2.10.8-ubuntu64.tar.gz
tar -zxvf sratoolkit.2.10.8-ubuntu64.tar.gz
#添加環境變量
 echo 'export export PATH=$PATH:/yourpath/sratoolkit.2.10.8-ubuntu64/bin' >> ~/.bashrc           

複制

2.檢視prefetch是否成功安裝

prefetch -h           

複制

3.資料下載下傳

#單個資料
prefetch SRR000001           

複制

#多個資料:Run in the list of Runs:

prefetch --option-file SraAccList.txt           

複制

SraAccList.txt looks like this:

SRR11192680

SRR11192681

SRR11192682

SRR11192683

SRR11192684

4.SRA format to fastq

fasterq-dump --split-files SRR11180057.sra
fasterq-dump --split-files SRR11180057           

複制

#直接下載下傳原始的fastq
prefetch --type fastq SRR11180057           

複制

參考:https://www.ncbi.nlm.nih.gov/sra/docs/sradownload/