Cobra Compute Yield

cobra_compute_yield
verified Cobra cobra intent cobra
Compute the maximum theoretical yield of a product exchange on a substrate exchange (mol/mol and g/g).

Parameters

NameTypeRequiredDescription
constraints object no per-call bounds: {reaction_id: [lb, ub]}
medium object no {exchange_id: positive uptake rate} (mmol/gDW/h). Merged onto the model's default medium: listed uptakes override, all other default uptakes stay open, 0 closes an exchange
medium_replace boolean no true = COBRApy replace semantics: exchanges not listed in medium are closed
model_id string yes bundled model id (e_coli_core, iML1515, iMM904, iCHOv1) or a session_model_id from cobra_load_model
product string yes exchange reaction id of the product
solver string no LP solver (default hybrid = HiGHS, MIT; glpk excluded: GPL-free image)
substrate string yes exchange reaction id of the substrate

Examples

Compute the maximum theoretical yield of a product exchange on a substrate exchange (mol/mol and g/g) (declared example)

Prompt: “Compute the maximum theoretical yield of a product exchange on a substrate exchange (mol/mol and g/g) using cobra_compute_yield with arguments {"model_id": "e_coli_core", "product": "EX_ac_e", "substrate": "EX_glc__D_e"}”

Compute the maximum theoretical yield of a product exchange on a substrate exchange (mol/mol and g/g) (minimal call)

Prompt: “Call cobra_compute_yield and summarise the result.”

cobracobra_compute_yield