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.1983739245776053,
      "0.2": 2.5363620776553457,
      "0.3": 2.436711607907062,
      "0.4": 0.5914803251551113,
      "0.5": 2.7266290388337096,
      "0.6": 2.987058472364314,
      "0.7": 1.8067991275688344,
      "0.8": 1.5971999223221482,
      "0.9": 2.985848941987662
    },
    "Triose_Gly3Phos_DHAP": {
      "0.0": 0.6,
      "0.1": 0.5221595437236503,
      "0.2": 0.5297061170551594,
      "0.3": 0.586191211668952,
      "0.4": 0.5755015626388646,
      "0.5": 0.4833763014349227,
      "0.6": 0.565367877850768,
      "0.7": 0.6135455630209389,
      "0.8": 0.47388555669794036,
      "0.9": 0.525587237789623
    },
    "Acetaldehyde": {
      "0.0": 0.08,
      "0.1": 0.07335847757466098,
      "0.2": 0.07469875170415624,
      "0.3": 0.0718619640542132,
      "0.4": 0.0699820855465387,
      "0.5": 0.07923362091922818,
      "0.6": 0.07769833084599177,
      "0.7": 0.06956725055726136,
      "0.8": 0.07687768428416844,
      "0.9": 0.08026836210155419
    },
    "NAD": {
      "0.0": 0.6,
      "0.1": 0.5841409532180413,
      "0.2": 0.5961091936765491,
      "0.3": 0.5630255561918883,
      "0.4": 0.5360152926370225,
      "0.5": 0.6378600617678998,
      "0.6": 0.6212565709804302,
      "0.7": 0.5316464759827021,
      "0.8": 0.6049708921917137,
      "0.9": 0.6438720638670604
    },
    "Pyruvate": {
      "0.0": 8.0,
      "0.1": 8.220380927546886,
      "0.2": 8.202222827767606,
      "0.3": 8.40165139576141,
      "0.4": 8.475770238504433,
      "0.5": 7.9956483200558255,
      "0.6": 8.152066919039898,
      "0.7": 8.564495552842915,
      "0.8": 8.23869522841845,
      "0.9": 8.018591712244719
    },
    "Glucose": {
      "0.0": 1.0,
      "0.1": 1.0399455773245339,
      "0.2": 1.1684877547443853,
      "0.3": 0.6678815286462901,
      "0.4": 0.21847971663407992,
      "0.5": 1.8449579543584138,
      "0.6": 1.3191883172507624,
      "0.7": 0.3462838529717516,
      "0.8": 1.333567494642774,
      "0.9": 1.7420046195814674
    },
    "extracellular acetaldehyde": {
      "0.0": 0.02,
      "0.1": 0.023408949181621806,
      "0.2": 0.023635093876566832,
      "0.3": 0.022569984291069062,
      "0.4": 0.02323832224267983,
      "0.5": 0.025309460567749815,
      "0.6": 0.024235445604066312,
      "0.7": 0.022156469648342586,
      "0.8": 0.024987140563799033,
      "0.9": 0.025394027997884906
    },
    "3PG": {
      "0.0": 0.7,
      "0.1": 0.5591927821086572,
      "0.2": 0.6434716381691741,
      "0.3": 0.5765348207216172,
      "0.4": 0.32292218151007246,
      "0.5": 0.7993548500057278,
      "0.6": 0.8426743908710579,
      "0.7": 0.4527754365586398,
      "0.8": 0.5291474310062764,
      "0.9": 0.9198436470742718
    },
    "F16P": {
      "0.0": 5.0,
      "0.1": 5.017062153821076,
      "0.2": 4.865760578551081,
      "0.3": 5.268158889293346,
      "0.4": 5.988570555350355,
      "0.5": 4.397323795385167,
      "0.6": 4.706268893633944,
      "0.7": 5.724625579020039,
      "0.8": 5.054335437521564,
      "0.9": 4.418749805556875
    }
  }
}

← All examples