class OEBestOverlayScore
This small class is used to contain all the results from a single
optimization of a fit molecule conformer with a reference molecule
conformer. The user will not normally construct an instance of
OEBestOverlayScore, but will instead iterate over a set of instances
as contained in an instance of OEBestOverlayresults (see
section
Much of the data is contained in public member variables:
unsigned int refconfidx
unsigned int fitconfidx
float tanimoto
float overlap
float refSelfOverlap
float fitSelfOverlap
float refSelfColor
float fitSelfColor
float colorscore
float scaledcolor
float rmat[9]
float trans[3]OEBestOverlay also has a few member methods to access data calculable from the contained data.
OEBestOverlayScore()
Default and copy constructors.
float GetColorTanimoto() const
float GetColorTversky(float alpha=0.95f, float beta=0.05f) const
float GetComboScore() const
Return combo score, defined as the sum of Shape Tanimoto and scaled color score. Value ranges from 0.0 to 2.0.
float GetTanimotoCombo() const
Return TanimotoCombo score, defined as the sum of Shape Tanimoto and Color Tanimoto. Value ranges from 0.0 to 2.0.
float GetFitColorTversky() const
float GetFitTversky() const
Return the Tversky score using an alpha of 0.05 and beta of 0.95, where alpha is the prefactor for the ref molecule self overlap.
float GetFitTverskyCombo() const
Return FitTverskyCombo score, defined as the sum of Shape FitTversky and Color FitTversky. Value ranges from 0.0 to 2.0.
float GetRefColorTversky() const
Return RefTverskyCombo score, defined as the sum of Shape RefTversky and Color RefTversky. Value ranges from 0.0 to 2.0.
float GetRefTversky() const
Return the Tversky score using an alpha of 0.95 and beta of 0.05, where alpha is the prefactor for the ref molecule self overlap.
float GetRefTverskyCombo() const
float GetTversky(float alpha=0.95f, float beta=0.05f) const
Return the Tversky score for user-defined values of alpha and beta, where alpha is the prefactor for the ref molecule self overlap. Note that calling GetTversky with the default arguments returns the same value as GetRefTversky.
bool Transform(OEChem::OEMolBase &mol) const bool Transform(OEChem::OEConfBase &mol) const
Perform the proper rotation and translation to move the passed-in molecule or conformer into the final orientation as calculated in the best overlay optimization. This provides the same feature as manually calling OERotate then OETranslate using the rmat and trans, but to lessen the chance of doing them in the improper order.