Skip to main content

genomedl

Tags: download ncbi datasets genome assembly refseq sample-scope

Download genome assemblies from NCBI Datasets.

This subworkflow downloads genome assemblies using genome-dl, which resolves accessions to their latest version and subsamples species queries before fetching files from the NCBI FTP site. The downloaded assemblies are fanned out into per-genome records for downstream analysis, and the first assembly is exposed separately for use as a reference genome.

Take

accessions: Path?
NameTypeDescription
accessionsPath?A file containing NCBI Assembly accessions, one per line. May be combined with the --accession and --species parameters.

Emit

Published

The sample_outputs and run_outputs emissions are aggregates of output files that will be published in the entry workflow.

sample_outputs

OutputDescription
fnaGenomic nucleotide sequences in FASTA format
gbffGenBank format genome sequences
wgs_gbkWGS master records in GenBank format
gffGenome annotations in GFF3 format
gtfGenome annotations in GTF format
faaProtein sequences in FASTA format
gpffProtein sequences in GenPept format
cdsCDS nucleotide sequences in FASTA format
translated_cdsCDS protein sequences in FASTA format
rnaRNA feature nucleotide sequences in FASTA format
featuresFeature table with locations and attributes
reportAssembly report with unit and sequence relationships
statsAssembly statistics
metadataNCBI Datasets metadata for each downloaded assembly
summaryHuman-readable run summary of the version, parameters, and results
jsonMachine-readable run report of the parameters, results, and per-assembly metadata

run_outputs

No run-scope outputs.

Downstream Inputs

The following emissions are meant to be used as inputs to downstream subworkflows.

assemblies

OutputDescription
fnaIndividual downloaded assembly in FASTA format

reference

First downloaded genome for use as a reference. Prefers GenBank (--format genbank) over FASTA, since annotation-aware consumers such as Snippy require a GenBank reference.

Module Composition

This subworkflow calls the following modules:

  • genomedl - Download genome assemblies and annotation files from NCBI Datasets.

Used By

This subworkflow is used by the following 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