[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F3AVXJMNAH3VNG2G43NT19":3,"skill-same:01M7F3AVXJMNAH3VNG2G43NT19":114},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":13,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":33,"install":34,"resources":47},"01M7F3AVXJMNAH3VNG2G43NT19","13c-metabolic-flux",null,"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\u002FMIDs), positional isotopomers, parallel tracer experiments, and determining whether labeling data constrain a pathway flux. Distinguishes measured-label inference from COBRA flux balance analysis and flags experiments requiring nonstationary MFA.","beanspowt\u002Fbeancode","beanspowt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F333943283?v=4","01M7F39F0GDWKS57BCKW8JJH7F","01M7F39F1B1TVPDJMS37BZQHWM",0,"MIT","https:\u002F\u002Fgithub.com\u002Fbeanspowt\u002Fbeancode\u002Fblob\u002Fmain\u002Fconfig\u002Fopencode\u002Fskills\u002F13c-metabolic-flux\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: 13c-metabolic-flux\ndescription: 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\u002FMIDs), positional isotopomers, parallel tracer experiments, and determining whether labeling data constrain a pathway flux. Distinguishes measured-label inference from COBRA flux balance analysis and flags experiments requiring nonstationary MFA.\nlicense: MIT\ncompatibility: Python 3.12 with uv and Git for installation. Tested with mfapy 0.6.3 at a10433af16682386548b360297e2476152d46ede, NumPy 2.5.3, SciPy 1.18.1, and NLopt 2.11.0. Network access is needed only to install public dependencies. Inference runs locally without credentials; inputs are JSON.\nmetadata:\n  version: \"1.2\"\n  skill-author: K-Dense Inc.\n  last-reviewed: \"2026-09-30\"\n---\n\n# Carbon-13 metabolic flux inference\n\nTurn reviewed carbon maps, explicit tracer mixtures, and corrected labeling measurements\ninto feasible flux estimates and evidence about which fluxes the experiment constrains.\nUse the bundled solver rather than reconstructing isotope balances or fitting each\nreaction independently. It runs mfapy's EMU forward simulator and fits fluxes in the\nmass-balanced feasible space with SciPy. It does not use an FBA objective.\n\n## Scope and required evidence\n\nThis implementation supports **metabolic and isotopic steady state**, a single shared\nflux state across one or more tracer experiments, nonnegative one-way reaction fluxes,\nand carbon-subset mass distributions. Reversible reactions are two separately mapped\ndirections. Measurement error is Gaussian with a supplied covariance or a disclosed\ndiagonal approximation.\n\nBefore fitting, obtain:\n\n- The carbon network and the source of each atom assignment. Stoichiometry alone does\n  not specify where labeled atoms go. Record compartments as separate metabolite IDs.\n- Evidence for both steady-state assumptions. Stable metabolite abundance does not\n  establish isotopic steady state. Time-course labeling requires INST-MFA with pool\n  sizes and initial labeling; do not average it into this solver.\n- Every carbon input's positional isotopomer distribution, including unlabeled\n  supplements, bicarbonate\u002FCO2 when assimilated, and tracer impurity.\n- Fragment carbon assignments, natural-abundance correction history, and uncertainty\n  of the **reported mean**. Raw peak intensities, derivatized spectra, and MS\u002FMS\n  transitions require validated preprocessing before these inputs can be constructed.\n- Flux units, extracellular rate measurements or a stated relative-flux reference,\n  and biologically justified bounds. Label fractions alone cannot set an absolute rate.\n\nIf necessary information is missing, name it and prepare the input template; do not\ninvent a fragment assignment, atom map, isotope correction, or measurement error.\nRead [references\u002Finput-contract.md](references\u002Finput-contract.md) when preparing inputs.\nRead [references\u002Finference.md](references\u002Finference.md) before interpreting an actual fit.\n\n## Install the tested engine\n\nRun in the user's analysis directory. Set `SKILL_DIR` to this skill's installed directory,\nusing the actual resolved path. Keep environments and generated results outside the skill.\n\n```bash\nuv venv --python 3.12 .venv-mfa\nuv pip install --python .venv-mfa\u002Fbin\u002Fpython -r \"$SKILL_DIR\u002Fassets\u002Frequirements.txt\"\n```\n\nThe following commands use `.venv-mfa\u002Fbin\u002Fpython`; on Windows use the environment's\n`Scripts\u002Fpython.exe`. mfapy is installed from an immutable Git revision because it is\nnot distributed on PyPI. Installation executes dependency build code; model inputs\nare data, not user-supplied Python. The adapter restricts identifiers and atom-map\nsyntax before they reach mfapy's internally generated numerical functions.\n\nThe pinned commit matched upstream `master` on 2026-09-30. Its README labels the\nlatest change \"064\", but its installed distribution still reports `0.6.3`; retain\nthe Git commit alongside the package version in an analysis record. The refreshed\nNumPy\u002FSciPy pins require Python 3.12 or later; the commands above use the tested 3.12\nenvironment. See the reviewed forward-model contract in\n[references\u002Finference.md](references\u002Finference.md).\n\n## Workflow\n\n1. **Prepare explicit inputs.** Copy a relevant model asset into the analysis directory,\n   then replace its scientific content only from reviewed evidence. The bundled models\n   are demonstrations, not validated organism-specific reconstructions. Use a separate\n   dataset for each biological condition; jointly fit tracer replicates only when their\n   biological flux state is defensibly shared.\n2. **Check the contract and feasibility.**\n\n   ```bash\n   .venv-mfa\u002Fbin\u002Fpython \"$SKILL_DIR\u002Fscripts\u002Fmfa.py\" check \\\n     --model model.json --data measurements.json --output input-check.json\n   ```\n\n   This checks atom counts and conservation, fragments, tracer sums, uncertainty\n   matrices, bounds, and steady-state mass-balance feasibility. It cannot verify that a\n   chemically consistent atom map is biologically correct or that a sample reached steady state.\n3. **Exercise the forward model.** Supply one mass-balanced flux vector in the declared\n   units. Compare predicted labeling with a reference or independently derived limits.\n\n   ```bash\n   .venv-mfa\u002Fbin\u002Fpython \"$SKILL_DIR\u002Fscripts\u002Fmfa.py\" simulate \\\n     --model model.json --data measurements.json --fluxes fluxes.json \\\n     --output simulated-mdvs.json\n   ```\n\n4. **Fit and profile the fluxes relevant to the question.**\n\n   ```bash\n   .venv-mfa\u002Fbin\u002Fpython \"$SKILL_DIR\u002Fscripts\u002Fmfa.py\" fit \\\n     --model model.json --data measurements.json --starts 12 --seed 2026 \\\n     --profile v3 --profile v7 --profile-points 31 --profile-starts 6 \\\n     --output fit.json\n   ```\n\n   Replace `v3` and `v7` with actual reaction IDs. Each profile point fixes that reaction\n   and reoptimizes nuisance fluxes. For nonlinear networks, repeat with a different seed\n   and more starts before interpreting a profile. A small residual is not an\n   identifiability result.\n5. **Inspect the evidence.** Check failed starts, residual patterns, mass balance,\n   active bounds, local sensitivity rank, and profile status. Report threshold-crossing\n   brackets at their actual grid resolution. Refine the grid if they are too coarse.\n   Each requested profile gives a one-flux interval under the stated error model;\n   multiple 95% profiles are not a simultaneous 95% region for the whole network.\n   If a profile finds a better solution than the baseline, rerun the fit; do not publish\n   the stale intervals. A failed profile point is unknown, not excluded by the data.\n6. **Deliver a bounded scientific result.** Include model and data hashes, package\n   versions, source\u002Fcorrection provenance, units and reference flux, fitted predictions,\n   residual diagnostics, profile plots or a table, and the unresolved flux combinations.\n   Retain the JSON artifact. Separate point estimates supported by the data from arbitrary\n   optimizer choices along a flat direction. Suggest additional measurements only after\n   testing that their predicted labeling changes along that direction.\n\n## Worked examples\n\nThese executable examples use synthetic, tracer-only data. There is no hidden natural-\nabundance correction, and the tracer proportions already include unlabeled material.\n\n### Recover a pathway split; then remove the informative measurement\n\nThe analytical two-route model sends a two-carbon substrate through either a\ncarbon-preserving or a carbon-swapping route. Uptake is fixed to 100. An 80% carbon-1\nlabeled feed and a carbon-1 fragment with M+1 = 0.56 determine the preserving route\nas 70 and the swapping route as 30.\n\n```bash\n.venv-mfa\u002Fbin\u002Fpython \"$SKILL_DIR\u002Fscripts\u002Fmfa.py\" fit \\\n  --model \"$SKILL_DIR\u002Fassets\u002Fbranch-model.json\" \\\n  --data \"$SKILL_DIR\u002Fassets\u002Fbranch-identifiable.json\" \\\n  --profile straight --profile-points 41 --output branch-fit.json\n\n.venv-mfa\u002Fbin\u002Fpython \"$SKILL_DIR\u002Fscripts\u002Fmfa.py\" fit \\\n  --model \"$SKILL_DIR\u002Fassets\u002Fbranch-model.json\" \\\n  --data \"$SKILL_DIR\u002Fassets\u002Fbranch-unresolved.json\" \\\n  --profile straight --output unresolved-fit.json\n```\n\nThe first fit recovers approximately 70\u002F30. Under its declared Gaussian error model,\nthe analytical 95% interval for `straight` is about 67.55–72.45; the script reports\ngrid brackets enclosing the threshold crossings. The second fit has only the whole-\nmolecule distribution, which is identical for the two routes. Expect local rank zero\nand `unresolved_within_bounds`; its returned split is an arbitrary optimum.\n\n`assets\u002Fbranch-fluxes.json` supplies the 70\u002F30 forward-simulation vector.\n\n### Reproduce a published cyclic-network calculation\n\n```bash\n.venv-mfa\u002Fbin\u002Fpython \"$SKILL_DIR\u002Fscripts\u002Fmfa.py\" simulate \\\n  --model \"$SKILL_DIR\u002Fassets\u002Ftca-model.json\" \\\n  --data \"$SKILL_DIR\u002Fassets\u002Ftca-tracer.json\" \\\n  --fluxes \"$SKILL_DIR\u002Fassets\u002Ftca-fluxes.json\" --output tca-simulation.json\n\n.venv-mfa\u002Fbin\u002Fpython \"$SKILL_DIR\u002Fscripts\u002Fmfa.py\" fit \\\n  --model \"$SKILL_DIR\u002Fassets\u002Ftca-model.json\" \\\n  --data \"$SKILL_DIR\u002Fassets\u002Ftca-reference-mdv.json\" \\\n  --profile v3 --profile v7 --output tca-fit.json\n```\n\nThe first command reproduces the published rounded glutamate MDV\n`[0.3464, 0.2695, 0.2708, 0.0807, 0.0286, 0.0039]`.\nThe second uses synthetic reference measurements to recover the glutamate branch\nflux near 50, while recognizing that this labeling does not resolve the\nfumarate\u002Foxaloacetate exchange. A constraint-induced upper edge is not evidence of\na measurement-determined exchange interval.\n\n## Interpretation boundaries\n\n- A positional isotopomer string runs **carbon 1 to carbon N from left to right**.\n  `\"100000\"` means carbon-1 labeled glucose. A mass distribution alone cannot specify\n  that positional mixture. The adapter handles mfapy's reversed integer-bit ordering.\n- Natural-abundance correction and tracer-purity correction are different operations.\n  Inputs must be in the documented tracer-only basis, with tracer impurity represented\n  consistently in source mixtures. Do not correct the same contribution twice.\n- An N-carbon mass distribution has at most N independent components because it sums\n  to one. The tool removes one bin and uses the reduced covariance. Retain cross-bin\n  correlations when available. Diagonal SEM fits are explicitly approximate.\n- The `symmetric` flag means equal averaging of identity and **complete carbon-order\n  reversal**, as in the bundled fumarate\u002Fsuccinate map. It is not arbitrary molecular\n  symmetry. Other permutations need an explicitly supported model representation.\n- Unsupported in this CLI: nonstationary MFA, isotope effects on reaction rates,\n  unmodeled pools or compartments, MS\u002FMS joint distributions, multi-element isotope\n  correction, fractional carbon stoichiometry\u002Fpseudo-reactions, and organism-scale\n  performance guarantees. For these, use a validated specialized model\u002Fengine and\n  retain the same input\u002Fprovenance and identifiability discipline.\n\n## Implementation and validation\n\n`scripts\u002Fmfa.py` is the CLI. `scripts\u002F_mfa_model.py` validates inputs and adapts them to\nthe mfapy EMU simulator; `scripts\u002F_mfa_fit.py` handles feasible flux coordinates,\nmultistart optimization, diagnostic rank, and profile calculations.\nThe engine is pinned in [assets\u002Frequirements.txt](assets\u002Frequirements.txt).\n\nThe repository suite at `tests\u002F13c-metabolic-flux\u002F` checks the published reference,\nanalytical split recovery and likelihood profiles, unresolved routes and exchange,\nomitted-bin invariance with correlated errors, parallel tracers, absolute-rate\nanchoring, repeated-substrate condensation, symmetry, invalid maps, and CLI behavior.\nThese checks establish the tested numerical behavior, not biological validation of a\nuser's model or a measured advantage over any particular language model.\n\n## Sources\n\n- [mfapy source at the tested revision](https:\u002F\u002Fgithub.com\u002Ffumiomatsuda\u002Fmfapy\u002Ftree\u002Fa10433af16682386548b360297e2476152d46ede), version 0.6.3; [API documentation](https:\u002F\u002Ffumiomatsuda.github.io\u002Fmfapy-document\u002Fmfapy.html).\n- Matsuda et al. (2021), [mfapy: An open-source Python package for 13C-based metabolic flux analysis](https:\u002F\u002Fdoi.org\u002F10.1016\u002Fj.mec.2021.e00177).\n- Antoniewicz, Kelleher, and Stephanopoulos (2007), [Elementary metabolite units (EMU): A novel framework for modeling isotopic distributions](https:\u002F\u002Fdoi.org\u002F10.1016\u002Fj.ymben.2006.09.001).\n- The TCA network is adapted from mfapy's MIT-licensed example files; the attribution\n  and full notice are in [assets\u002Fmfapy-license.txt](assets\u002Fmfapy-license.txt).\n","# Carbon-13 metabolic flux inference\n\nTurn reviewed carbon maps, explicit tracer mixtures, and corrected labeling measurements\ninto feasible flux estimates and evidence about which fluxes the experiment constrains.\nUse the bundled solver rather than reconstructing isotope balances or fitting each\nreaction independently. It runs mfapy's EMU forward simulator and fits fluxes in the\nmass-balanced feasible space with SciPy. It does not use an FBA objective.\n\n## Scope and required evidence\n\nThis implementation supports **metabolic and isotopic steady state**, a single shared\nflux state across one or more tracer experiments, nonnegative one-way reaction fluxes,\nand carbon-subset mass distributions. Reversible reactions are two separately mapped\ndirections. Measurement error is Gaussian with a supplied covariance or a disclosed\ndiagonal approximation.\n\nBefore fitting, obtain:\n\n- The carbon network and the source of each atom assignment. Stoichiometry alone does\n  not specify where labeled atoms go. Record compartments as separate metabolite IDs.\n- Evidence for both steady-state assumptions. Stable metabolite abundance does not\n  establish isotopic steady state. Time-course labeling requires INST-MFA with pool\n  sizes and initial labeling; do not average it into this solver.\n- Every carbon input's positional isotopomer distribution, including unlabeled\n  supplements, bicarbonate\u002FCO2 when assimilated, and tracer impurity.\n- Fragment carbon assignments, natural-abundance correction history, and uncertainty\n  of the **reported mean**. Raw peak intensities, derivatized spectra, and MS\u002FMS\n  transitions require validated preprocessing before these inputs can be constructed.\n- Flux units, extracellular rate measurements or a stated relative-flux reference,\n  and biologically justified bounds. Label fractions alone cannot set an absolute rate.\n\nIf necessary information is missing, name it and prepare the input template; do not\ninvent a fragment assignment, atom map, isotope correction, or measurement error.\nRead [references\u002Finput-contract.md](references\u002Finput-contract.md) when preparing inputs.\nRead [references\u002Finference.md](references\u002Finference.md) before interpreting an actual fit.\n\n## Install the tested engine\n\nRun in the user's analysis directory. Set `SKILL_DIR` to this skill's installed directory,\nusing the actual resolved path. Keep environments and generated results outside the skill.\n\n```bash\nuv venv --python 3.12 .venv-mfa\nuv pip install --python .venv-mfa\u002Fbin\u002Fpython -r \"$SKILL_DIR\u002Fassets\u002Frequirements.txt\"\n```\n\nThe following commands use `.venv-mfa\u002Fbin\u002Fpython`; on Windows use the environment's\n`Scripts\u002Fpython.exe`. mfapy is installed from an immutable Git revision because it is\nnot distributed on PyPI. Installation executes dependency build code; model inputs\nare data, not user-supplied Python. The adapter restricts identifiers and atom-map\nsyntax before they reach mfapy's internally generated numerical functions.\n\nThe pinned commit matched upstream `master` on 2026-09-30. Its README labels the\nlatest change \"064\", but its installed distribution still reports `0.6.3`; retain\nthe Git commit alongside the package version in an analysis record. The refreshed\nNumPy\u002FSciPy pins require Python 3.12 or later; the commands above use the tested 3.12\nenvironment. See the reviewed forward-model contract in\n[references\u002Finference.md](references\u002Finference.md).\n\n## Workflow\n\n1. **Prepare explicit inputs.** Copy a relevant model asset into the analysis directory,\n   then replace its scientific content only from reviewed evidence. The bundled models\n   are demonstrations, not validated organism-specific reconstructions. Use a separate\n   dataset for each biological condition; jointly fit tracer replicates only when their\n   biological flux state is defensibly shared.\n2. **Check the contract and feasibility.**\n\n   ```bash\n   .venv-mfa\u002Fbin\u002Fpython \"$SKILL_DIR\u002Fscripts\u002Fmfa.py\" check \\\n     --model model.json --data measurements.json --output input-check.json\n   ```\n\n   This checks atom counts and conservation, fragments, tracer sums, uncertainty\n   matrices, bounds, and steady-state mass-balance feasibility. It cannot verify that a\n   chemically consistent atom map is biologically correct or that a sample reached steady state.\n3. **Exercise the forward model.** Supply one mass-balanced flux vector in the declared\n   units. Compare predicted labeling with a reference or independently derived limits.\n\n   ```bash\n   .venv-mfa\u002Fbin\u002Fpython \"$SKILL_DIR\u002Fscripts\u002Fmfa.py\" simulate \\\n     --model model.json --data measurements.json --fluxes fluxes.json \\\n     --output simulated-mdvs.json\n   ```\n\n4. **Fit and profile the fluxes relevant to the question.**\n\n   ```bash\n   .venv-mfa\u002Fbin\u002Fpython \"$SKILL_DIR\u002Fscripts\u002Fmfa.py\" fit \\\n     --model model.json --data measurements.json --starts 12 --seed 2026 \\\n     --profile v3 --profile v7 --profile-points 31 --profile-starts 6 \\\n     --output fit.json\n   ```\n\n   Replace `v3` and `v7` with actual reaction IDs. Each profile point fixes that reaction\n   and reoptimizes nuisance fluxes. For nonlinear networks, repeat with a different seed\n   and more starts before interpreting a profile. A small residual is not an\n   identifiability result.\n5. **Inspect the evidence.** Check failed starts, residual patterns, mass balance,\n   active bounds, local sensitivity rank, and profile status. Report threshold-crossing\n   brackets at their actual grid resolution. Refine the grid if they are too coarse.\n   Each requested profile gives a one-flux interval under the stated error model;\n   multiple 95% profiles are not a simultaneous 95% region for the whole network.\n   If a profile finds a better solution than the baseline, rerun the fit; do not publish\n   the stale intervals. A failed profile point is unknown, not excluded by the data.\n6. **Deliver a bounded scientific result.** Include model and data hashes, package\n   versions, source\u002Fcorrection provenance, units and reference flux, fitted predictions,\n   residual diagnostics, profile plots or a table, and the unresolved flux combinations.\n   Retain the JSON artifact. Separate point estimates supported by the data from arbitrary\n   optimizer choices along a flat direction. Suggest additional measurements only after\n   testing that their predicted labeling changes along that direction.\n\n## Worked examples\n\nThese executable examples use synthetic, tracer-only data. There is no hidden natural-\nabundance correction, and the tracer proportions already include unlabeled material.\n\n### Recover a pathway split; then remove the informative measurement\n\nThe analytical two-route model sends a two-carbon substrate through either a\ncarbon-preserving or a carbon-swapping route. Uptake is fixed to 100. An 80% carbon-1\nlabeled feed and a carbon-1 fragment with M+1 = 0.56 determine the preserving route\nas 70 and the swapping route as 30.\n\n```bash\n.venv-mfa\u002Fbin\u002Fpython \"$SKILL_DIR\u002Fscripts\u002Fmfa.py\" fit \\\n  --model \"$SKILL_DIR\u002Fassets\u002Fbranch-model.json\" \\\n  --data \"$SKILL_DIR\u002Fassets\u002Fbranch-identifiable.json\" \\\n  --profile straight --profile-points 41 --output branch-fit.json\n\n.venv-mfa\u002Fbin\u002Fpython \"$SKILL_DIR\u002Fscripts\u002Fmfa.py\" fit \\\n  --model \"$SKILL_DIR\u002Fassets\u002Fbranch-model.json\" \\\n  --data \"$SKILL_DIR\u002Fassets\u002Fbranch-unresolved.json\" \\\n  --profile straight --output unresolved-fit.json\n```\n\nThe first fit recovers approximately 70\u002F30. Under its declared Gaussian error model,\nthe analytical 95% interval for `straight` is about 67.55–72.45; the script reports\ngrid brackets enclosing the threshold crossings. The second fit has only the whole-\nmolecule distribution, which is identical for the two routes. Expect local rank zero\nand `unresolved_within_bounds`; its returned split is an arbitrary optimum.\n\n`assets\u002Fbranch-fluxes.json` supplies the 70\u002F30 forward-simulation vector.\n\n### Reproduce a published cyclic-network calculation\n\n```bash\n.venv-mfa\u002Fbin\u002Fpython \"$SKILL_DIR\u002Fscripts\u002Fmfa.py\" simulate \\\n  --model \"$SKILL_DIR\u002Fassets\u002Ftca-model.json\" \\\n  --data \"$SKILL_DIR\u002Fassets\u002Ftca-tracer.json\" \\\n  --fluxes \"$SKILL_DIR\u002Fassets\u002Ftca-fluxes.json\" --output tca-simulation.json\n\n.venv-mfa\u002Fbin\u002Fpython \"$SKILL_DIR\u002Fscripts\u002Fmfa.py\" fit \\\n  --model \"$SKILL_DIR\u002Fassets\u002Ftca-model.json\" \\\n  --data \"$SKILL_DIR\u002Fassets\u002Ftca-reference-mdv.json\" \\\n  --profile v3 --profile v7 --output tca-fit.json\n```\n\nThe first command reproduces the published rounded glutamate MDV\n`[0.3464, 0.2695, 0.2708, 0.0807, 0.0286, 0.0039]`.\nThe second uses synthetic reference measurements to recover the glutamate branch\nflux near 50, while recognizing that this labeling does not resolve the\nfumarate\u002Foxaloacetate exchange. A constraint-induced upper edge is not evidence of\na measurement-determined exchange interval.\n\n## Interpretation boundaries\n\n- A positional isotopomer string runs **carbon 1 to carbon N from left to right**.\n  `\"100000\"` means carbon-1 labeled glucose. A mass distribution alone cannot specify\n  that positional mixture. The adapter handles mfapy's reversed integer-bit ordering.\n- Natural-abundance correction and tracer-purity correction are different operations.\n  Inputs must be in the documented tracer-only basis, with tracer impurity represented\n  consistently in source mixtures. Do not correct the same contribution twice.\n- An N-carbon mass distribution has at most N independent components because it sums\n  to one. The tool removes one bin and uses the reduced covariance. Retain cross-bin\n  correlations when available. Diagonal SEM fits are explicitly approximate.\n- The `symmetric` flag means equal averaging of identity and **complete carbon-order\n  reversal**, as in the bundled fumarate\u002Fsuccinate map. It is not arbitrary molecular\n  symmetry. Other permutations need an explicitly supported model representation.\n- Unsupported in this CLI: nonstationary MFA, isotope effects on reaction rates,\n  unmodeled pools or compartments, MS\u002FMS joint distributions, multi-element isotope\n  correction, fractional carbon stoichiometry\u002Fpseudo-reactions, and organism-scale\n  performance guarantees. For these, use a validated specialized model\u002Fengine and\n  retain the same input\u002Fprovenance and identifiability discipline.\n\n## Implementation and validation\n\n`scripts\u002Fmfa.py` is the CLI. `scripts\u002F_mfa_model.py` validates inputs and adapts them to\nthe mfapy EMU simulator; `scripts\u002F_mfa_fit.py` handles feasible flux coordinates,\nmultistart optimization, diagnostic rank, and profile calculations.\nThe engine is pinned in [assets\u002Frequirements.txt](assets\u002Frequirements.txt).\n\nThe repository suite at `tests\u002F13c-metabolic-flux\u002F` checks the published reference,\nanalytical split recovery and likelihood profiles, unresolved routes and exchange,\nomitted-bin invariance with correlated errors, parallel tracers, absolute-rate\nanchoring, repeated-substrate condensation, symmetry, invalid maps, and CLI behavior.\nThese checks establish the tested numerical behavior, not biological validation of a\nuser's model or a measured advantage over any particular language model.\n\n## Sources\n\n- [mfapy source at the tested revision](https:\u002F\u002Fgithub.com\u002Ffumiomatsuda\u002Fmfapy\u002Ftree\u002Fa10433af16682386548b360297e2476152d46ede), version 0.6.3; [API documentation](https:\u002F\u002Ffumiomatsuda.github.io\u002Fmfapy-document\u002Fmfapy.html).\n- Matsuda et al. (2021), [mfapy: An open-source Python package for 13C-based metabolic flux analysis](https:\u002F\u002Fdoi.org\u002F10.1016\u002Fj.mec.2021.e00177).\n- Antoniewicz, Kelleher, and Stephanopoulos (2007), [Elementary metabolite units (EMU): A novel framework for modeling isotopic distributions](https:\u002F\u002Fdoi.org\u002F10.1016\u002Fj.ymben.2006.09.001).\n- The TCA network is adapted from mfapy's MIT-licensed example files; the attribution\n  and full notice are in [assets\u002Fmfapy-license.txt](assets\u002Fmfapy-license.txt).\n",{"name":5,"license":14,"metadata":23,"description":7,"compatibility":27},{"version":24,"skill-author":25,"last-reviewed":26},"1.2","K-Dense Inc.","2026-09-30","Python 3.12 with uv and Git for installation. Tested with mfapy 0.6.3 at a10433af16682386548b360297e2476152d46ede, NumPy 2.5.3, SciPy 1.18.1, and NLopt 2.11.0. Network access is needed only to install public dependencies. Inference runs locally without credentials; inputs are JSON.","main","66c9bd32ac14a921980362cf85872a1c402101c2","config\u002Fopencode\u002Fskills\u002F13c-metabolic-flux","https:\u002F\u002Fgithub.com\u002Fbeanspowt\u002Fbeancode","https:\u002F\u002Fgithub.com\u002Fbeanspowt","2026-11-10 23:22:33",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add beanspowt\u002Fbeancode --skill 13c-metabolic-flux",{"tool":40,"command":41},"bunx","bunx skills add beanspowt\u002Fbeancode --skill 13c-metabolic-flux",{"tool":43,"command":44},"pnpm","pnpm dlx skills add beanspowt\u002Fbeancode --skill 13c-metabolic-flux","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fbeanspowt\u002Fbeancode\u002Fblob\u002Fmain\u002Fconfig\u002Fopencode\u002Fskills\u002F13c-metabolic-flux\u002FSKILL.md",true,[48,54,58,62,66,70,74,78,82,86,90,96,100,106,110],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"assets\u002Fbranch-fluxes.json","ASSET","资产文件",69,"https:\u002F\u002Fgithub.com\u002Fbeanspowt\u002Fbeancode\u002Fblob\u002Fmain\u002Fconfig\u002Fopencode\u002Fskills\u002F13c-metabolic-flux\u002Fassets\u002Fbranch-fluxes.json",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"assets\u002Fbranch-identifiable.json",823,"https:\u002F\u002Fgithub.com\u002Fbeanspowt\u002Fbeancode\u002Fblob\u002Fmain\u002Fconfig\u002Fopencode\u002Fskills\u002F13c-metabolic-flux\u002Fassets\u002Fbranch-identifiable.json",{"path":59,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":60,"sourceHtmlUrl":61},"assets\u002Fbranch-model.json",2103,"https:\u002F\u002Fgithub.com\u002Fbeanspowt\u002Fbeancode\u002Fblob\u002Fmain\u002Fconfig\u002Fopencode\u002Fskills\u002F13c-metabolic-flux\u002Fassets\u002Fbranch-model.json",{"path":63,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":64,"sourceHtmlUrl":65},"assets\u002Fbranch-unresolved.json",978,"https:\u002F\u002Fgithub.com\u002Fbeanspowt\u002Fbeancode\u002Fblob\u002Fmain\u002Fconfig\u002Fopencode\u002Fskills\u002F13c-metabolic-flux\u002Fassets\u002Fbranch-unresolved.json",{"path":67,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":68,"sourceHtmlUrl":69},"assets\u002Fmfapy-license.txt",1069,"https:\u002F\u002Fgithub.com\u002Fbeanspowt\u002Fbeancode\u002Fblob\u002Fmain\u002Fconfig\u002Fopencode\u002Fskills\u002F13c-metabolic-flux\u002Fassets\u002Fmfapy-license.txt",{"path":71,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":72,"sourceHtmlUrl":73},"assets\u002Frequirements.txt",136,"https:\u002F\u002Fgithub.com\u002Fbeanspowt\u002Fbeancode\u002Fblob\u002Fmain\u002Fconfig\u002Fopencode\u002Fskills\u002F13c-metabolic-flux\u002Fassets\u002Frequirements.txt",{"path":75,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":76,"sourceHtmlUrl":77},"assets\u002Ftca-fluxes.json",114,"https:\u002F\u002Fgithub.com\u002Fbeanspowt\u002Fbeancode\u002Fblob\u002Fmain\u002Fconfig\u002Fopencode\u002Fskills\u002F13c-metabolic-flux\u002Fassets\u002Ftca-fluxes.json",{"path":79,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":80,"sourceHtmlUrl":81},"assets\u002Ftca-model.json",4215,"https:\u002F\u002Fgithub.com\u002Fbeanspowt\u002Fbeancode\u002Fblob\u002Fmain\u002Fconfig\u002Fopencode\u002Fskills\u002F13c-metabolic-flux\u002Fassets\u002Ftca-model.json",{"path":83,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":84,"sourceHtmlUrl":85},"assets\u002Ftca-reference-mdv.json",2468,"https:\u002F\u002Fgithub.com\u002Fbeanspowt\u002Fbeancode\u002Fblob\u002Fmain\u002Fconfig\u002Fopencode\u002Fskills\u002F13c-metabolic-flux\u002Fassets\u002Ftca-reference-mdv.json",{"path":87,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":88,"sourceHtmlUrl":89},"assets\u002Ftca-tracer.json",570,"https:\u002F\u002Fgithub.com\u002Fbeanspowt\u002Fbeancode\u002Fblob\u002Fmain\u002Fconfig\u002Fopencode\u002Fskills\u002F13c-metabolic-flux\u002Fassets\u002Ftca-tracer.json",{"path":91,"resourceType":92,"resourceTypeDesc":93,"sizeBytes":94,"sourceHtmlUrl":95},"references\u002Finference.md","REFERENCE","参考文档",10088,"https:\u002F\u002Fgithub.com\u002Fbeanspowt\u002Fbeancode\u002Fblob\u002Fmain\u002Fconfig\u002Fopencode\u002Fskills\u002F13c-metabolic-flux\u002Freferences\u002Finference.md",{"path":97,"resourceType":92,"resourceTypeDesc":93,"sizeBytes":98,"sourceHtmlUrl":99},"references\u002Finput-contract.md",8189,"https:\u002F\u002Fgithub.com\u002Fbeanspowt\u002Fbeancode\u002Fblob\u002Fmain\u002Fconfig\u002Fopencode\u002Fskills\u002F13c-metabolic-flux\u002Freferences\u002Finput-contract.md",{"path":101,"resourceType":102,"resourceTypeDesc":103,"sizeBytes":104,"sourceHtmlUrl":105},"scripts\u002F_mfa_fit.py","SCRIPT","脚本",13635,"https:\u002F\u002Fgithub.com\u002Fbeanspowt\u002Fbeancode\u002Fblob\u002Fmain\u002Fconfig\u002Fopencode\u002Fskills\u002F13c-metabolic-flux\u002Fscripts\u002F_mfa_fit.py",{"path":107,"resourceType":102,"resourceTypeDesc":103,"sizeBytes":108,"sourceHtmlUrl":109},"scripts\u002F_mfa_model.py",20941,"https:\u002F\u002Fgithub.com\u002Fbeanspowt\u002Fbeancode\u002Fblob\u002Fmain\u002Fconfig\u002Fopencode\u002Fskills\u002F13c-metabolic-flux\u002Fscripts\u002F_mfa_model.py",{"path":111,"resourceType":102,"resourceTypeDesc":103,"sizeBytes":112,"sourceHtmlUrl":113},"scripts\u002Fmfa.py",4396,"https:\u002F\u002Fgithub.com\u002Fbeanspowt\u002Fbeancode\u002Fblob\u002Fmain\u002Fconfig\u002Fopencode\u002Fskills\u002F13c-metabolic-flux\u002Fscripts\u002Fmfa.py",[115,122,129,136,143,150],{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":18},"01M7F6BB3VS43C65P23JR4ZN5G","venue-templates","Prepares journal manuscripts, conference papers, research posters, and grant documents using venue-specific formatting guidance and bundled LaTeX scaffolds. Supports selecting an official template, checking current page or anonymity rules, adapting academic writing to a venue, or inspecting a submission PDF.","https:\u002F\u002Fgithub.com\u002Fbeanspowt\u002Fbeancode\u002Fblob\u002Fmain\u002Fhermes\u002Fprofiles\u002Fworker-writer\u002Fskills\u002Fvenue-templates\u002FSKILL.md",[],[],{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":18},"01M7F6B4CBVEHY1RKVW55X8484","scientific-writing","Drafts, revises, and audits scientific manuscripts or reports with explicit evidence provenance, reporting-guideline coverage, authorship accountability, confidentiality controls, and local consistency checks. Use for manuscript sections, references, declarations, tables, figures, or submission preparation when scientific accuracy and traceability matter.","https:\u002F\u002Fgithub.com\u002Fbeanspowt\u002Fbeancode\u002Fblob\u002Fmain\u002Fhermes\u002Fprofiles\u002Fworker-writer\u002Fskills\u002Fscientific-writing\u002FSKILL.md",[],[],{"skillNo":130,"name":131,"nameZh":6,"description":132,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":133,"categories":134,"keywords":135,"publishedAt":18},"01M7F6AXKSP5AXE8B7RCE1KP0C","scientific-visualization","Creates and audits truthful, accessible, publication-ready scientific figures with Matplotlib, Seaborn, or Plotly. Use it for figure design, multi-panel layouts, uncertainty and missing-data displays, color\u002Fcontrast review, image metadata validation, and journal export planning.","https:\u002F\u002Fgithub.com\u002Fbeanspowt\u002Fbeancode\u002Fblob\u002Fmain\u002Fhermes\u002Fprofiles\u002Fworker-writer\u002Fskills\u002Fscientific-visualization\u002FSKILL.md",[],[],{"skillNo":137,"name":138,"nameZh":6,"description":139,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":18},"01M7F6AMRHS0QH64CMKE8TP9Y7","scientific-slides","Builds slide decks and presentations for research talks. Used for making PowerPoint slides, conference presentations, seminar talks, research presentations, thesis defense slides, or any scientific talk. Provides slide structure, design templates, timing guidance, and visual validation. Works with PowerPoint and LaTeX Beamer.","https:\u002F\u002Fgithub.com\u002Fbeanspowt\u002Fbeancode\u002Fblob\u002Fmain\u002Fhermes\u002Fprofiles\u002Fworker-writer\u002Fskills\u002Fscientific-slides\u002FSKILL.md",[],[],{"skillNo":144,"name":145,"nameZh":6,"description":146,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":147,"categories":148,"keywords":149,"publishedAt":18},"01M7F6ACZ7GQJNNW0682235MC3","scientific-schematics","Generates scientific diagram drafts using Nano Banana 2 AI with smart iterative refinement. Uses Gemini 3.7 Flash for quality review. Refines when the review requests improvement, with at most two generations. Specialized in neural network architectures, system diagrams, flowcharts, biological pathways, and complex scientific visualizations.","https:\u002F\u002Fgithub.com\u002Fbeanspowt\u002Fbeancode\u002Fblob\u002Fmain\u002Fhermes\u002Fprofiles\u002Fworker-writer\u002Fskills\u002Fscientific-schematics\u002FSKILL.md",[],[],{"skillNo":151,"name":152,"nameZh":6,"description":153,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":154,"categories":155,"keywords":156,"publishedAt":18},"01M7F6A2JDHTYABYSA4NCE82VG","research-grants","Supports research proposal preparation and review for NSF, NIH, DOE, DARPA, and Taiwan NSTC, including opportunity-specific requirements, aims, review criteria, budgets, broader impacts, forms, and resubmissions. Use for investigator-authored grant development, compliance matrices, and proposal critiques.","https:\u002F\u002Fgithub.com\u002Fbeanspowt\u002Fbeancode\u002Fblob\u002Fmain\u002Fhermes\u002Fprofiles\u002Fworker-writer\u002Fskills\u002Fresearch-grants\u002FSKILL.md",[],[]]