Module containg all "Scope routines"
scope
(function)scope($Net,seed)
calculate the scope of the seed. Inhibition is ignored. This represents the so called "static mode"
$a=$MP->cIDMS(['someID']); $b=scope($MP,$a);
iscope
(function)iscope($Net,max,seed,block)
calculate the scope of the seed. Inhibition is considered. This represents the so called "dynamic mode". seed and block contain compounds always present or blocked. Returns a list of hases, one hash per time point. such a hash stores the presence of thecompound under the key "scope" and the depletion under key "depl". The calculation stops if either a static or cyclic solution is detected.
$a=$MP->cIDMS(['someID']); $b=iscope($MP,1000,$a); # no blocked compounds
iscopeRun
(function)iscopeRun($Net,min,max,scopes,seed,block)
calculate the scope of the seed, continuing from last calculation. Inhibition is considered. This represents the so called "dynamic mode". seed and block contain compounds always present or blocked. scopes is a list of hases, one hash per time point. such a hash stores the presence of thecompound under the key "scope" and the depletion under key "depl". min forces min steps even if static or cyclic solution is encountered earlier. set min=n and max=n to calculate exactly n steps.
$a=$MP->cIDMS(['someID']); $b=iscopeRun($MP,10,10,scopes,$seed,$block);
iscopeStep
(function)iscopeStep($Net,scope,depl,seed,block)
calculate one iteration. Inhibition is considered. This represents the so called "dynamic mode". scope and depl are the arrays containg the current state of the compound (scope=present, depl=depleted). seed and block contain compounds always present or blocked. Updates scope and depl.
$b=iscopeStep($MP,$scope,$depl,$seed,$block);