Chemical Data Processing Library C++ API - Version 1.2.0
NPoint2DPharmacophoreFingerprintGenerator.hpp
Go to the documentation of this file.
1 /*
2  * NPoint2DPharmacophoreFingerprintGenerator.hpp
3  *
4  * This file is part of the Chemical Data Processing Toolkit
5  *
6  * Copyright (C) 2003 Thomas Seidel <thomas.seidel@univie.ac.at>
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public License
19  * along with this library; see the file COPYING. If not, write to
20  * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21  * Boston, MA 02111-1307, USA.
22  */
23 
29 #ifndef CDPL_DESCR_NPOINT2DPHARMACOPHOREFINGERPRINTGENERATOR_HPP
30 #define CDPL_DESCR_NPOINT2DPHARMACOPHOREFINGERPRINTGENERATOR_HPP
31 
32 #include <memory>
33 
34 #include "CDPL/Descr/APIPrefix.hpp"
36 #include "CDPL/Math/Matrix.hpp"
37 
38 
39 namespace CDPL
40 {
41 
42  namespace Descr
43  {
44 
50  {
51 
52  public:
53  typedef std::shared_ptr<NPoint2DPharmacophoreFingerprintGenerator> SharedPointer;
54 
56  {
57 
60  AVG_PATH_LENGTH
61  };
62 
63  static constexpr FeatureDistanceType DEF_FEATURE_DISTANCE_TYPE = MIN_PATH_LENGTH;
64 
66 
68 
70 
72 
74 
75  void generate(const Chem::MolecularGraph& molgraph, Util::BitSet& fp);
76 
77  private:
78  double getDistance(const Pharm::Feature& ftr1, const Pharm::Feature& ftr2) const;
79 
80  FeatureDistanceType ftrDistType;
81  Math::ULMatrix topDistMatrix;
82  const Math::ULMatrix* activeTopDistMatrix;
83  const Chem::MolecularGraph* molGraph;
84  };
85  } // namespace Descr
86 } // namespace CDPL
87 
88 #endif // CDPL_DESCR_NPOINT2DPHARMACOPHOREFINGERPRINTGENERATOR_HPP
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 matrix data types.
Definition of the class CDPL::Descr::NPointPharmacophoreFingerprintGenerator.
MolecularGraph.
Definition: MolecularGraph.hpp:52
NPoint2DPharmacophoreFingerprintGenerator.
Definition: NPoint2DPharmacophoreFingerprintGenerator.hpp:50
FeatureDistanceType
Definition: NPoint2DPharmacophoreFingerprintGenerator.hpp:56
@ MAX_PATH_LENGTH
Definition: NPoint2DPharmacophoreFingerprintGenerator.hpp:59
@ MIN_PATH_LENGTH
Definition: NPoint2DPharmacophoreFingerprintGenerator.hpp:58
NPoint2DPharmacophoreFingerprintGenerator(const Chem::MolecularGraph &molgraph, Util::BitSet &fp)
void generate(const Chem::MolecularGraph &molgraph, Util::BitSet &fp)
void setFeatureDistanceType(FeatureDistanceType dist_type)
NPoint2DPharmacophoreFingerprintGenerator(const NPoint2DPharmacophoreFingerprintGenerator &gen)=default
std::shared_ptr< NPoint2DPharmacophoreFingerprintGenerator > SharedPointer
Definition: NPoint2DPharmacophoreFingerprintGenerator.hpp:53
NPointPharmacophoreFingerprintGenerator.
Definition: NPointPharmacophoreFingerprintGenerator.hpp:54
Feature.
Definition: Feature.hpp:48
Matrix< unsigned long > ULMatrix
An unbounded dense matrix holding unsigned integers of type unsigned long.
Definition: Matrix.hpp:1824
boost::dynamic_bitset BitSet
A dynamic bitset class.
Definition: BitSet.hpp:46
The namespace of the Chemical Data Processing Library.