Skip to main content

genomedl

Tags: ncbi datasets download genome assembly fasta utility run-scope

Download genome assemblies and annotation files from NCBI Datasets.

Uses genome-dl to query the NCBI Datasets v2 REST API for assembly metadata, then download the requested file formats directly from the NCBI FTP site. Accessions are resolved to their latest version before download, and species queries are subsampled to the first --limit assemblies in NCBI relevance order (reference first).

Internet Required

Queries the NCBI Datasets v2 REST API and downloads from the NCBI FTP site. Setting the NCBI_API_KEY environment variable raises the API rate limit from 5 to 10 requests per second.

Species Downloads Are Capped

--limit defaults to 100 so a broad --species cannot accidentally pull the tens of thousands of assemblies NCBI holds for common taxa. Raise it, or use --limit 0 for no limit, only when that is genuinely intended.

Inputs

accessions: Path?
NameTypeDescription
accessionsPath?A path to a text file containing a list of NCBI Assembly accessions (one per line)

Outputs

record (
meta: Record,
fna: Set<Path?>,
gbff: Set<Path?>,
wgs_gbk: Set<Path?>,
gff: Set<Path?>,
gtf: Set<Path?>,
faa: Set<Path?>,
gpff: Set<Path?>,
cds: Set<Path?>,
translated_cds: Set<Path?>,
rna: Set<Path?>,
features: Set<Path?>,
report: Set<Path?>,
stats: Set<Path?>,
metadata: Set<Path?>,
summary: Set<Path?>,
json: Set<Path?>,
results: Set<Path>,
logs: Set<Path?>,
nf_logs: Set<Path>,
versions: Set<Path>
)
FieldTypeDescription
metaRecordSample information record
fnaSet<Path?>FASTA format of the genomic nucleotide sequence(s) (*.fna.gz)
gbffSet<Path?>GenBank format of the genomic sequence(s) (*.gbff.gz)
wgs_gbkSet<Path?>GenBank flat file format of the WGS master (*.wgsmaster.gbff.gz)
gffSet<Path?>Annotation of the genomic sequence(s) in GFF3 format (*.gff.gz)
gtfSet<Path?>Annotation of the genomic sequence(s) in GTF format (*.gtf.gz)
faaSet<Path?>FASTA format of the accessioned protein products (*.faa.gz)
gpffSet<Path?>GenPept format of the accessioned protein products (*.gpff.gz)
cdsSet<Path?>FASTA format of the nucleotide sequences corresponding to all CDS features
translated_cdsSet<Path?>FASTA format of the protein sequences corresponding to all CDS features
rnaSet<Path?>FASTA format of the nucleotide sequences corresponding to all RNA features
featuresSet<Path?>Tab-delimited text file reporting locations and attributes for a subset of features
reportSet<Path?>Tab-delimited text file reporting assembly unit names, roles, and relationships
statsSet<Path?>Tab-delimited text file reporting assembly statistics
metadataSet<Path?>Tab-delimited NCBI Datasets metadata for each downloaded assembly
summarySet<Path?>Human-readable run summary of the version, parameters, and results
jsonSet<Path?>Machine-readable run report of the parameters, results, and per-assembly metadata
resultsSet<Path>All output files to be published
logsSet<Path?>Optional program specific log files
nf_logsSet<Path>Nextflow-specific log files (e.g. .command.{begin
versionsSet<Path>A YAML formatted file with program versions

Parameters

genome-dl Parameters

ParameterTypeDefaultDescription
--speciesstring-Name of the species to download assemblies
--accessionstring-An NCBI Assembly accession to be downloaded
--accessionsstring-An file of NCBI Assembly accessions (one per line) to be downloaded
--formatstringfastaComma separated list of formats to download
--sectionstringrefseqNCBI section to download
--assembly_levelstringcompleteComma separated list of assembly levels to download
--limitinteger100Limit the number of assemblies to download
--genomedl_allow_outdatedbooleanfalseDownload an explicitly requested outdated accession version instead of erroring

Used By

Subworkflows

  • genomedl - Download genome assemblies from NCBI Datasets.

Workflows

  • fastani - Fast alignment-free computation of whole-genome Average Nucleotide Identity.
  • mashtree - Rapid phylogenetic tree construction using Mash distances.
  • pangenome - Pangenome analysis with optional core-genome phylogeny.
  • snippy - Rapid haplotype variant calling and core genome alignment.

Citations

If you use this in your analysis, please cite the following.

Source

View source on GitHub

Version

GENOMEDL:
- genome-dl: 1.0.0