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
With SBML level 3 species conversion factors are allowed, but I do not think SBML.jl supports these yet (I have not found it in the SBML.Model struct). The code I would want to be able to run is;
using SBML
using Downloads
path = Downloads.download("https://raw.githubusercontent.com/sbmlteam/sbml-test-suite/release/cases/semantic/00976/00976-sbml-l3v2.xml", joinpath(@__DIR__, "model.xml"))
model = readSBML(path)
model.species["S1"].conversion_factor
Desired output
In case a species (like S1 here) has a conversion factor I would like the following output :
S1conv
While for species without conversion factor in the SBML.Species struct nothing should be returned.
Optional: Suggestions for implementation
I think this can be implemented by adding a conversion_factor field to SBML.Species , and a check that a given conversion factor is an identifier of a parameter in the model.
Hi! This is certainly doable and seems simple enough, thanks for suggestion!
I won't unfortunately have much time in the following few week to attend to this, but should eventually get to it. Pull request would be very welcome :]
Target functionality
With SBML level 3 species conversion factors are allowed, but I do not think SBML.jl supports these yet (I have not found it in the
SBML.Model
struct). The code I would want to be able to run is;Desired output
In case a species (like
S1
here) has a conversion factor I would like the following output :While for species without conversion factor in the
SBML.Species
structnothing
should be returned.Optional: Suggestions for implementation
I think this can be implemented by adding a
conversion_factor
field toSBML.Species
, and a check that a given conversion factor is an identifier of a parameter in the model.The description of conversion factor can be found under the heading The conversionFactor attribute in SBML Level 3 in the libSBML manual https://synonym.caltech.edu/software/libsbml/5.18.0/docs/formatted/python-api/classlibsbml_1_1_species.html.
The text was updated successfully, but these errors were encountered: