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

Remove mesh cycle from bio-ontology #1433

Merged
merged 4 commits into from
Jan 14, 2024
Merged

Conversation

kkaris
Copy link
Member

@kkaris kkaris commented Jan 12, 2024

This PR adds functionality to remove edges from the bio ontology and does that for one edge in the MeSH 2024 data. The edge removed is MESH:D015835 -[isa]-> MESH:D013285 which prevents a circular hierarchy structure since MESH:D013285 -[isa]-> MESH:D015835 is already a relation. See https://meshb.nlm.nih.gov/record/ui?ui=D015835 under the MeSH Tree Structure tab then check the branch for Nervous System Diseases [C10] where the hierarchical path MESH:D015835 -> MESH:D013285 -> MESH:D015835 is present, creating an is_a/partof cycle.

The bio ontology version is bumped to 1.32 with this PR.

@kkaris
Copy link
Member Author

kkaris commented Jan 12, 2024

All the failing tests are related to 404 errors from the cbio client

continue

# Remove the edge
self.remove_edge(source, target)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is unlikely to play a big role here but removing edges one by one tends to be slower than using remove_edges_from with a list argument. We can leave it like this for simplicity though.

@bgyori bgyori merged commit 4ff4539 into sorgerlab:master Jan 14, 2024
0 of 2 checks passed
@kkaris kkaris deleted the remove-mesh-cycle branch January 16, 2024 05:29
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