Skip to main content

Bionty.

Project description

Stars Coverage pypi

Bionty

Public biological ontologies for data scientists: look up, search, inspect, validate, and standardize terms.

To make it easy to customize and extend ontologies in a simple database backend, Bionty plugs into LaminDB: see this guide.

Entities

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 pyversions

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(organism="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.33.0.tar.gz (62.3 kB view details)

Uploaded Source

Built Distribution

bionty-0.33.0-py2.py3-none-any.whl (39.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file bionty-0.33.0.tar.gz.

File metadata

  • Download URL: bionty-0.33.0.tar.gz
  • Upload date:
  • Size: 62.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for bionty-0.33.0.tar.gz
Algorithm Hash digest
SHA256 46ceb47a9b30aba4fae600e466c9fc49a302d0396c7a779965deb2a11d1cad74
MD5 ab017f0c55e55c9465e8e9b5a38a5b0a
BLAKE2b-256 e82624286659a9eeca21310670813ae0eeb2b6622f79ff20baa493dc5827abe7

See more details on using hashes here.

Provenance

File details

Details for the file bionty-0.33.0-py2.py3-none-any.whl.

File metadata

  • Download URL: bionty-0.33.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 39.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for bionty-0.33.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0a0777e05dda1d54128ed4a40030686c4da6a281e681dbbffd459bb1cfb0ff75
MD5 1528b81cf79dcdbc381b3e3631beac58
BLAKE2b-256 372a918d95f31647a86408f009b843760d5a1554316a882695f0093e527bdc11

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page