feat: add BNGL visualization support for biomodels#61
Open
androemeda wants to merge 1 commit intovirtualcell:developmentfrom
Open
feat: add BNGL visualization support for biomodels#61androemeda wants to merge 1 commit intovirtualcell:developmentfrom
androemeda wants to merge 1 commit intovirtualcell:developmentfrom
Conversation
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.
Description
This PR integrates the bnglViz library into VCell-AI to provide interactive visualization of BNGL (BioNetGen Language) content for biomodels that support BNGL export. The visualization displays molecular types, species, observables, and reaction rules in an easy-to-understand graphical format.
Implementation Details
Backend Changes
New Service Function (
databases_service.py)get_bngl_file()function that calls VCell's BNGL API endpointNew REST Endpoint (
vcelldb_router.py)GET /biomodel/{biomodel_id}/biomodel.bngl.vcmland.sbmlendpoints{"data": "<bngl_content>"}Frontend Changes
bnglViz Integration (
frontend/public/bnglviz/)html-interface.js,bngl-extractor.js,model-graphics.jsReact Component (
BnglVisualizerSection.tsx)Page Integration (
app/search/[bmid]/page.tsx)Video Demo
Screen.Recording.2026-03-27.at.3.10.03.PM.mov
How to Test
Test Steps:
Navigate to a biomodel page — e.g. any of mblinov's public models
Expected: BNGL Visualization section appears after the diagram
# Model with BNGL support - should return BNGL content curl http://localhost:8000/biomodel/{biomodel_id}/biomodel.bnglTechnical Notes