OEMolPropertyFxn
class OEMolPropertyFxn
The OEMolPropertyFxn is an abstract base class. This class defines the interface for functions which can be used to access molecule properties defined as SDF file data fields or generic data in a molecule.
- The following classes derive from this class:
CreateCopy
CreateCopy() -> OEMolPropertyFxn
A virtual constructor which allows copying of concrete derived objects using a reference to this base class.
Get
Get(mol: Union[OEGraphMol,OEQMol]) -> float
Get(mol: OEMol) -> float
Returns the property value for the specified molecule. Method returns a large number (limiting large double in C++) when a value is not found.
Has
Has(mol: Union[OEGraphMol,OEQMol]) -> bool
Has(mol: OEMol) -> bool
Checks if the property value exists for the specified molecule. Returns True if
a value exists.