Introducing a new way to review your PRs.

Read the announcement

rdkit / rdkit

The official sources for the RDKit library

View on GitHub

20 documents · Updated Nov 23, 2026

overview

Knowledge Base updated: 2026-11-22

RDKit knowledge base

RDKit is a cheminformatics toolkit centered on C++ molecular graph libraries and exposed through Python bindings and integrations.

Core state is held in molecular graphs, conformers, reaction objects, query structures, fingerprints, and force-field parameterizations. The Code/ tree implements native subsystems; rdkit/ provides Python modules and wrappers.

flowchart TD
  IO[Structure I/O] --> Graph[Molecular graph core]
  Graph --> Query[Substructure & query chemistry]
  Graph --> Rxn[Chemical reactions]
  Graph --> Desc[Descriptors & fingerprints]
  Desc --> Similarity[Similarity & data structures]
  Graph --> Conformers[Conformer generation]
  Conformers --> DG[Distance geometry]
  Conformers --> FF[Force-field optimization]
  Graph --> Depiction[Molecule depiction]
  Depiction --> Layout[2D layout]
  Depiction --> Draw[Drawing backends]
  Graph --> Bindings[Python API & native bindings]
  Bindings --> PyWorkflows[Python chemistry workflows]
  Bindings --> Integrations[Cross-language & web integrations]
  Graph --> Features[Chemical features & pharmacophores]
  Graph --> Synthon[Synthon-space search]

Glossary

  • ROMol/RWMol — read-only and editable native molecular graph representations.
  • Conformer — a set of three-dimensional coordinates associated with a molecule.
  • FPB — binary fingerprint storage format read by DataStructs FPB readers.
  • SMARTS — query-language notation for molecular substructure patterns.
  • Synthon space — combinatorial search space constructed from compatible fragments.

Invariants

  • Molecular connectivity and atom/bond properties are represented by the ROMol/RWMol graph model (Code/GraphMol/).
  • Distance-geometry embedding operates on bounds matrices before producing conformer coordinates (Code/…/BoundsMatrixBuilder.cpp).
  • Native capabilities are surfaced to Python through wrapper layers and the rdkit package (Code/**/Wrap/, rdkit/).
  • Fingerprint comparison relies on DataStructs vector implementations and similarity primitives (Code/DataStructs/).
  • Drawing and tabular Python workflows must retain molecule objects and their associated properties through conversion paths (rdkit/Chem/Draw/, rdkit/…/PandasTools.py).

Routing table