cobrapy

Automate SBML/CFSON model loading and constraint-based metabolic modeling with COBRApy simulations like FBA and pfba.

321|26|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/mkurman/tamux --skill cobrapy-mkurman
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cobrapy
Source: https://github.com/mkurman/tamux/tree/main/skills/scientific-skills/cobrapy
Command: npx skills add https://github.com/mkurman/tamux --skill cobrapy-mkurman

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Enable researchers to construct, simulate, and optimize constraint-based metabolic models with COBRApy, turning complex biology data into actionable insights.

Core Features & Use Cases

  • Automate loading of SBML/JSON models and run FBA, pfba, and geometric_fba to predict growth and production
  • Perform FVA, gene and reaction deletions, gapfilling, and production envelopes to explore design strategies
  • Reproduce common workflows across labs, from baseline analysis to production-strain design, with transparent, auditable steps.

Quick Start

Load a model with load_model("ecoli"), run model.optimize(), and inspect fluxes and objective value.

Frequently Asked Questions about cobrapy

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

FAQPage Schema
How do I run FBA and FVA on a metabolic model?

Run FBA and FVA on metabolic models by loading SBML or JSON files into COBRApy, executing model.optimize(), and using flux variability analysis to map flux distributions and predict growth outcomes.

What's the best way to simulate gene deletions in constraint-based metabolic modeling?

Simulate gene deletions in constraint-based metabolic modeling by loading your model and applying COBRApy gene deletion functions to evaluate essential genes and predict resulting growth rate changes.

Can I use COBRApy to generate production envelopes for strain design?

Yes, COBRApy generates production envelopes to visualize trade-offs between biomass and product yields, enabling researchers to explore and optimize metabolic engineering strategies for production-strain design.

Does this metabolic modeling workflow support parallel processing for batch simulations?

Yes, the workflow supports parallel processing and context management, allowing you to run robust, reproducible batch simulations like multiple gene deletions across common biological models efficiently.

How do I load and validate SBML models for metabolic flux analysis?

Load and validate SBML models for metabolic flux analysis using the load_model function, which supports standard SBML and JSON formats to automate baseline analysis and simulation workflows.

What is the difference between FBA, parsimonious FBA, and geometric FBA?

FBA optimizes a single objective, parsimonious FBA minimizes total flux while maintaining the objective, and geometric FBA finds the center of the solution space for stable, reproducible metabolic flux distributions.