def test_set_context():
    st = Phosphorylation(Agent('MAP2K1'), Agent('MAPK3'))
    pa = PysbAssembler([st])
    pa.make_model()
    assert pa.model.parameters['MAP2K1_0'].value == pa.default_initial_amount
    assert pa.model.parameters['MAPK3_0'].value == pa.default_initial_amount
    pa.set_context('A375_SKIN')
    assert pa.model.parameters['MAP2K1_0'].value > 10000
    assert pa.model.parameters['MAPK3_0'].value > 10000
Exemplo n.º 2
0
def test_set_context():
    st = Phosphorylation(Agent('MAP2K1'), Agent('MAPK3'))
    pa = PysbAssembler([st])
    pa.make_model()
    assert pa.model.parameters['MAP2K1_0'].value == pa.default_initial_amount
    assert pa.model.parameters['MAPK3_0'].value == pa.default_initial_amount
    pa.set_context('A375_SKIN')
    assert pa.model.parameters['MAP2K1_0'].value > 10000
    assert pa.model.parameters['MAPK3_0'].value > 10000
def test_set_context_monomer_notfound():
    st = Phosphorylation(Agent('MAP2K1'), Agent('XYZ'))
    pa = PysbAssembler([st])
    pa.make_model()
    assert pa.model.parameters['MAP2K1_0'].value == pa.default_initial_amount
    assert pa.model.parameters['XYZ_0'].value == pa.default_initial_amount
    pa.add_default_initial_conditions(100)
    assert pa.model.parameters['MAP2K1_0'].value == 100
    assert pa.model.parameters['XYZ_0'].value == 100
    pa.set_context('A375_SKIN')
    assert pa.model.parameters['MAP2K1_0'].value > 10000
    assert pa.model.parameters['XYZ_0'].value == pa.default_initial_amount
Exemplo n.º 4
0
def test_set_context_monomer_notfound():
    st = Phosphorylation(Agent('MAP2K1'), Agent('XYZ'))
    pa = PysbAssembler([st])
    pa.make_model()
    assert pa.model.parameters['MAP2K1_0'].value == pa.default_initial_amount
    assert pa.model.parameters['XYZ_0'].value == pa.default_initial_amount
    pa.add_default_initial_conditions(100)
    assert pa.model.parameters['MAP2K1_0'].value == 100
    assert pa.model.parameters['XYZ_0'].value == 100
    pa.set_context('A375_SKIN')
    assert pa.model.parameters['MAP2K1_0'].value > 10000
    assert pa.model.parameters['XYZ_0'].value == pa.default_initial_amount
def test_set_context_celltype_notfound():
    st = Phosphorylation(Agent('MAP2K1'), Agent('MAPK3'))
    pa = PysbAssembler([st])
    pa.make_model()
    pa.set_context('XYZ')
Exemplo n.º 6
0
def test_set_context_celltype_notfound():
    st = Phosphorylation(Agent('MAP2K1'), Agent('MAPK3'))
    pa = PysbAssembler([st])
    pa.make_model()
    pa.set_context('XYZ')