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

Reuse Activity.enabled_by nodes for input/output nodes when available #21

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

pkalita-lbl
Copy link
Contributor

These changes implement some node de-duplication in the CX2 output, as recommended by the NDEx team.

As we create nodes based on an Activity instance's enabled_by slot, keep track of that node ID based on the enabled_by term (in addition to the Activity id). Then when input and output relationships are being processed, first check that mapping and do not create a new node if the input/output association's term is in the mapping.

Copy link

github-actions bot commented Oct 9, 2024

PR Preview Action v1.4.8
🚀 Deployed preview to https://geneontology.github.io/gocam-py/pr-preview/pr-21/
on branch gh-pages at 2024-10-09 00:01 UTC

@pkalita-lbl pkalita-lbl merged commit 89ae295 into main Oct 9, 2024
3 checks passed
@pkalita-lbl pkalita-lbl deleted the fix-node-deduplication branch October 9, 2024 00:02
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.

1 participant