Figure To Compound
search/get_schema ("pubchem", "validate", "similarity",validate_bigsmiles before anything dependscloud_pubchem_resolve: a hit means thecalculate_similarity between the extracted structure and theOverview
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
Frequently Asked Questions
What does Figure To Compound do?
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. Use when 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.
What do I provide and what do I get back?
You provide: the PDF (or page/figure pointer) and the paper's claimed compound name or. You get: validated SMILES, registration record (CID and synonyms, or "novel.
Which tools does it orchestrate?
5 catalog tools, chosen at runtime: validate_bigsmiles, cloud_pubchem_resolve, cloud_pubchem_search, calculate_similarity, generate_3d_coords.