-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
featureNew feature/functionalityNew feature/functionalityminorEasy fix with low priority, likely just cosmeticEasy fix with low priority, likely just cosmeticqualityimproves maintainability and code clarityimproves maintainability and code clarity
Milestone
Description
Minimal code example to reproduce the problem
It looks like for some file formats the subsystem field might not be parsed. I've spotted this from two different models in SBML format, so I checked with the core E.coli.
using COBREXA
!isfile("e_coli_core.mat") && download("http://bigg.ucsd.edu/static/models/e_coli_core.mat", "e_coli_core.mat");
!isfile("e_coli_core.json") && download("http://bigg.ucsd.edu/static/models/e_coli_core.json", "e_coli_core.json");
!isfile("e_coli_core.xml") && download("http://bigg.ucsd.edu/static/models/e_coli_core.xml", "e_coli_core.xml");
json = load_model(StandardModel, "e_coli_core.json")
xml = load_model(StandardModel, "e_coli_core.xml")
mat = load_model(StandardModel, "e_coli_core.mat")
foreach(model -> println(length(filter(!isnothing, map(r -> reaction_subsystem(model, r), reactions(model))))), [json, xml, mat])
Expected result
I would expect the same number of subsystems present in the model:
95
95
95
Actual behavior
Only the JSON format returns 95 entries, for the others it's 0:
95
0
0
Metadata
Metadata
Assignees
Labels
featureNew feature/functionalityNew feature/functionalityminorEasy fix with low priority, likely just cosmeticEasy fix with low priority, likely just cosmeticqualityimproves maintainability and code clarityimproves maintainability and code clarity