Skip to content

v3.0.0a1

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 25 Nov 17:59
· 11 commits to main since this release

Official alpha pre-release of BioNetGen 3 (BNG3), built from main at 40df7068.

What's Changed

Core Engine, Parser & Network Generation

  • In-process C++17 architecture: Replaces the Perl BNG2.pl pipeline with a native ANTLR4 BNGL parser, compiled model IR, canonical graph-isomorphism network generator, and in-process action dispatcher (generate_network, simulate*, parameter_scan, bifurcate, read*/write*, visualize).
  • BNGL language & modeling features: Supports compartments, physical units (begin units), energy patterns and thermodynamic kinetics, population maps, TFUN tables, MM/Sat/Hill/Arrhenius rate laws, and rule modifiers (DeleteMolecules, MoveConnected, MatchOnce, reactant/product filters).

Simulation Backends

  • Finite-network solvers: SUNDIALS CVODE/IDA for ODE, DAE, constant-delay DDE, and native SBML events; exact Gillespie SSA (with native SBML events and optional Metal/CUDA GPU batch SSA); Partitioned Leaping (pla); and Partial Scaling (psa).
  • Network-free & hybrid solvers: Introduces NFnext (default for method="nf", with optional Metal/CUDA GPU graph mode) alongside embedded NFcore (method="nfcore", plus standalone NFsim CLI binary) and hybrid particle/population execution.
  • Optional JAX backend: CPU ODE/SSA integration via bionetgen[jax].

SBML, Atomizer & Exporters

  • SBML Level 3 Core, comp, and multi: Native import/export with dynamic assignment/rate/algebraic rules, delays, events, and piecewise fast reactions; unsupported constructs (including fbc flux-balance models) fail closed with explicit diagnostics.
  • Multi-format export: .net, .bngl, .xml, SBML, MATLAB/MEX, Python, C++, LaTeX, MDL, and SSC, plus bngir semantic IR and equivalence verification.

Python API, CLI & Packaging

  • Python API & CLI: Native bionetgen package (bionetgen.load(), bionetgen.run(), model.simulate(), NumPy-backed SimResult), Click CLI (bionetgen run|execute|check|export|atomize|scan|sensitivity|visualize|plot|info|notebook|graphdiff), standalone bng_cpp and NFsim binaries, and scoped PyBioNetGen compatibility wrappers.
  • Cross-platform distributions: Pre-built wheels for CPython 3.9–3.14 on Linux (x86_64, aarch64), macOS (arm64, x86_64), and Windows (x86_64), plus standalone CLI archives and source distribution.

Verification & Hardening

  • Independent parity & formal checks: Validated against pinned BNG2 (2.9.5), NFsim (v2.0.1), PyBioNetGen (0.8.7 lineage), libRoadRunner, the official SBML Test Suite, curated BioModels, and a Lean 4 formal semantic kernel.
  • Adversarial bug & security audits: Includes multi-round semantic, numerical, corpus, and ASan/UBSan security hardening across the parser, solvers, NFcore/NFnext, SBML/Atomizer, and I/O writers (#1073–#1075).

Breaking Changes from bionetgen < 3.0 (PyBioNetGen)

  • bionetgen.load() returns BioNetGenModel (replacing bngmodel) and bionetgen.run() returns NumPy-backed SimulationResult objects rather than file paths.
  • The default CLI uses Click instead of Cement, and network-free method="nf" defaults to NFnext (use method="nfcore" for embedded NFcore).
  • Pin bionetgen<3 to stay on legacy PyBioNetGen.

Notes

What's Changed

New Contributors

Full Changelog: https://github.com/RuleWorld/BNG3/commits/v3.0.0a1