Skip to content
Skillpedia
Agents51k · #3419

13c-metabolic-flux

What it does

This tool estimates the flow of chemicals within living cells. It uses data from carbon-13 experiments to understand how molecules move and transform.

When to use it

  • ✓To understand how cells produce energy.
  • ✓To track the pathway of nutrients in biological processes.
  • ✓To study the metabolism of microorganisms.

Skill link

https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/13c-metabolic-flux/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/13c-metabolic-flux/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Analyze the carbon-13 tracing data to estimate metabolic fluxes in my sample.”

5 new skills a week. 1 minute to read.

13c-metabolic-flux: full guide

Carbon-13 flux analysis answers a question that metabolite concentrations cannot: how fast does carbon move through each reaction in a cell? You feed cells a labeled substrate, measure how the label spreads into other molecules, and then work backwards to the reaction rates. Doing that by hand means writing isotope balances for every carbon atom, and a wrong atom assignment gives a wrong answer without any warning.

This skill gives your agent a tested workflow for that job. It checks your inputs, runs an isotope simulation, fits the fluxes, and tests whether your data actually pin down each flux. It is for metabolic engineers, microbiologists and biochemists who already have corrected labeling measurements and a reviewed carbon map. It does not process raw mass spectrometer files, and it will not invent an atom map you have not supplied.

Use cases

Check a pathway split before an engineering decision

You grow a strain on glucose labeled at carbon 1 and want to know how much carbon goes through each of two competing routes. The skill fits the split and reports an interval for it, so you can see whether a 70/30 estimate is firm or only a guess.

Combine two tracer experiments

You ran parallel cultures, one with labeled glucose and one with labeled glutamine, under the same conditions. You can fit both datasets against one shared flux state. The fit then shows whether the second tracer narrows fluxes that the first left loose.

Find out why a flux will not resolve

Your fit has a tiny residual, yet the exchange flux between two metabolites keeps moving between runs. The profile diagnostics show whether your measurements can constrain it at all, or whether the model returned an arbitrary value along a flat direction.

Step by step

  1. 1Install the skill, then create the Python 3.12 environment and install the pinned requirements, including mfapy, with the two uv commands from the skill.
  2. 2Copy a bundled model JSON (branch or TCA) into your analysis folder. Replace its atom map, tracer mixture and fragment assignments only with content you have reviewed, and add your corrected measurements with their uncertainty.
  3. 3Ask your agent to run the check command. Fix every reported problem, such as atom counts, tracer sums or an infeasible mass balance, before you fit anything.
  4. 4Run a simulation with one known flux vector and compare the predicted labeling with a reference. This confirms the model behaves as you expect.
  5. 5Run the fit with several starts and a fixed seed, and request profiles for the reactions you care about. Then read the fit file for failed starts, residuals and profile status.

Example

What to ask

“I have corrected MIDs for glutamate from a carbon-1 glucose tracer experiment, with uptake fixed at 100. Fit the model, profile the branch flux v3, and tell me whether the data constrain it.”

What you get

The agent runs the input check, then a 12-start fit and a 31-point profile of v3. You get fitted fluxes, residuals, and a 95% interval for v3 with grid brackets. If the measurement cannot separate the routes, it reports that v3 is unresolved within its bounds.

Tips

  • ✓Use 'unknown' as an answer. A failed profile point means that value is unexamined, not ruled out, and a small residual alone never proves a flux is determined.
  • ✓Check that your correction history matches the tool's basis. Natural-abundance and tracer-impurity corrections are separate steps, and applying either one twice biases the result.
  • ✓Stable metabolite levels do not prove isotopic steady state. If labeling changes over time in your samples, this skill does not apply and you need nonstationary MFA instead.
  • ✓Rerun the fit with a different seed and more starts before trusting a profile on a nonlinear network.

Alternatives

  • mcp-builder

    Pick this if you want to wrap your own flux solver or lab database as a server your agent can call, rather than run the bundled mfapy workflow.

  • dynamic-workflow

    Pick this if you need to repeat the same fit across many conditions or samples as a saved batch script instead of one analysis at a time.

Questions and answers

Can I use this for time-course labeling data?

No. It assumes metabolic and isotopic steady state. Time-course labeling needs nonstationary MFA with pool sizes and initial labeling, which this solver does not support, so averaging time points into it would give misleading fluxes.

Is this the same as flux balance analysis?

No. Flux balance analysis optimizes an objective such as growth on a stoichiometric model. This skill fits fluxes to measured labeling data and uses no FBA objective, so the evidence comes from your tracer measurements.

Can I use the bundled models for my organism?

Not as they are. The bundled branch and TCA models are demonstrations, not validated reconstructions. You must supply your own reviewed carbon network, atom assignments, fragment mappings and tracer composition for real work.

How it works

The tool compares the expected results from a model of how cells work with the actual experimental data. It adjusts the fluxes until the model fits the data, providing an estimate of how substances move.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Carbon-13 metabolic flux inference

Turn reviewed carbon maps, explicit tracer mixtures, and corrected labeling measurements into feasible flux estimates and evidence about which fluxes the experiment constrains. Use the bundled solver rather than reconstructing isotope balances or fitting each reaction independently. It runs mfapy's EMU forward simulator and fits fluxes in the mass-balanced feasible space with SciPy. It does not use an FBA objective.

Scope and required evidence

This implementation supports metabolic and isotopic steady state, a single shared flux state across one or more tracer experiments, nonnegative one-way reaction fluxes, and carbon-subset mass distributions. Reversible reactions are two separately mapped directions. Measurement error is Gaussian with a supplied covariance or a disclosed diagonal approximation.

Before fitting, obtain:

  • The carbon network and the source of each atom assignment. Stoichiometry alone does not specify where labeled atoms go. Record compartments as separate metabolite IDs.
  • Evidence for both steady-state assumptions. Stable metabolite abundance does not establish isotopic steady state. Time-course labeling requires INST-MFA with pool sizes and initial labeling; do not average it into this solver.
  • Every carbon input's positional isotopomer distribution, including unlabeled supplements, bicarbonate/CO2 when assimilated, and tracer impurity.
  • Fragment carbon assignments, natural-abundance correction history, and uncertainty of the reported mean. Raw peak intensities, derivatized spectra, and MS/MS transitions require validated preprocessing before these inputs can be constructed.
  • Flux units, extracellular rate measurements or a stated relative-flux reference, and biologically justified bounds. Label fractions alone cannot set an absolute rate.

If necessary information is missing, name it and prepare the input template; do not invent a fragment assignment, atom map, isotope correction, or measurement error. Read references/input-contract.md when preparing inputs. Read references/inference.md before interpreting an actual fit.

Install the tested engine

Run in the user's analysis directory. Set SKILL_DIR to this skill's installed directory, using the actual resolved path. Keep environments and generated results outside the skill.

uv venv --python 3.12 .venv-mfa
uv pip install --python .venv-mfa/bin/python -r "$SKILL_DIR/assets/requirements.txt"

The following commands use .venv-mfa/bin/python; on Windows use the environment's Scripts/python.exe. mfapy is installed from an immutable Git revision because it is not distributed on PyPI. Installation executes dependency build code; model inputs are data, not user-supplied Python. The adapter restricts identifiers and atom-map syntax before they reach mfapy's internally generated numerical functions.

The pinned commit matched upstream master on 2026-09-30. Its README labels the latest change "064", but its installed distribution still reports 0.6.3; retain the Git commit alongside the package version in an analysis record. The refreshed NumPy/SciPy pins require Python 3.12 or later; the commands above use the tested 3.12 environment. See the reviewed forward-model contract in references/inference.md.

Workflow

  1. Prepare explicit inputs. Copy a relevant model asset into the analysis directory, then replace its scientific content only from reviewed evidence. The bundled models are demonstrations, not validated organism-specific reconstructions. Use a separate dataset for each biological condition; jointly fit tracer replicates only when their biological flux state is defensibly shared.

  2. Check the contract and feasibility.

    .venv-mfa/bin/python "$SKILL_DIR/scripts/mfa.py" check \
      --model model.json --data measurements.json --output input-check.json
    

    This checks atom counts and conservation, fragments, tracer sums, uncertainty matrices, bounds, and steady-state mass-balance feasibility. It cannot verify that a chemically consistent atom map is biologically correct or that a sample reached steady state.

  3. Exercise the forward model. Supply one mass-balanced flux vector in the declared units. Compare predicted labeling with a reference or independently derived limits.

    
    

…

FAQ

What are 'metabolic fluxes'?

These are the rates at which chemicals move and transform within a cell or organism.

What is 'carbon-13'?

It's a slightly heavier version of the element carbon, used as a tracer in experiments to follow the path of molecules.

Do I need to know how to code to use this?

No, this tool is designed for scientists who may not be programmers. You will need to provide specific scientific data in the correct format.

Details

Original description by the author

Estimates intracellular metabolic fluxes from steady-state carbon-13 isotope-tracing measurements using validated atom maps, mfapy isotope simulation, constrained multistart fitting, and flux-profile diagnostics. Use for 13C-MFA, carbon tracing, mass isotopomer distributions (MDVs/MIDs), positional isotopomers, parallel tracer experiments, and determining whether labeling data constrain a pathway

repo: K-Dense-AI/scientific-agent-skills

Popularity

GitHub stars
51k
Ranking position
#3419
License
MIT
Updated
10/15/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills