![]() |
Chemical Data Processing Library C++ API - Version 1.4.0
|
Abstract base for N-point pharmacophore fingerprint generators. More...
#include <NPointPharmacophoreFingerprintGenerator.hpp>
Inheritance diagram for CDPL::Descr::NPointPharmacophoreFingerprintGenerator:Public Types | |
| typedef std::function< bool(const Pharm::Feature &)> | FeatureFilterFunction |
| Type of the generic functor used to filter which features participate in the fingerprint. More... | |
Public Member Functions | |
| virtual | ~NPointPharmacophoreFingerprintGenerator () |
| Virtual destructor. More... | |
| void | setMinFeatureTupleSize (std::size_t min_size) |
| Sets the minimum size of generated feature tuples. More... | |
| std::size_t | getMinFeatureTupleSize () const |
| Returns the currently configured minimum feature tuple size. More... | |
| void | setMaxFeatureTupleSize (std::size_t max_size) |
| Sets the maximum size of generated feature tuples. More... | |
| std::size_t | getMaxFeatureTupleSize () const |
| Returns the currently configured maximum feature tuple size. More... | |
| void | setBinSize (double bin_size) |
| Sets the size of the bins used to discretize feature-pair distances. More... | |
| double | getBinSize () const |
| Returns the currently configured distance bin size. More... | |
| Pharm::PharmacophoreGenerator & | getPharmacophoreGenerator () |
| Returns the internal pharmacophore generator used for the input molecular graph. More... | |
| const Pharm::PharmacophoreGenerator & | getPharmacophoreGenerator () const |
| Returns the internal pharmacophore generator used for the input molecular graph. More... | |
| void | setFeatureFilterFunction (const FeatureFilterFunction &func) |
| Specifies a predicate that selects which features participate in the fingerprint. More... | |
| const FeatureFilterFunction & | getFeatureFilterFunction () const |
| Returns the currently configured feature filter function. More... | |
Static Public Attributes | |
| static constexpr std::size_t | DEF_MIN_FEATURE_TUPLE_SIZE = 1 |
| Default minimum size of generated feature tuples. More... | |
| static constexpr std::size_t | DEF_MAX_FEATURE_TUPLE_SIZE = 3 |
| Default maximum size of generated feature tuples. More... | |
Protected Member Functions | |
| NPointPharmacophoreFingerprintGenerator () | |
Constructs the NPointPharmacophoreFingerprintGenerator instance. More... | |
| NPointPharmacophoreFingerprintGenerator (const NPointPharmacophoreFingerprintGenerator &gen)=default | |
| Copy constructor. More... | |
| void | generate (const Chem::MolecularGraph &molgraph, Util::BitSet &fp) |
| Generates the fingerprint of the molecular graph molgraph. More... | |
| void | generate (const Pharm::FeatureContainer &cntnr, Util::BitSet &fp) |
| Generates the fingerprint of the feature container cntnr. More... | |
Static Protected Attributes | |
| static constexpr double | DEF_BIN_SIZE = 2.0 |
| Default distance bin size. More... | |
Abstract base for N-point pharmacophore fingerprint generators.
The base class implements the common machinery for enumerating feature tuples of size in [minTupleSize, maxTupleSize], binning the feature-pair distances of each tuple and setting the corresponding bits of the output fingerprint. The concrete distance (topological vs. 3D) is provided by the derived class via the pure virtual getDistance() hook.
| typedef std::function<bool(const Pharm::Feature&)> CDPL::Descr::NPointPharmacophoreFingerprintGenerator::FeatureFilterFunction |
Type of the generic functor used to filter which features participate in the fingerprint.
|
inlinevirtual |
Virtual destructor.
|
protected |
Constructs the NPointPharmacophoreFingerprintGenerator instance.
|
protecteddefault |
Copy constructor.
| void CDPL::Descr::NPointPharmacophoreFingerprintGenerator::setMinFeatureTupleSize | ( | std::size_t | min_size | ) |
Sets the minimum size of generated feature tuples.
| min_size | The minimum tuple size. |
| std::size_t CDPL::Descr::NPointPharmacophoreFingerprintGenerator::getMinFeatureTupleSize | ( | ) | const |
Returns the currently configured minimum feature tuple size.
| void CDPL::Descr::NPointPharmacophoreFingerprintGenerator::setMaxFeatureTupleSize | ( | std::size_t | max_size | ) |
Sets the maximum size of generated feature tuples.
| max_size | The maximum tuple size. |
| std::size_t CDPL::Descr::NPointPharmacophoreFingerprintGenerator::getMaxFeatureTupleSize | ( | ) | const |
Returns the currently configured maximum feature tuple size.
| void CDPL::Descr::NPointPharmacophoreFingerprintGenerator::setBinSize | ( | double | bin_size | ) |
Sets the size of the bins used to discretize feature-pair distances.
| bin_size | The bin size. |
| double CDPL::Descr::NPointPharmacophoreFingerprintGenerator::getBinSize | ( | ) | const |
Returns the currently configured distance bin size.
| Pharm::PharmacophoreGenerator& CDPL::Descr::NPointPharmacophoreFingerprintGenerator::getPharmacophoreGenerator | ( | ) |
Returns the internal pharmacophore generator used for the input molecular graph.
| const Pharm::PharmacophoreGenerator& CDPL::Descr::NPointPharmacophoreFingerprintGenerator::getPharmacophoreGenerator | ( | ) | const |
Returns the internal pharmacophore generator used for the input molecular graph.
const reference to the pharmacophore generator. | void CDPL::Descr::NPointPharmacophoreFingerprintGenerator::setFeatureFilterFunction | ( | const FeatureFilterFunction & | func | ) |
Specifies a predicate that selects which features participate in the fingerprint.
| func | The feature filter function. |
| const FeatureFilterFunction& CDPL::Descr::NPointPharmacophoreFingerprintGenerator::getFeatureFilterFunction | ( | ) | const |
Returns the currently configured feature filter function.
|
protected |
Generates the fingerprint of the molecular graph molgraph.
| molgraph | The molecular graph. |
| fp | The output bitset. |
|
protected |
Generates the fingerprint of the feature container cntnr.
| cntnr | The feature container. |
| fp | The output bitset. |
|
staticconstexpr |
Default minimum size of generated feature tuples.
|
staticconstexpr |
Default maximum size of generated feature tuples.
|
staticconstexprprotected |
Default distance bin size.