stko.KabschRmsdCalculator
- class stko.KabschRmsdCalculator(initial_molecule)[source]
Bases:
objectCalculates the root mean square distance between molecules.
This calculator uses the rmsd package with the default settings and no reordering.
See also
This calculator will only work if the two molecules are the same and have the same atom ordering.
- Parameters:
initial_molecule (Molecule) – The
stk.Moleculeto calculate RMSD from.
Examples
import stk import stko import numpy as np bb1 = stk.BuildingBlock('C1CCCCC1') calculator = stko.KabschRmsdCalculator(bb1) results = calculator.get_results(stko.UFF().optimize(bb1)) rmsd = results.get_rmsd()
Methods
Calculate the RMSD between mol and the initial molecule.