Skip to content

Add mechanical PEtab v2 conversions of the v1 problems - #338

Draft
dweindl wants to merge 2 commits into
PEtab-dev:mainfrom
dweindl:v1_v2_update
Draft

dweindl wants to merge 2 commits into
PEtab-dev:mainfrom
dweindl:v1_v2_update

Conversation

@dweindl

@dweindl dweindl commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

Adds src/python/v1_v2.py and its output: mechanical PEtab v2 conversions of all v1 problems that don't have a v2 encoding yet, generated with petab1to2(reparametrize="all") (libpetab main at PEtab-dev/libpetab-python@bacc686, after 0.10.0). All estimated log-scaled parameters are reparametrized as log10_<id> / log_<id>. The existing hand-refined encodings of Boehm_JProteomeRes2014 and Schwen_PONE2014 are kept. Froehlich_CellSystems2018 is skipped, because the generated condition table is huge.

This is meant as a starting point for testing v2 tools. Refinement of the individual problems follows separately.

For all converted problems except the large ones (Chen_MSB2009, Lang_PLOSComputBiol2024, Smith_BMCSystBiol2013, SalazarCavazos_MBoC2020), log-likelihood and gradient computed with AMICI agree between v1 and v2 (relative llh difference ≤ 2e-8, gradient difference ≤ 4e-4 relative to the largest gradient entry, at nominal and at shifted parameters). Log-priors are identical where priors are defined.

Known issues:

  • Bachmann_MSB2011: numeric 0 overrides of placeholders that are now log-transformed refer to a new non-estimated parameter negative_infinity (nominal value -inf). Since PEtab 2.0 erratum E3 (v2 spec: allow infinite parameter values (erratum E3) PEtab#687), -inf can be used directly in the measurement table; this requires a change in libpetab's reparametrize_log.
  • Fujita_SciSignal2010 and Giordano_Nature2020: petablint warns about conditions that aren't used in the experiments table. These conditions are already unused in the v1 problems.

Supersedes #270.

🤖 Generated with Claude Code

Add `src/python/v1_v2.py`, which converts the v1 problems without a v2
encoding with `petab1to2(reparametrize="all")` (requires
libpetab-python#539), and its output for 32 problems.
`Froehlich_CellSystems2018` is skipped, because the generated condition
table is huge. The existing v2 encodings of `Boehm_JProteomeRes2014` and
`Schwen_PONE2014` are kept.

These conversions are a starting point for testing v2 tools; refinement
follows separately.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dweindl dweindl self-assigned this Oct 21, 2026
@dweindl dweindl mentioned this pull request Oct 21, 2026
Regenerated with `v1_v2.py --overwrite` using libpetab main (bacc686).
Only three problems change:

* `Bachmann_MSB2011`: the remaining six log-scaled parameters
  (`offset_pSTAT5_*`, `sd_pSTAT5_socs3oe`) are now reparametrized as well.
  Zero-valued overrides of the affected placeholders refer to a new
  non-estimated parameter `negative_infinity`. The log-prior now matches
  v1 exactly.
* `Brannmark_JBC2010`, `Isensee_JCB2018`: the v1 `experimentId` column is
  renamed to `experimentId_v1` instead of a random name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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