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.3.0.tar.gz (27.0 kB view details)

Uploaded Source

Built Distribution

omataxonomy-0.3.0-py3-none-any.whl (27.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: omataxonomy-0.3.0.tar.gz
  • Upload date:
  • Size: 27.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.11.0 Linux/5.15.0-1031-azure

File hashes

Hashes for omataxonomy-0.3.0.tar.gz
Algorithm Hash digest
SHA256 8738450e8ba8b9f6e4a6984f95e86890148b39fb9b77f6da47021bd794ad1035
MD5 acd49e5b8f7f0ee1b44b848129293fcb
BLAKE2b-256 5228ec9c88324f20464079c565c960a2665b870f57a5c665a020bc557b70e13f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: omataxonomy-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 27.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.11.0 Linux/5.15.0-1031-azure

File hashes

Hashes for omataxonomy-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 12d50782546c24804c1e42a0d7a632dda705374dbcded791c0d1a287350a5e97
MD5 63b5f0ca3e2d20e77f372a45c2e42cb2
BLAKE2b-256 a0e124f8a08d8ecf5a5292e054ea3348a4e86226b9f2f9ee29c2ab1022bb7def

See more details on using hashes here.

Supported by

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