agentsclimarketplace

Metabolite structure format conversion

Skill HolobiomicsLab/asb-skill-collections/collections/metabolomics/v2/skills/metabolite-structure-format-conversion

Use when when importing candidate metabolite structures from public chemical databases (PubChem, ChEBI, etc.) for use in MAGMa-based annotation workflows, or when integrating external structure datasets that may use divergent molecular representation formats or contain non-standard chemical.From its SKILL.md

Install
npx -y skills add HolobiomicsLab/asb-skill-collections --skill metabolite-structure-format-conversion

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 15 stars15 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its file declares

Copied from the file, not written here

The file declares its own license as CC-BY-4.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

6.2 KB, 902 tokens by cl100k_base, as published. Nobody here has run it

metabolite-structure-format-conversion

Summary

Convert and standardize chemical structure formats from public databases (e.g., PubChem) into formats compatible with in silico metabolite annotation pipelines. This skill ensures structural data integrity and computational compatibility across heterogeneous chemo-informatics workflows.

When to use

When importing candidate metabolite structures from public chemical databases (PubChem, ChEBI, etc.) for use in MAGMa-based annotation workflows, or when integrating external structure datasets that may use divergent molecular representation formats or contain non-standard chemical notations incompatible with fragment-matching algorithms.

When NOT to use

  • Input structures are already validated and formatted for MAGMa ingestion—conversion is redundant.
  • The annotation workflow does not depend on external structure databases (e.g., de novo fragment enumeration without candidate lookup).
  • Structures are from a proprietary or curated database already integrated into the pipeline—no re-standardization is needed.

Inputs

  • PubChem compound records (SDF, SMILES, or InChI format)
  • candidate structure dataset with molecular identifiers
  • chemical structure raw data from external database
  • molecular property tables (mass, formula, element counts)

Outputs

  • standardized candidate structure file in MAGMa-compatible format
  • validated structure identifier and property mapping table
  • processed candidate set ready for metabolite annotation job
  • format compliance report with validation statistics

How to apply

Extract and parse chemical structure records from the source database in their native format (e.g., SDF, SMILES, InChI). Apply standardization filters to normalize bond types, stereochemistry encoding, and protonation states. Validate each structure for chemical validity and molecular property constraints (e.g., mass range, element composition). Convert structures to the format required by the downstream tool (MAGMa expects specific structure identifiers and property metadata). Finally, export the processed candidate set in the exact format and field order required by the job calculation interface, and verify format compliance via schema validation before pipeline ingestion.

Related tools

  • MAGMa (recipient pipeline that consumes standardized metabolite structures and performs in silico fragment matching against MS/MS data) — https://github.com/NLeSC/MAGMa
  • PubChem database (source chemical structure repository from which candidate metabolite structures are extracted and parsed)

Evaluation signals

  • All structures parse without chemical validity errors and round-trip through the standardization pipeline unchanged.
  • Molecular formulas and masses derived from standardized structures match expected ranges for the metabolite class under study.
  • The exported candidate file conforms to the MAGMa job input schema (field names, data types, required columns present).
  • The number of candidate structures retained post-standardization is within expected bounds (e.g., >80% of input structures pass validation).
  • Downstream MAGMa job execution completes without format-related errors and produces ranked metabolite annotations.

Limitations

  • Standardization may fail or discard structures with non-standard chirality notation or rare valence states not recognized by the parser.
  • PubChem and other public databases may contain duplicate, mis-annotated, or stereochemically ambiguous entries that standardization alone cannot resolve.
  • Format conversion is lossy if the target format (e.g., MAGMa's required input) does not preserve all stereochemical or isotopic information present in the source record.
  • No discussion of algorithm robustness or edge cases is provided in the available documentation.

Evidence

  • [other] Filter and standardize chemical structures to ensure compatibility with MAGMa's annotation pipeline.: "Filter and standardize chemical structures to ensure compatibility with MAGMa's annotation pipeline."
  • [other] Extract and parse PubChem compound records from the public PubChem database.: "Extract and parse PubChem compound records from the public PubChem database."
  • [other] Validate the candidate set for completeness and format compliance.: "Validate the candidate set for completeness and format compliance."
  • [other] Export the processed candidate structures to the format required by MAGMa job calculation.: "Export the processed candidate structures to the format required by MAGMa job calculation."
  • [other] The job subproject implements metabolite annotation by generating in silico metabolites and matching them against MS/MS data, as part of MAGMa (Ms Annotation based on in silico Generated Metabolites).: "The job subproject implements metabolite annotation by generating in silico metabolites and matching them against MS/MS data"

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 326,782. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.