What problem does it solve?
COBRApy helps you model and simulate cellular metabolism by translating a metabolic network into solvable constraint-based optimization problems, so you can predict phenotypes like growth, production, and flux ranges.
Core Features & Use Cases
- Model I/O (SBML/JSON/YAML): Load and export genome-scale metabolic models to reuse established reconstructions or share results.
- FBA & pFBA-style optimization: Compute optimal objective fluxes (e.g., biomass growth, ATP maintenance, product formation) under reaction bounds and media constraints.
- FVA, knockouts, sampling, and production envelopes: Quantify uncertainty/ranges (FVA), test gene/reaction deletions (single/double), explore feasible flux space (sampling), and map achievable trade-offs (production envelopes).
- Use case: You want to evaluate how a gene knockout affects growth and acetate production in a metabolic model, then compare flux variability and explore alternative feasible flux solutions.
Quick Start
Use the cobrapy skill to compute an FBA solution for the loaded model and then run flux variability analysis at 90% of the optimal objective.