great. could you show a sample script to download the run data?
How to download all samples (fastq files) in a particular study (e.g., PRJNA223640) from bioproject.
1 answer
If you want to download from NCBI, then the key is to get the so-called 'runinfo' file. The 'runinfo' file is a simple CSV table which lists sequencing runs in the 'sra' database and their download links. After you have obtained the 'runinfo' file, you can write a short script to download the run data one after each other.
You can download the 'runinfo' file with wget:
wget 'http://trace.ncbi.nlm.nih.gov/Traces/sra/sra.cgi?save=efetch&rettype=runinfo&db=sra&term=PRJNA223640' -O - | tee SraRunInfo.csv
Echoing ifudontmind_plzz would it be possible to get an example of the code to use the csv file for the download?
Is this command provided by piet still supposed to work? It returned an empty file for me.
[UPDATE] I realised my bioproject does not have SRA files, but "biosamples" - that's why it's not working..
Log in to answer this question.
i did manage to downlaod th run data one after each other.