Skip to main content

Align Molecule

Align a molecule using Kabsch algorithm.

Description

This extension for OVITO 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.

Example image showing the molecule alignment

Example video showing the molecule alignment

Installation

pip

GitHub

Technical information / dependencies

  • Tested on OVITO version 3.10.3

Contact

Daniel Utt (utt@ovito.org)

Metadata

Release files for ovitocontrib-AlignMolecule 2024.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ovitocontrib-AlignMolecule 2024.5
File Size Uploaded
ovitocontrib_alignmolecule-2024.5.tar.gz 6.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ovitocontrib-AlignMolecule 2024.5
File Interpreter ABI Platform
ovitocontrib_AlignMolecule-2024.5-py3-none-any.whl Python 3 none any Details

Total release size: 11.3 kB

Release files / ovitocontrib_alignmolecule-2024.5.tar.gz

Download URL ovitocontrib_alignmolecule-2024.5.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
98b1c4e7fb3b1cad9c5ea204a08fdebe5bac1be33c669853878303a5a618c9e2
BLAKE2b-256 checksum
How to use checksums
23ab8673603e76c4e3e30c050d6473e8481039306b25936147cc433f2222c3b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.0.1 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 12, 2024.

Transparency log

Release files / ovitocontrib_AlignMolecule-2024.5-py3-none-any.whl

Download URL ovitocontrib_AlignMolecule-2024.5-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cf06483f94589eb8fbc323778da02975fac3841cb4240df1a13a1ac8f07bb420
BLAKE2b-256 checksum
How to use checksums
4469c927330e38c54c627947e810e9ddb12e9f97ab1841f8b67ff28941315de3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.0.1 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 12, 2024.

Transparency log

Release history Release notifications | RSS feed

This release

2024.5 This release

2 release files

2024.4

2 release files

2024.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page