Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addition of ontology terms and subtree terms #363

Merged
merged 11 commits into from
Sep 17, 2024

Conversation

nanglo123
Copy link
Contributor

@nanglo123 nanglo123 commented Sep 16, 2024

This PR creates a new endpoint: add_ontology_subtree, that takes in a term from an ontology and adds it to the epi DKG. The option to add any term in the subtree under the specific term that has been added also exists. Currently we can only process the ncbitaxonomy.

A demo notebook has been added. We first ensure that the ontology obo file exists in its respective version directory in ~/.data/pyobo/raw. We then convert the obo file into a networkx graph and normalize node indicies. Converting the obo file into a networkx graph takes a long time so we also pickle the graph and check to see if it exists in the same location as its respective resource version obo file before performing any obo conversion to networkx.

mira/dkg/construct.py Outdated Show resolved Hide resolved
mira/dkg/construct.py Outdated Show resolved Hide resolved
@bgyori bgyori merged commit b234100 into gyorilab:main Sep 17, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants