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

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)
# Map synonyms of standardized 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.29.0.tar.gz (56.0 kB view details)

Uploaded Source

Built Distribution

bionty-0.29.0-py2.py3-none-any.whl (34.8 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for bionty-0.29.0.tar.gz
Algorithm Hash digest
SHA256 d0fcf53f5470650c89301a2549fc55079451fd23a5d59bc3b4ff8fe2fd2d27cd
MD5 9a0fbb9b580f3711cd1e02a1b4289179
BLAKE2b-256 73ab510611f9621286b9b82b065c64106bff2d541de179a622ef03741990c4e8

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for bionty-0.29.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5ba8a27d841000f94729dc40dabc28d6f34bd94fb18466e8baa85f4ba5a96384
MD5 1f933d53a9d7ab29020d2c9347e9ae5c
BLAKE2b-256 fe563e85c8e2e5356110c71747174d3caa1db130b64ae4855a9804264c258d78

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