Skip to content

Example — Perturb parameter

Category: Small (no AI) · Script: examples/small/06_perturb.py Minimal (2 lines): examples/minimal/perturb.py

Change vGAPD and re-simulate BIOMD0000000206.


How to run

pip install -e "src/praisonai-bio"
python examples/small/06_perturb.py

Needs: Internet + BASICO.


Tested output

Live capture from ./scripts/capture_example_outputs.sh.

Click to view full output
{
  "model_id": "BIOMD0000000206",
  "parameter": "vGAPD",
  "value": 1.5,
  "duration": 10,
  "result_preview": {
    "ATP": {
      "0.0": 2.0,
      "0.1": 2.1983739245764577,
      "0.2": 2.5363620776927105,
      "0.3": 2.4367116079296784,
      "0.4": 0.5914803244888495,
      "0.5": 2.726633800009045,
      "0.6": 2.9870503571215083,
      "0.7": 1.8067572077670315,
      "0.8": 1.5973452814223046,
      "0.9": 2.9858575167310293
    },
    "Triose_Gly3Phos_DHAP": {
      "0.0": 0.6,
      "0.1": 0.5221595437231071,
      "0.2": 0.5297061170548311,
      "0.3": 0.5861912116682712,
      "0.4": 0.5755015606499059,
      "0.5": 0.4833764214719952,
      "0.6": 0.5653686461246638,
      "0.7": 0.6135462912051038,
      "0.8": 0.4738832484958793,
      "0.9": 0.5255895092546194
    },
    "Acetaldehyde": {
      "0.0": 0.08,
      "0.1": 0.07335847757468154,
      "0.2": 0.07469875170436602,
      "0.3": 0.07186196405450508,
      "0.4": 0.06998208567838875,
      "0.5": 0.07923364277040648,
      "0.6": 0.07769822637043043,
      "0.7": 0.0695671215227605,
      "0.8": 0.07687791668388505,
      "0.9": 0.08026827520190408
    },
    "NAD": {
      "0.0": 0.6,
      "0.1": 0.5841409532182759,
      "0.2": 0.5961091936788686,
      "0.3": 0.5630255561924847,
      "0.4": 0.5360152936469499,
      "0.5": 0.6378602291420262,
      "0.6": 0.6212554883068715,
      "0.7": 0.5316452142573425,
      "0.8": 0.6049738666933683,
      "0.9": 0.6438720680210522
    },
    "Pyruvate": {
      "0.0": 8.0,
      "0.1": 8.220380927545433,
      "0.2": 8.202222827755952,
      "0.3": 8.401651395753671,
      "0.4": 8.475770234600862,
      "0.5": 7.99564713658697,
      "0.6": 8.152072447098028,
      "0.7": 8.56449825054115,
      "0.8": 8.238676686097142,
      "0.9": 8.018593974688102
    },
    "Glucose": {
      "0.0": 1.0,
      "0.1": 1.0399455773288608,
      "0.2": 1.1684877547702,
      "0.3": 0.6678815286632379,
      "0.4": 0.21847972482757524,
      "0.5": 1.8449597348080846,
      "0.6": 1.319175133938899,
      "0.7": 0.3462687950895955,
      "0.8": 1.3336584028648553,
      "0.9": 1.741993424672797
    },
    "extracellular acetaldehyde": {
      "0.0": 0.02,
      "0.1": 0.023408949181630556,
      "0.2": 0.02363509387661248,
      "0.3": 0.02256998429108233,
      "0.4": 0.023238322263884312,
      "0.5": 0.025309465070672662,
      "0.6": 0.024235416302239368,
      "0.7": 0.022156458867653953,
      "0.8": 0.0249871834859801,
      "0.9": 0.025394005811056438
    },
    "3PG": {
      "0.0": 0.7,
      "0.1": 0.559192782108747,
      "0.2": 0.6434716381814118,
      "0.3": 0.5765348207296078,
      "0.4": 0.3229221834459059,
      "0.5": 0.7993564671352608,
      "0.6": 0.8426703354577103,
      "0.7": 0.45276874627339964,
      "0.8": 0.5291648655530613,
      "0.9": 0.9198459980969327
    },
    "F16P": {
      "0.0": 5.0,
      "0.1": 5.0170621538183635,
      "0.2": 4.865760578523175,
      "0.3": 5.268158889277177,
      "0.4": 5.9885705491710945,
      "0.5": 4.397321214243571,
      "0.6": 4.706281113636682,
      "0.7": 5.724646234514172,
      "0.8": 5.054246049414715,
      "0.9": 4.41875569738944
    }
  }
}

← All examples