Skip to content

Commit

Permalink
Update script to save BIOMD0000000562 to sbml qual examples
Browse files Browse the repository at this point in the history
  • Loading branch information
nanglo123 committed Apr 25, 2024
1 parent 946dda6 commit 7ebffad
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

from mira.sources.sbml import template_model_from_sbml_qual_string
from mira.modeling.amr.regnet import template_model_to_regnet_json
from mira.sources.biomodels import get_sbml_model



models = [
Expand Down Expand Up @@ -46,3 +48,10 @@
regnet = template_model_to_regnet_json(tm)
with open(f"regnet_amr_sbml/{model}.json", "w") as fh:
json.dump(regnet, fh, indent=1)

model_id = "BIOMD0000000562"
model_text = get_sbml_model(model_id)
tm = template_model_from_sbml_qual_string(model_text)
regnet = template_model_to_regnet_json(tm)
with open(f"regnet_amr_sbml/{model_id}.json", "w") as fh:
json.dump(regnet, fh, indent=1)
68 changes: 46 additions & 22 deletions scripts/covid19_diseasemaps/regnet_amr_sbml/BIOMD0000000562.json
Original file line number Diff line number Diff line change
Expand Up @@ -274,140 +274,164 @@
{
"id": "t4",
"source": "map3k1",
"target": "mkk4",
"target": "mkk7",
"sign": true
},
{
"id": "t5",
"source": "map3k7",
"target": "nik",
"target": "mkk4",
"sign": true
},
{
"id": "t6",
"source": "map3k1",
"target": "mkk4",
"sign": true
},
{
"id": "t7",
"source": "map3k7",
"target": "nik",
"sign": true
},
{
"id": "t8",
"source": "mkk7",
"target": "jnk",
"sign": true
},
{
"id": "t7",
"id": "t9",
"source": "tnfr",
"target": "traf2",
"sign": true
},
{
"id": "t8",
"id": "t10",
"source": "egfr",
"target": "pi3k",
"sign": true
},
{
"id": "t9",
"id": "t11",
"source": "ikk",
"target": "ikb",
"sign": true
},
{
"id": "t12",
"source": "ex",
"target": "ikb",
"sign": true
},
{
"id": "t10",
"id": "t13",
"source": "mek",
"target": "erk",
"sign": true
},
{
"id": "t11",
"id": "t14",
"source": "ras",
"target": "map3k1",
"sign": true
},
{
"id": "t12",
"id": "t15",
"source": "ras",
"target": "raf1",
"sign": true
},
{
"id": "t13",
"id": "t16",
"source": "tnfa",
"target": "tnfr",
"sign": true
},
{
"id": "t14",
"id": "t17",
"source": "traf2",
"target": "map3k7",
"sign": true
},
{
"id": "t15",
"id": "t18",
"source": "traf2",
"target": "ask1",
"sign": true
},
{
"id": "t16",
"id": "t19",
"source": "akt",
"target": "akt",
"sign": false
},
{
"id": "t17",
"id": "t20",
"source": "pi3k",
"target": "akt",
"sign": true
},
{
"id": "t18",
"id": "t21",
"source": "egf",
"target": "egfr",
"sign": true
},
{
"id": "t19",
"id": "t22",
"source": "ikb",
"target": "ikb",
"sign": false
},
{
"id": "t20",
"id": "t23",
"source": "nfkb",
"target": "ex",
"sign": true
},
{
"id": "t21",
"id": "t24",
"source": "cjun",
"target": "ap1",
"sign": true
},
{
"id": "t22",
"id": "t25",
"source": "jnk",
"target": "cjun",
"sign": true
},
{
"id": "t23",
"id": "t26",
"source": "erk",
"target": "ph",
"sign": true
},
{
"id": "t24",
"id": "t27",
"source": "raf1",
"target": "mek",
"sign": true
},
{
"id": "t25",
"id": "t28",
"source": "sos",
"target": "ras",
"sign": true
},
{
"id": "t26",
"id": "t29",
"source": "egfr",
"target": "sos",
"sign": true
},
{
"id": "t30",
"source": "ph",
"target": "sos",
"sign": true
}
],
"parameters": []
Expand Down

0 comments on commit 7ebffad

Please sign in to comment.