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.6.tar.gz
(702.6 kB
view hashes)
Built Distribution
Close
Hashes for bioregistry-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1769441d0541a3c65ce65890d3a5f8cbd6273e06b0ce47c889d1bc393583a0d8 |
|
MD5 | bf87ae45fa5f408626901ad0650c5ebf |
|
BLAKE2b-256 | 38b7d9d188a5f954ec1f1953977b02d1d4fece2b295cb17d93c4489363911125 |