COBREXA.jl icon indicating copy to clipboard operation
COBREXA.jl copied to clipboard

`removeReaction!` etc. doesn't update all fields in a `CoreModel`

Open htpusa opened this issue 2 years ago • 1 comments

using COBREXA
model = load_model(CoreModel,"test/downloaded/e_coli_core.xml")
removeReaction!(model,1)
n_reactions(model) # 94
length(model.grrs) # 95

Only some of the fields are updated so, for example, the gene associations end up not matching anymore.

htpusa avatar Feb 27 '23 15:02 htpusa

ah this. We added grrs later so this is an avoidable but kinda expected bug. Thanks for report

exaexa avatar Feb 28 '23 07:02 exaexa