Skip to content

Add levelComplexConcs and getComplexFamilies, and a perComplex option for flexibilizeEnzConcs - #19

Merged
edkerk merged 1 commit into
developfrom
feat/level-complex-concs
Oct 31, 2026
Merged

edkerk merged 1 commit into
developfrom
feat/level-complex-concs

Conversation

@edkerk

@edkerk edkerk commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

levelComplexConcs gives every enzyme complex one abundance between fillEnzConcs and constrainEnzConcs: per complex it takes the median (or mean) of the measured, owned subunits' concs / MW / copies and writes back copies * summary * MW. Unmeasured owned subunits are filled, subunits shared by several complexes keep their measurement, and the result lists what was adjusted, added, skipped and shared.

getComplexFamilies groups the enzymes of multi-subunit reactions into complexes from ec.rxnEnzMat.

flexibilizeEnzConcs takes perComplex (default false): it ranks complexes by the growth gained per fold of raising all their caps and raises all subunits of the chosen complex by one factor, so levelled ratios are kept.

The functions behave as level_complex_concs, complex_families and flexibilize_enz_concs(per_complex=True) in geckopy (CompMetEng/geckopy#63). Parity: CompMetEng/raven-gecko-parity#131.

@github-actions

Copy link
Copy Markdown

Unit test results

63 tests   63 ✅  10s ⏱️
 1 suites   0 💤
 1 files     0 ❌

Results for commit 6a4b905.

@edkerk
edkerk merged commit 3be3a70 into develop Oct 31, 2026
2 checks passed
@edkerk
edkerk deleted the feat/level-complex-concs branch October 31, 2026 20:57
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