You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding reactions to a model, currently cobrexa allows you to add them if the metabolites used are not present in the model and only throws an error when you later try to do something with the model. The error also only mentions one metabolite that is not present, instead of listing them
ERROR: DomainError with m2:
Metabolite m2 not found in model but occurs in stoichiometry of R
It would be nice if when calling add_reaction! an error was thrown if any metabolites are not already in the model, or if when calling display(model) a list of the missing metabolites was given instead of just one.
The text was updated successfully, but these errors were encountered:
Hi! I actually assume this is the intended behavior -- the checking is actually quite costly. I agree this is not very user-friendly; we might want to do something about this later.
exaexa
added
quality
improves maintainability and code clarity
minor
Easy fix with low priority, likely just cosmetic
labels
Oct 26, 2023
When adding reactions to a model, currently cobrexa allows you to add them if the metabolites used are not present in the model and only throws an error when you later try to do something with the model. The error also only mentions one metabolite that is not present, instead of listing them
E.g.
Gives the error:
It would be nice if when calling
add_reaction!
an error was thrown if any metabolites are not already in the model, or if when callingdisplay(model)
a list of the missing metabolites was given instead of just one.The text was updated successfully, but these errors were encountered: