fasterq-dump
Quick Start
- Command:
fasterq-dump - Local executable: Not installed in this workspace
- Full reference: See
references/help.md
When To Use This Tool
- Convert an SRA run accession into FASTQ files for alignment, QC, or assembly.
- Prefer this over legacy
fastq-dumpfor large public SRA runs when you have enough scratch space. - Use it after
prefetchwhen you want conversion to read from a local accession cache instead of streaming from NCBI.
Common Patterns
# 1) Convert a run accession into paired FASTQ files in a dedicated output directory
fasterq-dump SRR000001 --split-files -e 8 -O fastq -t /scratch
# 2) Best practice for larger runs: prefetch first, then convert from the local accession directory
prefetch SRR000001
fasterq-dump ~/ncbi/public/sra/SRR000001 --split-files -e 8 -O fastq -t /scratch
# 3) Stream a single split-spot FASTQ to stdout for ad hoc processing
fasterq-dump SRR000001 --split-spot -Z | gzip > SRR000001.fastq.gz
Recommended Workflow
- Resolve the exact run accession and, for large jobs, download it locally with
prefetchfirst. - Set an output directory with
-Oand a roomy scratch directory with-t, ideally on different filesystems. - Pick the output mode deliberately:
--split-filesfor paired-end files,--split-spotfor a single stream, or--fasta-unsortedwhen FASTA is enough. - Validate the resulting FASTQ filenames and sizes, then compress afterward with
gziporpigzif needed.
Guardrails
- This tool is not installed locally right now, so these patterns are based on upstream SRA Toolkit behavior rather than a live binary in this workspace.
fasterq-dumptakes one accession at a time and writes output into the current directory unless-Ois supplied.- The tool also creates a temporary
fasterq.tmp.*directory and can require very large scratch space, with worst-case usage on the order of multiple times the final FASTQ size. --stdoutdoes not work with the default split-3 behavior or with--split-files; use--split-spotor another single-stream mode when redirecting output.- There is no built-in gzip output mode; compress files explicitly after conversion.