Integrated registry of biological databases and nomenclatures
Project description
Bioregistry
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.3.tar.gz
(488.2 kB
view hashes)
Built Distribution
Close
Hashes for bioregistry-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 678f2378148449c83d703e7e19c5ec1d55220be9389e2d1dec01ca3bb5ea019e |
|
MD5 | 60e4a84e2f6fdb75bf8839ed09f72d89 |
|
BLAKE2b-256 | 88c6f5b5b52f70123168d10204476c67ed71c3e3584cd435c3f7c73e9110c22a |