agentsclimarketplace

Pubchem compound database retrieval

Skill HolobiomicsLab/asb-skill-collections/packs/metabolomics/ms-generic/skills/pubchem-compound-database-retrieval

Curated, evidence-grounded skill and software-tool collections for scientific AI agents, generated by the AgenticScienceBuilder

Install
npx -y skills add HolobiomicsLab/asb-skill-collections --skill pubchem-compound-database-retrieval

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

  • 14 stars14 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 author says it does

Copied from the file, not written here

Use when you need to supply candidate metabolite structures for mass spectrometry annotation when working within an integrative metabolomics data analysis workflow (such as MAGMa).

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.1 KB, 916 tokens by cl100k_base, as published. Nobody here has run it

pubchem-compound-database-retrieval

Summary

Extract, parse, and standardize chemical structures from the PubChem database to generate a validated candidate structure set for metabolite annotation workflows. This skill bridges public chemical data repositories with chemo-informatics pipelines by ensuring structural compatibility and format compliance.

When to use

You need to supply candidate metabolite structures for mass spectrometry annotation when working within an integrative metabolomics data analysis workflow (such as MAGMa). Apply this skill when your metabolite identification pipeline requires a curated, standardized lookup database of known compounds indexed by molecular mass or other chemical properties.

When NOT to use

  • Your metabolite annotation workflow already includes a pre-built, validated structure database—skip direct PubChem retrieval and validation.
  • You are working with a specialized metabolite subset (e.g., only lipids, only natural products) that requires a domain-specific repository instead of the full PubChem dataset.
  • Real-time structure lookup is required; batch pre-processing and static database export are insufficient for your use case.

Inputs

  • PubChem compound records (via API or bulk download)
  • Target annotation tool specification (e.g., MAGMa job input format requirements)
  • Filtering criteria (optional: mass range, structure class, data completeness threshold)

Outputs

  • Standardized candidate structure database
  • Indexed lookup table (compound ID → molecular properties)
  • Processed structures in tool-specific format (e.g., MAGMa-compatible structure file)

How to apply

Begin by extracting and parsing compound records from the public PubChem database using available PubChem APIs or bulk download facilities. Filter and standardize the retrieved chemical structures to ensure compatibility with your downstream annotation tool's expected input format (e.g., MAGMa's structure representation). Generate or compile candidate structure identifiers and relevant molecular properties (e.g., exact mass, molecular formula, InChI). Validate the processed candidate set for completeness (coverage of expected mass ranges) and format compliance (schema adherence, required fields present). Finally, export the validated structures in the format required by your job calculation pipeline—this intermediate database becomes the lookup resource for candidate mass matching during annotation.

Related tools

  • MAGMa (Accepts standardized candidate structures for MS annotation and in silico metabolite matching) — https://github.com/NLeSC/MAGMa
  • PubChem (Source database from which compound records are extracted and parsed)

Evaluation signals

  • All exported structures conform to the target tool's input schema (e.g., required fields, allowed stereochemistry formats).
  • Molecular properties (exact mass, molecular formula) are internally consistent and chemically valid.
  • The candidate set includes expected mass range coverage (e.g., no large gaps in m/z bins relevant to the experimental data).
  • Duplicate or redundant structures are eliminated; structure IDs are unique and traceable to PubChem source records.
  • Format validation passes without error when ingested by the downstream annotation job (e.g., MAGMa job launcher accepts the structure file).

Limitations

  • PubChem includes structures of varying experimental validation quality; no filtering by experimental evidence level is applied in the base workflow.
  • Standardization may alter or lose stereochemical information if the target tool does not support full 3D structure representation.
  • Mass-based candidate filtering requires precomputation; real-time queries against the full PubChem dataset are not addressed by this batch-oriented skill.
  • The workflow does not explicitly address PubChem record updates or versioning—reproducibility depends on archiving the export date and record subset used.

Evidence

  • [other] The workflow and rationale for structure extraction and standardization: "Extract and parse PubChem compound records from the public PubChem database. 2. Filter and standardize chemical structures to ensure compatibility with MAGMa's annotation pipeline. 3. Generate or"
  • [readme] Project context and role of PubChem processing: "The job calculation requires a pubchem lookup database which can be made using the pubchem application."
  • [readme] Broader scientific context of metabolite identification: "The project develops chemo-informatics based methods for metabolite identification and biochemical network reconstruction in an integrative metabolomics data analysis workflow."
  • [other] Subproject purpose in the eMetabolomics workflow: "The eMetabolomics project includes a pubchem subproject as one of its component subprojects that processes PubChem data to supply candidate structures for the metabolite identification workflow."

Keep looking

Skills are one crate of 328,083. 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.