INCATools/ontology-access-kit: v0.5.20
Authors/Creators
- Chris Mungall1
- Harshad1
- Patrick Kalita1
- Charles Tapley Hoyt2
- Sujay Patil1
- marcin p. joachimiak1
- Joe Flack3
- David Linke4
- Nomi Harris1
- Harry Caufield1
- Justin Reese5
- Sierra Moxon6
- Kim Rutherford7
- Nico Matentzoglu8
- Deepak9
- Glass10
- Vinícius de Souza
- Jules Jacobsen11
- Kevin Schaper
- Manuel Lera-Ramirez12
- Shawn Tan
- Tiago Lubiana13
- 1. Lawrence Berkeley National Laboratory
- 2. Northeastern University
- 3. @jhu-bids
- 4. Leibniz-Institut für Katalyse e.V. (LIKAT)
- 5. Lawrence Berkeley National Lab
- 6. LBNL
- 7. Uni of Cambridge / @PomBase
- 8. semanticly Ltd
- 9. SIB Swiss Institute of Bioinformatics
- 10. @det-lab @tis-lab @monarch-initiative
- 11. Queen Mary University of London
- 12. University College London
- 13. University of São Paulo
Description
Optional extra, https://llm.datasette.io/
pip install 'oaklib[llm]'
This provides a lightweight version of OntoGPT. Currently only the annotate endpoint is implemented.
Create a file conf.yaml
categories: [PhenotypicFeature, Disease]
sources: [human-phenotype-ontology]
The conf file is optional - this affects the prompt
Note the conf file format for LLM is experimental and liable to change:
Run:
runoak -i llm:sqlite:obo:hp annotate -C conf.yaml "the patient has bowed and shortened tibia, as well as absent ears and no lungs"
The output is in the standard OAK text annotation format
TODO:
- experiment with different prompt settings
- stabilize format
- further documentation
See:
Example code:
>>> from oaklib import get_adapter
>>> adapter = get_adapter("sqlite:obo:mondo")
>>> rels = list(adapter.relationships(["MONDO:0009831"]))
>>> for rel, metadatas in adapter.relationships_metadata(rels):
... for p, v in metadatas:
... print(rel, p, v)
<BLANKLINE>
...
('MONDO:0009831', 'rdfs:subClassOf', 'MONDO:0002516') oio:source NCIT:C9005
...
Or on the command line:
runoak -i sqlite:obo:mondo relationships MONDO:0009831 --include-metadata -p i
What's Changed
- Adding llm as an extra, adding llm implementation for annotation by @cmungall in https://github.com/INCATools/ontology-access-kit/pull/658
- Additional documentation by @cmungall in https://github.com/INCATools/ontology-access-kit/pull/655
- Adding ability to retrieve axiom annotations on relationships (axiom annotations) by @cmungall in https://github.com/INCATools/ontology-access-kit/pull/656
- minor obographviz config change: new color disambiguating chebi by @cmungall in https://github.com/INCATools/ontology-access-kit/pull/657
Full Changelog: https://github.com/INCATools/ontology-access-kit/compare/v0.5.19...v0.5.20
Files
INCATools/ontology-access-kit-v0.5.20.zip
Files
(16.4 MB)
| Name | Size | Download all |
|---|---|---|
|
md5:f04402a3e103e82c7239f4335ab260fb
|
16.4 MB | Preview Download |
Additional details
Related works
- Is supplement to
- https://github.com/INCATools/ontology-access-kit/tree/v0.5.20 (URL)