Use the NCBI Datasets v2 CLI (launched 2023, current as of 2024) for genome and gene-centric bulk workflows. Encodes the defection rule (use Datasets for genome/gene; E-utilities for PubMed/SRA/custom queries), the --dehydrated flag for cloud-friendly parallel pulls, JSON-lines output + dataformat conversion to TSV, automatic MD5 verification, and the choice between --reference (one per species) vs full set.
conda install -c conda-forge ncbi-datasets-cli
datasets --version # 16.0+
dataformat --version
For high-volume bulk: get an NCBI API key from https://www.ncbi.nlm.nih.gov/account/settings/ and pass --api-key.
"Download the human GRCh38 reference assembly (GCF_000001405.40) via Datasets CLI. Include genome,gff3,gtf,protein,cds. Datasets verifies MD5 automatically -- no manual checksum step needed."
"Pull every RefSeq reference bacterial genome with annotation. The serial path takes hours; use --dehydrated to get a fetch.txt of URLs, then aria2c --max-concurrent-downloads=8 for parallel transfer."
"Get a TSV of all reference Salmonella enterica assemblies released since 2024-01-01 with: accession, organism-name, assembly-level, scaffold-n50, submission-date. Use datasets summary + dataformat tsv genome --fields=..."
"Get NCBI's ortholog set for human BRCA1 across Mammalia. Use datasets summary gene symbol BRCA1 --taxon human --ortholog. Note: this is the simple single-representative-per-species view; for tree-reconciled orthology with co-orthologs use Ensembl Compara via ortholog-inference."
"I need 100 reference genomes. Don't loop EFetch -- use datasets download genome accession ... It's 5-50x faster, handles checksums, and parallelizes within one ZIP. For PubMed or SRA reads, stay with E-utilities -- Datasets doesn't cover those."
summary (metadata only, JSON-lines) vs download (data files).dataformat tsv <type> --fields=... for tabular.--dehydrated + parallel transfer with aria2c.--reference only when one-per-species is desired; drop for full set.--include to limit data types (genome, gff3, protein, cds, etc.).--api-key for high-volume metadata calls.--dehydrated separates discovery from transfer: download metadata stubs, inspect, then parallel-pull. Essential for HPC / cloud.--reference returns one canonical assembly per species. Drop the flag for full set; combine with --assembly-level chromosome,complete for quality filter.dataformat tsv <type> --help lists valid field names per summary type. Don't guess field names.ortholog-inference or de novo via comparative-genomics/ortholog-inference.