29 #ifndef CDPL_DESCR_NPOINTPHARMACOPHOREFINGERPRINTGENERATOR_HPP
30 #define CDPL_DESCR_NPOINTPHARMACOPHOREFINGERPRINTGENERATOR_HPP
69 static constexpr std::size_t DEF_MIN_FEATURE_TUPLE_SIZE = 1;
74 static constexpr std::size_t DEF_MAX_FEATURE_TUPLE_SIZE = 3;
152 static constexpr
double DEF_BIN_SIZE = 2.0;
181 void enumFeatureTuples(std::size_t curr_ftr_idx,
Util::BitSet& fp);
185 void canonFeatureTupleData(std::size_t curr_ftr_idx);
187 unsigned long getDistanceBinNumber(
double dist)
const;
191 typedef std::pair<unsigned int, std::size_t> FeatureID;
192 typedef std::vector<FeatureID> FeatureList;
193 typedef std::vector<unsigned long> FeatureTupleData;
195 std::size_t minFtrTupleSize;
196 std::size_t maxFtrTupleSize;
204 FeatureList ftrTuple;
205 FeatureTupleData ftrTupleData;
206 FeatureTupleData tmpFtrTupleData;
Definition of class CDPL::Pharm::BasicPharmacophore.
Declaration of type CDPL::Util::BitSet.
Definition of class CDPL::Pharm::DefaultPharmacophoreGenerator.
Definition of the preprocessor macro CDPL_DESCR_API.
#define CDPL_DESCR_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
Definition of class CDPL::Pharm::FeatureSet.
Definition of matrix data types.
Abstract base class for representations of a chemical structure as a graph of bonded atoms.
Definition: MolecularGraph.hpp:57
Abstract base for N-point pharmacophore fingerprint generators.
Definition: NPointPharmacophoreFingerprintGenerator.hpp:63
const Pharm::PharmacophoreGenerator & getPharmacophoreGenerator() const
Returns the internal pharmacophore generator used for the input molecular graph.
std::function< bool(const Pharm::Feature &)> FeatureFilterFunction
Type of the generic functor used to filter which features participate in the fingerprint.
Definition: NPointPharmacophoreFingerprintGenerator.hpp:79
std::size_t getMinFeatureTupleSize() const
Returns the currently configured minimum feature tuple size.
NPointPharmacophoreFingerprintGenerator(const NPointPharmacophoreFingerprintGenerator &gen)=default
Copy constructor.
void generate(const Chem::MolecularGraph &molgraph, Util::BitSet &fp)
Generates the fingerprint of the molecular graph molgraph.
void setMaxFeatureTupleSize(std::size_t max_size)
Sets the maximum size of generated feature tuples.
std::size_t getMaxFeatureTupleSize() const
Returns the currently configured maximum feature tuple size.
void setMinFeatureTupleSize(std::size_t min_size)
Sets the minimum size of generated feature tuples.
void setFeatureFilterFunction(const FeatureFilterFunction &func)
Specifies a predicate that selects which features participate in the fingerprint.
Pharm::PharmacophoreGenerator & getPharmacophoreGenerator()
Returns the internal pharmacophore generator used for the input molecular graph.
void setBinSize(double bin_size)
Sets the size of the bins used to discretize feature-pair distances.
double getBinSize() const
Returns the currently configured distance bin size.
void generate(const Pharm::FeatureContainer &cntnr, Util::BitSet &fp)
Generates the fingerprint of the feature container cntnr.
const FeatureFilterFunction & getFeatureFilterFunction() const
Returns the currently configured feature filter function.
NPointPharmacophoreFingerprintGenerator()
Constructs the NPointPharmacophoreFingerprintGenerator instance.
virtual ~NPointPharmacophoreFingerprintGenerator()
Virtual destructor.
Definition: NPointPharmacophoreFingerprintGenerator.hpp:84
Concrete Pharm::Pharmacophore implementation that owns its features as Pharm::BasicFeature instances ...
Definition: BasicPharmacophore.hpp:53
Pharmacophore generator pre-configured with the built-in default set of feature generators.
Definition: DefaultPharmacophoreGenerator.hpp:53
Abstract base class for containers holding a sequence of Pharm::Feature objects with associated prope...
Definition: FeatureContainer.hpp:55
Concrete Pharm::FeatureContainer implementation that stores references to existing Pharm::Feature ins...
Definition: FeatureSet.hpp:56
Abstract base class representing a single pharmacophore feature within a parent Pharm::Pharmacophore.
Definition: Feature.hpp:48
Base class for pharmacophore generators that orchestrate per-feature-type Pharm::FeatureGenerator ins...
Definition: PharmacophoreGenerator.hpp:50
Matrix< unsigned long > ULMatrix
Unbounded dense matrix holding unsigned integers of type unsigned long.
Definition: Matrix.hpp:3155
boost::dynamic_bitset BitSet
Dynamic bitset class.
Definition: BitSet.hpp:46
The namespace of the Chemical Data Processing Library.