-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
bugSomething isn't workingSomething isn't working
Description
The keywords used as rule modifiers, such as DeleteMolecules and TotalRate are not being output to strings. The result is these keywords are deleted upon output by PyBNG, which creates a model with rules missing the keywords that is not equivalent to the model initially read by PyBNG. An example is provided in the attached bngl and python files. The bngl file has a rule with the DeleteMolecules keyword. When the model is read by PyBNG, the output of the rule does not contain the keyword.
test_deleteMolecules.bngl
begin model
begin parameters
kdl 0.03 #CBL degrades ZAP/SYK
end parameters
begin molecule types
A(State~UZAP~PZAP~SHP~uSYK~pSYK,CBL)
Zeta(receptor,ITAM1~U~PP,ITAM2~U~PP,ITAM3~U~PP,ITAM4~U~PP,ITAM5~U~PP,ITAM6~U~PP)
CBL(site)
dead()
end molecule types
begin seed species
A(State~UZAP,CBL) 1
Zeta(receptor,ITAM1~U,ITAM2~U,ITAM3~U,ITAM4~U,ITAM5~U,ITAM6~U) 1
CBL(site) 1
end seed species
begin reaction rules
CBL_degrade_ITAM1: Zeta(ITAM1!1).A(State!1,CBL!3).CBL(site!3) -> dead() kdl DeleteMolecules
end reaction rules
end model
writeModel({suffix=>"changed",evaluate_expressions=>1,overwrite=>1})
run_pybng.py
mname="test_deleteMolecules"
model= bionetgen.bngmodel(mname+".bngl")
print(model.rules)Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working