예제 #1
0
def bind_table(table, **kwargs):
    """Alias for pysb.macros.bind_table with default binding sites."""

    return macros.bind_table(table, 'bf', 'bf', **kwargs)
예제 #2
0
파일: fig2c.py 프로젝트: spgarbet/pysb
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 "===="
예제 #3
0
파일: shared.py 프로젝트: LoLab/anrm
def bind_table(table, **kwargs):
    """Alias for pysb.macros.bind_table with default binding sites."""

    return macros.bind_table(table, 'bf', 'bf', **kwargs)
예제 #4
0
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"