Bionty.
Project description
Bionty
Biological ontologies for data scientists: look up, search, inspect, and map terms.
To manage custom bio-registries along with public ontologies, see this LaminDB guide: {doc}docs:biology/registries
.
Entities
Gene
- Ensembl, NCBI Gene, HGNC, MGIProtein
- UniprotSpecies
- NCBI Taxonomy, Ensembl SpeciesCellLine
- Cell Line OntologyCellType
- Cell OntologyCellMarker
- CellMarkerTissue
- UberonDisease
- Mondo, Human DiseasePhenotype
- Human Phenotype, Mammalian Phenotype, Zebrafish 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
Usage overview & quickstart
import bionty as bt
Look up terms with auto-complete
lookup = bt.Readout().lookup()
# access via Python-friendly keys
lookup.single_cell_rna_sequencing
# access via dictionary
lookup_dict = lookup.dict()
lookup_dict["single-cell RNA sequencing"]
Search ontology terms
celltype_bionty = bt.CellType()
# Free text search against a field
celltype_bionty.search("gamma delta T cell")
Inspect & map terms
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"])
Access a reference DataFrame
# 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.24.2.tar.gz
(52.7 kB
view details)
Built Distribution
File details
Details for the file bionty-0.24.2.tar.gz
.
File metadata
- Download URL: bionty-0.24.2.tar.gz
- Upload date:
- Size: 52.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 891bdec82e604703d7d462a29d46c2ccd6c256f49193cabb14a78a5d139aedf7 |
|
MD5 | 56afb052403668956c3c10fd9dc3adc8 |
|
BLAKE2b-256 | 765f8b7198b6eedf6b119891b3ad38f0fd12daf8a83388555626590fd24a491d |
Provenance
File details
Details for the file bionty-0.24.2-py2.py3-none-any.whl
.
File metadata
- Download URL: bionty-0.24.2-py2.py3-none-any.whl
- Upload date:
- Size: 31.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 | 83b5c591ea1db92784e68981274ce111e0ab5e7c30d528d2a24d9245527e1c2d |
|
MD5 | 2da0d3daed9353234ce7f99440e1719a |
|
BLAKE2b-256 | 1a65aa4549c08c00e5f38eca64ee80e7b3e0b7bffd047d72200a1782636469f5 |