parallel fastq-dump
wrapper
NCBI fastq-dump
can be very slow sometimes, even if you have the resources (network, IO, CPU) to go faster, even if you already downloaded the sra file (see the protip below). This tool speeds up the process by dividing the work into multiple threads.
This is possible because fastq-dump
have options (-N
and -X
) to query specific ranges of the sra file, this tool works by dividing the work into the requested number of threads, running multiple fastq-dump
in parallel and concatenating the results back together, as if you had just executed a plain fastq-dump
call.
- Downloading with
fastq-dump
is slow, even with multiple threads, it is recommended to useprefetch
to download the target sra file before usingfastq-dump
, that wayfastq-dump
will only need to do the dumping. - All extra arguments will be passed directly to
fastq-dump
,--gzip
,--split-files
and filters works as expected. - This tool is not a replacement, you still need
fastq-dump
andsra-stat
on yourPATH
for it to work properly. - Speed improvements are better with bigger files, think at least 200k reads/pairs for each thread used.
The preferred way to install is using Bioconda:
conda install parallel-fastq-dump
this will get you the sra-tools dependency as well.
$ parallel-fastq-dump --sra-id SRR1219899 --threads 4 --outdir out/ --split-files --gzip