> ## Documentation Index
> Fetch the complete documentation index at: https://kalarislabs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# cobrapy — AI agent skill for life sciences

> Runs constraint-based metabolic modeling with COBRApy (Python, import cobra) on genome-scale models in SBML, JSON, YAML, or MATLAB format.

# `cobrapy`

> Runs constraint-based metabolic modeling with COBRApy (Python, import cobra) on genome-scale models in SBML, JSON, YAML, or MATLAB format. Covers FBA, pFBA, geometric FBA, FVA, flux sampling, gene and reaction knockouts, production envelopes, growth media, gapfilling, and building models. Use when loading or exporting a genome-scale metabolic model. Use when predicting growth or flux distributions with FBA or FVA. Use when screening gene or reaction knockouts. Use when tuning growth media or exchange constraints. Use when gap-filling an infeasible model or checking model consistency. Not for kinetic or ODE-based simulation of metabolism.

**Category:** [life-sciences](/skills#life-sciences) · **License:** GPL-2.0 license · **Version:** 1.3

## Install

```bash theme={null}
npx research-agent-skills install cobrapy
npx skills add KalarisLabs/research-agent-skills --skill cobrapy
```

## When to use it

Runs constraint-based metabolic modeling with COBRApy (Python, import cobra) on genome-scale models in SBML, JSON, YAML, or MATLAB format. Covers FBA, pFBA, geometric FBA, FVA, flux sampling, gene and reaction knockouts, production envelopes, growth media, gapfilling, and building models. Use when loading or exporting a genome-scale metabolic model. Use when predicting growth or flux distributions with FBA or FVA. Use when screening gene or reaction knockouts. Use when tuning growth media or exchange constraints. Use when gap-filling an infeasible model or checking model consistency. Not for kinetic or ODE-based simulation of metabolism.

## Full playbook

Read [SKILL.md](https://github.com/KalarisLabs/research-agent-skills/blob/main/skills/cobrapy/SKILL.md) for the complete workflow, references and any scripts. The agent installer copies the full skill folder.
