Adding exchange reactions?

599 views
Skip to first unread message

Ben

unread,
Oct 18, 2010, 11:51:17 AM10/18/10
to Cobra Toolbox
I'm working on doing FBA with COBRA on a reconstruction which doesn't
appear to include exchange reactions for external metabolites.

When I attempt to add exchange reactions with the COBRA function
addReaction, I get an error:

>> model_ex = addReaction(model, 'EX_glc(e)', 'glc(e)', -1)
??? Error using ==> addReaction at 74
Incorrect number of stoichiometric coefficients provided

Does addReaction support adding exchange reactions? Am I attempting to
do so correctly?

Thanks!
Ben

Ben

unread,
Oct 18, 2010, 4:25:03 PM10/18/10
to Cobra Toolbox
My mistake.

It works fine with the documented function call:

model_ex = addReaction(model, 'EX_glc(e)', {'glc(e)'}, [-1])

So, all's well at the moment with this COBRA function!

Borry,
Ben

Grigoriy Kimaev

unread,
Oct 21, 2010, 10:16:53 AM10/21/10
to Cobra Toolbox
Hello Ben,

You can also use "addExchangeRxn" or "addSinkReactions" functions.
They are located in "metabolicReconstructionToolbox" within the COBRA
folder. Descriptions can be found within the function files.

Best regards,

Grigoriy
Reply all
Reply to author
Forward
0 new messages