bionty.base¶
Bionty base is a standalone version of Bionty without lamindb support.
Overview¶
bionty.base
is the read-only interface for public ontology that underlies bionty and doesn’t require a lamindb instance.
Installation¶
>>> pip install bionty
Quickstart¶
Import the package:
>>> import bionty.base as bt_base
Access public ontologies:
>>> genes = bt_base.Gene()
Get a DataFrame of all available values:
>>> genes.df()
Entities¶
Bionty base provides access to several entities, most of which are also supported by Bionty.
|
Organism. |
|
Gene. |
|
Protein. |
|
Cell markers. |
|
Cell type ontologies. |
|
Cell line. |
|
Tissue. |
|
Disease ontologies. |
|
Phenotype. |
|
Pathway. |
|
Experimental Factor. |
|
Developmental Stage. |
|
Drug ontologies. |
|
Ethnicity. |
|
Bioinformatics pipelines. |
|
BioSample attributes. |
Base model of entity classes¶
[Pronto Ontology objects](https://pronto.readthedocs.io/en/stable/api/pronto.Ontology.html) can be accessed via {entity}.to_pronto():
bt_base.Gene().to_pronto()
|
PublicOntology object. |
|
Field of a PublicOntology model. |
PublicOntology sources¶
Displays all available sources. |
|
Displays all currently used sources. |
|
|
Reset local bionty sources file. |
External API¶
|
Interface with ontologies via pronto. |