PEtab-dev / PEtab

PEtab - an SBML and TSV based data format for parameter estimation problems in systems biology
https://petab.readthedocs.io
MIT License
56 stars 12 forks source link

Allow formulas in condition table #577

Open matthiaskoenig opened 1 month ago

matthiaskoenig commented 1 month ago

Conditions should be calculable based on the model variables and parameters. E.g. I want to change S1 to 2*S1 in a condition. I.e. formulas should be allowed in the condition table.

This would require additional information which values should be used similar to EventAssignments.

The time at which the expression in math is evaluated is determined by the attribute useValuesFromTriggerTime on Event. If the attribute value is “true”, the expression must be evaluated when the event is triggered ; more precisely, the values of identifiers occurring in MathML ci elements in the EventAssignment’s math expression are the values they have at the point when the event triggered. If, instead, useValuesFromTriggerTime’s value is “false”, it means the values at execution time should be used; that is, the values of identifiers occurring in MathML ci attributes in the EventAssignment’s math expression are the values they have at the point when the event executed.

dweindl commented 1 month ago

This is part of https://github.com/PEtab-dev/PEtab/pull/581