![]() |
Chemical Data Processing Library Python API - Version 1.4.0
|
Match functor that quantifies the goodness of the 3D-position match between two pharmacophore features by comparing their separation against the configured per-feature tolerance. More...
Inheritance diagram for CDPL.Pharm.FeaturePositionMatchFunctor:Public Member Functions | |
| None | __init__ (FeaturePositionMatchFunctor func) |
Initializes a copy of the FeaturePositionMatchFunctor instance func. More... | |
| None | __init__ (bool query_mode) |
Constructs the FeaturePositionMatchFunctor instance. More... | |
| int | getObjectID () |
| Returns the numeric identifier (ID) of the wrapped C++ class instance. More... | |
| FeaturePositionMatchFunctor | assign (FeaturePositionMatchFunctor func) |
Replaces the current state of self with a copy of the state of the FeaturePositionMatchFunctor instance func. More... | |
| bool | queryMode () |
| Tells whether the functor operates in query mode. More... | |
| bool | __call__ (Feature ftr1, Feature ftr2) |
| Checks if the distance between ftr1 and ftr2 is below the allowed maximum and calculates a score reflecting their proximity. More... | |
| bool | __call__ (Feature ftr1, Feature ftr2, Math.Matrix4D xform) |
| Checks if the distance between ftr1 and ftr2 is below the allowed maximum and calculates a score reflecting their proximity. More... | |
Properties | |
| objectID = property(getObjectID) | |
| qryMode = property(queryMode) | |
Match functor that quantifies the goodness of the 3D-position match between two pharmacophore features by comparing their separation against the configured per-feature tolerance.
| None CDPL.Pharm.FeaturePositionMatchFunctor.__init__ | ( | FeaturePositionMatchFunctor | func | ) |
Initializes a copy of the FeaturePositionMatchFunctor instance func.
| func | The FeaturePositionMatchFunctor instance to copy. |
| None CDPL.Pharm.FeaturePositionMatchFunctor.__init__ | ( | bool | query_mode | ) |
Constructs the FeaturePositionMatchFunctor instance.
| query_mode | If True, the tolerance of the first feature defines the allowed maximum distance; if False, the maximum of the two feature tolerances is used. |
| int CDPL.Pharm.FeaturePositionMatchFunctor.getObjectID | ( | ) |
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python FeaturePositionMatchFunctor instances may reference the same underlying C++ class instance. The commonly used Python expression a is not b thus cannot tell reliably whether the two FeaturePositionMatchFunctor instances a and b reference different C++ objects. The numeric identifier returned by this method allows to correctly implement such an identity test via the simple expression a.getObjectID() != b.getObjectID().
| FeaturePositionMatchFunctor CDPL.Pharm.FeaturePositionMatchFunctor.assign | ( | FeaturePositionMatchFunctor | func | ) |
Replaces the current state of self with a copy of the state of the FeaturePositionMatchFunctor instance func.
| func | The FeaturePositionMatchFunctor instance to copy. |
| bool CDPL.Pharm.FeaturePositionMatchFunctor.queryMode | ( | ) |
Tells whether the functor operates in query mode.
True if query mode is active, and False otherwise. Checks if the distance between ftr1 and ftr2 is below the allowed maximum and calculates a score reflecting their proximity.
If in 'query mode', the tolerance of ftr1 specifies the allowed maximum distance. Otherwise, the maximum tolerance of the features takes effect.
| ftr1 | The first feature. |
| ftr2 | The second feature. |
| bool CDPL.Pharm.FeaturePositionMatchFunctor.__call__ | ( | Feature | ftr1, |
| Feature | ftr2, | ||
| Math.Matrix4D | xform | ||
| ) |
Checks if the distance between ftr1 and ftr2 is below the allowed maximum and calculates a score reflecting their proximity.
If in 'query mode', the tolerance of ftr1 specifies the allowed maximum distance. Otherwise, the maximum tolerance of the features takes effect.
| ftr1 | The first feature. |
| ftr2 | The second feature. |
| xform | The transformation to apply to the position of the second feature. |