cobrapy

Run FBA, FVA, flux sampling, and deletion studies on SBML metabolic models.

783|65|Updated Feb 27, 2026
One-click install
npx skills add https://github.com/LeonChaoX/qinyan-academic-skills --skill cobrapy-leonchaox
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cobrapy
Source: https://github.com/LeonChaoX/qinyan-academic-skills/tree/main/skills/10-%E6%9D%90%E6%96%99%E7%A7%91%E5%AD%A6%E4%B8%8E%E7%89%A9%E7%90%86%E8%AE%A1%E7%AE%97/cobrapy
Command: npx skills add https://github.com/LeonChaoX/qinyan-academic-skills --skill cobrapy-leonchaox

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill solves the problem of analyzing genome-scale metabolic models by providing practical, end-to-end guidance for constraint-based reconstruction and analysis (COBRA) workflows.

Core Features & Use Cases

  • Model I/O and structure inspection: Load SBML/JSON/YAML models, inspect reactions/metabolites/genes, and save models back to exchangeable formats.
  • Core simulation & analysis: Perform FBA, pFBA/geometric FBA, flux variability analysis (FVA), flux sampling, and production envelopes.
  • Genetic perturbations & feasibility repair: Run single/double gene or reaction deletions and use gapfilling to restore feasibility when models have missing reactions.

Quick Start

Use the cobrapy skill to run FBA and interpret the predicted objective and key reaction fluxes for an SBML metabolic model you upload.

Frequently Asked Questions about cobrapy

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

FAQPage Schema
How do I run flux balance analysis on an SBML metabolic model?

To run flux balance analysis on an SBML metabolic model, load the file and configure the solver to compute the predicted objective and key reaction fluxes. This skill handles the entire FBA workflow from file input to flux computation.

Can I screen gene knockouts in a genome-scale metabolic model?

Yes, you can screen gene knockouts in a genome-scale metabolic model by running single or double gene deletion studies. The skill computes the resulting phenotypic effects and reaction fluxes to identify essential genes for metabolic engineering targets.

What is flux variability analysis and when do I need it for constraint-based modeling?

Flux variability analysis (FVA) determines the range of possible fluxes for each reaction while maintaining the optimal objective value. You need FVA in constraint-based modeling to evaluate metabolic flexibility and identify bottleneck reactions in genome-scale models.

Does this skill support JSON and YAML model formats or only SBML?

This skill supports JSON and YAML model formats in addition to SBML. You can load, inspect, and save genome-scale metabolic models across these exchangeable formats for flexible constraint-based reconstruction and analysis workflows.

How do I fix an infeasible metabolic model with missing reactions?

To fix an infeasible metabolic model with missing reactions, use gapfilling to restore feasibility. This skill performs gapfilling during constraint-based modeling to add missing reactions and resolve infeasible deletion studies or simulation errors.

What's the best way to explore carbon-source utilization in a metabolic model?

The best way to explore carbon-source utilization is by generating production envelopes and running flux sampling. This skill computes these analyses on genome-scale metabolic models to map growth and production rates across different media conditions.