Gail GUI Simulation

Estimate breast cancer risk using Gail model based on personal information and medical history.

 1"""
 2Estimate breast cancer risk using Gail model based on personal information and medical history.
 3"""
 4from biomodel.models import Gail
 5from biomodel.gui import InterfaceModel
 6from biomodel.biomodel import OMOPId
 7
 8if __name__ == '__main__':
 9
10    age = OMOPId("age")
11    agemen = OMOPId(4162552)
12    nbiops = OMOPId(4078191)
13    ageflb = OMOPId(35810315)
14    numrel = OMOPId("first-degree-relatives-breast-cancer")
15    given_birth = OMOPId(35810313)
16
17    current = {
18        age: 47,
19        agemen: 15,
20        nbiops: 1,
21        ageflb: 32,
22        numrel: 0,
23        given_birth: True,
24    }
25
26    variation = {
27        "2 first-dgr. relatives with breast cancer": {
28            numrel: 2,
29        },
30    }
31    model = InterfaceModel(Gail(), current, variation)
32    model.run()
../_images/gail_ui.png