rdkit

Expose RDKit APIs through Python for molecular analysis workflows.

Updated Jun 7, 2026
One-click install
npx skills add https://github.com/schneidermu/agent-dotfiles --skill rdkit-schneidermu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rdkit
Source: https://github.com/schneidermu/agent-dotfiles/tree/main/codex-skills/rdkit
Command: npx skills add https://github.com/schneidermu/agent-dotfiles --skill rdkit-schneidermu

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires rdkit, and includes scripts (resource) and references (resource) components.

What problem does it solve?

RDKit provides a Python-based cheminformatics toolkit that enables researchers and developers to read and write molecular structures, compute descriptors, generate fingerprints, perform substructure searches, simulate chemical reactions, and visualize molecules in a programmable workflow.

Core Features & Use Cases

  • Molecular I/O and conversion: read/write SMILES, MOL, InChI, PDB, and block formats, with sanitization and error checks.
  • Descriptor, fingerprint, and similarity tooling: calculate properties like MW, LogP, TPSA, and generate Morgan, RDKit, AllChem fingerprints to enable similarity searches and clustering.
  • Substructure searching and reaction support: query with SMARTS patterns, detect motifs, and model reaction transforms with atom mapping.
  • 2D/3D coordinate generation and visualization: generate coordinates, optimize structures, and render molecule images for reports.
  • Use Case: In a lead-optimization campaign, automatically filter a compound library for drug-likeness, similarity to a lead, and key substructures, then visualize top hits.

Quick Start

Import RDKit, read a SMILES string into a Mol, and compute basic descriptors.

Frequently Asked Questions about rdkit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I calculate molecular descriptors like LogP and TPSA from SMILES strings?

To calculate molecular descriptors from SMILES strings, you parse the SMILES into a Mol object and compute properties like MW, LogP, and TPSA programmatically. This enables rapid drug-likeness evaluation across compound libraries.

How do I perform a substructure search using SMARTS patterns in Python?

Substructure searching with SMARTS patterns involves loading target molecules and querying them against defined motifs to detect matches. This allows automated identification of specific functional groups within large datasets.

Can I generate molecular fingerprints for similarity searching and clustering?

Yes, you can generate Morgan, RDKit, or AllChem fingerprints to enable similarity searching and clustering. These fingerprints quantize structural features for quantitative comparison between molecules.

Does RDKit support reading and writing multiple molecular file formats with error handling?

RDKit supports reading and writing SMILES, MOL, InChI, PDB, and block formats with sanitization and robust error checks. This ensures reliable molecular I/O and conversion across cheminformatics workflows.

What is the best way to simulate chemical reactions with atom mapping in cheminformatics?

Simulating chemical reactions with atom mapping uses reaction transforms to model chemical changes programmatically. This approach tracks atom correspondence through transformations for precise reaction modeling.

How do I generate 2D and 3D coordinates for molecule visualization and structure optimization?

Generating 2D and 3D coordinates for visualization involves computing spatial positions and optimizing structures. This renders molecule images for reports and enables spatial analysis in computational chemistry.