Genetic Framingham Simulation Graph

This file contains code to interact with the FraminghamGenetics model using the InterfaceModel class. It also defines various OMOPIds and their corresponding values for input parameters. Additionally, it sets up current and variation dictionaries to represent different scenarios for the model.

 1"""
 2This file contains code to interact with the FraminghamGenetics model using the InterfaceModel class. It also defines various OMOPIds and their corresponding values for input parameters. Additionally, it sets up current and variation dictionaries to represent different scenarios for the model.
 3"""
 4from biomodel.models import FraminghamGenetics
 5from biomodel.gui import InterfaceModel
 6from biomodel.biomodel import OMOPId
 7
 8if __name__ == '__main__':
 9
10    sex = OMOPId("sex")
11    age = OMOPId("age")
12    coltot = OMOPId(4224820)
13    hdl = OMOPId(4011133)
14    tas = OMOPId(4152194)
15    tad = OMOPId(4154790)
16    smoke = OMOPId(1585856)
17    diab = OMOPId(35817874)
18    rs12526453 = OMOPId(9999999)
19    rs1333049 = OMOPId(9999998)
20    rs1474787 = OMOPId(9999997)
21    rs1515098 = OMOPId(9999996)
22    rs17465637 = OMOPId(9999995)
23    rs3184504 = OMOPId(9999994)
24    rs501120 = OMOPId(9999993)
25    rs6725887 = OMOPId(9999992)
26    rs9818870 = OMOPId(9999991)
27    rs9982601 = OMOPId(9999990)
28
29
30    current = {
31        sex: 1,
32        age: 50,
33        coltot: 250,
34        hdl: 23,
35        tas: 200,
36        tad: 100,
37        smoke: 1,
38        diab: 1,
39        rs12526453: 0,
40        rs1333049: 0,
41        rs1474787: 0,
42        rs1515098: 0,
43        rs17465637: 0,
44        rs3184504: 0,
45        rs501120: 0,
46        rs6725887: 0,
47        rs9818870: 0,
48        rs9982601: 0,
49    }
50
51    variation = {
52        "No smoke": {smoke: 0},
53        "No smoke & CH control": {smoke: 0, coltot: 180, hdl: 50},
54        "Full control": {
55            coltot: 180,
56            hdl: 50,
57            tas: 125,
58            tad: 80,
59            smoke: 0,
60        },
61    }
62    model = InterfaceModel(FraminghamGenetics(), current, variation)
63    model.run()
../_images/fr_gui_genetics.png