BCUTDescriptorCalculator.
More...
◆ __init__()
Constructs the BCUTDescriptorCalculator
instance and calculates the BCUT descriptor of the molecular graph molgraph.
The calculated descriptor can be retrieved by a call to getResult().
- Parameters
-
molgraph | The molecular graph for which to calculate the BCUT descriptor. |
descr | The calculated BCUT descriptor. |
◆ getObjectID()
int CDPL.Descr.BCUTDescriptorCalculator.getObjectID |
( |
| ) |
|
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python BCUTDescriptorCalculator 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 BCUTDescriptorCalculator 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()
.
- Returns
- The numeric ID of the internally referenced C++ class instance.
◆ setAtomWeightFunction()
◆ calculate()
Calculates the BCUT descriptor of the molecular graph molgraph.
The calculated BCUT descriptor is a vector that contains the calculated eigenvalues of the underlying Burden matrix [BURMA]. The elements of the vector are sorted in ascending order. Note that explicit hydrogen atoms are included in the calculation of the BCUT descriptor. In order to calculate the descriptor for a hydrogen depleted molecular graph, any hydrogen atoms have to be removed from the molecular graph before the calculation is performed.
- Parameters
-
molgraph | The molecular graph for which to calculate the BCUT descriptor. |
descr | The calculated BCUT descriptor. |