bionty¶
Basic biological entities, coupled to public ontologies [source].
- Create records from public ontologies using - .from_source().
- Access public ontologies via - .public()to search & bulk-create records.
- Use hierarchical relationships among records ( - .parents).
- Use - .synonymsand- .abbrto manage synonyms.
- Manage ontology versions. 
Install and mount bionty in a new instance:
>>> pip install 'bionty'
>>> lamin init --storage <storage_name> --modules bionty
Import the package:
>>> import bionty as bt
Access public ontologies:
>>> genes = bt.Gene.public()
>>> genes.validate(["BRCA1", "TCF7"], field="symbol")
Create records from public ontologies:
>>> cell_type = bt.CellType.from_source(ontology_id="CL:0000037")
>>> cell_type.save()
View ontological hierarchy:
>>> cell_type.view_parents()
Create in-house ontologies:
>>> cell_type_new = bt.CellType(name="my new cell type")
>>> cell_type_new.save()
>>> cell_type_new.parents.add(cell_type)
>>> cell_type_new.view_parents()
Manage synonyms:
>>> cell_type_new.add_synonyms(["my cell type", "my cell"])
>>> cell_type_new.set_abbr("MCT")
Detailed guides:
Registries:
| 
 | Organism - NCBI Taxonomy, Ensembl Organism. | 
| 
 | |
| 
 | Proteins - Uniprot. | 
| Cell markers - CellMarker. | |
| 
 | Cell types - Cell Ontology. | 
| 
 | Cell lines - Cell Line Ontology. | 
| 
 | Tissues - Uberon. | 
| 
 | Diseases - Mondo, Human Disease. | 
| 
 | Pathways - Gene Ontology, Pathway Ontology. | 
| Phenotypes - Human Phenotype, Phecodes, Mammalian Phenotype, Zebrafish Phenotype. | |
| Experimental factors - Experimental Factor Ontology. | |
| Developmental stages - Human Developmental Stages, Mouse Developmental Stages. | |
| Ethnicity - Human Ancestry Ontology. | 
Settings:
| Global  | 
Ontology versions:
| 
 | Versions of ontology sources. | 
Submodules:
| Developer API. | |
| Access to public ontologies. |