Cobra Run Pfba
cobra_run_pfba
Open in the interactive browser →
Run parsimonious FBA (minimum total flux at the optimum); returns status, objective, total flux, top fluxes.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
constraints |
object | no | per-call bounds: {reaction_id: [lb, ub]} |
include_fluxes |
boolean | no | inline the full flux vector (<= 500 reactions); it is always available as the fluxes_resource CSV |
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 |
objective |
any | no | reaction id or {reaction_id: coefficient}; default: model objective |
solver |
string | no | LP solver (default hybrid = HiGHS, MIT; glpk excluded: GPL-free image) |
top_n |
integer | no |
Examples
Run parsimonious FBA (minimum total flux at the optimum); returns status, objective, total flux, top fluxes (declared example)
Prompt: “Run parsimonious FBA (minimum total flux at the optimum); returns status, objective, total flux, top fluxes using cobra_run_pfba with arguments {"model_id": "e_coli_core"}”
Run parsimonious FBA (minimum total flux at the optimum); returns status, objective, total flux, top fluxes (minimal call)
Prompt: “Call cobra_run_pfba and summarise the result.”
cobracobra_run_pfba