Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

MolOrient

In computational chemistry molecules are sets of atoms where each atom is often represented by a point in a three-dimensional Cartesian space. The coordinates for each atom ultimately depend on the definition of the axis system, including the distance and relative orientation with respect to the molecule. For many problems, what matters is not the absolute Cartesian coordinates of the atoms, but rather their relative positions, i.e., the distances and angles among them. Since the relative positions of the atoms are invariant to a translation and rotation of the axis system, this means that Cartesian coordinates do NOT define a unique representation of the molecule.

The lack of uniqueness, complicates:

  • using molecules as data descriptors such as in machine learning
  • uniquely defining integration grids for density functional theory
  • standardizing direction-dependent properties such as multipole moments, polarizabilities, etc.
  • assigning symmetry labels
  • reusing/restarting calculations (need to know how the intermediate quantities are oriented)
  • comparing structures

One solution is to standardize the axis system. MolOrient is a Python package for aligning molecules with a standardized axis systems.

Features

  • Completely reproducible orientation standardization. MolOrient relies on arbitrary-length fixed-precision arithmetic to ensure results contain a user- specified number of significant figures.
  • Built-in support for Standard Nuclear Orientation, as well as NWChem's standard orientation.
  • Easy to add other standards.

Installation

MolOrient is on the Python Package Index, so installation is straightforward.

pip install molorient

Example Usage

Standard Nuclear Orientation (SNO)

MolOrient reads a molecule in .xyz format and does not accept other chemical file formats. For example, water.xyz:

3
Water
O 0.0000000 0.0000000 0.1168520
H 0.0000000 0.7546680 -0.4674100
H 0.0000000 -0.7546680 -0.4674100

To put it in Standard Nuclear Orientation, run:

molorient water.xyz

SNO is the default orientation, so --sno is optional; molorient water.xyz --sno gives the same result. To change the precision, add --precision N, where N is an integer, otherwise the default is 6 significant figures. MolOrient will then write the new file as water_standardized.xyz. Here is the result at 6 significant figures:

3
Standardized geometry by MolOrient
O 0.000000 0.116852 0.000000
H -0.754668 -0.467410 0.000000
H 0.754668 -0.467410 0.000000

NWChem Orientation

To use NWChem's orientation, pass the --nwchem flag:

molorient water.xyz --nwchem

MolOrient will, again, write the new file as water_standardized.xyz. Here is the result at 6 significant figures:

3
Standardized geometry by MolOrient (NWChem orientation)
O 0.000000 0.000000 0.116852
H -0.754668 0.000000 -0.467410
H 0.754668 0.000000 -0.467410

Resources

Acknowledgments

Work at the Ames National Laboratory was supported by the U.S. Department of Energy Office of Science, Science Undergraduate Laboratory Internships (SULI) program under its contract with Iowa State University, Contract No. DE-AC02-07CH11358. John Lewis is grateful to the DOE for the assistantship and for the opportunity to participate in the SULI program.

Metadata

Release files for molorient 0.1.0b1

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

Source distribution (sdist)

Source distribution for molorient 0.1.0b1
File Size Uploaded Provenance Actions
molorient-0.1.0b1.tar.gz 28.8 kB With provenance Details for molorient-0.1.0b1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for molorient 0.1.0b1
File Interpreter ABI Platform Actions
molorient-0.1.0b1-py3-none-any.whl Python 3 none any Details for molorient-0.1.0b1-py3-none-any.whl

Total release size: 60.5 kB

Release files / molorient-0.1.0b1.tar.gz

Download URL molorient-0.1.0b1.tar.gz
Size 28.8 kB
Tags Source
SHA-256 checksum
How to use checksums
160ef2773945d779a6f6566db8ec9a127f96c332650414f0716a9d53999f6bf9
BLAKE2b-256 checksum
How to use checksums
acbab6b71b9b45f80786a8b2b65be967f2c36d290da5cc15d9c9e58bf627a58b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 4, 2026.

Transparency log

Release files / molorient-0.1.0b1-py3-none-any.whl

Download URL molorient-0.1.0b1-py3-none-any.whl
Size 31.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bc4b976fc7d58cbc8fbeea0712682a66754eb19a0e29df8b305d90385cc8b4a6
BLAKE2b-256 checksum
How to use checksums
f41a7069f07f4cff956fb3569938f51b15437ba0aef212babe843491361936bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 4, 2026.

Transparency log

Security for molorient 0.1.0b1

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for molorient-0.1.0b1.tar.gz

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 Nov 4, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
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