chemo-informatics-workflow-reconstruction
Summary
Reconstructs the algorithmic pipeline and computational logic of a chemo-informatics tool (MAGMa) by performing static code analysis on source modules to extract fragmentation rules, molecular property filters, and in silico metabolite enumeration steps. This skill is essential when you need to understand, document, or reproduce the internal chemical transformation logic of a closed or insufficiently documented metabolite generation system.
When to use
When you have access to the source code of a chemo-informatics tool (e.g., MAGMa) and need to understand the in silico generation workflow—including fragmentation logic, isomer enumeration, and candidate filtering—in order to validate metabolite annotations, extend the pipeline, or integrate it into a larger metabolomics analysis workflow. Use this skill specifically when the original documentation is sparse or does not detail the intermediate chemical transformations and parameter thresholds.
When NOT to use
- Input is a high-level tool documentation or user manual without access to underlying source code—use the tool's published API documentation instead.
- The goal is to apply an existing metabolite generation tool to a dataset, not to understand or reconstruct its internal logic—directly invoke the tool via its CLI or API.
- You lack programming expertise to perform static code analysis on the target language—seek domain expert assistance or rely on published algorithm papers.
Inputs
- Source code repository (GitHub or equivalent) containing chemo-informatics calculation modules
- Parent chemical structures (molecular SMILES or InChI)
- Generation rules and parameter definitions from source code
- Fragmentation rules and molecular property computation logic
Outputs
- Directed acyclic graph (DAG) or flowchart JSON representation of the metabolite generation pipeline
- Annotated function call chains and algorithm entry points
- Extracted parameter thresholds and conditional branching rules
- Candidate metabolite sets with computed molecular properties
- Documentation of intermediate transformations and data flow
How to apply
Clone the source repository (e.g., NLeSC/MAGMa from GitHub) and locate the metabolite generation subproject modules. Perform static code analysis on the relevant source files to identify algorithm entry points, function call chains, and data structure transformations. Map the chemical structure fragmentation logic, molecular property computation routines, and in silico metabolite enumeration steps by tracing parameter definitions, conditional branches, and transformation rules. Construct a directed acyclic graph (DAG) or flowchart JSON representation that explicitly documents inputs (parent chemical structures, generation rules, filters), intermediate computations (fragmentation, isomer enumeration, property thresholding), and outputs (ranked candidate metabolite sets). Annotate each node with function names, algorithm identifiers (e.g., fragmentation type, property metric), and key computational steps extracted directly from the source code to ensure fidelity to the implementation.
Related tools
- MAGMa (Target chemo-informatics system providing in silico metabolite generation, fragmentation, and annotation capabilities; source code subject of workflow reconstruction) — https://github.com/NLeSC/MAGMa
- PubChem (Chemical structure and property database used by MAGMa for mass candidate lookup and reference metabolite data)
Evaluation signals
- The reconstructed DAG/flowchart matches the actual code execution path when traced through with a representative parent structure and generation rules.
- All parameter thresholds (e.g., fragmentation weights, isomer enumeration limits, property filters) extracted from source code are validated against their usage sites and produce identical candidate sets.
- Intermediate computational outputs (fragmentation products, enumerated isomers, filtered candidates) match reference runs of the original tool on the same input.
- All documented function names, algorithm identifiers, and conditional branches can be located and verified in the source code with line references.
- The pipeline documentation enables independent implementation or modification of the workflow without requiring the original tool's execution.
Limitations
- Static code analysis alone cannot capture dynamic runtime behavior, optimization passes, or external library side effects that may influence metabolite enumeration.
- Reconstruction fidelity depends on code clarity, presence of comments, and absence of obfuscation; highly complex or legacy code may require iterative validation against tool execution.
- Changes to dependency libraries or language runtime versions may alter the computational behavior of extracted rules, requiring re-validation.
- No changelog documentation was found for the MAGMa repository, making it difficult to track algorithm changes across versions.
Evidence
- [readme] The eMetabolomics project develops chemo-informatics based methods for metabolite identification and biochemical network reconstruction in an integrative metabolomics data analysis workflow.: "The project develops chemo-informatics based methods for metabolite identification and biochemical network reconstruction in an integrative metabolomics data analysis workflow."
- [readme] MAGMa is a abbreviation for 'Ms Annotation based on in silico Generated Metabolites'.: "MAGMa is a abbreviation for 'Ms Annotation based on in silico Generated Metabolites'."
- [other] Map chemical structure fragmentation logic, molecular property computation, and in silico metabolite enumeration steps.: "Map chemical structure fragmentation logic, molecular property computation, and in silico metabolite enumeration steps."
- [other] Construct a directed acyclic graph or flowchart JSON representation showing inputs (parent structures, generation rules), intermediate computations (fragmentation, isomer enumeration, property filters), and outputs (candidate metabolite sets).: "Construct a directed acyclic graph or flowchart JSON representation showing inputs (parent structures, generation rules), intermediate computations (fragmentation, isomer enumeration, property"
- [other] Perform static code analysis on the metabolite generation modules to identify algorithm entry points, function call chains, and data transformations.: "Perform static code analysis on the metabolite generation modules to identify algorithm entry points, function call chains, and data transformations."
1---2name: chemo-informatics-workflow-reconstruction-23description: Use when when you have access to the source code of a chemo-informatics4 tool (e.5license: CC-BY-4.06metadata:7 edam_operation: http://edamontology.org/operation_24098 edam_topics:9 - http://edamontology.org/topic_317210 - http://edamontology.org/topic_060211 - http://edamontology.org/topic_337512 tools:13 - MAGMa14 - PubChem15 license_tier: open16 provenance_tier: literature17derived_from:18- doi: 10.5702/massspectrometry.S003319 title: magma20evidence_spans:21- MAGMa is a abbreviation for 'Ms Annotation based on in silico Generated Metabolites'.22- MAGMa is a abbreviation for 'Ms Annotation based on in silico Generated Metabolites'23claims: []24provenance:25 collection: https://w3id.org/holobiomicslab/asb-skill/collection/metabolomics/v226 assembled_by: scripts/collect_metabolomics_collection.py27 sources:28 - build: coll_magma29 doi: 10.5702/massspectrometry.S003330 title: magma31 dedup_kept_from: coll_magma32schema_version: 0.2.033attribution:34 generator: AgenticScienceBuilder35 original_doi: 10.5702/massspectrometry.S003336 all_source_dois:37 - 10.5702/massspectrometry.S003338 zenodo_doi: 10.5281/zenodo.2079402739 curators: []40 promoter: Louis-Félix Nothias41 sponsor: CNRS & Université Côte d'Azur42---4344# chemo-informatics-workflow-reconstruction4546## Summary4748Reconstructs the algorithmic pipeline and computational logic of a chemo-informatics tool (MAGMa) by performing static code analysis on source modules to extract fragmentation rules, molecular property filters, and in silico metabolite enumeration steps. This skill is essential when you need to understand, document, or reproduce the internal chemical transformation logic of a closed or insufficiently documented metabolite generation system.4950## When to use5152When you have access to the source code of a chemo-informatics tool (e.g., MAGMa) and need to understand the in silico generation workflow—including fragmentation logic, isomer enumeration, and candidate filtering—in order to validate metabolite annotations, extend the pipeline, or integrate it into a larger metabolomics analysis workflow. Use this skill specifically when the original documentation is sparse or does not detail the intermediate chemical transformations and parameter thresholds.5354## When NOT to use5556- Input is a high-level tool documentation or user manual without access to underlying source code—use the tool's published API documentation instead.57- The goal is to apply an existing metabolite generation tool to a dataset, not to understand or reconstruct its internal logic—directly invoke the tool via its CLI or API.58- You lack programming expertise to perform static code analysis on the target language—seek domain expert assistance or rely on published algorithm papers.5960## Inputs6162- Source code repository (GitHub or equivalent) containing chemo-informatics calculation modules63- Parent chemical structures (molecular SMILES or InChI)64- Generation rules and parameter definitions from source code65- Fragmentation rules and molecular property computation logic6667## Outputs6869- Directed acyclic graph (DAG) or flowchart JSON representation of the metabolite generation pipeline70- Annotated function call chains and algorithm entry points71- Extracted parameter thresholds and conditional branching rules72- Candidate metabolite sets with computed molecular properties73- Documentation of intermediate transformations and data flow7475## How to apply7677Clone the source repository (e.g., NLeSC/MAGMa from GitHub) and locate the metabolite generation subproject modules. Perform static code analysis on the relevant source files to identify algorithm entry points, function call chains, and data structure transformations. Map the chemical structure fragmentation logic, molecular property computation routines, and in silico metabolite enumeration steps by tracing parameter definitions, conditional branches, and transformation rules. Construct a directed acyclic graph (DAG) or flowchart JSON representation that explicitly documents inputs (parent chemical structures, generation rules, filters), intermediate computations (fragmentation, isomer enumeration, property thresholding), and outputs (ranked candidate metabolite sets). Annotate each node with function names, algorithm identifiers (e.g., fragmentation type, property metric), and key computational steps extracted directly from the source code to ensure fidelity to the implementation.7879## Related tools8081- **MAGMa** (Target chemo-informatics system providing in silico metabolite generation, fragmentation, and annotation capabilities; source code subject of workflow reconstruction) — https://github.com/NLeSC/MAGMa82- **PubChem** (Chemical structure and property database used by MAGMa for mass candidate lookup and reference metabolite data)8384## Evaluation signals8586- The reconstructed DAG/flowchart matches the actual code execution path when traced through with a representative parent structure and generation rules.87- All parameter thresholds (e.g., fragmentation weights, isomer enumeration limits, property filters) extracted from source code are validated against their usage sites and produce identical candidate sets.88- Intermediate computational outputs (fragmentation products, enumerated isomers, filtered candidates) match reference runs of the original tool on the same input.89- All documented function names, algorithm identifiers, and conditional branches can be located and verified in the source code with line references.90- The pipeline documentation enables independent implementation or modification of the workflow without requiring the original tool's execution.9192## Limitations9394- Static code analysis alone cannot capture dynamic runtime behavior, optimization passes, or external library side effects that may influence metabolite enumeration.95- Reconstruction fidelity depends on code clarity, presence of comments, and absence of obfuscation; highly complex or legacy code may require iterative validation against tool execution.96- Changes to dependency libraries or language runtime versions may alter the computational behavior of extracted rules, requiring re-validation.97- No changelog documentation was found for the MAGMa repository, making it difficult to track algorithm changes across versions.9899## Evidence100101- [readme] The eMetabolomics project develops chemo-informatics based methods for metabolite identification and biochemical network reconstruction in an integrative metabolomics data analysis workflow.: "The project develops chemo-informatics based methods for metabolite identification and biochemical network reconstruction in an integrative metabolomics data analysis workflow."102- [readme] MAGMa is a abbreviation for 'Ms Annotation based on in silico Generated Metabolites'.: "MAGMa is a abbreviation for 'Ms Annotation based on in silico Generated Metabolites'."103- [other] Map chemical structure fragmentation logic, molecular property computation, and in silico metabolite enumeration steps.: "Map chemical structure fragmentation logic, molecular property computation, and in silico metabolite enumeration steps."104- [other] Construct a directed acyclic graph or flowchart JSON representation showing inputs (parent structures, generation rules), intermediate computations (fragmentation, isomer enumeration, property filters), and outputs (candidate metabolite sets).: "Construct a directed acyclic graph or flowchart JSON representation showing inputs (parent structures, generation rules), intermediate computations (fragmentation, isomer enumeration, property"105- [other] Perform static code analysis on the metabolite generation modules to identify algorithm entry points, function call chains, and data transformations.: "Perform static code analysis on the metabolite generation modules to identify algorithm entry points, function call chains, and data transformations."