This gist contains a few snippets of code to help automate downloading data using the NCBI SRA Toolkit.
- Use the NCBI website to export a csv file with the details of experiment you wish to download. This file will contain just experiment accession numbers.
- Use R to convert experiment accessiont to run accessions. Save these in
runs.txt
- Use this command to download all the files
cat runs.txt | ./fetchall.sh
This will probably take a very long time so its a good idea to wrap this in a batch job script