pwExtractRules


 m2 = pwExtractRules(xPatterns)

 Extracts reaction rules from the highest currently selected model
 in order to reduce the complexity of the model formulation.

 

Arguments for pwExtractRules

 xPatterns   Cell array of PottersWheel species patterns
             defining all possible x variables.

 m2          PottersWheel model struct with rule-based reactions if possible.
             Can be saved to harddisk using pwSaveModel.


 

Example

 pwClear;
 pwAddModelFromLibrary('Schoeberl2002_EGF_MAPK_PWcurated', '.')

 xPatterns = {};
 xPatterns{end+1} = ...
 'E_<o|R|iR|pR|ipR|idegR>_<o|R|iR|pR|ipR|idegR>_<o|Ga>_<o|Sh|aSh>_<o|G2>_<o|So>_<o|Rs>_<o|Gd|Gt>_<o|Pr>';
 xPatterns{end+1} = '<o|Sh|aSh>_<o|G2>_<o|So>';
 xPatterns{end+1} = '<o|Rf|iRf>_<o|Rs|iRs>_<Gd|aGt|Gt>';
 xPatterns{end+1} = '<Me|iMe|pMe|piMe|ppMe>_<o|iaRf|aRf>_<o|Phs2|iPhs2>';
 xPatterns{end+1} = '<Er|pEr|ppEr|piEr|iEr|ppiEr>_<o|ppMe|ppiMe>';
 xPatterns{end+1} = '<Er|pEr|ppEr|piEr|iEr|ppiEr>_<o|Phs2|Phs3|iPhs2|iPhs3>';

 m2 = pwExtractRules(xPatterns);
 pwSaveModel(m2, 'newModel.m');

See also

pwAddR