Bionty: Data model generator for biology.
Project description
Bionty: Basic biological entities
Access public & custom ontologies with auto-complete. Map synonyms with ease.
To manage in-house bioregistries along with ontologies, see lnschema_bionty.
Out-of-the-box ontologies
Gene
- Ensembl, NCBI Gene, HGNC, MGIProtein
- UniprotSpecies
- NCBI Taxonomy, Ensembl SpeciesCellLine
- Cell Line OntologyCellType
- Cell OntologyCellMarker
- CellMarkerTissue
- UberonDisease
- Mondo, Human DiseasePhenotype
- Human PhenotypePathway
- Gene Ontology, Pathway OntologyReadout
- Experimental Factor OntologyDrug
- Drug OntologyBFXPipeline
- largely based on nf-core
Check out sources.yaml for details.
Didn't see your favorite source or version? Bionty is extendable!
Installation
Bionty is a Python package available for
pip install bionty
Look up ontology records with auto-complete
import bionty as bt
gene_bionty_lookup = bt.Gene().lookup()
gene_bionty_lookup.LNMA
Inspect & map identifiers
import bionty as bt
gene_bionty = bt.Gene()
# Inspect if the gene symbols are mappable onto the reference
gene_bionty.inspect(["A1BG", "FANCD1"], gene_bionty.symbol)
# Map synonyms of gene symbols
gene_bionty.map_synonyms(["A1BG", "FANCD1"], gene_bionty.symbol)
celltype_bionty = bt.CellType()
# Fuzzy string matching of a cell type name
celltype_bionty.fuzzy_match("gamma delta T cell", celltype_bionty.name)
Reference tables of ontologies
import bionty as bt
# Reference table of the human genes
df = bt.Gene(species="human").df()
Track ontology sources
# Display currently used sources
bt.display_currently_used_sources()
# Display all managed sources
bt.display_available_sources()
# Local yaml file specifying all managed sources
bt.LOCAL_SOURCES
# Access to the Mondo ontology
disease = bt.Disease(source="mondo")
# Access to the Human Disease ontology
disease = bt.Disease(source="doid", version="2023-01-30")
Documentation
Read the docs.
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
bionty-0.20.0.tar.gz
(108.3 kB
view details)
Built Distribution
File details
Details for the file bionty-0.20.0.tar.gz
.
File metadata
- Download URL: bionty-0.20.0.tar.gz
- Upload date:
- Size: 108.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 203405d0d01ef5495ccfb753c36b27ee6c84ff86760a14ec140250f34c8b5459 |
|
MD5 | 7e0d98fdff51fca53861fd581fdcec90 |
|
BLAKE2b-256 | 26e1c681e5b14d4dc5a55ccbe71f1055888c756d311248266d20f6f43837f112 |
Provenance
File details
Details for the file bionty-0.20.0-py2.py3-none-any.whl
.
File metadata
- Download URL: bionty-0.20.0-py2.py3-none-any.whl
- Upload date:
- Size: 50.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5eeaa66b36a6f48827c8be604a92213ee41bde53a54e29e9c69b0bcb029b049 |
|
MD5 | 4d9f907f59471de84b69e71e04383768 |
|
BLAKE2b-256 | e8194e2b722831420ca7e5b4f1ca23365533bab36a426dcfc0ca769b9613a118 |