█████████ █████ ██████ ██████ ██████████
███░░░░░███ ░░███ ░░██████ ██████ ░░███░░░░███
████████ █████ ████ ░███ ░███ ███████ ░███░█████░███ ░███ ░░███
░░███░░███░░███ ░███ ░███████████ ███░░███ ░███░░███ ░███ ░███ ░███
░███ ░███ ░███ ░███ ░███░░░░░███ ░███ ░███ ░███ ░░░ ░███ ░███ ░███
░███ ░███ ░███ ░███ ░███ ░███ ░███ ░███ ░███ ░███ ░███ ███
░███████ ░░███████ █████ █████░░████████ █████ █████ ██████████
░███░░░ ░░░░░███ ░░░░░ ░░░░░ ░░░░░░░░ ░░░░░ ░░░░░ ░░░░░░░░░░
░███ ███ ░███
█████ ░░██████
░░░░░ ░░░░░░
The Adaptive Molecular Dynamics with Excited Normal Modes (aMDeNM) method applies a kinetic excitation of normal modes (NMs) to enhance molecular dynamics simulations sampling. This technique consists in injecting additional atomic velocities along uniformily distributed combinations of NM vectors, creating an effective coupling between slow and fast molecular motions. The motions described by preselected directions of low-frequency NMs are dynamically adjusted throughout the simulation. By coupling low-frequency NM excitation with adaptive directional adjustments, aMDeNM facilitates extensive exploration of the energy landscape, overcoming the constraints of fixed, rectilinear displacements and alleviating structural stresses and environmental resistance. Importantly, aMDeNM requires only an initial structure without the need to specify predefined target states, distinguishing it from many biased sampling techniques that rely on predefined target conformations.
pyAdMD is a package designed to fully setup, run, and analyze aMDeNM simulations on a dedicated Python environment. This document provides an overview of the method and documents the package functionalities.
- Adaptive Molecular Dynamics with Python
- Method Overview
- pyAdMD Applications
- Configuration
- Input Requirements
- Free Energy Landscape
- Analysis
- Usage Examples
- Using OpenMM inputs and heavy atoms NMs
- Using NAMD inputs and Cα NMs with custom parameters
- Using NAMD inputs and CHARMM NMs without direction correction (standard MDeNM)
- Restart unfinished pyAdMD simulations
- Append 100 ps to previously finished pyAdMD simulations
- Analyze pyAdMD simulations (all frames)
- Analyze every 5 ps skipping DSSP and LMI
- Compute a free energy landscape
- Extend a previous free energy calculation with more centroids and production time
- Clean previous setup files
- Installation
- Dependencies
- Citing
- License
- Contact
The aMDeNM is a enhanced sampling molecular dynamics method that uses normal modes as collective variables in order do increase the conformational space explored during MD simulation. This is done by injecting an incremental energy to the system, thus assigning additional atomic velocities along the direction of a given NM (or a combination of a NM set). The combination of the velocities from MD and those provided by the NM vectors properly couple slow and fast motions, allowing one to obtain large time scale movements, such as domain transitions in a feasible simulation time. The additional energy injection and the excitation direction are constantly evaluated and updated to ensure the sampling validity.
The aMDeNM production runs (the excitation cycles themselves) are computed with OpenMM using the CHARMM36m force field. GPU platforms (CUDA, then OpenCL) are preferred automatically, with a CPU fallback if neither is available. We strongly recommend that all system preparation be done with CHARMM-GUI.
This is a prerequired step to perform aMDeNM simulations. It consists in performing a short equilibration MD to store the final atomic velocities and positions. Two equilibration input paths are supported, selected via -src/--source:
- NAMD (
-src NAMD): NAMD 3.0 binary files (.coor/.vel/.xsc) plus a CHARMM-style stream file containing the PBC geometry information (.str). - OpenMM (
-src OPENMM): OpenMM state supplied as an XML restart file (.rst) produced withXmlSerializer.serialize(state)from a state built withgetPositions=True, getVelocities=True.
If using CHARMM-based normal modes, it is also necessary to compute the modes from the last MD coordinates and store the vectors from the low-frequency end of the vibrational spectrum on a binary file.
The program computes Cα or heavy atoms Elastic Network Model using the same algorithms as the software available at our ENM github repository.
The program generates uniformly distributed excitation vectors through a geometry-aware repulsion-based algorithm. The approach builds on a physics-inspired framework where points behave as charged particles confined to a spherical manifold, interacting through a dimensionally-scaled potential function. Unlike naive implementations that operate in an abstract factor space, the algorithm here accounts for the true geometry of the normal mode subspace before distributing the points, guaranteeing that the resulting excitation vectors are genuinely equidistant in the physical Cartesian space that governs the molecular dynamics.
The PDIM algorithm was the first implementation built for the same purpose; the design presented here extends that concept with a geometry-corrected basis and a faster, more concise implementation.
Let
Given an integer
This corresponds to finding an optimal spherical code on the unit hypersphere
A naive approach would place the
To correct for this, the algorithm explicitly constructs an orthonormal basis
for
Assemble the mode matrix
Apply QR decomposition to
where
A point
The repulsion algorithm therefore operates on
The distribution problem is cast as an energy minimization over
The repulsive potential uses an inverse power law scaled by the dimensionality of the space:
The exponent
The repulsive force on point
Since the points must remain on
Each iteration updates the points by a fixed step
Convergence is declared when
When
provide an analytically optimal initialization in
Once the coordinates
The equivalent scalar combination factors
where factors.csv output file for reference but do not influence the simulation; the physical vectors
Reproducibility: the only stochastic step in this procedure is the initial placement of the -seed/--seed, default 42), so pyadmd run calls with identical arguments produce identical excitation vectors and factors.csv — see Run Parameters.
Note: ENM recomputation under --recalc (see Excitation Direction Update) draws a new random combination each time it fires and is intentionally not covered by --seed, since its purpose is to re-diversify the excitation direction mid-simulation.
The additional kinetic energy injected in the system has a fast dissipation rate. Therefore, the program constantly checks the injection energy level and rescale the velocities along the excited direction whenever it is necessary. The kinetic energy along the normalized excitation vector
where
With this procedure, the system is kept in a continuous excited state, allowing an effective small, "adiabatic-like" energy injection. The energy injection control is done by projecting the velocities computed during the simulation onto the excited vector, thus obtaining and rescaling the kinetic energy corresponding to it.
Since the excitation vector is obtained from the initial conformation, it is dependent of this configuration. As the system is displaced along this direction and change its conformation, the motion loses its directionality due to mainly anharmonic effects. To prevent the structural distortions produced by the displacement along a vector that is no longer valid, the program update the excitation directions based on the trajectory evolution during the previous excitation steps. This procedure allows the system to adaptively find a relaxed path to follow during the next aMDeNM excitations.
If we consider the
The second parameter relates to the relative deviation of the vector
A precise rule is followed to decide whether to modify the excitation vector direction after every short simulation run. The excitation vector is changed as soon as
The default value for
Note on --recalc and reproducibility: when --recalc is set, reaching this threshold triggers a full ENM recomputation from the current structure (SimulationRunner._recompute_enm_modes) followed by a brand-new random linear combination of the recomputed modes, rather than the deterministic displacement-based correction above. This random re-combination is independent of the -seed/--seed flag described in Uniform Normal Modes Combination and is not currently reproducible run-to-run — by design, since its purpose is to re-diversify the excitation direction after the mode subspace itself has changed.
The Adaptive MDeNM method takes self-computed Cα or heavy atoms ENM modes or CHARMM-computed normal modes as collective variables to improve Molecular Dynamics sampling.
Uses simpified force-field based on particles and springs computed automatically by the program. A given normal mode (or a linear combination of several modes) is used to excite the system during the molecular dyamics simulation.
Uses physical force-field based normal modes computed in CHARMM. A given normal mode (or a linear combination of several modes) is used to excite the system during the molecular dyamics simulation.
pyadmd is distributed as an installable Python package that computes ENM modes, uniformly distributes linear combinations of modes in the
One can easily setup and run an Adaptive MDeNM simulation using pyadmd. The configuration process is straightforward. Some technical aspects will be covered in this section in order to facilitate the method comprehension.
The excitation time of Adaptive MDeNM is
The total simulation time may require a tuning depending on the system size, energy injection and nature of the motion being excited. Considering a large scale global motion, there is a trade-off between the energy injection and the total simulation time. Larger amounts of energy allows a shorter simulation time, however, this may not be advised as discussed above.
As described above, the direction is updated after the system has traveled a distance of
The program do a linear combination of the supplied normal modes to compute the excitation direction. This imply that the more modes are provided, the more replicas will be necessary to cover the hyperspace described by these modes.
Create an atom selection to apply the energy injection using MDAnalysis selection language. Must be written between quotes. This same selection (-sel/--selection at run time) is later reused by pyadmd analyze as the default scope for most structural metrics — see Analysis Selection Scope.
-
-src/--source: Input engine type,NAMD(binary.coor/.vel/.xsc) orOPENMM(XML restart.rst) (required) -
-m/--model: Normal modes model type,CAENM,HEAVYAtoms ENM orCHARMM(required. Default:CA) -
-nm/--modes: Normal modes to excite (optional. Default:7,8,9) -
-ek/--energy: Excitation energy injection (optional. Default:2kcal/mol) -
-t/--time: Simulation time (optional. Default:250ps) -
-sel/--selection: Atom selection to apply the energy injection (optional. Default:"protein"). Also becomes the default scope for mostpyadmd analyzestructural metrics — see Analysis Selection Scope. -
-rep/--replicas: Number of replicas to run (optional. Default:10) -
-seed/--seed: Random seed for the uniform mode-combination generation (the repulsion-algorithm initialization described in Uniform Normal Modes Combination) (optional. Default:42). Fixing this makesrunreproducible: identical CLI arguments always produce identical excitation vectors andfactors.csv. Pass a different value to obtain an independent replicate ensemble. Does not affect the--recalcmid-simulation re-excitation, which remains stochastic by design — see Excitation Direction Update.
pyadmd run automatically creates the inputs/ directory in the current
working directory (if it doesn't already exist) and copies every file listed
below into it.
-
-psf/--psffile: PSF structure file containing system molecule-specific information (required) -
-pdb/--pdbfile: PDB structure file in Protein Data Bank format (required) -
-mod/--modefile: Binary file containg CHARMM normal mode vectors (optional. Required only if-m = CHARMM)
NAMD input files (required when -src NAMD):
-coor/--coorfile: NAMD binary coordinates file (.coor)-vel/--velfile: NAMD binary velocities file (.vel)-xsc/--xscfile: NAMD eXtended System Configuration file (.xsc)-str/--strfile: CHARMM-style stream file, containing box info and force field parameters/definitions (required in NAMD mode; optional in OpenMM mode)
OpenMM input files (required when -src OPENMM):
-rst/--rstfile: OpenMM XML restart file (.rst), written viaXmlSerializer.serialize(state)from a state built withgetPositions=True, getVelocities=True
-
-n/--no_correc: Disable excitation vector direction correction and compute standard MDeNM -
-f/--fixed: Disable excitation vector correction and keep constant excitation energy injections -
-r/--recalc: Recompute ENM modes instead of correcting the excitation vector direction. Note: the new mode combination generated after each recomputation is drawn from a fresh random unit vector and is not controlled by-seed/--seed— see Excitation Direction Update. -
--full_ener: Write per-term energy decomposition (BOND, ANGLE, DIHED, IMPRP, CMAP, UBREY, NBFIX, NONBONDED, etc.) torep{N}_ener_decomp.logevery cycle
-t/--time: Simulation time to append, in ps (required)
All parameters are optional; the fel subcommand reads its input trajectories and reference state from files already produced by run/restart/append, so no additional files need to be supplied.
-c/--cutoff: GROMOS RMSD clustering cutoff, in Å (optional. Default:0.8)-d/--deexcite: Total restrained de-excitation MD length per centroid, in ps, split evenly over 4 restraint phases (optional. Default:200)-p/--production: Unrestrained production MD length per centroid, in ps (optional. Default:800)-nm/--modes: Comma-separated mode indices to project for the FEL (optional. Default: same modes used inrun, e.g.7,8,9)--modes_2d: Mode pairs for 2D FEL plots, as space-separated"m1,m2"tokens, e.g."7,8 7,9 8,9"(optional. Default: all pairwise combinations of--modes)-b/--bins: Number of histogram bins used for the FEL (optional. Default:50)-T/--temp: Temperature for kBT scaling and the production ensemble, in K (optional. Default:303.15)-s/--sel: MDAnalysis selection string used for GROMOS RMSD clustering (optional. Default:"protein and name CA")--max_centroids: Maximum number of centroids submitted to MD. When the cluster count exceeds this value, exactly this many centroids are selected by greedy farthest-point (MaxMin) sampling to maximize conformational diversity (optional. Default:50)
Note: -s/--sel and -T/--temp must stay the same across repeated fel calls on the same simulation — see Extending a Previous Free Energy Calculation. This -s/--sel selection is independent of run's -sel/--selection: it controls GROMOS clustering only, while run's selection controls both energy injection and (by default) the scope of most pyadmd analyze metrics — see Analysis Selection Scope.
-src/--source: Trajectory source to analyze,pyadmdforrep{N}.dcdreplica trajectories orfelforcentroid_frame{F}.dcdproduction trajectories (optional. Default:pyadmd)
-r/--rough: Perform rough analysis (optional. Analyze every5ps instead of every frame.)
Each analysis step can be independently disabled. When skipped, that metric will not appear in any CSV, plot, or HTML summary output.
--no_rmsd: Skip RMSD calculation--no_rg: Skip radius of gyration calculation--no_sasa: Skip SASA and hydrophobic exposure calculation--no_rmsf: Skip RMSF calculation--no_dssp: Skip secondary structure analysis via DSSP--no_dccm: Skip dCCM (dynamic cross-correlation matrix) calculation--no_lmi: Skip LMI (Linear Mutual Information) calculation
Note: Before analysis, the program checks if pyadmd or fel calls are properly completed. If any unit (pyAdMD replica or free energy centroid) hasn't finished running, analyze prints a warning listing the incomplete units and their cycles completed/target, but proceeds anyway — see Handling Incomplete Units below.
The fel subcommand computes a free energy landscape (FEL) from a completed set of aMDeNM replicas, following the two-stage protocol of Costa et al..
-
Merge trajectories: all
rep*.dcdreplica trajectories are concatenated into a single pseudo-trajectory. -
GROMOS clustering: frames are clustered by Cα RMSD (
-s/-c); when the number of clusters exceeds--max_centroids, a maximally diverse subset is selected via greedy farthest-point (MaxMin) sampling on the cluster centroids. -
Centroid MD: each centroid undergoes a 4-phase restrained de-excitation (
-d, progressively decreasing positional restraints on backbone and sidechain heavy atoms) followed by unrestrained production MD (-p). - Mode projection: every production frame is projected onto each individual normal mode vector as a signed mass-weighted RMS displacement.
-
FEL computation: a population histogram (
-bbins) is converted to$\Delta G$ via$\Delta G = -k_{BT} \cdot ln[P(q)/P_{max}]$ , computed independently per mode (1D) and for user-specified mode pairs (2D,--modes_2d).
fel can be re-invoked on the same simulation with a larger --max_centroids and/or longer -p/--production to extend an earlier calculation, rather than starting over:
- Free to change:
-c/--cutoffand-d/--deexcite. Changing the cutoff only affects the re-thresholding of the cached pairwise-RMSD matrix. Changing the de-excitation length only affects newly-created centroids going forward; existing centroids keep whatever de-excitation they originally had and are simply extended in production. - Must stay the same:
-s/--sel,-T/--temp. Mixing clustering selections or temperatures inside one pooled FEL is not physically valid. - Never shrinks existing work: if
--max_centroidsor-p/--productionis smaller than the previous call, the program warns and uses the larger of the two values instead. We suggest start with smaller values and append more data, if necessary.
fel/
├── run_metadata.json # parameters used (gates append behavior)
├── clustering_rmsd_cache.npz # cached pairwise-RMSD matrix (reused across calls)
├── clustering_rmsd_cache.json # cache validity metadata (selection, frame count, stride)
├── clustering_summary.csv # per-cluster frame index, size, and production status
├── projections_mode[N].npy # raw mode projections (Å)
├── fel_mode[N].csv # 1D FEL data (coordinate, ΔG)
├── fel_mode[N]_plot.png # 1D FEL plot
├── fel_2d_mode[N]_mode[M].png # 2D FEL plot for a mode pair
├── fel_summary.html # HTML summary report
└── centroids/
└── centroid_frame[F]/ # one directory per centroid, named by frame index
├── prod.dcd # production trajectory (appended to on extension)
├── prod_checkpoint.chk # exact final state, for bit-identical extension
└── checkpoint.chk # periodic (every 10 cycles) checkpoint
- Cache Files
run_metadata.json: the clustering selection, temperature, cutoff, de-excitation length,max_centroids, and production length used.clustering_rmsd_cache.npz/.json: the pairwise-RMSD matrix over subsampled frames.clustering_summary.csv: summary containing cluster ID, frame index, cluster size, status this run (fresh/extended/skipped), and cycles/ps completed.
- Plot Files
fel_mode[N].csv/fel_mode[N]_plot.png: 1D free energy landscape per mode, in Å and kcal/mol.fel_2d_mode[N]_mode[M].png: 2D free energy landscape for a mode pair.
- HTML Summary
fel_summary.html: interactive summary with protocol parameters, per-mode FEL statistics, per-centroid production status, and embedded plots.
The PyAdMD analysis module provides comprehensive analysis capabilities for molecular dynamics simulations performed using the aMDeNM method. This module processes simulation trajectories and generates detailed structural analysis, visualizations, and summary reports. It can analyze either the aMDeNM replica trajectories from run/restart/append (-src pyadmd, default) or the centroid production trajectories from a completed fel run (-src fel) — see Trajectory Source.
-
Root Mean Square Deviation (RMSD): Measures structural deviation from the initial conformation.
-
Radius of Gyration (RoG): Measures the compactness of the protein structure. Useful for identifying folding/unfolding events.
-
Solvent Accessible Surface Area (SASA): Calculates the surface area accessible to solvent molecules.
-
Hydrophobic Exposure: Solvent-accessible surface area (SASA, Ų) contributed by hydrophobic residues (ALA, VAL, LEU, ILE, MET, PHE, TRP, PRO). Useful for identifying folding/unfolding events: buried hydrophobic patches becoming solvent-exposed (or vice versa) is a hallmark of such transitions.
-
Root Mean Square Fluctuation (RMSF): Calculates per-residue flexibility using Cα atoms. Identifies flexible and rigid regions in the protein structure.
-
Secondary Structure Content: Calculates secondary structure elements using DSSP. Tracks helix, sheet, coil, turn, and other structural elements over time and reports the number of residues in each secondary structure type.
-
Dynamic Cross-Correlation Matrix (dCCM): Measures pairwise linear correlation of Cα residue motions after Kabsch superposition to remove rigid-body rotation/translation. Values range from +1 (fully correlated motion) through 0 (uncorrelated) to −1 (fully anti-correlated motion), useful for identifying coupled domains, allosteric communication paths, and correlated/anti-correlated collective motions.
-
Linear Mutual Information (LMI): An alternative, signless measure of residue-residue coupling strength (range [0, 1]) computed via the Gaussian approximation of generalized correlation. Unlike dCCM, LMI reports strongly anti-correlated motion with the same high value as strongly correlated motion, since it measures total coupling rather than its direction.
- Analyzes every frame of the trajectory
- Provides the highest resolution data
- May be computationally intensive
- Analyzes frames at 5ps intervals
- Significantly reduces computation time
- Suitable for quick overviews or large systems
Individual analyses can be disabled at the command line. This is useful when:
- DSSP is not installed (avoid exception error)
- Only a subset of metrics is needed (e.g. RMSD + RMSF only)
- Computation time needs to be minimized (SASA, DSSP, and LMI are the most expensive steps; LMI scales as O(nCα2) with a pairwise covariance computation)
The -src/--source flag selects which set of trajectories to analyze:
pyadmd: analyzesrep{N}/rep{N}.dcdreplica trajectories, one analysis unit per replica. Output goes toanalysis/(default).fel: analyzesfel/centroids/centroid_frame{F}/prod.dcdproduction trajectories, one analysis unit per centroid (identified by its merged-trajectory frame index, not a sequential number). Output goes toanalysis/fel/, kept separate frompyadmd-sourced output. All computed metrics (RMSD, RoG, SASA, hydrophobic exposure, RMSF, secondary structure) and skip flags apply identically regardless of source.
In both modes, analyze proceeds even if some units haven't finished — see Handling Incomplete Units below.
Before any analysis runs, the program checks whether every unit (replica or centroid) has finished running. Units that haven't are not excluded: they're analyzed using only the cycles they actually completed, with a correctly-scaled time axis reflecting their real elapsed simulation time rather than the run's target time. A console warning lists every incomplete unit (cycles completed/target), and the same information appears in analysis_summary.html under an "Incomplete Units" section.
This means analyze always produces a result, even against a still-running or partially-crashed simulation. If you want a fully completed dataset instead, finish the incomplete units first — restart/append for -src pyadmd, or a further fel call for -src fel — then re-run analyze.
The analysis pipeline is also resilient to being interrupted itself: each unit's results are written to its own output directory as soon as that unit finishes, and a re-run of analyze automatically detects and skips units whose output is already complete, only (re)computing what's missing. Parallel workers are recycled after each unit to keep memory bounded across large batches (e.g. hundreds of fel centroids).
The analysis module reads simulation parameters from the pyAdMD_params.json file, which includes:
- Number of replicas
- Total simulation time
- Atom selection criteria (used to scope RMSD/RoG/SASA/hydrophobic-exposure/DSSP — see Analysis Selection Scope)
- Input file paths
When -src fel is used, the shared production time axis (applied uniformly across all centroids) is instead read from fel/run_metadata.json's production_ps value; pyAdMD_params.json is still used to locate the shared PSF topology file and the analysis selection.
analysis/{fel/}
├── analysis_results.csv # Combined analysis data from all units
├── rmsf.csv # Combined RMSF data (omitted with --no_rmsf)
├── analysis_summary.html # HTML summary report
├── rmsd_plot.png # RMSD plot (omitted with --no_rmsd)
├── radius_gyration_plot.png # Radius of gyration plot (omitted with --no_rg)
├── sasa_plot.png # SASA plot (omitted with --no_sasa)
├── hydrophobic_exposure_plot.png # Hydrophobic exposure plot (omitted with --no_sasa)
├── rmsf_average.png # Average RMSF plot (omitted with --no_rmsf)
├── secondary_structure_average.png # Average secondary structure plot (omitted with --no_dssp)
├── dccm_average.png # Average dCCM heatmap (omitted with --no_dccm)
├── dccm_average.npy # Average dCCM matrix, raw (omitted with --no_dccm)
├── lmi_average.png # Average LMI heatmap (omitted with --no_lmi)
├── lmi_average.npy # Average LMI matrix, raw (omitted with --no_lmi)
└── {rep[1-N]}/ or {centroid_frame[F]}/ # Unit-specific directories
├── analysis_results.csv # Unit-specific analysis data
├── rmsf.csv # Unit-specific RMSF data (omitted with --no_rmsf)
├── rmsd_plot.png # Unit-specific RMSD plot (omitted with --no_rmsd)
├── radius_gyration_plot.png # Unit-specific RoG plot (omitted with --no_rg)
├── sasa_plot.png # Unit-specific SASA plot (omitted with --no_sasa)
├── hydrophobic_exposure_plot.png # Unit-specific hydrophobic exposure plot (omitted with --no_sasa)
├── rmsf_plot.png # Unit-specific RMSF plot (omitted with --no_rmsf)
├── secondary_structure.png # Unit-specific secondary structure plot (omitted with --no_dssp)
├── dccm_matrix.npy # Unit-specific dCCM matrix, raw (omitted with --no_dccm)
├── dccm_plot.png # Unit-specific dCCM heatmap (omitted with --no_dccm)
├── lmi_matrix.npy # Unit-specific LMI matrix, raw (omitted with --no_lmi)
└── lmi_plot.png # Unit-specific LMI heatmap (omitted with --no_lmi)
Note: With -src fel, the same set of files is written under analysis/fel/ instead, with one subdirectory per centroid (named by frame index, mirroring fel/centroids/centroid_frame[F]/) in place of rep[1-N]/.
- CSV Files
analysis_results.csv: Time-series data for RMSD, RoG, SASA, hydrophobic exposure, and secondary structure contentrmsf.csv: Per-residue RMSF values for all analyzed units (all replicas, or all centroids with-src fel)
- Plot Files
- Individual property plots for each unit (replica, or centroid with
-src fel) - Combined plots showing all units
- Average plots across all units
- Correlation Matrix Files
dccm_matrix.npy(per-unit) /dccm_average.npy(cross-unit): raw (n_Cα × n_Cα) dCCM matrix, values in [-1, 1]. Omitted with--no_dccm.dccm_plot.png/dccm_average.png: dCCM heatmap, diverging colormap (red = fully correlated, white = uncorrelated, blue = fully anti-correlated).lmi_matrix.npy/lmi_average.npy: raw (n_Cα × n_Cα) LMI matrix, values in [0, 1]. Omitted with--no_lmi.lmi_plot.png/lmi_average.png: LMI heatmap, sequential colormap (LMI has no sign).
- HTML Summary
- Interactive summary report with tables and embedded plots
- Statistics for each unit and averages across all units
- An "Incomplete Units" section when any unit hadn't reached its target cycle count at analysis time (see Handling Incomplete Units)
- Easy navigation and visualization of results
Furthermore, some basic analyses are written inside each replica folder at the end of the simulation, they can be found as follows:
- coor-proj.out: projection of the MD coordinates onto the normal mode space described by the excitation vector
- rms-proj.out: the system RMSD displacement along the excitation vectors
- vp-proj.out: projection of the MD velocities onto the normal mode space described by the excitation vector
- ek-proj.out: displays the additional kinetic energy at each MD step
Example files are available at the tutorial folder (human calmodulin). We encourage users to test the multiple usages of pyAdMD using these files to get familiar with the method.
pyadmd run -src OPENMM \
-m HEAVY \
-psf tutorial/system.psf \
-rst tutorial/system.rst \
-pdb tutorial/system.pdb
pyadmd run -src NAMD \
-m CA \
-psf tutorial/system.psf \
-pdb tutorial/system.pdb \
-coor tutorial/system.coor \
-vel tutorial/system.vel \
-xsc tutorial/system.xsc \
-str tutorial/system.str \
-nm 7,8 \
-ek 0.5 \
-t 100 \
-sel "protein and resid 4 to 148" \
-rep 48
pyadmd run -src NAMD \
-m CHARMM \
-mod tutorial/system.mod \
-psf tutorial/system.psf \
-pdb tutorial/system.pdb \
-coor tutorial/system.coor \
-vel tutorial/system.vel \
-xsc tutorial/system.xsc \
-str tutorial/system.str \
--no_correc
pyadmd restart
pyadmd append -t 100
pyadmd analyze
pyadmd analyze -r --no_dssp --no_lmi
pyadmd fel -c 2 -p 100
pyadmd fel -c 2 -p 500 --max_centroids 100
pyadmd clean
pyadmd is published on PyPI and it can be installed by:
pip install pyadmd
Alternatively, install from source (pyproject.toml, src/ layout). From the
repository root:
pip install .
or, for an editable/development install:
pip install -e .
pyadmd requires a CUDA-enabled GPU. Two dependencies need to be told about
your CUDA toolkit version — both default to CUDA 12.x here:
openmm[cuda12]: the baseopenmmPyPI package only ships the CPU/OpenCL/Reference platforms; the[cuda12]extra additionally installs the CUDA-compiled platform (pip-native — no separate conda install or source build needed).cupy-cuda12x: imported unconditionally at module load time (enm/calculator.py), so it's a required dependency, not optional.
If your CUDA toolkit is 12.x but a different minor/major release, or CUDA
13.x, adjust the openmm[cuda12] extra to openmm[cuda13] accordingly.
Note: OpenMM's pip wheels only build CUDA platforms for CUDA 12 and
above — if your CUDA toolkit is 11.x, the [cuda12]/[cuda13] pip extras
won't work; drop the extra (falling back to the OpenCL platform) or install
via conda instead (conda install -c conda-forge openmm, which supports
older CUDA versions), then pip install the rest of pyadmd's dependencies
into that environment. Either way, also swap cupy-cuda12x>=13.6 for
cupy-cuda11x>=13.6 in pyproject.toml.
Note: if you're installing from TestPyPI (e.g. to dry-run a pre-release), resolve dependencies against real PyPI as a fallback, since TestPyPI does not mirror the full package ecosystem:
pip install --index-url https://test.pypi.org/simple/ \
--extra-index-url https://pypi.org/simple/ \
pyadmd
Python dependencies are declared in pyproject.toml and installed automatically
by pip install. Requires Python ≥ 3.12. Core dependencies:
numpy>=2.2.5scipy>=1.16.0mdanalysis>=2.9.0matplotlib>=3.10.0seabornpandasopenmm[cuda12]>=8.3.1(the[cuda12]extra installs the CUDA-compiled OpenMM platform; substitute[cuda13]for a CUDA 13.x toolkit. See the OpenMM installation guide.)numba>=0.61.2biopythoncupy-cuda12x>=13.6(GPU-accelerated ENM diagonalization)
External system dependency (must be installed separately):
dssp(>=4.2.2), required for secondary structure analysis. Refer to the DSSP official GitHub repository for building details.
Please cite the following paper if you are using any Adaptive MDeNM application in your work:
Resende-Lara, P. T. et al. Adaptive Normal Mode Sampling (aMDeNM) Enhances Exploration of Protein Conformational Space and Reveals the Functional Role of Frequency Coupling. J. Chem. Theory Comput. 14 July 2026; 22 (13): 6304–6321. https://doi.org/10.1021/acs.jctc.6c00398
This project is licensed under the GNU General Public License v3.0 (GPLv3) and is distributed as is, with absolutely no warranty. See the LICENSE file for the full text.
If you experience a bug or have a suggestion, please contact:
