Skip to content

Changelog

All notable changes to omnitax are documented here. The format follows Keep a Changelog, and the project uses semantic versioning.

[Unreleased]

[0.1.0] - 2026-11-27

First release. omnitax began as the NCBI taxonomy code of sylphd and is now a library for several taxonomies. It is written with LLM coding agents, reviewed by a human, and largely untested in practice; APIs may change before 1.0. Linux only.

Taxonomies and loaders

  • Loaders (omnitax.load, omnitax build SPEC) for NCBI, GTDB releases 80 to 232, SILVA, Greengenes2, Open Tree, custom tables, and taxdump files (gtdb-taxdump, ictv-taxdump, TaxonKit output). SILVA, Greengenes2 and Open Tree load real files but have had little more checking.
  • NCBI versions are dates: ncbi:2026-11-26 is the current dump, ncbi:YYYY-MM-DD is built from NCBI's monthly archive (from 2018-12-01); any other date is an error that names the nearest ones.
  • Links attach keys to nodes: ncbi+assemblies (NCBI's assembly summaries, with their attributes), ncbi+gtdb:232 (GTDB's genomes with NCBI taxids), a taxdump's taxid.map. Genomes are stored under their full accession; gca_gcf=True joins GCA_ and GCF_.
  • GTDB +representatives keeps only the species-representative genomes.

Python API

  • Taxonomy and Taxon over any taxonomy: lineages with rank slots, at, closest(formal=), lca, consensus, lineage_string(), lookup, many, of_rank, subset, prune, with_links, stats, write, save, names, provenance.
  • search is autocomplete: match="exact"|"prefix"|"substring"|"fuzzy", word starts, abbreviated binomials (e. coli), rank=, classes=, within=, details=True.
  • omnitax.open, omnitax.taxonomies, omnitax.connect (a file, a Unix socket or a URL; headers=, prefix=, retries=). omnitax.LayoutError for a file of another layout.
  • A taxonomy that is loaded, subset or edited lives in a temporary SQLite file ($OMNITAX_TMPDIR; NCBI is about 1.2 GB, mind a RAM-disk /tmp); close() removes it.
  • omnitax.annotate: append taxa (id, name, rank, lineage, a rank) to the rows of a table.

Translation and its defaults

  • Taxonomy.translate maps a node to another taxonomy through shared keys (genomes, sequence accessions, or the ids of the other taxonomy) by a weighted vote. weight="leaf" (default) or "genome", cap=, via=, sources=, details=True (a Placement with support, total, abstained and the votes).
  • consensus and every conversion that was not measured (NCBI → GTDB, GTDB release → release): threshold 0.9, plain voting, no ranks ladder, nothing excluded.
  • GTDB → NCBI, the one measured conversion (GTDB 232 → NCBI 2026-11, bacteria and archaea): threshold 0.9, min_informative=0.2 (abstention of placeholder votes), ranks=GTDB_RANKS, the target's uninformative nodes excluded. Turn off with min_informative=False, ranks=(), exclude=() (command line: --min-informative off, --ranks none, --exclude none). Taxonomy.defaults_for(other) shows what applies.
  • top= is multitax's rule (no abstention). The benchmarks and their results are in benchmarks/.

Files and the SQLite layout

  • One SQLite file holds any number of taxonomies (kind:version), each with a word index and, by default, a trigram index. The layout number is a CRC of the DDL (comments and white space left out); a file of another layout is refused with LayoutError.
  • Files are in WAL mode: readers and the one writer do not wait for each other. A new file is written under FILE.PID.RANDOM.part, synced and then given its name, so a failed build leaves nothing. Writing a taxonomy is one transaction.
  • Nested-interval numbering (lft, rgt) makes subtree queries one range scan. Foreign keys are declared.

Server and client

  • omnitax serve serves every taxonomy of a file on a Unix socket, TCP, or both (extra omnitax[server]); omnitax.server.taxonomy_routes(catalog) mounts the routes into a Starlette app. No authentication and no rate limit: a reverse proxy does those.
  • RemoteStore gives the same answers as a file (a conformance test checks it). Endpoints are batched; large answers are NDJSON streams. The wire format is positional and carries an integer api_version that the client compares for equality.

Command line

  • build, list, lookup, lineage, search, translate, link, annotate, export-taxdump, serve. Query commands take --db FILE, --url, --socket, or the matching environment variables; --header and --path-prefix for servers behind a proxy.
  • build refuses two specs of one taxonomy before downloading, and warns when it replaces a taxonomy that had links.

Overlays

  • build --overlay DIR and Taxonomy.apply(overlay, nodes=, links=, remove=, uninformative=) add, change and remove nodes and links from nodes.tsv, links.tsv, remove.tsv. They are declarative, so they apply again to every newer release, and everything is checked, with file and line, before anything is written.

Taxdumps

  • Taxonomy.write_taxdump and omnitax export-taxdump write nodes.dmp, names.dmp, merged.dmp, delnodes.dmp and taxid.map for Kraken2, KMCP, ganon and TaxonKit. NCBI's ids stay; other ids follow TaxonKit's create-taxdump recipe (optional extra omnitax[taxdump]: xxhash).

Provenance and downloads

  • Every source file of a build is recorded with its URL or path, size and sha256, and the omnitax version is recorded. Downloads resume and are checked against the checksum NCBI and GTDB publish; a mismatch fails the build. omnitax list --json shows it.

Known limits

  • Only GTDB 232 → NCBI translation is measured; no SILVA, Greengenes2 or Open Tree pair can be translated (no links for them). An NCBI → GTDB answer can come out high (see the translation guide).
  • Not supported: native ICTV, GBIF, Catalogue of Life, UNITE, PR2, LTP, RDP, BOLD; export other than taxdump and tables.
  • An edit (overlay, subset, prune) is a rebuild into a new file (NCBI about 80 s). A file of another layout must be rebuilt; there is no migration.
  • Readers leave -wal and -shm files beside the file. --source-url gtdb-links= is not supported (use --file gtdb-links=). NCBI archive dates are checked only when downloading.
  • Linux only; the file must be on a local disk.