Skip to main content

Integrated registry of biological databases and nomenclatures

Project description

Bioregistry

PyPI PyPI - Python Version PyPI - License DOI

An integrative registry of biological databases, ontologies, and nomenclatures.

⬇️ Download

The bioregistry database can be downloaded directly from here

🚀 Installation

$ pip install git+https://github.com/cthoyt/bioregistry.git

Usage

The Bioregistry can be used to normalize prefixes across MIRIAM and all the (very plentiful) variants that pop up in ontologies in OBO Foundry and the OLS with the normalize_prefix() function.

import bioregistry

# This works for synonym prefixes, like:
assert 'ncbitaxon' == bioregistry.normalize_prefix('taxonomy')

# This works for common mistaken prefixes, like:
assert 'chembl.compound' == bioregistry.normalize_prefix('chembl')

# This works for prefixes that are often written many ways, like:
assert 'eccode' == bioregistry.normalize_prefix('ec-code')
assert 'eccode' == bioregistry.normalize_prefix('EC_CODE')

# If a prefix is not registered, it gives back `None`
assert bioregistry.normalize_prefix('not a real key') is None

Entries in the Bioregistry can be looked up with the get() function.

import bioregistry

entry = bioregistry.normalize_prefix('taxonomy')
# there are lots of mysteries to discover in this dictionary!

The full Bioregistry can be read in a Python project using:

import bioregistry

registry = bioregistry.read_bioregistry()

Update

$ bioregistry update

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

bioregistry-0.0.2.tar.gz (485.7 kB view details)

Uploaded Source

Built Distribution

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

bioregistry-0.0.2-py3-none-any.whl (52.5 kB view details)

Uploaded Python 3

File details

Details for the file bioregistry-0.0.2.tar.gz.

File metadata

  • Download URL: bioregistry-0.0.2.tar.gz
  • Upload date:
  • Size: 485.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0

File hashes

Hashes for bioregistry-0.0.2.tar.gz
Algorithm Hash digest
SHA256 9ca322a404ecb0573cf0f59f14319dd7d5422d74135e8e424f5847219e292890
MD5 8f0231969b2fa4b3c489ca67564ae793
BLAKE2b-256 539f3d53a810eca4eaa1e06a19fd7c0b73afa136d9c33033f34a054d49c2ee1e

See more details on using hashes here.

File details

Details for the file bioregistry-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: bioregistry-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 52.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0

File hashes

Hashes for bioregistry-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 07796da08e66a6131fa55dbf495bfb739245686d5471099671a0bf9acfc53e68
MD5 4e7faee1cfa1766f449766eead30a682
BLAKE2b-256 33f069edff7c26432308a6af2dbc37e90d95e5e4c7214483a5d55da5914f9892

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