很久没有使用prefetch下载SRA数据,出现以下报错!!!sratoolkit 版本2.8.0,网上看可能因为版本太低,重新更新新的版本,下载没问题。
2024-06-20T08:03:47 prefetch.2.8.0 sys: connection failed while opening file within cryptographic module - mbedtls_ssl_handshake returned -9984 ( X509 - Certificate verification failed, e.g. CRL, CA or signature check failed )
2024-06-20T08:03:47 prefetch.2.8.0 sys: mbedtls_ssl_get_verify_result returned 0x8 ( !! The certificate is not correctly signed by the trusted CA )
2024-06-20T08:03:47 prefetch.2.8.0 err: path not found while resolving tree within virtual file system module - 'SRR942912' cannot be found.
(base) wyc@chenlab:/data4/husk_RNA-seq_wsk/X101SC21102723-Z01-J028/sra$ prefetch -V
prefetch : 2.8.0
1、下载SRA文件sratoolkit,并解压
wget -c https://ftp-trace.ncbi.nlm.nih.gov/sra/sdk/3.1.1/sratoolkit.3.1.1-ubuntu64.tar.gz
tar -xzvf sratoolkit.3.1.1-ubuntu64.tar.gz
cd sratoolkit.3.1.1-ubuntu64
2、添加环境变量
echo 'export PATH=$PATH:~/software/sratoolkit.3.1.1-ubuntu64/bin ' >> ~/.bashrc
source ~/.bashrc
vdb-config --interactive # #会出现一个框架,按字母x键退出,即可使用
3.查看版本等
~/software/sratoolkit.3.1.1-ubuntu64/bin/prefetch -V
~/software/sratoolkit.3.1.1-ubuntu64/bin/prefetch -h
4.1 下载单个数据
~/software/sratoolkit.3.1.1-ubuntu64/bin/prefetch SRR17794304
4.2 批量下载
vi list
SRR17794304
SRR17794305
SRR17794306
SRR17794307
~/software/sratoolkit.3.1.1-ubuntu64/bin/prefetch --option-file list
5.1 单个sra文件转为Fastq
~/software/sratoolkit.3.1.1-ubuntu64/bin/fastq-dump --split-3 SRR17794304/SRR17794304.sra
5.2 批量转换成Fastq
for i in `cat list`; do echo $i;~/software/sratoolkit.3.1.1-ubuntu64/bin/fastq-dump --split-3 $i/$i.sra;done