Skip to main content

Bionty: Data model generator for biology.

Project description

Stars Coverage pypi

Bionty: Basic biological entities

Access public & custom ontologies with auto-complete. Map synonyms with ease.

To manage in-house bio-registries along with ontologies, see lnschema_bionty.

Out-of-the-box ontologies

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

Look up ontology records with auto-complete

import bionty as bt

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

import bionty as bt

celltype_bionty = bt.CellType()
# Free text search against a field
celltype_bionty.search("gamma delta T cell")

Inspect & standardize 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"])

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.24.1.tar.gz (52.7 kB view details)

Uploaded Source

Built Distribution

bionty-0.24.1-py2.py3-none-any.whl (31.9 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for bionty-0.24.1.tar.gz
Algorithm Hash digest
SHA256 4cd6d8575b842c101ecd3d2b3056d769e5c0618196bae3d1eb0538859f8f841d
MD5 0552c1897460d10c1b9a0a2f9c4f8b30
BLAKE2b-256 6b7e39b26a061af765e4170e3eeb60b1772676c62dae38d51417eaba4eed7b4e

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: bionty-0.24.1-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

Hashes for bionty-0.24.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1e403e856f4defae240c8610919a5b9a4483e2a4a61c2f403fa08740bacdfec9
MD5 b8b14dc9986444c50a3f1e24f170ac3c
BLAKE2b-256 73976034e4d91a3536c33c078fb9bfe39177015576f56de9b474b2a2dc83f246

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