LNG_BOUNDARY_HIERARCHY: hierarchical root-complex decomposition (off by default) - #97
Merged
Merged
Conversation
…el at a time -- join components the network already has, build missing nested complexes (deltasignal specs/030) Flat decomposition went straight to base leaves, so a species the pathway produces never reached the root complex that contains it (IFN alpha/beta: ISGF3 [cytosol] -> root ISGF3:KPNA1:KPNB1, no binding reaction in Reactome; 200 held-out cases severed). Off by default; downstream-reuse rule unchanged. Three tests. The one failing test (Class I MHC edges proportional) fails identically on main -- it checks stale generated output. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…228, 238/10, p=9e-58; +28 outside IFN alpha/beta; experimental +2) Flat-mode tests that stub every id as a Complex are pinned to LNG_BOUNDARY_HIERARCHY=0; the leaf-reuse tests run under the new default with a one-level component stub. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
adamjohnwright
marked this pull request as ready for review
September 26, 2026 13:06
…(two joins had welded a 162-node DSB loop); deterministic root order; nested complexes built per root; prefer a ROOT copy when joining (PDGFB: the pinned root copy never reached PDGF A/B heterodimer). All hierarchy-only; flat mode byte-identical. Three new tests, two mutation-checked. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
… uuid string (a uuid4 is new every run, so the join landed on a different copy run to run); root-ness for the root-copy preference is the pathway's own non-depletion targets, not a live in-degree (which counted this function's joins, so choice followed stid sort order, and counted depletion). Three tests, all red on the previous commit. Co-Authored-By: Claude Opus 5.5 (1M context) <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.
Decompose a root complex one hasComponent level at a time: join components that already exist as nodes, build missing nested complexes, fall back to terminal leaves. Fixes the IFN alpha/beta severing (ISGF3 [cytosol] never reached root ISGF3:KPNA1:KPNB1). Off by default; A/B in deltasignal specs/030.
🤖 Generated with Claude Code