Align molecules using the Kabsch algorithm.
Project description
Align Molecule
Align a molecule using Kabsch algorithm.
Description
This tool aligns atoms across different snapshots in a trajectory using the Kabsch algorithm, allowing only rotational adjustments without any stretching or shearing.
Users can select either all atoms or a subset as the reference for alignment. Optionally, a reference frame can be specified, defaulting to the first frame of the trajectory. This frame serves as the baseline orientation for the atoms, with their centroid repositioned to the origin.
Requirements
This modifier requires unique identifiers for each atom. If these are not available the modifier assumes a consistent atom ordering throughout the trajectory.
It's crucial to provide an unwrapped trajectory to ensure accurate behavior. If your trajectory is wrapped, use the unwrap trajectories modifier before applying this modifier. The behavior with wrapped trajectories is unpredictable.
When operating on a subset of atoms, ensure the selection remains consistent throughout the trajectory. Utilize the freeze property modifier to maintain a consistent selection, or the modifier's output may be undefined.
Output
The modifier calculates the root mean square deviation (RMSD) of atomic coordinates post-alignment relative to the reference frame. The RMSD for selected atoms is recorded in the MoleculeAlign.RMSD global attribute. The RMSD for all atoms is available in the MoleculeAlign.RMSD_all attribute.
Additionally, it provides an RMSD value for each atom.
Parameters
| GUI name | Python name | Description | Default Value |
|---|---|---|---|
| Use only selected particles | only_selected |
Allows alignment using only selected particles as the reference. | True |
| Reference frame | reference_frame |
Specifies the frame to use as the reference for alignment. | 0 |
Example
Here's an example illustrating how the modifier aligns the highlighted (green) atoms throughout the trajectory.
Installation
-
OVITO Pro integrated Python interpreter:
ovitos -m pip install --user git+https://github.com/ovito-org/AlignMolecule.gitThe
--useroption is recommended and installs the package in the user's site directory. -
Other Python interpreters or Conda environments:
pip install git+https://github.com/ovito-org/AlignMolecule.git
Technical information / dependencies
- Tested on OVITO version 3.10.3
Contact
Daniel Utt (utt@ovito.org)
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 ovitocontrib_alignmolecule-2024.3.tar.gz.
File metadata
- Download URL: ovitocontrib_alignmolecule-2024.3.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07d7b7a4492381bff8086d517222b7c80d49698e9fb62b7426b0be6bef3a7a6a
|
|
| MD5 |
54727d07f6c77aad901cd00bb4c38e04
|
|
| BLAKE2b-256 |
0eaaae522c1205a4b19fbecb14504ac39203c3dd87ae8aa254f3963a35e717e6
|
File details
Details for the file ovitocontrib_AlignMolecule-2024.3-py3-none-any.whl.
File metadata
- Download URL: ovitocontrib_AlignMolecule-2024.3-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a04d06402952e44726d7c154bc041748619dc651c36ece31e94e6b110086cce
|
|
| MD5 |
fc69b5c4c4e028e8f20c883fad57cddd
|
|
| BLAKE2b-256 |
2b4ecb9aab71cf39025a034cce6c3b154dd77ac98f661a9ec4882b8ed4ebd0d6
|