cobrapy

Perform flux balance analysis on genome-scale metabolic models with cobrapy.

13|3|Updated Jun 10, 2026
One-click install
npx skills add https://github.com/tassiovale/claude-code-kit --skill cobrapy-tassiovale
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cobrapy
Source: https://github.com/tassiovale/claude-code-kit/tree/main/skills/cobrapy
Command: npx skills add https://github.com/tassiovale/claude-code-kit --skill cobrapy-tassiovale

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires cobra, optlang, glpk, swiglpk, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill simplifies constraint-based metabolic modeling (COBRA) for systems biology and metabolic engineering analysis, allowing users to perform complex simulations and analyses efficiently.

Core Features & Use Cases

  • Model Management: Load, build, and save genome-scale metabolic models in various formats.
  • Flux Analysis: Conduct flux balance analysis (FBA), flux variability analysis (FVA), and flux sampling.
  • Gene and Reaction Deletion Studies: Perform knockout analyses to study the effects of genetic modifications.
  • Growth Media and Minimal Media: Design and optimize growth media for optimal performance.
  • Use Case: Design a minimal medium for a specific metabolic pathway to maximize growth or production of a target metabolite.

Quick Start

Use the cobrapy skill to load the bundled model 'textbook' and perform a flux balance analysis (FBA) to predict 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 genome-scale metabolic model?

Flux balance analysis (FBA) on genome-scale metabolic models is performed by loading a model and running computational simulations to predict cellular growth rates and phenotypic behavior. The cobrapy skill facilitates this using the glpk solver.

Can I simulate genetic knockouts to study their effects on cellular metabolism?

Simulating genetic knockouts to study effects on cellular metabolism is supported through gene and reaction deletion studies. This allows you to perform knockout analyses and observe the resulting predictive phenotypic behavior modifications.

How do I design and optimize growth media for a specific metabolic pathway?

Designing and optimizing growth media for a specific metabolic pathway involves configuring minimal media inputs to maximize cellular growth or the production of a target metabolite. This Skill enables direct growth media design and optimization simulations.

What Python environment is required for constraint-based metabolic modeling with COBRA?

Constraint-based metabolic modeling with COBRA requires Python 3.9 or higher. The environment must include specific libraries like cobra, optlang, and glpk to ensure the solvers function correctly for computational simulations.

Does flux variability analysis work with genome-scale metabolic models?

Flux variability analysis (FVA) works with genome-scale metabolic models to determine the range of possible flux values. This Skill enables FVA alongside FBA and flux sampling to analyze cellular metabolism constraints.

What is the best way to load and save constraint-based metabolic models?

Loading and saving constraint-based metabolic models is handled through built-in model management features that support various formats. You can load bundled models like the 'textbook' example or save modified genome-scale models directly.