Effort: thorough
Build a metabolic-pathway flux pipeline using cobrapy that takes
a gene knock-out (or knock-down expression change), simulates the
resulting metabolic flux in a context-specific genome-scale model
(Recon3D for human or species-appropriate alternative), runs FBA
(Flux Balance Analysis) and FVA (Flux Variability Analysis), and
persists the per-reaction flux shift as an interpretable artifact.
Used by metabolic-vertical debates ("does GLP-1R agonism shift hepatic
gluconeogenesis fluxes?") to provide quantitative answers, not just
literature claims.
The metabolic vertical needs more than DEG analysis to be credible —
fluxes through the metabolic network are what physiologically matter,
and constraint-based modeling is the only tractable way to estimate
them at scale. cobrapy is bundled but no pipeline composes it. With
this pipeline, a metabolic Theorist can argue from simulated fluxes,
the Skeptic can rerun with alternative constraints, and the resulting
artifact is reproducible.
scidex/forge/pathway_flux.py (≤700 LoC):load_model(name='Recon3D') — caches Recon3D SBML andcobra.Model; supports iJO1366 (E. coli) andiCHOv1 (CHO) as alternatives.apply_knockout(model, gene_symbol) — translates gene toapply_expression(model, gene_to_fold_change) — bulk-appliesrun_fba(model) — solves; returns objective value + fluxes.run_fva(model, fraction_of_optimum=0.95) — solves FVA;compare(baseline, perturbed) — computes per-reactionpipeline(gene_or_expression, model='Recon3D') — composesdata/scidex-artifacts/flux/<run_id>/ with the SBMLflux_run(run_id PRIMARY KEY, model_name,tools.py registers pathway_flux_pipeline(...) with@log_tool_call.
/artifacts/<id> renders the Escher map (existing imageq-vert-vertical-personas-pack) receives a flux_block whenpython -m scidex.forge.pathway_flux --gene G6PDhttp://bigg.ucsd.edu/static/models/Recon3D.xml)data/cobra/Recon3D.xml.
escher Python lib if installable,q-tool-singlecell-trajectory-cobrapy skill.q-vert-vertical-personas-pack — metabolic-expert persona consumes