I wanted to download fastq files for a long list of SRR accessions from the ENA today.
I realised I could use the enadownloader tool that I previously wrote a blogpost about a while ago.
Here's how I used enadownloader to download the fastq files, on the Sanger compute farm:
First I checked which is the latest version of the enadownloader tool on the farm:
% module avail -t | grep -i ena
Then I loaded the module:
% module load enadownloader/v2.3.5-4ac05c8f
Then I made a file of all the SRR accessions, called 'srr_accessions' like this:
SRR31024208
SRR31024304
SRR31024307
...
Then I made an output directory 'srr_accessions_fastqs' to put the fastqs in:
% mkdir srr_accessions_fastqs
Then I used enadownloader to download the fastqs for all these accessions:
% enadownloader -t run -i srr_accessions -d -o srr_accessions_fastqs
where -t run means the type of data is sequence runs, -i srr_accessions means the input file is srr_accesions, -d means that I want to download data, -o srr_accessions_fastqs means the output directory is srr_accessions_fastqs.
Nice and easy!
No comments:
Post a Comment