Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LCSB-BioCore
SBML.jl
Commits
3233b323
Commit
3233b323
authored
Apr 13, 2021
by
Miroslav Kratochvil
Browse files
extract boundary condition for species
parent
3f7edbe7
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/readsbml.jl
View file @
3233b323
...
...
@@ -231,6 +231,11 @@ function extractModel(mdl::VPtr)::Model
species[get_string(sp, :Species_getId)] = Species(
get_optional_string(sp, :Species_getName),
get_string(sp, :Species_getCompartment),
get_optional_bool(
sp,
:Species_isSetBoundaryCondition,
:Species_getBoundaryCondition,
),
formula,
charge,
ia,
...
...
src/structs.jl
View file @
3233b323
...
...
@@ -129,14 +129,15 @@ identifier, `formula`, `charge`, and additional `notes` and `annotation`.
struct
Species
name
::
Maybe
{
String
}
compartment
::
String
boundary_condition
::
Maybe
{
Bool
}
formula
::
Maybe
{
String
}
charge
::
Maybe
{
Int
}
initial_amount
::
Maybe
{
Tuple
{
Float64
,
String
}}
only_substance_units
::
Maybe
{
Bool
}
notes
::
Maybe
{
String
}
annotation
::
Maybe
{
String
}
Species
(
na
,
co
,
f
,
ch
,
ia
,
osu
,
no
=
nothing
,
a
=
nothing
)
=
new
(
na
,
co
,
f
,
ch
,
ia
,
osu
,
no
,
a
)
Species
(
na
,
co
,
b
,
f
,
ch
,
ia
,
osu
,
no
=
nothing
,
a
=
nothing
)
=
new
(
na
,
co
,
b
,
f
,
ch
,
ia
,
osu
,
no
,
a
)
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