This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Download NCBI data using sratoolkit in anaconda

Hello

I would like to download data from the PRJNA834801 project for analysis practice. I succeeded in installing sratoolkit in anaconda. How do I download all the data (725 data sets in the BioProject) of the project I want to download at once?

Please help me.

Thank you. :)

ncbi sratoolkit anaconda

How do I download all the data (725 data sets in the BioProject) of the project I want to download at once?

This is a very basic task... after installing sratoolkit what did you try?

1 answer

you could use my bio package to get all the SRR numbers

pip install bio 

then

bio search PRJNA834801 --csv > runinfo.csv

and then loop over all the SRR numbers to fetch the data

cat runinfo.csv | csvcut -c 1 | parallel fastq-dump -X 1000 --split-files -o reads {}

Log in to answer this question.