def bind_table(table, **kwargs): """Alias for pysb.macros.bind_table with default binding sites.""" return macros.bind_table(table, 'bf', 'bf', **kwargs)
Initial(Noxa(bf=None), Parameter('Noxa_0', 1)) Initial(Hrk(bf=None), Parameter('Hrk_0', 1)) Initial(Puma(bf=None), Parameter('Puma_0', 1)) Initial(Bmf(bf=None), Parameter('Bmf_0', 1)) Initial(Bcl2(bf=None), Parameter('Bcl2_0', 1)) Initial(BclXL(bf=None), Parameter('BclXL_0', 1)) Initial(BclW(bf=None), Parameter('BclW_0', 1)) Initial(Mcl1(bf=None), Parameter('Mcl1_0', 1)) Initial(Bfl1(bf=None), Parameter('Bfl1_0', 1)) # This is the code shown for "Example Macro Call" (not printed here) bind_table([[Bcl2, BclXL, BclW, Mcl1, Bfl1], [Bid, 66, 12, 10, 10, 53], [Bim, 10, 10, 38, 10, 73], [Bad, 11, 10, 60, None, None], [Bik, 151, 10, 17, 109, None], [Noxa, None, None, None, 19, None], [Hrk, None, 92, None, None, None], [Puma, 18, 10, 25, 10, 59], [Bmf, 24, 10, 11, 23, None]], 'bf', 'bf', kf=1e3) generate_equations(model) num_rules = len(model.rules) num_odes = len(model.odes) print "BNGL Rules" print "==========" print num_rules, "rules" print print "ODEs" print "===="
Initial(Hrk(bf=None), Parameter('Hrk_0', 1)) Initial(Puma(bf=None), Parameter('Puma_0', 1)) Initial(Bmf(bf=None), Parameter('Bmf_0', 1)) Initial(Bcl2(bf=None), Parameter('Bcl2_0', 1)) Initial(BclXL(bf=None), Parameter('BclXL_0', 1)) Initial(BclW(bf=None), Parameter('BclW_0', 1)) Initial(Mcl1(bf=None), Parameter('Mcl1_0', 1)) Initial(Bfl1(bf=None), Parameter('Bfl1_0', 1)) # This is the code shown for "Example Macro Call" (not printed here) bind_table([[ Bcl2, BclXL, BclW, Mcl1, Bfl1], [Bid, 66, 12, 10, 10, 53], [Bim, 10, 10, 38, 10, 73], [Bad, 11, 10, 60, None, None], [Bik, 151, 10, 17, 109, None], [Noxa, None, None, None, 19, None], [Hrk, None, 92, None, None, None], [Puma, 18, 10, 25, 10, 59], [Bmf, 24, 10, 11, 23, None]], 'bf', 'bf', kf=1e3) generate_equations(model) num_rules = len(model.rules) num_odes = len(model.odes) print "BNGL Rules" print "==========" print num_rules, "rules" print print "ODEs"