Add BNGL network visualization for rule-based biomodels#76
Merged
Conversation
jcschaff
approved these changes
Jul 15, 2026
jcschaff
left a comment
Member
There was a problem hiding this comment.
approved, but please adjust the retry logic for vcell api to only retry once upon failure.
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.
Summary
Adds a BNGL (BioNetGen Language) network diagram to the biomodel detail page for rule-based models.
GET /biomodel/{id}/biomodel.bnglendpoint. Fetches the BNGL file with retry logic(mirroring the existing VCML/SBML endpoints), and returns empty data when there's nothing meaningful
to visualize — model isn't rule-based (404), content is empty/minimal, or the
molecule typesblockis missing or empty. Genuine upstream failures now surface as a 500, consistent with sibling endpoints.
BnglVisualizerSectioncomponent, rendered in the Overview tab of the biomodeldetail page (
/search/[bmid]). Fetches the BNGL data and renders it via a bundled visualizationtoolkit (
public/bnglviz/) inside a sandboxed iframe. The section stays hidden for models with no meaningful bngl content — no visual change on models without one.