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.
Entities
Gene
- Ensembl, NCBI GeneProtein
- UniprotSpecies
- NCBI Taxonomy, Ensembl SpeciesCellLine
- Cell Line OntologyCellType
- Cell OntologyCellMarker
- CellMarkerTissue
- UberonDisease
- Mondo, Human DiseasePhenotype
- Human Phenotype, Phecodes, 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")
Validate, inspect & standardize terms
gene_bionty = bt.Gene()
# Validate against a field of reference
gene_bionty.validate(["A1BG", "FANCD1"], gene_bionty.symbol)
# Run full inspection on the gene symbols
gene_bionty.inspect(["A1BG", "FANCD1"], gene_bionty.symbol)
# Convert synonyms to standardized gene symbols
gene_bionty.standardize(["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.30.3.tar.gz
(59.5 kB
view details)
Built Distribution
File details
Details for the file bionty-0.30.3.tar.gz
.
File metadata
- Download URL: bionty-0.30.3.tar.gz
- Upload date:
- Size: 59.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca25fa51daeb98b9ba2a6c9b3901b61e7c7462c8bd830db9b990f6b29ebae397 |
|
MD5 | 8d06e7637a5de44c73634035a6346dc9 |
|
BLAKE2b-256 | 49d1aa9f7abc199991e72d3f4e32c207ab0d5dc6888c9263bbad2065fcc6ab90 |
Provenance
File details
Details for the file bionty-0.30.3-py2.py3-none-any.whl
.
File metadata
- Download URL: bionty-0.30.3-py2.py3-none-any.whl
- Upload date:
- Size: 35.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6993bb189749d489b91ddc3a26a0fb25583c1fcea22b4aa415dad6fc125dc85d |
|
MD5 | 0698be84891886cc637f2114dda1934a |
|
BLAKE2b-256 | 530766639bc910fb447488c4bf24f9143ce197ffc80f1bc3825041f5a9ee9e7a |