Chemical Data Processing Library C++ API - Version 1.2.0
GRAILDescriptorCalculator.hpp
Go to the documentation of this file.
1 /*
2  * GRAILDescriptorCalculator.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_GRAIL_GRAILDESCRIPTORCALCULATOR_HPP
30 #define CDPL_GRAIL_GRAILDESCRIPTORCALCULATOR_HPP
31 
32 #include <cstddef>
33 #include <memory>
34 
35 #include "CDPL/GRAIL/APIPrefix.hpp"
38 #include "CDPL/Math/Vector.hpp"
39 
40 
41 namespace CDPL
42 {
43 
44  namespace Chem
45  {
46 
47  class MolecularGraph;
48  }
49 
50  namespace GRAIL
51  {
52 
53  class GRAILDescriptorCalculatorImpl;
54 
60  {
61 
62  public:
63  static constexpr std::size_t TOTAL_DESCRIPTOR_SIZE = 35;
64  static constexpr std::size_t LIGAND_DESCRIPTOR_SIZE = 13;
65 
66  typedef std::shared_ptr<GRAILDescriptorCalculator> SharedPointer;
67 
69  {
70 
105  VDW_ENERGY_REP
106  };
107 
109 
111 
113 
115 
116  void initTargetData(const Chem::MolecularGraph& tgt_env, const Chem::Atom3DCoordinatesFunction& coords_func,
117  bool tgt_env_changed = true);
118 
120 
121  void calculate(const Math::Vector3DArray& atom_coords, Math::DVector& descr, bool update_lig_part = true);
122 
123  private:
124  void initCalculatorImpl();
125 
126  typedef std::unique_ptr<GRAILDescriptorCalculatorImpl> ImplementationPointer;
127 
128  ImplementationPointer impl;
129  };
130  } // namespace GRAIL
131 } // namespace CDPL
132 
133 #endif // CDPL_GRAIL_GRAILDESCRIPTORCALCULATOR_HPP
Type definition of a generic wrapper class for storing user-defined Chem::Atom 3D-coordinates functio...
Definition of the preprocessor macro CDPL_GRAIL_API.
#define CDPL_GRAIL_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
Definition of the class CDPL::Math::VectorArray.
Definition of vector data types.
MolecularGraph.
Definition: MolecularGraph.hpp:52
GRAILDescriptorCalculator.
Definition: GRAILDescriptorCalculator.hpp:60
void calculate(const Math::Vector3DArray &atom_coords, Math::DVector &descr, bool update_lig_part=true)
void initLigandData(const Chem::MolecularGraph &ligand)
void initTargetData(const Chem::MolecularGraph &tgt_env, const Chem::Atom3DCoordinatesFunction &coords_func, bool tgt_env_changed=true)
GRAILDescriptorCalculator & operator=(const GRAILDescriptorCalculator &calc)
std::shared_ptr< GRAILDescriptorCalculator > SharedPointer
Definition: GRAILDescriptorCalculator.hpp:66
ElementIndex
Definition: GRAILDescriptorCalculator.hpp:69
@ ENV_HBA_OCC_SUM
Definition: GRAILDescriptorCalculator.hpp:84
@ XBD_COUNT
Definition: GRAILDescriptorCalculator.hpp:77
@ VDW_ENERGY_ATT
Definition: GRAILDescriptorCalculator.hpp:104
@ ROT_BOND_COUNT
Definition: GRAILDescriptorCalculator.hpp:80
@ XBD_XBA_SCORE_MAX
Definition: GRAILDescriptorCalculator.hpp:101
@ AR_PI_SCORE_SUM
Definition: GRAILDescriptorCalculator.hpp:90
@ HBA_HBD_SCORE_SUM
Definition: GRAILDescriptorCalculator.hpp:98
@ PI_COUNT
Definition: GRAILDescriptorCalculator.hpp:71
@ ES_ENERGY_SQRD_DIST
Definition: GRAILDescriptorCalculator.hpp:103
@ TOTAL_HYD
Definition: GRAILDescriptorCalculator.hpp:81
@ HBA_HBD_SCORE_MAX
Definition: GRAILDescriptorCalculator.hpp:99
@ TPSA
Definition: GRAILDescriptorCalculator.hpp:83
@ H_H_SCORE_SUM
Definition: GRAILDescriptorCalculator.hpp:92
@ XBA_COUNT
Definition: GRAILDescriptorCalculator.hpp:78
@ ENV_HBD_OCC_MAX
Definition: GRAILDescriptorCalculator.hpp:87
@ AR_COUNT
Definition: GRAILDescriptorCalculator.hpp:73
@ ES_ENERGY
Definition: GRAILDescriptorCalculator.hpp:102
@ LOGP
Definition: GRAILDescriptorCalculator.hpp:82
@ ENV_HBD_OCC_SUM
Definition: GRAILDescriptorCalculator.hpp:86
@ AR_AR_SCORE_MAX
Definition: GRAILDescriptorCalculator.hpp:95
@ ENV_HBA_OCC_MAX
Definition: GRAILDescriptorCalculator.hpp:85
@ HVY_ATOM_COUNT
Definition: GRAILDescriptorCalculator.hpp:79
@ H_COUNT
Definition: GRAILDescriptorCalculator.hpp:74
@ XBD_XBA_SCORE_SUM
Definition: GRAILDescriptorCalculator.hpp:100
@ HBD_HBA_SCORE_SUM
Definition: GRAILDescriptorCalculator.hpp:96
@ H_H_SCORE_MAX
Definition: GRAILDescriptorCalculator.hpp:93
@ HBD_COUNT
Definition: GRAILDescriptorCalculator.hpp:75
@ PI_AR_SCORE_MAX
Definition: GRAILDescriptorCalculator.hpp:89
@ HBA_COUNT
Definition: GRAILDescriptorCalculator.hpp:76
@ PI_AR_SCORE_SUM
Definition: GRAILDescriptorCalculator.hpp:88
@ AR_PI_SCORE_MAX
Definition: GRAILDescriptorCalculator.hpp:91
@ HBD_HBA_SCORE_MAX
Definition: GRAILDescriptorCalculator.hpp:97
@ AR_AR_SCORE_SUM
Definition: GRAILDescriptorCalculator.hpp:94
@ NI_COUNT
Definition: GRAILDescriptorCalculator.hpp:72
GRAILDescriptorCalculator(const GRAILDescriptorCalculator &calc)
std::function< const Math::Vector3D &(const Chem::Atom &)> Atom3DCoordinatesFunction
A generic wrapper class used to store a user-defined Chem::Atom 3D-coordinates function.
Definition: Atom3DCoordinatesFunction.hpp:43
VectorArray< Vector3D > Vector3DArray
An array of Math::Vector3D objects.
Definition: VectorArray.hpp:84
The namespace of the Chemical Data Processing Library.