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: {doc}docs:biology/registries.

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")

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

Uploaded Source

Built Distribution

bionty-0.25.0-py2.py3-none-any.whl (32.1 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for bionty-0.25.0.tar.gz
Algorithm Hash digest
SHA256 8769d56362f777081836a3840b0e958249b7f602b60b3ad0a149d9b353105540
MD5 9b618c647ef2e25892ab0b7e7a86f674
BLAKE2b-256 2f82b78631c86c985595445c5158b0abb96cef4d22a7b0c14c61ea874a4436d9

See more details on using hashes here.

Provenance

File details

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

File metadata

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

Hashes for bionty-0.25.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7be39bbbfc74f92af9e23ac45bafabc6fff61900d52cd403a510958a72171225
MD5 0cf7819a88ceacf334178d4239ee1447
BLAKE2b-256 d261429d2743b640f6d60dd418fd7d3c7f91a7ec6d424aa8ca3ed6e43bddc069

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