Chem similarity from pdf

From XuShuwenn/RedAct · View interactive version

Chem similarity from pdf is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Find top-k similar molecules to a target by parsing names from documents, resolving names via PubChem, and comparing Morgan fingerprints (radius=2, chirality) using Tanimoto similarity.

How to use this skill

Skill file

Chemical Similarity from PDF Name Lists

A reusable workflow to extract molecule names from PDFs or text, resolve names to structures using PubChem, compute Morgan fingerprints (radius=2, include chirality), and rank candidates by Tanimoto similarity to a target molecule.

When to Use

Activate this skill when you need to:

Core Workflow

  1. Inspect and Extract Molecule Names
  1. Resolve Names to Structures (no manual mappings)
  1. Compute Target and Candidate Fingerprints
  1. Score and Rank
  1. Return Results

Verification

Common Pitfalls and How to Avoid Them

Optional Script Usage

The provided helper script implements this workflow in a reusable way:

Example (CLI):

Example (import in Python):

Success Criteria

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.