CRC Simulation GUI
File for calculating LifeCRC model based on various health parameters and their variations.
1"""
2File for calculating LifeCRC model based on various health parameters and their variations.
3"""
4from biomodel.models import LifeCRC
5from biomodel.gui import InterfaceModel
6from biomodel.biomodel import OMOPId
7
8if __name__ == '__main__':
9 age = OMOPId("age")
10 waist = OMOPId(4172830)
11 height = OMOPId(607590)
12 alcohol = OMOPId(4027639)
13 smoking = OMOPId(1585856)
14 physical = OMOPId(4038719)
15 vegetable = OMOPId(4025582)
16 dairy = OMOPId(4022880)
17 processed = OMOPId(4028164)
18 sugar = OMOPId(4023854)
19
20 current = {
21 age: 50,
22 waist: 85,
23 height: 170,
24 alcohol: 0,
25 smoking: 0,
26 physical: 0,
27 vegetable: 200 / 100,
28 dairy: 300 / 100,
29 processed: 50 / 50,
30 sugar: 50 / 50,
31 }
32
33 variation = {
34 "Physical Activity": {physical: 1},
35 "Alcohol Consumption": {alcohol: 1},
36 "Vegetable Consumption": {vegetable: 300 / 100},
37 }
38
39 model = InterfaceModel(LifeCRC(), current, variation)
40 model.run()
