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/RWMolgraph 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
rdkitpackage (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
Code/GraphMol/{ROMol.*,RWMol.*,Atom.*,Bond.*,MolOps.*}-> docs/molecular-graph-core.mdCode/GraphMol/FileParsers/**-> docs/structure-input-output.mdCode/GraphMol/SmilesParse/**-> docs/structure-input-output.mdCode/GraphMol/Substruct/**-> docs/substructure-and-query-chemistry.mdCode/GraphMol/QueryAtom.*-> docs/substructure-and-query-chemistry.mdCode/GraphMol/ChemReactions/**-> docs/chemical-reactions.mdCode/GraphMol/SynthonSpaceSearch/**-> docs/synthon-space-search.mdCode/GraphMol/Descriptors/**-> docs/molecular-descriptors-and-fingerprints.mdCode/GraphMol/Descriptors/**-> docs/descriptor-calculation.mdCode/GraphMol/Fingerprints/**-> docs/fingerprint-generation.mdCode/GraphMol/DistGeomHelpers/**-> docs/conformer-generation-and-force-fields.mdCode/ForceField/**-> docs/conformer-generation-and-force-fields.mdCode/GraphMol/DistGeomHelpers/**-> docs/distance-geometry.mdCode/ForceField/**-> docs/force-field-optimization.mdCode/GraphMol/ForceFieldHelpers/**-> docs/force-field-optimization.mdCode/GraphMol/Depictor/**-> docs/molecule-depiction-and-rendering.mdCode/GraphMol/Depictor/**-> docs/two-dimensional-layout.mdCode/GraphMol/MolDraw2D/**-> docs/drawing-backends.mdCode/**/Wrap/**-> docs/python-api-and-native-bindings.mdrdkit/Chem/{Descriptors.py,Crippen.py,Lipinski.py,MolStandardize/**,Scaffolds/**,Fragments.py,EnumerateStereoisomers.py,Draw/**,PandasTools.py}-> docs/python-chemistry-workflows.mdCode/JavaWrappers/**-> docs/cross-language-and-web-integrations.mdCode/MinimalLib/**-> docs/cross-language-and-web-integrations.mdCode/DataStructs/**-> docs/similarity-search-and-data-structures.mdCode/GraphMol/ChemFeatures/**-> docs/chemical-features-and-pharmacophores.mdrdkit/Chem/Pharm2D/**-> docs/chemical-features-and-pharmacophores.md