We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Let's say I take an existing model and do
import cbmpy as cbm mod = cbm.CBRead.readSBML3FBC('e_coli_core.xml.gz') cbm.doFBAMinSum(mod)
everything will work as expected.
However, when I now add a new reaction to this model,
newmod = mod.clone() newmod.createReaction('foo') newmod.createReactionReagent('foo', 'M_h_e', -1.)
and try again to minimize the fluxes, I get an error
cbm.doFBAMinSum(newmod)
CPLEX is using solver option: "o" KeyError Traceback (most recent call last) /opt/ibm/ILOG/CPLEX_Studio128/cplex/python/3.6/x86-64_linux/cplex/_internal/_aux_functions.py in _cachelookup(item, getindexfunc, cache) 277 try: --> 278 idx = cache[item] 279 except KeyError: KeyError: 'foo'
KeyError Traceback (most recent call last) /opt/ibm/ILOG/CPLEX_Studio128/cplex/python/3.6/x86-64_linux/cplex/_internal/_aux_functions.py in _cachelookup(item, getindexfunc, cache) 277 try: --> 278 idx = cache[item] 279 except KeyError:
KeyError: 'foo'
The reason seems to be that the stoichiometric matrix is not updated when a new reaction is added. If I do
newmod.buildStoichMatrix() cbm.doFBAMinSum(newmod)
it will work fine.
Not sure what the best approach would be to deal with it. Maybe one could also add the build_n=True option to the function call as in doFBA?
build_n=True
doFBA
The text was updated successfully, but these errors were encountered:
Thanks, I'll give this priority
Sorry, something went wrong.
bgoli
No branches or pull requests
Let's say I take an existing model and do
everything will work as expected.
However, when I now add a new reaction to this model,
and try again to minimize the fluxes, I get an error
cbm.doFBAMinSum(newmod)
The reason seems to be that the stoichiometric matrix is not updated when a new reaction is added. If I do
it will work fine.
Not sure what the best approach would be to deal with it. Maybe one could also add the
build_n=True
option to the function call as indoFBA
?The text was updated successfully, but these errors were encountered: