Closed dustine32 closed 9 months ago
@dustine32 By my read, this is a specific label
merge override, but could be easily expanded later, correct?
If https://github.com/biolink/ontobio/pull/648#issuecomment-1747554581, feel free to merge on your schedule.
@kltm Yup, that block is there for any future field-merge logic with label being the only current use.
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:
BioEntities
first.BioEntities
object.BioEntities
are merged into the existing GAF-derived GPIBioEntities
ensuring that, if the canonical GPI has a blank symbol, it does not clobber the existing non-blank symbol.