This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to download SRA fastq filese

I've generated a csv file with the run info for a bioproject SRA using the command:

wget 'http://trace.ncbi.nlm.nih.gov/Traces/sra/sra.cgi?save=efetch&rettype=runinfo&db=sra&term=PRJNA223640' -O - | tee SraRunInfo.csv Which I found in this answer C: download all samples from a study in BioProject

but could anyone help me with how I can use this csv file to download the files?

sra command line

1 answer

use NCBI fastq-dump

wget -O -  "http://trace.ncbi.nlm.nih.gov/Traces/sra/sra.cgi?save=efetch&rettype=runinfo&db=sra&term=PRJNA223640" | cut -d ',' -f 1 | grep -v '^$' |while read A; do  fastq-dump $A ; done

Log in to answer this question.