Proper RMSD calculation between molecules using the Kuhn-Munkres Hungarian algorithm.
Project description
RMSD
Determining the Root Mean Square Deviation (RMSD) between the Maximum Common Substructures (MCS) of two molecules.
The Kuhn-Munkres Hungarian algorithm allows for a fast match of atoms based on:
- atomic symbol
- Sybyl atom types
- pharmacophoric types (i.e. H-bond donors and acceptors or charges)
Installation
pip install munkres-rmsd
Example
from munkres_rmsd import CalcLigRMSD, AtomType
from munkres_rmsd.RMSD import get_example_molecules
# First, load 3D poses of molecules
mol1, mol2 = get_example_molecules()
# Then compute the RMSD of the best atomic match
rmsd = CalcLigRMSD(mol1, mol2)
print(rmsd) # 10.76150...
Let's use Sybyl atom types to match atoms between the two molecules instead of the default, using atomic elements.
# Then compute the RMSD of the best atomic match
rmsd = CalcLigRMSD(mol1, mol2, AtomType.Sybyl)
print(rmsd) # 11.59752...
Should you prefer pharmacophore types (i.e. H-bond donors & acceptors, charges and others):
# Then compute the RMSD of the best atomic match
rmsd = CalcLigRMSD(mol1, mol2, AtomType.Pharmacophore)
print(rmsd) # 9.49120...
Finally to allow matching any atom whatever its type:
# Then compute the RMSD of the best atomic match
rmsd = CalcLigRMSD(mol1, mol2, AtomType.Skeleton)
print(rmsd) # 8.96288...
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
File details
Details for the file munkres_rmsd-0.0.1.post4.dev0.tar.gz
.
File metadata
- Download URL: munkres_rmsd-0.0.1.post4.dev0.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0edf0a705fd83de2b07f74049ffcd9068917727d5fb8a8f54b83ebb03d09df08 |
|
MD5 | 876848b5c0fbab50cd39606f63ca8726 |
|
BLAKE2b-256 | 11029ca494c9600a074f58d2fc2d689323074e22ac0415ff8e6df2e2558507e8 |
File details
Details for the file munkres_rmsd-0.0.1.post4.dev0-py3-none-any.whl
.
File metadata
- Download URL: munkres_rmsd-0.0.1.post4.dev0-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b053ca4845ad7de578f1c1c1c3aff869bca539914251e1bb7f4a13e46b0d176 |
|
MD5 | b2a505ad060a0a611f71fbdcd86cb513 |
|
BLAKE2b-256 | 6bd955bf968e747aa7a82c85ce459bf784375a4a3510182f68524c242718b55c |