Molecular Dynamics Flexible Fitting (MDFF) is a computational technique that flexibly fits an atomic model into a cryo-electron microscopy (cryo-EM) density map by applying external forces derived from the map's potential during a molecular dynamics (MD) simulation. The method adds a biasing potential, proportional to the gradient of the density map, to the standard MD force field, driving atoms into high-density regions while preserving physically realistic stereochemistry and non-bonded interactions.
Glossary
Molecular Dynamics Flexible Fitting (MDFF)

What is Molecular Dynamics Flexible Fitting (MDFF)?
A hybrid method that combines molecular dynamics simulation with cryo-EM density map constraints to flexibly fit atomic models into experimental data.
Developed by the Schulten group and implemented in NAMD and VMD, MDFF addresses the rigid-body docking limitation by allowing the atomic model to undergo conformational changes to match the target map. Symmetry restraints, secondary structure restraints, and cis-peptide bond enforcement are typically applied to maintain model integrity. The approach is widely used for interpreting cryo-EM maps of macromolecular assemblies, such as the ribosome, at resolutions where de novo model building is ambiguous but flexible fitting can resolve domain movements and side-chain orientations.
Key Features of MDFF
MDFF bridges the gap between static cryo-EM density maps and the dynamic atomic models they represent. By applying map-derived forces during a molecular dynamics simulation, MDFF flexibly fits an initial atomic structure into the target density, revealing conformational states and capturing the inherent flexibility of biomolecules.
Map-Derived Biasing Potential
The core mechanism of MDFF involves converting the cryo-EM density map into a potential energy function (U_EM). This potential is added to the standard molecular dynamics force field. The potential is defined such that atoms are driven into high-density regions, effectively steering the atomic model from its initial position into the target map's contours. The force on each atom is proportional to the gradient of the density map, ensuring a physically plausible fitting trajectory.
Symmetry Restraints
Many macromolecular complexes, such as viral capsids or chaperonins, exhibit symmetry. MDFF can enforce these symmetries during the fitting simulation to improve the global quality of the fit and prevent overfitting to local noise. By applying harmonic restraints that maintain the spatial relationships between symmetry-related subunits, the effective signal-to-noise ratio is increased, leading to more accurate and globally consistent atomic models.
Interactive and Steered Fitting
MDFF is not limited to automated protocols. It can be run in an interactive mode using visualization tools like VMD. This allows researchers to manually apply steering forces to specific atoms or domains in real-time, guiding the model out of local minima or into ambiguous density. This human-in-the-loop approach is invaluable for interpreting complex or lower-resolution regions where automated fitting may struggle.
Secondary Structure Restraints
To preserve the integrity of the model during fitting into medium-resolution maps (4-7 Å), MDFF can apply secondary structure restraints. These harmonic potentials maintain the characteristic hydrogen bonding patterns and dihedral angles of alpha-helices and beta-sheets. This prevents the unfolding of these well-predicted structural elements while allowing flexible loops and domains to adapt to the experimental density.
Cascade MDFF Protocol
For high-resolution maps, a cascade MDFF protocol is often employed. This involves a series of sequential simulations:
- Step 1: Fit the model into a map filtered to a lower resolution (e.g., 5 Å) to capture the global shape.
- Step 2: Progressively fit into maps with increasing resolution, allowing the model to settle into finer structural details like side-chain rotamers and ordered water molecules. This staged approach ensures a robust and accurate final fit.
Integration with QM/MM
MDFF can be combined with Quantum Mechanics/Molecular Mechanics (QM/MM) simulations. This hybrid approach is critical for studying enzymatic active sites or metalloproteins within a cryo-EM map. The chemically active region (e.g., a catalytic center with a bound drug) is treated with quantum mechanical accuracy, while the rest of the protein scaffold is fitted using classical MD. This provides an unprecedented view of reaction mechanisms in near-native states.
Frequently Asked Questions
Clarifying the core mechanisms, computational workflows, and practical applications of MDFF for integrating high-resolution static structures with cryo-EM density maps.
Molecular Dynamics Flexible Fitting (MDFF) is a computational method that uses molecular dynamics (MD) simulation to flexibly fit an atomic model into a cryo-electron microscopy (cryo-EM) density map by applying forces derived from the map's potential. The workflow begins by converting the experimental 3D Coulomb potential map into a grid-based potential energy function. During the MD simulation, atoms experience steering forces proportional to the local density gradient, effectively pulling them into high-density regions. Simultaneously, the standard MD force field preserves stereochemical integrity—maintaining proper bond lengths, angles, and non-bonded interactions—preventing overfitting to noise. This dual-force approach allows the model to undergo large-scale conformational transitions, such as domain rotations, to match the target map while avoiding unphysical distortions. The result is a physically plausible, all-atom model that accurately represents the experimental data.
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
Essential computational methods and tools that interface with or underpin Molecular Dynamics Flexible Fitting workflows.

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