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
COBREXA.jl
Commits
4fd0080e
Commit
4fd0080e
authored
Jan 25, 2022
by
Miroslav Kratochvil
Browse files
test loading and parsing of Recon3D
parent
e27854f9
Pipeline
#51586
failed with stages
in 9 minutes and 39 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
test/data_downloaded.jl
View file @
4fd0080e
...
...
@@ -63,4 +63,9 @@ model_paths = Dict{String,String}(
df
(
"iJR904.mat"
),
"d17be86293d4caafc32b829da4e2d0d76eb45e1bb837e0138327043a83e20c6e"
,
),
"Recond3D.json"
=>
download_data_file
(
"http://bigg.ucsd.edu/static/models/Recon3D.json"
,
df
(
"Recon3D.json"
),
"aba925f17547a42f9fdb4c1f685d89364cbf4979bbe7862e9f793af7169b26d5"
,
),
)
test/io/io.jl
View file @
4fd0080e
...
...
@@ -16,4 +16,11 @@
Set
(
"r_"
.*
lowercase
.
(
reactions
(
matlabmodel
)))
@test
Set
(
lowercase
.
(
reactions
(
sbmlmodel
)))
==
Set
(
"r_"
.*
lowercase
.
(
reactions
(
jsonmodel
)))
# specifically test parsing of gene-reaction associations in Recon
reconmodel
=
load_model
(
model_paths
[
"Recon3D.json"
])
@test
n_reactions
(
reconmodel
)
==
2583
recon_grrs
=
[
r
.
grr
for
(
i
,
r
)
in
m
.
reactions
if
!
isnothing
(
r
.
grr
)]
@test
length
(
recon_grrs
)
==
5938
@test
sum
(
length
.
(
recon_grrs
))
==
13903
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