cobrapy

Perform constraint-based metabolic modeling and analysis with COBRApy.

1|Updated Jan 14, 2026
One-click install
npx skills add https://github.com/Sologa/codex-pipeline --skill cobrapy-sologa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cobrapy
Source: https://github.com/Sologa/codex-pipeline/tree/main/.codex/skills/cobrapy
Command: npx skills add https://github.com/Sologa/codex-pipeline --skill cobrapy-sologa

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill empowers users to analyze and simulate metabolic networks, enabling deeper insights into biological systems and facilitating metabolic engineering.

Core Features & Use Cases

  • Constraint-Based Modeling: Perform Flux Balance Analysis (FBA), Flux Variability Analysis (FVA), and gene/reaction knockouts.
  • Model Manipulation: Load, save, build, and modify metabolic models in SBML, JSON, or YAML formats.
  • Use Case: Predict the growth rate of a genetically engineered microorganism on a specific carbon source, or identify essential genes for survival.

Quick Start

Use the cobrapy skill to load the E. coli core model and predict its maximum growth rate.

Frequently Asked Questions about cobrapy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I perform Flux Balance Analysis on a metabolic model?

Flux Balance Analysis (FBA) is performed by loading a metabolic model and calculating optimal flux distributions to predict cellular growth rates. This Skill executes FBA simulations using the COBRApy Python library.

What is Flux Variability Analysis and when is it needed in metabolic modeling?

Flux Variability Analysis (FVA) determines the range of possible flux values for each reaction in a metabolic network while maintaining optimal objective values. It is needed to evaluate metabolic model flexibility and identify alternative pathways.

Can I simulate gene knockouts to identify essential genes for survival?

Yes, you can simulate gene knockouts in a metabolic model to identify essential genes for survival. The Skill performs gene and reaction knockout simulations to predict the growth rate of genetically engineered microorganisms.

Does this approach support loading metabolic models in SBML format?

Yes, this approach supports loading metabolic models in SBML format, along with JSON and YAML formats. You can seamlessly load, save, build, and modify constraint-based metabolic models across these standard file types.

How do I optimize media conditions for a systems biology model?

Media optimization for a systems biology model is executed by adjusting environmental constraints and simulating metabolic network responses. This Skill uses COBRApy to facilitate media optimization for metabolic engineering tasks.