omnitax
Biological taxonomies (NCBI, GTDB and a few more) as Python objects, in one SQLite file or behind a small server, with a benchmarked way to translate between NCBI and GTDB.
Please read first. omnitax was written with LLM coding agents and reviewed by a human. It is largely untested in practice: it has one real user so far (sylphd). APIs may change before 1.0. It runs on Linux only for now. Check results on your own data before you rely on them.
Goals
- Many taxonomies, handled the same way: download, parse, one set of Python objects, conversion, export to standard formats. "All taxonomies" is not the aim; the common ones for microbiome work, and a pattern to add more, is.
- One API, several backends: a SQLite file, or a server on a Unix socket or HTTP, with the same answers.
- Benchmarked translation between taxonomies, with the method and results published. NCBI ↔ GTDB first.
- Taxonomies you can change: your own taxa as a small set of files that is applied again to every new release.
- Reproducibility: dated, checksummed snapshots of several taxonomies and versions in one file.
What works today
- Loaders for NCBI (current, or any monthly archive since 2018-12), GTDB 80 to 232, SILVA, Greengenes2, Open Tree, custom tables, and taxdump files (gtdb-taxdump, ictv-taxdump, TaxonKit output). SILVA, Greengenes2 and Open Tree load the real files but have had little more checking than that.
- Lineages, ranks, LCA, consensus, exact and fuzzy name search, subsets and edits, export as a taxdump or a table.
- Translation between NCBI and GTDB through shared genome accessions. Only GTDB 232 → NCBI has been measured; see Translation.
- Your own taxa as an overlay, a few files applied to each rebuild.
- A server, a client, and a command line (
build,list,lookup,lineage,search,translate,link,annotate,export-taxdump,serve).
What does not work yet
SILVA, Greengenes2 and Open Tree cannot be translated to anything (no loader makes links for them). Not supported: native ICTV, GBIF, Catalogue of Life, UNITE, PR2, LTP, RDP, BOLD. Export is a taxdump or a table; there is no Newick or QIIME-style output. Linux only: Windows and macOS are not supported. See the roadmap.
Install
uv add omnitax # the library (needs only httpx); or: pip install omnitax
uv tool install 'omnitax[server]' # the command line, with `omnitax serve`
Python 3.12 or newer.
Use
omnitax build -o taxonomies.sqlite ncbi+gtdb:232 gtdb:232 # downloads about 500 MB, takes minutes
omnitax lookup --db taxonomies.sqlite -t ncbi 562 "Homo sapiens"
omnitax translate --db taxonomies.sqlite -t gtdb:232 --to ncbi "s__Escherichia coli"
import omnitax
ncbi = omnitax.open("taxonomies.sqlite", "ncbi")
ncbi["562"].lineage_string() # d__Bacteria;p__Pseudomonadota;...;s__Escherichia coli
ncbi.consensus({"562": 6, "564": 4}, threshold=0.5, exclude=ncbi.uninformative)
tiny = ncbi.subset(["561"], descendants=True) # a new taxonomy, in a temporary file
Documentation: https://abrinca.github.io/omnitax/
Credits
- sylphd: omnitax began as its NCBI taxonomy code.
- multitax (MIT): the source URLs and file formats, and the inspiration.
- get-tax-info: an earlier tool that loads NCBI's taxdump into SQLite.
- TaxonKit (MIT): the recipe for taxids of taxonomies that have none.
- gtdb-taxdump: the published taxdumps that omnitax's output is checked against.
How omnitax differs from these and from related tools is on its own page.
Licence
MIT.
Metadata
Release files for omnitax 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| omnitax-0.1.0.tar.gz | 102.2 kB | Without provenance | Details for omnitax-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| omnitax-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for omnitax-0.1.0-py3-none-any.whl |
Total release size: 213.9 kB
Release files / omnitax-0.1.0.tar.gz
| Download URL | omnitax-0.1.0.tar.gz |
|---|---|
| Size | 102.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
24ba97ab0bf397ed8dd5cf95401daa22c4676ab3a1f6fd081185219dfcd0ed6f
|
|
BLAKE2b-256 checksum How to use checksums |
03c823e60f91f01acbe0697b69ce1d0ca3eecf4e8e9d41f73e8807362afb1711
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / omnitax-0.1.0-py3-none-any.whl
| Download URL | omnitax-0.1.0-py3-none-any.whl |
|---|---|
| Size | 111.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bcbc75fe8fbbbe064a73dab624ee1a5f0e47b43bbe4dd161b54927b346698c55
|
|
BLAKE2b-256 checksum How to use checksums |
ac5fe83c6fc2513892d201de4390bad15948379adb528a654374181907ac1d50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for omnitax 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.