Skip to main content

OMA Taxonomy

omataxonomy is a library based on ete's ncbi_taxonomy module that is used internally for the OMA project, but that can also be used in different contexts. Essentially, it combines the NCBI Taxonomy and the GTDB taxonomy (including all their genome as subspecies). For GTDB we generate stable taxon ids by hashing the scientific names.

omataxonomy stores the data in a sqlite database under ${HOME}/.config/omataxonomy/ and therefor uses little resources when being used as not all the data will be loaded into memory.

Install

OMA Taxonomy can be installed directly from pip:

pip install omataxonomy

Usage

from omataxonomy import Taxonomy
tax = Taxonomy()
print(tax.get_name_lineage(['RS_GCF_006228565.1', 'GB_GCA_001515945.1', "f__Leptotrichiaceae", "Homo sapiens", "Gallus"]))

{'f__Leptotrichiaceae': ['root', 'd__Bacteria', 'p__Fusobacteriota', 'o__Fusobacteriales', 'f__Leptotrichiaceae'], 'Gallus': ['root', 'cellular organisms', 'Eukaryota', 'Opisthokonta', 'Metazoa', 'Eumetazoa', 'Bilateria', 'Deuterostomia', 'Chordata', 'Craniata', 'Vertebrata', 'Gnathostomata', 'Teleostomi', 'Euteleostomi', 'Sarcopterygii', 'Dipnotetrapodomorpha', 'Tetrapoda', 'Amniota', 'Sauropsida', 'Sauria', 'Archelosauria', 'Archosauria', 'Dinosauria', 'Saurischia', 'Theropoda', 'Coelurosauria', 'Aves', 'Neognathae', 'Galloanserae', 'Galliformes', 'Phasianidae', 'Phasianinae', 'Gallus'], 'GB_GCA_001515945.1': ['root', 'd__Bacteria', 'p__Firmicutes_B', 'c__Moorellia', 'o__Desulfitibacterales', 's__Desulfitibacter sp001515945', 'GB_GCA_001515945.1'], 'Homo sapiens': ['root', 'cellular organisms', 'Eukaryota', 'Opisthokonta', 'Metazoa', 'Eumetazoa', 'Bilateria', 'Deuterostomia', 'Chordata', 'Craniata', 'Vertebrata', 'Gnathostomata', 'Teleostomi', 'Euteleostomi', 'Sarcopterygii', 'Dipnotetrapodomorpha', 'Tetrapoda', 'Amniota', 'Mammalia', 'Theria', 'Eutheria', 'Boreoeutheria', 'Euarchontoglires', 'Primates', 'Haplorrhini', 'Simiiformes', 'Catarrhini', 'Hominoidea', 'Hominidae', 'Homininae', 'Homo', 'Homo sapiens'], 'RS_GCF_006228565.1': ['root', 'd__Bacteria', 'p__Firmicutes_B', 'c__Moorellia', 'o__Moorellales', 'f__Moorellaceae', 'g__Moorella', 's__Moorella thermoacetica', 'RS_GCF_006228565.1']}

Metadata

Release files for omataxonomy 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for omataxonomy 0.4.0
File Size Uploaded
omataxonomy-0.4.0.tar.gz 25.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for omataxonomy 0.4.0
File Interpreter ABI Platform
omataxonomy-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 52.9 kB

Release files / omataxonomy-0.4.0.tar.gz

Download URL omataxonomy-0.4.0.tar.gz
Size 25.7 kB
Tags Source
SHA-256 checksum
How to use checksums
21a1b38ff53c26e192bcfd57fa0708c4124fa3ee90c465eaafbfe9eb6c3c315d
BLAKE2b-256 checksum
How to use checksums
07167126877770e6518a674cf959cef1ac00334e1325929657a68f65f4b8d5cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.12.8 Linux/6.11.0-1014-azure

Release files / omataxonomy-0.4.0-py3-none-any.whl

Download URL omataxonomy-0.4.0-py3-none-any.whl
Size 27.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fec16ec096c974d48ce8236f4543aeca13e34c1053f1614d8b0e29477c2eeb02
BLAKE2b-256 checksum
How to use checksums
27e9584c71540fb96fa9bdb4c26683439bfa1a7c3ddc874979803893c9e5c2c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.12.8 Linux/6.11.0-1014-azure

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page