export_code
Generates standalone reproduction code for metabolite mapping using original library APIs, outputting a Python script and Jupyter notebook for full reproducibility.
Instructions
Write standalone reproduction code that reproduces the run using the ORIGINAL library APIs (MetaboAnalystR/BridgeDbR/KEGGREST via Rscript, PubChem PUG-REST, molmass, COBRApy, matplotlib) — NOT the tool wrappers. Emits both code/reproduce_mapping.py (flow-based, reads the saved ledger) and code/reproduce_mapping.ipynb (same flow unrolled into linear cells, no def, with detailed input/output/reuse comments per cell).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workdir": "<workdir>"
},
"name": "export_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workdir | Yes |