This is a test version of Biostars. For the public version, visit https://www.biostars.org.
SRA Toolkit Error while using prefetch

After installing SRA-toolkit I downloaded an SRA file and when I tried to download another SRA file then it gave me the following error:

prefetch:` symbol lookup error: /lib/x86_64-linux-gnu/libncbi-vdb.so.2: undefined symbol: vdb_mbedtls_md_setup

How to fix this?

sra-toolkit

What OS are you doing this on? It is best to install sratoolkit using conda to avoid these types of problems.

2 answers

Try using SRA explorer to download FASTQ directly. SRA format is a big waste of time.

https://sra-explorer.info/

For programmatically downloading fastq files and associated metadata, ENA's API is quite useful. E.g. get links and metadata of fastq files associated to accession PRJNA374918:

curl -X GET "https://www.ebi.ac.uk/ena/portal/api/filereport?accession=PRJNA374918&fields=run_accession,library_name,library_layout,fastq_ftp&result=read_run"

This gives you a sample sheet that you can easily parse to actually download the fastq files.

For fields available to filereport run

curl -X GET "https://www.ebi.ac.uk/ena/portal/api/returnFields?dataPortal=ena&result=read_run"

However, if prefetch gives errors there may be probelms with the accession you are using.

Log in to answer this question.