![]() |
Chemical Data Processing Library C++ API - Version 1.4.0
|
Calculation of the octanol/water partition coefficient ( \( \log P \)) of molecular graphs using the atom-additive method of Wang, Gao and Lai. More...
#include <XLogPCalculator.hpp>
Public Member Functions | |
| XLogPCalculator () | |
Constructs the XLogPCalculator instance. More... | |
| XLogPCalculator (const Chem::MolecularGraph &molgraph) | |
Constructs the XLogPCalculator instance and calculates the \( \log P \) of the molecular graph molgraph. More... | |
| double | calculate (const Chem::MolecularGraph &molgraph) |
| Calculates the \( \log P \) of the molecular graph molgraph. More... | |
| double | getResult () const |
| Returns the result of the last \( \log P \) calculation. More... | |
| const Math::DVector & | getFeatureVector () const |
| Returns the feature count vector of the last \( \log P \) calculation. More... | |
| const Math::DVector & | getAtomContributions () const |
| Returns the contribution of each atom the total obtained by the last \( \log P \) calculation. More... | |
Static Public Attributes | |
| static constexpr std::size_t | FEATURE_VECTOR_SIZE = 101 |
| Specifies the number of different structural features used by the \( \log P \) model. More... | |
Calculation of the octanol/water partition coefficient ( \( \log P \)) of molecular graphs using the atom-additive method of Wang, Gao and Lai.
The model uses 90 atomic feature types plus 11 correction-factor features (101 features in total), combined linearly into a single \( \log P \) value.
| CDPL::MolProp::XLogPCalculator::XLogPCalculator | ( | ) |
Constructs the XLogPCalculator instance.
| CDPL::MolProp::XLogPCalculator::XLogPCalculator | ( | const Chem::MolecularGraph & | molgraph | ) |
Constructs the XLogPCalculator instance and calculates the \( \log P \) of the molecular graph molgraph.
The calculated \( \log P \) can be retrieved by a call to getResult().
| molgraph | The molecular graph for which to calculate the \( \log P \). |
| double CDPL::MolProp::XLogPCalculator::calculate | ( | const Chem::MolecularGraph & | molgraph | ) |
Calculates the \( \log P \) of the molecular graph molgraph.
| molgraph | The molecular graph for which to calculate the \( \log P \). |
| double CDPL::MolProp::XLogPCalculator::getResult | ( | ) | const |
Returns the result of the last \( \log P \) calculation.
| const Math::DVector& CDPL::MolProp::XLogPCalculator::getFeatureVector | ( | ) | const |
Returns the feature count vector of the last \( \log P \) calculation.
The occurrence count of a particular structural feature (atom type or correction factor feature) can be retrieved from the returned vector via its feature index. For atom type related features, the feature index correspond to the numerical identifier of the atom type in the original publication [XLOGP] minus 1. The feature indices of the various correction factors start at index 90 and are ordered according to their definition in the paper.
| const Math::DVector& CDPL::MolProp::XLogPCalculator::getAtomContributions | ( | ) | const |
Returns the contribution of each atom the total obtained by the last \( \log P \) calculation.
|
staticconstexpr |
Specifies the number of different structural features used by the \( \log P \) model.