Unverified Commit 4010ae63 authored by Miroslav Kratochvil's avatar Miroslav Kratochvil Committed by GitHub
Browse files

Merge pull request #57 from LCSB-BioCore/mk-reversible

add reversible flag
parents 84d39477 7dc26ae5
...@@ -355,6 +355,9 @@ function extractModel(mdl::VPtr)::SBML.Model ...@@ -355,6 +355,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,
...@@ -363,6 +366,7 @@ function extractModel(mdl::VPtr)::SBML.Model ...@@ -363,6 +366,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
""" """
......
Markdown is supported
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