Tools for molecular dynamics trajectory analysis, hydrogen bond characterization and quantum chemistry workflows.
Project description
MolMDTools
MolMDTools is a Python package for molecular structure analysis, molecular dynamics trajectory processing, hydrogen bond characterization, and preparation of quantum chemical calculations.
The package provides a unified object-oriented framework for working with molecular geometries, molecular dynamics trajectories, hydrogen-bonded systems, and computational chemistry workflows.
It was originally developed for the analysis of proton-transfer systems and hydrogen-bond networks obtained from quantum chemistry calculations and molecular dynamics simulations.
Key Features
Molecular Structures
- Atomic and molecular object representations
- Distance matrix generation
- Geometrical analysis:
- interatomic distances
- bond angles
- torsion angles
- Center of mass calculations
Molecular Dynamics Trajectories
- Reading and writing XYZ trajectories
- Trajectory manipulation and filtering
- Random frame selection
- Subsystem extraction
- Trajectory concatenation
- Center-of-mass alignment
- Periodic boundary condition handling
Hydrogen Bond Analysis
- Hydrogen bond representation
- Automatic hydrogen bond detection
- Hydrogen bond trajectory analysis
- Collective variable calculations
- Distribution analysis of proton-transfer coordinates
Quantum Chemistry Utilities
- Generation of Gaussian input files
- Support for geometry optimization jobs
- Frequency calculations
- NMR calculations
Data Conversion
- LAMMPS dump → XYZ trajectory conversion
Visualization
- Distance evolution plots
- Angle evolution plots
- Torsion angle evolution plots
- Collective variable analysis
- Publication-ready scientific figures
Installation
pip install molmdtools
Example: Reading an XYZ trajectory
from molmdtools import XYZ_Trajectory
traj = XYZ_Trajectory.extr_from_xyz("trajectory.xyz")
print(f"Number of frames: {traj.steps_number}")
Example: Center-of-Mass Alignment
aligned_traj = traj.static_center_of_mass()
Example: Hydrogen Bond Analysis
from molmdtools import HB_Analyzer
frames_with_hbond = HB_Analyzer.hb_in_traj(
traj,
atoms_nums=[0, 1, 2]
)
print(frames_with_hbond)
Example: Gaussian Input Generation
from molmdtools import Calc_Data_Inp
calc = Calc_Data_Inp(
molecule=molecule,
method="B3LYP",
basis="def2-TZVPD",
opt=True,
freq=True
)
calc.generate_gaussian_inp(
path="inputs",
filename="calculation.inp"
)
Supported Formats
Input
- XYZ trajectories
- XYZ molecular structures
- LAMMPS dump trajectories
Output
- XYZ trajectories
- Gaussian input files
Scientific Applications
MolMDTools is intended for:
- molecular dynamics trajectory analysis;
- hydrogen-bond characterization;
- proton-transfer studies;
- collective variable analysis;
- preparation of quantum chemistry calculations;
- post-processing of computational chemistry results.
Author
Vladimir Rogachevskii
Computational Chemistry Researcher
Email: vladimir.rogachevskij@gmail.com
GitHub: https://github.com/NCI-laboratory-SPb
License
Distributed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file molmdtools-0.1.0.tar.gz.
File metadata
- Download URL: molmdtools-0.1.0.tar.gz
- Upload date:
- Size: 18.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4aa60e04c4890b4e111e88c3130566ffc6cb27643b64af8dc6ff53cdf5f020df
|
|
| MD5 |
24d5de444db0d14dfce28102bebc76ea
|
|
| BLAKE2b-256 |
f253fe4b0117c8da14ba980ee0dbf1180ccafdbbefa5023db48bd155b8405a95
|
File details
Details for the file molmdtools-0.1.0-py3-none-any.whl.
File metadata
- Download URL: molmdtools-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
166fdf18f91a91129e1cf58bed7e3ae63ba587147437d0e06f2e3cbc021de2b0
|
|
| MD5 |
b68696b43798b1543d805f2d397311ca
|
|
| BLAKE2b-256 |
04a06f561c23ed93101876a325ab5aefc9663220a2fb67e233601678611c50a9
|