cobrapy

Perform constraint-based metabolic modeling and flux balance analysis with COBRApy.

Updated Dec 17, 2025
One-click install
npx skills add https://github.com/robotlearning123/claude-scientific-skills --skill cobrapy-robotlearning123
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cobrapy
Source: https://github.com/robotlearning123/claude-scientific-skills/tree/main/scientific-skills/cobrapy
Command: npx skills add https://github.com/robotlearning123/claude-scientific-skills --skill cobrapy-robotlearning123

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires cobrapy, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the complexities of constraint-based metabolic modeling, making it accessible for systems biology and metabolic engineering research.

Core Features & Use Cases

  • Model Management: Load and save models in various formats (SBML, JSON, YAML).
  • Flux Balance Analysis (FBA): Simulate cellular metabolism and predict phenotypic behaviors.
  • Flux Variability Analysis (FVA): Determine flux ranges for all reactions.
  • Gene and Reaction Deletion Studies: Investigate the impact of gene and reaction knockouts.
  • Growth Media and Minimal Media: Design and optimize growth media compositions.
  • Flux Sampling: Sample the feasible flux space to understand metabolic behavior.
  • Production Envelopes: Calculate phenotype phase planes for production optimization.
  • Gapfilling: Add missing reactions to make models feasible.
  • Model Building: Build models from scratch with custom metabolites and reactions.
  • Common Workflows: Follow predefined workflows for specific tasks like knockout screens and media optimization.
  • API and Workflows Documentation: Refer to detailed guides for API usage and common workflows.

Quick Start

Load the model from 'ecoli_model.json' and run flux balance analysis with the objective 'BIOMASS'.

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 simulates cellular metabolism by loading a model from SBML, JSON, or YAML formats and running FBA against a defined objective like biomass production to predict phenotypic behaviors.

Can I investigate gene knockout effects using constraint-based analysis?

Gene deletion studies investigate the impact of knockouts on cellular metabolism, allowing you to simulate reaction removals and observe resulting phenotypic changes within your metabolic model.

How do I determine feasible flux ranges for all reactions in a metabolic model?

Flux variability analysis determines flux ranges for all reactions, and flux sampling further samples the feasible flux space to help you understand broader metabolic behavior and constraints.

Does COBRApy support designing minimal growth media for metabolic engineering?

You can design and optimize growth media compositions, including calculating minimal media requirements, to simulate and control cellular metabolism under specific nutrient constraints.

What is gapfilling in constraint-based metabolic modeling and when do I need it?

Gapfilling adds missing reactions to make models feasible, resolving infeasible constraints during model building so that your custom models can run simulations properly.

How do I optimize metabolite production using phenotype phase planes?

Production envelopes calculate phenotype phase planes for production optimization, enabling you to map and identify optimal metabolic states for desired metabolite yields.