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
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)
reactions[reid] = Reaction(
stoi,
......@@ -363,6 +366,7 @@ function extractModel(mdl::VPtr)::SBML.Model
haskey(objectives_fbc, reid) ? objectives_fbc[reid] : oc,
association,
math,
reversible,
get_notes(re),
get_annotation(re),
)
......
......@@ -117,9 +117,11 @@ struct Reaction
oc::Float64
gene_product_association::Maybe{GeneProductAssociation}
kinetic_math::Maybe{Math}
reversible::Bool
notes::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
"""
......
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