Commit 7dc26ae5 authored by paulflang's avatar paulflang Committed by Miroslav Kratochvil
Browse files

add reversible flag

parent 81d112ec
...@@ -353,6 +353,9 @@ function extractModel(mdl::VPtr)::SBML.Model ...@@ -353,6 +353,9 @@ function extractModel(mdl::VPtr)::SBML.Model
end end
end end
# explicit reversible flag (defaults to true in SBML)
reversible = Bool(ccall(sbml(:Reaction_getReversible), Cint, (VPtr,), re))
reid = get_string(re, :Reaction_getId) reid = get_string(re, :Reaction_getId)
reactions[reid] = Reaction( reactions[reid] = Reaction(
stoi, stoi,
...@@ -361,6 +364,7 @@ function extractModel(mdl::VPtr)::SBML.Model ...@@ -361,6 +364,7 @@ function extractModel(mdl::VPtr)::SBML.Model
haskey(objectives_fbc, reid) ? objectives_fbc[reid] : oc, haskey(objectives_fbc, reid) ? objectives_fbc[reid] : oc,
association, association,
math, math,
reversible,
get_notes(re), get_notes(re),
get_annotation(re), get_annotation(re),
) )
......
...@@ -117,9 +117,11 @@ struct Reaction ...@@ -117,9 +117,11 @@ struct Reaction
oc::Float64 oc::Float64
gene_product_association::Maybe{GeneProductAssociation} gene_product_association::Maybe{GeneProductAssociation}
kinetic_math::Maybe{Math} kinetic_math::Maybe{Math}
reversible::Bool
notes::Maybe{String} notes::Maybe{String}
annotation::Maybe{String} annotation::Maybe{String}
Reaction(s, l, u, o, as, km, n = nothing, an = nothing) = new(s, l, u, o, as, km, n, an) Reaction(s, l, u, o, as, km, r, n = nothing, an = nothing) =
new(s, l, u, o, as, km, r, n, an)
end end
""" """
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment