pwAddE


 m = pwAddE(m, variables, parameters, trigger, assignment, ID);
 m = pwAddE(m, trigger, assignment);

 Adds an event to a model, where an assignment is applied
 when a trigger fires.

 

ATTENTION

 The function pwAddE is currently reconstructed.
 Please try to use driving inputs, injections, or a startValueAssignment,
 if you have time dependent events. These possibilities are described below.
 Or contact support at potterswheel dot de.

 

Description

 As with pwAddA, a short and long version of pwAddE exists.
 In the second, shorter version, trigger and assignment are specified
 directly using the IDs of the involved players and parameters.
 In the longer version, first the players, then the parameters are listed.
 In this case, the trigger and assignment should contain r1, r2, ...
 and k1, k2, as in reaction rate signatures.

 

Examples

 m = pwAddE(m, {'Erk', 'Mek'}, {}, 'r2 >= 10', 'r1 = 0');
 m = pwAddE(m, 'Mek >= 10', 'Erk = 0');

 For time-dependent events it is strongly recommended to use
 either driving input functions or a startValueAssignment with custom time-point.

 I.e., instead of
 m = pwAddE(m, {'Erk'}, {}, 't >= 10', 'r1 = 5');
 please use either:

 If Erk is externally specified and jumps from 0 to 5 at time-point 10
 (Erk is not produced or reduced within the ODE, i.e. does not appear as a product or reactant):
 m = pwAddU(m, ID, uType, uTimes, uValues);
 m = pwAddU(m, 'Erk', 'steps', [0 10], [0 5]);

 If Erk is a parameter or an x variable and should be set to 5 a time-point 10
 (Erk may be produced or reduced within the ODE):
 m = pwAddA(m, lhs, reactants, parameters, ruleSignature, type, timePoint)
 m = pwAddA(m, 'Erk', {}, {}, '5', 'startValueAssignment', 10);

 If Erk is an x variable and should increase by 5 at time-point 10
 (Erk may be produced or reduced within the ODE):
 m = pwAddU(m, 'Erk', 'injection', [0 10], [0 5]);

See also

pwAddR
pwAddU
pwAddA