This directory contains a coherent, merged lexical index for the following resources:
- Human Disease Ontology (DOID)
- MONDO Disease Ontology (MONDO)
- Human Phenotype Ontology (HPO)
- Symptom Ontology (SYMP)
- Medical Subject Headings (MeSH)
- Experimental Factor Ontology (EFO)
The index can be regenerated with:
python generate.py
Use in Python like in the following:
import biolexica
import gilda
INDEX = "phenotype"
URL = f"https://github.com/biopragmatics/biolexica/raw/main/lexica/{INDEX}/terms.tsv.gz"
grounder: gilda.Grounder = biolexica.load_grounder(URL)
scored_matches = grounder.ground("Alzheimer's disease")
If you've cloned the repository, you can run:
python web.py
If you have biolexica[web]
installed, you can do:
from biolexica.web import run_app
INDEX = "phenotype"
URL = f"https://github.com/biopragmatics/biolexica/raw/main/lexica/{INDEX}/terms.tsv.gz"
run_app(URL)