agentsclimarketplace

Chemical database querying and retrieval

Skill HolobiomicsLab/asb-skill-collections/packs/metabolomics/nmr/skills/chemical-database-querying-and-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 chemical-database-querying-and-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 have BioTransformer-predicted metabolite structures (in SMILES or InChI format) and need to identify which known compounds in public databases match those structures.

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

7.1 KB, ~1.2k tokens by cl100k_base, as published. Nobody here has run it

chemical-database-querying-and-retrieval

Summary

Query chemical structure databases (PubChem, ChEMBL, HMDB) with predicted metabolite structures to retrieve known compound identities and retrieve matching candidates ranked by structural similarity and biological plausibility. This skill transforms predicted SMILES or InChI structures into validated chemical identifiers and metadata for metabolite annotation.

When to use

You have BioTransformer-predicted metabolite structures (in SMILES or InChI format) and need to identify which known compounds in public databases match those structures. Apply this skill when you want to assign chemical names, CAS numbers, and confidence scores to predictions within a specific biological context (mammalian, gut microbial, or environmental metabolism).

When NOT to use

  • The input metabolites are already experimentally validated and linked to reference standards—use direct reference matching instead.
  • You need de novo structure determination from mass spectrometry or NMR—this skill assumes structures are already predicted.
  • Commercial or proprietary compound databases are required; this skill is designed for open-access databases (PubChem, ChEMBL, HMDB).

Inputs

  • predicted metabolite structures (SMILES format)
  • predicted metabolite structures (InChI format)
  • organism or environmental context (mammalian, gut microbial, soil/aquatic)

Outputs

  • ranked candidate metabolite identifications (tabular)
  • chemical name per candidate
  • database identifiers (CAS, InChI, SMILES)
  • confidence score per candidate
  • structural similarity metrics

How to apply

For each predicted metabolite from BioTransformer, query PubChem, ChEMBL, or HMDB using the structure in SMILES or InChI format as a lookup key. Retrieve all candidate compounds that match or are structurally similar to the query. Score and rank candidates by structural similarity to the prediction, breadth of database coverage (cross-referenced across PubChem/ChEMBL/HMDB), and biological plausibility in the target organism or environment. Compile results into a tabular output containing chemical name, identifier (CAS, InChI, SMILES), and a normalized confidence score reflecting the strength of the match and contextual applicability.

Related tools

  • BioTransformer (generates predicted metabolite structures (SMILES/InChI) that serve as input queries for database retrieval) — https://github.com/Wishartlab-openscience/Biotransformer
  • PubChem (public chemical database queried to retrieve known compounds matching predicted metabolite structures)
  • ChEMBL (chemical database queried for structural matches and candidate compound metadata)
  • HMDB (human metabolome database queried for contextually relevant metabolite identifications in mammalian systems)

Examples

java -jar biotransformer-3.0.0.jar -k cid -b allHuman -ismi "O[C@@H]1CC2=C(O)C=C(O)C=C2O[C@@H]1C1=CC=C(O)C(O)=C1" -osdf output.sdf -s 2 -m "292.0946;304.0946" -t 0.01 -a

Evaluation signals

  • Retrieved candidate list is non-empty and contains at least one structural match with confidence score ≥ 0.7 for predicted metabolites known to be in reference databases
  • Ranked candidates maintain strict ordering by confidence score; candidates with higher structural similarity and broader database cross-reference coverage rank higher
  • Output table contains all required fields (chemical name, CAS/InChI/SMILES identifiers, confidence score) with no missing values for top-ranked candidates
  • Candidates are biologically plausible in the specified context (e.g., human metabolites do not include soil-specific xenobiotic degradation products)
  • Structural similarity between query (predicted SMILES) and top candidate can be recomputed (e.g., Tanimoto coefficient) and matches reported score within ±0.05

Limitations

  • Identification quality depends on database coverage; rare or novel metabolites may have no matches even if structurally valid predictions.
  • Structural similarity scoring may fail for highly regio-isomeric or stereoisomeric metabolites that are chemically similar but biologically distinct.
  • Cross-database inconsistencies in chemical identifiers (CAS, SMILES canonicalization) may lead to false negatives or duplicates in candidate ranking.
  • Biological plausibility filtering requires domain knowledge (e.g., organism-specific enzyme availability); algorithmic filtering alone may over- or under-rank candidates.

Evidence

  • [other] For each predicted metabolite, query chemical databases (PubChem, ChEMBL, or HMDB) to retrieve known compounds matching the predicted structure.: "For each predicted metabolite, query chemical databases (PubChem, ChEMBL, or HMDB) to retrieve known compounds matching the predicted structure."
  • [other] Score and rank candidate identifications by structural similarity, database coverage, and biological plausibility within the relevant organism/environment context (mammalian, gut microbial, or soil/aquatic).: "Score and rank candidate identifications by structural similarity, database coverage, and biological plausibility within the relevant organism/environment context (mammalian, gut microbial, or"
  • [other] Load the query compound identifier and BioTransformer's predicted metabolite structures (SMILES or InChI format).: "Load the query compound identifier and BioTransformer's predicted metabolite structures (SMILES or InChI format)."
  • [readme] BioTransformer also assists scientists in metabolite identification, based on the metabolism prediction.: "BioTransformer also assists scientists in metabolite identification, based on the metabolism prediction."
  • [other] Compile the ranked candidate list with chemical name, identifier (CAS, InChI, SMILES), and confidence score into a tabular output.: "Compile the ranked candidate list with chemical name, identifier (CAS, InChI, SMILES), and confidence score into a tabular output."

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.