Figure To Compound

Skill workflow-skill many-tools-to-one-skill Proprietary (Paramus) — guidance only; execution performed by Paramus tools under their own license gating.
provenanceai generated statuspartial
Turn a structure figure in a paper or PDF into a registered, searchable compound - extract the figure from the document, run image-to-structure, validate the SMILES, resolve it against PubChem, generate 3D coordinates, and similarity-check the result against the claimed target.When to use: a user points at a structure figure in a publication and asks “what is this compound / make it searchable”.Multi-tool WORKFLOW with structure-verification judgment.
Procedure7 steps · 5 orchestrated tools
1
Discover tools via search/get_schema ("pubchem", "validate", "similarity",
2
Extract the figure from the PDF page - in implementation (document-ai): the
3
Run image-to-structure on the cropped figure - in implementation (ocsr):
4
Validate the extracted SMILES with validate_bigsmiles before anything depends
Toolsvalidate_bigsmiles
5
Resolve the validated SMILES with cloud_pubchem_resolve: a hit means the
Toolscloud_pubchem_resolve
6
Verify with calculate_similarity between the extracted structure and the
Toolscalculate_similarity
7
Deliver the registered compound: validated SMILES, CID or "novel" status,
You get
validated SMILES, registration record (CID and synonyms, or "novel

Overview

Papers communicate chemistry as pictures. This skill closes the loop from a structure figure in a paper or PDF to a machine-readable, registered, searchable compound: extract the figure, run image-to-structure, validate the resulting SMILES, resolve it against PubChem, and verify the extraction against the compound the paper claims. Extraction and image-to-structure are in implementation; everything after the SMILES exists today. The value is the verification discipline - an unverified extraction is a liability, not a result.

Guidance vs execution: validation, resolution, similarity, and 3D generation come from tested Paramus tools. Figure extraction and OCSR are in implementation (document-ai, ocsr). Never "read" a structure off a figure from general model knowledge - the structure must come out of the pipeline.

When to Use

  • A user points at a structure figure in a paper/PDF and asks "what is this compound", "register it", or "is it the same as X?".
  • Digitizing the chemistry of a publication into a searchable compound collection.

Do not use for: identifying an unknown from NMR spectra (paramus-nmr-unknown-identification), assembling a full substance dossier once the identity is known (paramus-pubchem-substance-dossier), or patent landscaping around the extracted compound (paramus-patent-landscape-screen).

Domain Judgment

  • Never trust the extraction: every OCSR-derived SMILES is validated and resolved before it is registered. A confident-looking image-to-structure output is a hypothesis until the similarity check passes.
  • The similarity check against the claimed target is the acceptance test; set the threshold with the user (exact identity vs close analog are different intents - a substituted analog should not be forced to match).
  • A novel-structure result is a deliverable, not an error: "not in PubChem" plus a valid, verified structure is exactly what a registration workflow needs.
  • No structure is invented: if extraction fails, the failure is reported, not patched from general knowledge.

Failure modes

  • Figure extraction or OCSR apps not yet available -> deliver the downstream pipeline with those steps marked in implementation (document-ai, ocsr); do not read the figure from general knowledge.
  • Extracted SMILES fails validation -> report the failed extraction; request a clearer figure or a supplementary-structure file. Do not repair it by guessing.
  • Similarity to the claimed target below threshold -> report extraction as ambiguous with both structures shown; the user decides, not the pipeline.
  • Resolution misses but the paper names a known drug -> cross-check the name with cloud_pubchem_search; a mismatch means the extraction, not the database, is suspect.

Example

Asked: "Figure 3 of this PDF shows the paper's lead compound - extract it, tell me if it's a known compound, and register it for our collection." The skill marks the figure-extraction step as in implementation (document-ai) and the image-to-structure step as in implementation (ocsr); once those apps land, the cropped figure yields a candidate SMILES. Today the chain from the SMILES onward runs: validate_bigsmiles checks the notation, cloud_pubchem_resolve tests whether the structure is known (CID and synonyms if so), and cloud_pubchem_search cross-checks the compound name printed under the figure when resolution misses. calculate_similarity between the extracted structure and the resolved claimed target is the acceptance test, and generate_3d_coords produces the coordinates for the registered entry. No structure, CID, or similarity value is stated in this skill in advance - every one comes from the tools at run time, and a failed verification is reported as a failed extraction.

Input

the PDF (or page/figure pointer) and the paper's claimed compound name or

Output

validated SMILES, registration record (CID and synonyms, or "novel

Orchestrates · 5 tools

The skill decides at runtime which to call.

validate_bigsmiles cloud_pubchem_resolve cloud_pubchem_search calculate_similarity generate_3d_coords