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
0be94983
Commit
0be94983
authored
Feb 24, 2021
by
Miroslav Kratochvil
Browse files
test that EColi model from BIGG loads correctly
this checks whether the fix of #16 works
parent
8e78100e
Changes
3
Show whitespace changes
Inline
Side-by-side
test/
loadEColi
.jl
→
test/
ecoli_flux
.jl
View file @
0be94983
sbmlfile
=
"E
Coli
.xml"
sbmlfile
=
"E
c_core_flux1
.xml"
if
!
isfile
(
sbmlfile
)
download
(
"http://systemsbiology.ucsd.edu/sites/systemsbiology.ucsd.edu/files/Attachments/Images/InSilicoOrganisms/Ecoli/Ecoli_SBML/Ec_core_flux1.xml"
,
sbmlfile
)
...
...
@@ -10,7 +10,7 @@ if cksum != "01a883b364fa60582101ca1e270515e7fcb3fb2f60084d92e5ee45f9f72bbe50"
@warn
"The downloaded E Coli core flux model seems to be different from the expected one. Tests will likely fail."
cksum
end
@testset
"SBML model loading"
begin
@testset
"SBML
flux
model loading"
begin
mdl
=
readSBML
(
sbmlfile
)
@test
typeof
(
mdl
)
==
Model
...
...
test/ecoli_modelonly.jl
0 → 100644
View file @
0be94983
sbmlfile
=
"e_coli_core.xml"
if
!
isfile
(
sbmlfile
)
download
(
"http://bigg.ucsd.edu/static/models/e_coli_core.xml"
,
sbmlfile
)
end
cksum
=
bytes2hex
(
sha256
(
open
(
sbmlfile
)))
if
cksum
!=
"b4db506aeed0e434c1f5f1fdd35feda0dfe5d82badcfda0e9d1342335ab31116"
@warn
"The downloaded E Coli core model seems to be different from the expected one. Tests will likely fail."
cksum
end
@testset
"SBML model-only file loading"
begin
mdl
=
readSBML
(
sbmlfile
)
@test
typeof
(
mdl
)
==
Model
mets
,
rxns
,
_
=
getS
(
mdl
)
@test
length
(
mets
)
==
72
@test
length
(
rxns
)
==
95
end
test/runtests.jl
View file @
0be94983
...
...
@@ -5,5 +5,6 @@ import Pkg
@testset
"SBML test suite"
begin
include
(
"version.jl"
)
include
(
"loadEColi.jl"
)
include
(
"ecoli_flux.jl"
)
include
(
"ecoli_modelonly.jl"
)
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