Experimental-Torsion Basic Knowledge Distance Geometry (ETKDG) is a conformer generation algorithm that combines distance geometry with a statistically derived torsion angle knowledge base. It constructs an initial atomic distance bounds matrix from a molecular graph, then refines it by applying preferred torsion angles extracted from the Cambridge Structural Database (CSD) to ensure the resulting 3D structures reflect experimentally observed molecular geometries.
Glossary
ETKDG

What is ETKDG?
A knowledge-based distance geometry method for generating conformers that uses experimental torsion angle preferences and small ring corrections to produce physically realistic three-dimensional molecular structures.
The method incorporates explicit corrections for small rings and macrocycles, which standard distance geometry often mishandles, and applies a stochastic search to sample diverse low-energy conformers. By biasing the generation toward crystallographically observed torsion preferences rather than relying solely on a crude force field, ETKDG produces physically realistic ensembles that serve as reliable starting points for downstream tasks like molecular docking and conformer generation.
Frequently Asked Questions
Clear, technical answers to the most common questions about the Experimental-Torsion basic Knowledge Distance Geometry algorithm and its role in generating physically realistic 3D molecular structures.
Experimental-Torsion basic Knowledge Distance Geometry (ETKDG) is a conformer generation algorithm that combines distance geometry with experimental torsion angle preferences to produce physically realistic three-dimensional molecular structures. The method works in two phases: first, it stochastically generates an initial 3D embedding by satisfying a set of interatomic distance bounds derived from the molecular graph. Second, it refines this embedding by applying a torsion angle potential derived from the Cambridge Structural Database (CSD), which encodes the experimentally observed preferences for rotatable bonds. Unlike pure distance geometry, ETKDG biases the sampling toward torsion angles that are statistically favored in small-molecule crystal structures, dramatically reducing the generation of high-energy, unrealistic conformers. The algorithm also applies small ring corrections to handle the unique geometric constraints of cyclic systems, ensuring that macrocycles and fused rings adopt physically plausible geometries rather than distorted or self-intersecting conformations.
Key Features of ETKDG
The Experimental-Torsion Knowledge-Based Distance Geometry (ETKDG) method generates physically realistic 3D molecular conformers by combining distance geometry with experimental torsion angle preferences and small ring corrections.
Knowledge-Based Torsion Sampling
ETKDG replaces random torsion angle assignment with experimental torsion knowledge derived from the Cambridge Structural Database (CSD). Torsion angles are sampled from probability distributions extracted from small-molecule crystal structures, ensuring generated conformers reflect physically observed geometries rather than arbitrary rotations. This dramatically increases the likelihood of generating biologically relevant conformations.
Small Ring Correction
Standard distance geometry often fails for small rings (3- and 4-membered rings) because the triangle inequality bounds do not adequately constrain the geometry. ETKDG applies explicit ring templates with idealized bond lengths and angles for cyclopropane, cyclobutane, and related systems, preventing the generation of distorted or impossible ring conformations.
Distance Bounds Matrix Refinement
The algorithm constructs a distance bounds matrix using:
- 1-2 and 1-3 distances: Fixed from bond lengths and angles
- 1-4 distances: Bounded by cis/trans torsion constraints
- Long-range bounds: Smoothed using triangle inequality tightening This matrix is then used to generate random coordinates via metric matrix embedding, producing a diverse conformer ensemble.
Energy Minimization and Filtering
After initial coordinate generation, ETKDG applies a force field-based energy minimization (typically using the Universal Force Field or MMFF94) to relieve steric clashes and correct bond geometries. Duplicate conformers are removed using RMSD pruning with a user-defined threshold, ensuring the final ensemble is both diverse and energetically reasonable.
Macrocycle Handling
Standard ETKDG struggles with macrocycles (rings > 12 atoms) due to their complex conformational landscapes. ETKDGv3 introduces ring-templating for macrocycles and enhanced torsion sampling that accounts for transannular interactions, significantly improving the accuracy of large-ring conformer generation compared to earlier versions.
ETKDG vs. Other Conformer Generation Methods
Comparison of ETKDG with alternative conformer generation approaches across key performance and quality metrics for drug discovery workflows.
| Feature | ETKDG | RDKit Distance Geometry | OMEGA | ConfGen |
|---|---|---|---|---|
Torsion knowledge base | Experimental CSD preferences | None (uniform sampling) | MMFF94 force field | Force field + rules |
Small ring correction | ||||
Macrocycle support | ||||
RMSD to crystal structure | 0.35 Å | 0.52 Å | 0.38 Å | 0.41 Å |
Conformer generation speed | < 0.1 sec/molecule | < 0.05 sec/molecule | 0.2-0.5 sec/molecule | 0.1-0.3 sec/molecule |
Energy minimization step | MMFF94 (optional) | None required | MMFF94s (built-in) | OPLS_2005 (built-in) |
Open-source availability | ||||
Handles stereochemistry |
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
ETKDG is one component in a broader toolkit for generating physically realistic 3D molecular structures. These related terms cover the foundational algorithms, evaluation metrics, and alternative methods that computational chemists use alongside knowledge-based distance geometry.
Conformer Generation
The computational process of generating a diverse set of low-energy three-dimensional structures for a molecule by rotating its torsional bonds to sample the potential energy surface. The goal is to produce an ensemble that contains the bioactive conformation—the shape a molecule adopts when binding to a protein target.
- Systematic search: Enumerates all torsion combinations at fixed increments (combinatorial explosion limits this to small molecules)
- Stochastic search: Randomly perturbs torsions and minimizes, as used in OMEGA and ConfGen
- Distance geometry: Randomly samples distance bounds matrices then embeds 3D coordinates, the foundation of ETKDG
- Molecular dynamics: Simulates physical motion at temperature to overcome rotational barriers
Torsion Library
A curated database of torsional angle preferences extracted from experimentally determined small-molecule crystal structures, typically from the Cambridge Structural Database (CSD) or Protein Data Bank (PDB). ETKDG uses these libraries to bias conformer generation toward physically realistic geometries rather than purely random rotations.
- Each rotatable bond type is assigned a probability distribution over its dihedral angle range
- Common patterns include sp³-sp³ bonds (staggered conformations preferred) and sp²-sp² bonds (planar with cis/trans preferences)
- The CSD torsion library contains millions of fragments, binned by SMARTS patterns
- ETKDG applies these as knowledge-based potentials during the distance bounds smoothing phase
Root Mean Square Deviation (RMSD)
A standard metric for quantifying the structural similarity between two superimposed atomic coordinates, calculated as the square root of the average squared distance between corresponding atoms. In conformer generation, RMSD is used to prune duplicate conformers and to evaluate how well generated structures reproduce experimental geometries.
- Heavy-atom RMSD: Only non-hydrogen atoms are considered, the most common variant
- A threshold of 0.5–1.0 Å is typically used to define conformational uniqueness
- Minimum RMSD across an ensemble measures coverage of the bioactive conformation
- Symmetry-corrected RMSD accounts for topologically equivalent atoms (e.g., phenyl ring flips)
Distance Geometry
A mathematical framework for generating 3D coordinates from an incomplete set of interatomic distance constraints. The algorithm creates a random distance matrix that satisfies upper and lower bounds derived from covalent connectivity and van der Waals radii, then embeds it into Cartesian space using metric matrix decomposition.
- Bound smoothing: The triangle inequality is applied iteratively to tighten distance bounds before sampling
- Embedding: The distance matrix is converted to a metric matrix, and the three largest eigenvalues yield the 3D coordinates
- ETKDG extends classical distance geometry by replacing random torsional sampling with knowledge-based torsion angle preferences
- Implemented in RDKit as the
EmbedMoleculefunction withETKDGorETKDGv2parameters
Small Ring Corrections
A critical refinement in ETKDGv2 that adjusts torsion angle preferences for bonds contained within small rings (3- to 5-membered rings). Standard torsion libraries derived from acyclic fragments fail for ring systems because the cyclic geometry imposes additional angular constraints not present in open-chain analogues.
- Cyclopropane, cyclobutane, and cyclopentane rings each have distinct puckering preferences
- ETKDGv2 applies ring-specific torsion potentials parameterized from crystallographic data
- Without these corrections, small rings often adopt physically impossible planar geometries
- The correction also handles fused ring systems and spiro compounds where multiple rings share atoms

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us