You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just came across a model that does something like
begin model
begin parameters
k1 1
k2 2
end parameters
begin molecule types
A()
B()
end molecule types
begin seed species
A() 1
B() 0
end seed species
begin reaction rules
Rule1: A() -> B() k1*k2 # Causes trouble
end reaction rules
end model
generate_network({overwrite=>1})
writeSBML()
Unfortunately, the SBML export is invalid. While a initialAssignment with id of _rateLaw1 is specified for the expression k1*k2, _rateLaw1 needs to be defined (e.g. as parameter), so that there is something the initial assignment can assign the value k1*k2 to (see attached files; sorry had to change the ending for upload here)
Thanks very much for reporting this. This problem has been reported previously in issue #271, which has been closed. Unfortunately, you are still seeing the problem because the updated code is not yet included in the latest release, which we plan to make in the coming weeks. I would also like to implement a fix for #270 and some other issues we have identified in PyBioNetGen.
I just came across a model that does something like
Unfortunately, the SBML export is invalid. While a
initialAssignment
withid
of_rateLaw1
is specified for the expressionk1*k2
,_rateLaw1
needs to be defined (e.g. as parameter), so that there is something the initial assignment can assign the valuek1*k2
to (see attached files; sorry had to change the ending for upload here)cc @NikosMemmos
model_sbml.txt
model_sbml_corrected.txt
The text was updated successfully, but these errors were encountered: