Generalize modifier-isoform collapse beyond the hardcoded ubiquitin list - #50
Merged
Merged
Conversation
…biquitin list Replaces the hardcoded 6-entry _UBIQUITIN_ENTITY_SET_IDS check with a query-derived modifier_isoform_set_ids(): human EntitySets whose members are ALL modifier proteins (ubiquitin/SUMO/NEDD8/ISG15/UFM1/ATG8, identified by reference-gene identity), so E3-ligase/enzyme sets are correctly excluded. Falls back to the hardcoded ubiquitin seed when Neo4j is unavailable (offline/tests). Discovers 46 sets vs the 6 previously listed — self-maintaining across Reactome versions instead of an arbitrarily-incomplete hand list. Correctness/maintainability only, not a benchmark lever: the 9 experimental pathways regenerate byte-identical, and DB-wide only 11 reactions take a newly-covered set as a decomposable input. Full non-Neo4j suite passes (922). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces the hardcoded 6-entry
_UBIQUITIN_ENTITY_SET_IDScheck with a query-derivedmodifier_isoform_set_ids(): human EntitySets whose members are all modifier proteins (ubiquitin / SUMO / NEDD8 / ISG15 / UFM1 / ATG8, identified by reference-gene identity). E3-ligase and enzyme sets are correctly excluded because their members aren't modifier genes. Falls back to the hardcoded ubiquitin seed when Neo4j is unavailable (offline / tests).Why
The old list collapsed only 6 "Ub [compartment]" sets, but there are ~40 pure-ubiquitin EntitySets (linkage-specific chains K48/K63/…, other compartments, activated forms) plus SUMO/NEDD8/ATG8 families — all functionally-identical modifier copies that should be atomic, not decomposed into per-gene members. Discovering them by member-gene identity is self-maintaining across Reactome versions instead of an arbitrarily-incomplete hand list.
Impact (measured)
Correctness/maintainability, not a benchmark lever:
Verification
Full non-Neo4j suite passes (922); the 8 pre-existing failures require a live Reactome Neo4j and are unaffected. Live query confirms discovery of 46 modifier-isoform sets vs the 6 previously hardcoded.
🤖 Generated with Claude Code