Skip to content

feat: VCell's ODE solver as the vcell SED-ML solver (pbest 0.6.5, pyvcell in registry_env) - #364

Merged
jcschaff merged 5 commits into
mainfrom
feat/vcell-solver
Oct 24, 2026
Merged

jcschaff merged 5 commits into
mainfrom
feat/vcell-solver

Conversation

@jcschaff

@jcschaff jcschaff commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Step 3 of docs/plan-vcell-ode.md (#363). It adds VCell's Sundials ODE solver as a third SED-ML TimeCourseSolver, vcell, beside COPASI and Tellurium. The solver is pbsim-common's VCellUTCStep (biosimulations/pbsim_common#20), through pyvcell.

The image (registry_env)

  • pbest 0.6.5 (git tag, branch release/0.6.5, commit a4713e9). It installs pbsim-common 0.1.3.dev1 from biosimulations/pbsim_common@26fa156, which has VCellUTCStep. The container definition clones --branch 0.6.5.
  • simulator_registry.json adds pyvcell[native,ode] 0.5.2, which installs libvcell 0.0.23 and pyvcell-odesolver 0.9.7, in registry_env only.
  • The definition's hash moves to registry_env:0f31dda063001f72dab1f6a0c6b284f2, so the first run after deploy builds it.
  • registry/manifest.yaml: pbsim-common's source and version move to 26fa156 / 0.1.3.dev1. pbsim_common is already a module root.
  • registry/manifests/registry_env.json: regenerated by this PR's registry-manifests.yml run from that image. It lists VCellUTCStep.

The solver

  • registry/solvers.yaml: vcell, VCell's Combined solver (CVODE, or IDA when the math has fast systems), with KISAO:0000019 and KISAO:0000283.
  • tests/simulators/test_sedml.py (cluster) runs Ciliberto 2003 on copasi, tellurium and vcell, and checks both against copasi. Its fixture, Ciliberto2003.vcell.omex, was translated the way the others were. Re-translating the copasi archive reproduces the committed one byte for byte.

Why pyvcell 0.5.2: events

Ciliberto's cell division and budding are SBML events.

  • pyvcell ≤ 0.5.1 dropped VCell events whenever it wrote a model back, so VCell solved the model without them. It left COPASI's answer at the first trigger (t ≈ 73 min), by up to 6× a variable's range.
  • pyvcell 0.5.2 (feat: events (VCML BioEvents) are read, modelled and written back virtualcell/pyvcell#67) models events: trigger types, parameters and assignments.
  • Locally, through VCellUTCStep, VCell now agrees with COPASI on all 201 points of Ciliberto within 4e-6 of each variable's range.
  • On a 200-model VCell corpus, round trips that give the same answer went from 103 to 108.

Behaviour change

/sedml/run with no solvers named runs every solver, so interactive SED-ML runs gain a vcell member where the archive's algorithm matches. The route tests now expect three. Suites name their solvers, so they're unaffected until a suite.yaml adds vcell (step 4).

Checks

  • Local: make check is clean. The registry and SED-ML tests that need no database pass (69), including the stale-manifest check and the solver-in-manifest check.
  • CI only: the database-backed tests. My local Docker is out of disk.
  • To run after merge: the cluster test (cluster_only).

Releasing

This changes the image, so deploying is a release. Tag the release PR's head, wait for the image build, then merge (CLAUDE.md).

🤖 Generated with Claude Code

…ell[native,ode] 0.5.1 in registry_env

Step 3 of docs/plan-vcell-ode.md. pbest's tag 0.6.5 installs pbsim-common 0.1.3.dev1 (biosimulations/pbsim_common@26fa156,
VCellUTCStep); the library list adds pyvcell[native,ode] 0.5.1 to the shared image only. Both change the definition, so
the next run rebuilds registry_env. registry_env's interface manifest is regenerated from that image next.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jcschaff and others added 2 commits October 24, 2026 15:11
…TCStep solves models with events)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ted manifest, Ciliberto on three solvers

- registry/manifests/registry_env.json: regenerated by registry-manifests.yml from registry_env:0f31dda (pbsim-common
  0.1.3.dev1 with VCellUTCStep, pyvcell 0.5.2).
- registry/solvers.yaml: vcell, VCell's Combined CVODE/IDA solver, KISAO:0000019 and KISAO:0000283.
- tests/simulators/test_sedml.py runs Ciliberto 2003 on copasi, tellurium and vcell and compares both to copasi
  (fixture Ciliberto2003.vcell.omex, translated as the others). Its four events are why pyvcell 0.5.2 is needed: 0.5.1
  dropped events on the round trip, and VCell left COPASI's answer at the first one.
- /sedml/run with no solvers named now runs vcell too: the route tests expect three members.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jcschaff
jcschaff marked this pull request as ready for review October 24, 2026 19:25
@jcschaff
jcschaff marked this pull request as draft October 24, 2026 19:25
jcschaff and others added 2 commits October 24, 2026 15:32
The suite test names its solvers (copasi, tellurium), as suite.yaml files do, so its run counts no longer move when
a solver is registered; a project run with no solvers named now runs vcell too; the image's library list includes
pyvcell[native,ode].

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jcschaff
jcschaff marked this pull request as ready for review October 24, 2026 19:41
@jcschaff
jcschaff merged commit 1be51b6 into main Oct 24, 2026
15 checks passed
@jcschaff jcschaff mentioned this pull request Oct 24, 2026
@jcschaff
jcschaff deleted the feat/vcell-solver branch October 27, 2026 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant