iRMSD is a toolkit for molecular structure comparison and ensemble pruning based on the permutation-invariant RMSD. A Python API and a command-line tool sit on top of a Fortran backend that handles conformer ensembles with thousands of structures.
- iRMSD and quaternion RMSD with symmetry handling, canonical atom identifiers, and optimal superposition
- Grouping and pruning of conformer ensembles via RMSD and (optional) energy thresholds, parallelized with OpenMP
- A
Moleculeclass with XYZ/extXYZ input and output, and interfaces to ASE and RDKit - Structural properties: coordination numbers, rotational constants, point groups
- Low-level wrappers of the Fortran routines next to the high-level Python functions
iRMSD is meant for conformational sampling, machine learning for molecules, and structural chem-informatics, and works with structures from ASE, RDKit, CREST/xtb, or any other source of XYZ files.
The two structures above are copies of the same fluoxetine conformer, randomly rotated and with a random atom order (the labels are the atom indices in each file). Kept in the atom order of the files, their quaternion RMSD is 5.13 Å; the iRMSD aligns the copies, restores the atom order, and finds them identical:
$ irmsd compare examples/xyz/fluoxetine_1.xyz examples/xyz/fluoxetine_2.xyz | tail -1
iRMSD: 0.0000879250 Å
Quick start
pip install irmsd
Wheels are available for Linux, macOS (arm64), and Windows (x86_64).
The same install provides the irmsd command-line tool:
irmsd compare struc1.xyz struc2.xyz # iRMSD between two structures, atom order restored
irmsd sort ensemble.xyz -o unique.xyz # prune an ensemble to its unique structures
and the Python API:
import irmsd
molecules = irmsd.read_structures("ensemble.xyz") # one Molecule per frame
unique = irmsd.prune(molecules, rthr=0.125) # RMSD threshold in Å
irmsd.write_structures("unique.xyz", unique)
Documentation
The documentation is hosted at https://pprcht.github.io/irmsd/.
| Topic | Page |
|---|---|
| Wheels, OpenMP, building from source | Installation |
| The iRMSD method, a worked example, known limitations | Scientific background |
| Interactive flowchart of a single comparison, step by step | How a comparison works |
| Rotamers, randomized atom order, clusters, ensemble pruning, timings | Examples |
irmsd prop, compare, and sort, with all options |
Command-line tool |
Molecule, comparison, sorting, ASE and RDKit, canonical identifiers |
Python interface |
| All functions and classes | Package reference |
Citation
If you use iRMSD in academic work, please cite
P. Pracht, J. Chem. Inf. Model. 2025, 65 (9), 4501–4511. doi:10.1021/acs.jcim.4c02143
A publicly accessible preprint is available at doi:10.26434/chemrxiv-2024-qmcz4.
License
This project is licensed under the GNU Lesser General Public License (LGPL), version 3.0 or later. You are free to use, modify, and redistribute the software under the terms of this license. See the LICENSE file for the full text.
Disclaimer:
This software is provided “as is”, without any warranty of any kind, express or implied,
including but not limited to warranties of merchantability, fitness for a particular purpose,
and noninfringement. In no event shall the authors or contributors be liable for any claim,
damages, or other liability arising from the use of this software.
© 2025 Philipp Pracht, Tobias Kaczun.
Metadata
Release files for irmsd 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| irmsd-0.2.0.tar.gz | 2.0 MB | Without provenance | Details for irmsd-0.2.0.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| irmsd-0.2.0-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details for irmsd-0.2.0-py3-none-win_amd64.whl |
| irmsd-0.2.0-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl | Python 3 | none | Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 | Details for irmsd-0.2.0-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
| irmsd-0.2.0-py3-none-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl | Python 3 | none | Linux glibc 2.27+ ARM64, Linux glibc 2.28+ ARM64 | Details for irmsd-0.2.0-py3-none-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl |
| irmsd-0.2.0-py3-none-macosx_26_0_arm64.whl | Python 3 | none | macOS 26.0+ ARM64 | Details for irmsd-0.2.0-py3-none-macosx_26_0_arm64.whl |
Total release size: 6.9 MB
Release files / irmsd-0.2.0.tar.gz
| Download URL | irmsd-0.2.0.tar.gz |
|---|---|
| Size | 2.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5302aa77b9619715d3ec81526c63bd0ce181856a553594bc243eb37efdeb6974
|
|
BLAKE2b-256 checksum How to use checksums |
59278d5e98e582e4b6f0743a95e848ebe85d8315a6b7bb5b1a5a2f839d13d6cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / irmsd-0.2.0-py3-none-win_amd64.whl
| Download URL | irmsd-0.2.0-py3-none-win_amd64.whl |
|---|---|
| Size | 946.7 kB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
0fd0b8201b419f92fd879a6c5fc3362223ae08aec344343d935b830cbad32ae8
|
|
BLAKE2b-256 checksum How to use checksums |
6b060dfc2d636b71ef86749cccfa808a2eb7ffcf0396bb4b1e802b4e7b9bd26f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / irmsd-0.2.0-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | irmsd-0.2.0-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 1.6 MB |
| Tags | Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
3f2467ffaadc06f2077f952bbcbb0cc76f0a20aff631df9b886812d01741e4e5
|
|
BLAKE2b-256 checksum How to use checksums |
4a2302e8052aa6de8596a44ba3bff20a7cd513bbfc18ba96477ccaae2fffca3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / irmsd-0.2.0-py3-none-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
| Download URL | irmsd-0.2.0-py3-none-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 986.9 kB |
| Tags | Linux glibc 2.27+ ARM64 Linux glibc 2.28+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
22dfb17eba6fade8681b033f77d37933bd7e22159ff6d9b707b5bbdd1d832fef
|
|
BLAKE2b-256 checksum How to use checksums |
19e61a9b20c0522447962ad57b269c04b83cee4362abe5f75d61280f5c56fe6b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / irmsd-0.2.0-py3-none-macosx_26_0_arm64.whl
| Download URL | irmsd-0.2.0-py3-none-macosx_26_0_arm64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | Python 3 macOS 26.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
ca06c3f9704ef0bf7e044e56838636d5380ab9f36edafe2abff2fe9e0dd2803b
|
|
BLAKE2b-256 checksum How to use checksums |
4d8d9e319296cb3009bdc1b14297b9b40d8b4ae9a2431b7bd8a24a167f19f345
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Security for irmsd 0.2.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.