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 OntologyExperimentalFactor
- 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.ExperimentalFactor().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.25.2.tar.gz
(53.0 kB
view details)
Built Distribution
File details
Details for the file bionty-0.25.2.tar.gz
.
File metadata
- Download URL: bionty-0.25.2.tar.gz
- Upload date:
- Size: 53.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77f18fea658fc13a14f18ea5607ef674ca1f204d9834b09f5d6ff59a7844ed35 |
|
MD5 | ec9447590f409e09e02eba3cbc6a97ce |
|
BLAKE2b-256 | 7424452983dfaa1ab982caa322f829ce5173d578621b4ebc336fd29d045a0c86 |
Provenance
File details
Details for the file bionty-0.25.2-py2.py3-none-any.whl
.
File metadata
- Download URL: bionty-0.25.2-py2.py3-none-any.whl
- Upload date:
- Size: 32.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c45165eec0d4b42bd725fffc34c36a738d9e62ec3735bc3b6b3674d59301045 |
|
MD5 | 7569f8bc7c8a241c68f63bcd563f0ce9 |
|
BLAKE2b-256 | b1f62d3a4b41ebe1ff276955bc260fb30797dcd6e5495a81dadd99f08e2b7033 |