Skip to main content

Bionty.

Project description

Stars Coverage pypi

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

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

Uploaded Source

Built Distribution

bionty-0.30.0-py2.py3-none-any.whl (35.7 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for bionty-0.30.0.tar.gz
Algorithm Hash digest
SHA256 2b43d7bc719e39607ab32969093871bfbf0d687f06a28c7ed5eaeec2ec5f8010
MD5 f64a0b31f3ade1413ff0fdf1d1bb0628
BLAKE2b-256 9c5ca1df5f6494a3ec298868f80d3a66fe79278d60583a558269fcb2f1324e86

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for bionty-0.30.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d21935c2951a2dc2db34f1eaeb992a1e0288f68395455972c2a870725622116c
MD5 a84a4e2e723352c9c4c1da3dd0f4a6ab
BLAKE2b-256 8ea73cbf2511be18656eaea1201bbfa9294d6d787eeb2de21b63b488c527e1de

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