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...
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
Close
Hashes for munkres_rmsd-0.0.1.post2.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3d22c2d4233bb0be6146bd25e0e46c261ba252c35adc96fe46d12d3e38df77a |
|
MD5 | 4d772019af9da0401a72a67637ba3f65 |
|
BLAKE2b-256 | 999eb4a0bf2c88b82d7e0873ecfd879b0ac59051f668b0aa518fc78bc34f0a36 |
Close
Hashes for munkres_rmsd-0.0.1.post2.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f030afe8be54b8e6b1cfbddea4a0aae69807e0d68d920b03f4bfcb49efa9ce25 |
|
MD5 | 9c64eb988a1fbadd3cfcf506e2f8162b |
|
BLAKE2b-256 | 19e0c035e9c263ea3bfdd2d5746295dc39d54935e50c0b89326c847f9550a5a7 |