Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LCSB-BioCore
SBML.jl
Commits
7dc26ae5
Commit
7dc26ae5
authored
Jun 14, 2021
by
paulflang
Committed by
Miroslav Kratochvil
Jun 14, 2021
Browse files
add reversible flag
parent
81d112ec
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/readsbml.jl
View file @
7dc26ae5
...
...
@@ -353,6 +353,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,
...
...
@@ -361,6 +364,7 @@ function extractModel(mdl::VPtr)::SBML.Model
haskey(objectives_fbc, reid) ? objectives_fbc[reid] : oc,
association,
math,
reversible,
get_notes(re),
get_annotation(re),
)
...
...
src/structs.jl
View file @
7dc26ae5
...
...
@@ -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
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment