Skip to main content

Package to work with combined NCBI and GTDB taxonomy

Project description

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']}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

omataxonomy-0.4.0.tar.gz (25.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

omataxonomy-0.4.0-py3-none-any.whl (27.2 kB view details)

Uploaded Python 3

File details

Details for the file omataxonomy-0.4.0.tar.gz.

File metadata

  • Download URL: omataxonomy-0.4.0.tar.gz
  • Upload date:
  • Size: 25.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.8 Linux/6.11.0-1014-azure

File hashes

Hashes for omataxonomy-0.4.0.tar.gz
Algorithm Hash digest
SHA256 21a1b38ff53c26e192bcfd57fa0708c4124fa3ee90c465eaafbfe9eb6c3c315d
MD5 8044486bd99ea71463619c0e6add727a
BLAKE2b-256 07167126877770e6518a674cf959cef1ac00334e1325929657a68f65f4b8d5cb

See more details on using hashes here.

File details

Details for the file omataxonomy-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: omataxonomy-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 27.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.8 Linux/6.11.0-1014-azure

File hashes

Hashes for omataxonomy-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fec16ec096c974d48ce8236f4543aeca13e34c1053f1614d8b0e29477c2eeb02
MD5 be63a2061a6ea2323b80536893304735
BLAKE2b-256 27e9584c71540fb96fa9bdb4c26683439bfa1a7c3ddc874979803893c9e5c2c9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page