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

Handle GPI label merge for geneontology/go-releases#50 #648

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

dustine32
Copy link
Collaborator

For geneontology/go-releases#50.

This fleshes out the collections.BioEntities.merge() function to better handle labels when some are blank. The entity label should only be overwritten if the new label is non-blank.

In our actual use case here:

  1. The GAF-derived GPI is parsed into BioEntities first.
  2. The upstream, canonical MOD GPI is parsed and its own BioEntities object.
  3. The upstream, canonical MOD GPI BioEntities are merged into the existing GAF-derived GPI BioEntities ensuring that, if the canonical GPI has a blank symbol, it does not clobber the existing non-blank symbol.

@dustine32 dustine32 requested review from kltm and mugitty October 4, 2023 19:19
@kltm
Copy link
Member

kltm commented Oct 4, 2023

@dustine32 By my read, this is a specific label merge override, but could be easily expanded later, correct?

@kltm
Copy link
Member

kltm commented Oct 4, 2023

If #648 (comment), feel free to merge on your schedule.

@dustine32
Copy link
Collaborator Author

@kltm Yup, that block is there for any future field-merge logic with label being the only current use.

@dustine32 dustine32 merged commit 74c045c into master Oct 4, 2023
5 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