Skip to main content

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.

Example image showing the molecule alignment

Example video showing the molecule alignment

Installation

Technical information / dependencies

  • Tested on OVITO version 3.10.3

Contact

Daniel Utt (utt@ovito.org)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ovitocontrib_alignmolecule-2024.4.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ovitocontrib_AlignMolecule-2024.4-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file ovitocontrib_alignmolecule-2024.4.tar.gz.

File metadata

File hashes

Hashes for ovitocontrib_alignmolecule-2024.4.tar.gz
Algorithm Hash digest
SHA256 a6043f31675a3e34a41201db0d3c5affafdc53f5caa3a47e9b190a0b6dae981c
MD5 76a19f1e00a3d951ef65715a3bbb8785
BLAKE2b-256 811e276182083141cfc1f0b3952ea832a3eafcefcf11bc2df3451d147bb597a2

See more details on using hashes here.

Provenance

The following attestation bundles were made for ovitocontrib_alignmolecule-2024.4.tar.gz:

Publisher: release.yml on ovito-org/AlignMolecule

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ovitocontrib_AlignMolecule-2024.4-py3-none-any.whl.

File metadata

File hashes

Hashes for ovitocontrib_AlignMolecule-2024.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7916a4bb96aec7624657d30ca6ae86516503e1162f0e5c277e324879668ce214
MD5 06cc86142b9170a1e7a0573cfdef1f2e
BLAKE2b-256 6f90edfcaadbfd1a42ec1c8fab1c9ce34d5fb4e2307e0aab339342f0a99079a2

See more details on using hashes here.

Provenance

The following attestation bundles were made for ovitocontrib_AlignMolecule-2024.4-py3-none-any.whl:

Publisher: release.yml on ovito-org/AlignMolecule

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page