File: MolSurf.h

package info (click to toggle)
rdkit 201809.1%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 123,688 kB
  • sloc: cpp: 230,509; python: 70,501; java: 6,329; ansic: 5,427; sql: 1,899; yacc: 1,739; lex: 1,243; makefile: 445; xml: 229; fortran: 183; sh: 123; cs: 93
file content (120 lines) | stat: -rw-r--r-- 4,769 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
//
//  Copyright (C) 2007-2011 Greg Landrum
//
//   @@ All Rights Reserved @@
//  This file is part of the RDKit.
//  The contents are covered by the terms of the BSD license
//  which is included in the file license.txt, found at the root
//  of the RDKit source tree.
//

/*! \file MolSurf.h

  \brief Use MolDescriptors.h in client code.

*/
#include <RDGeneral/export.h>
#ifndef __RD_MOLSURF_H__
#define __RD_MOLSURF_H__

#include <vector>

namespace RDKit {
class ROMol;
namespace Descriptors {
const std::string labuteASAVersion = "1.0.2";

//! calculates atomic contributions to Labute's Approximate Surface Area
/*!
  Definition from P. Labute's article in the Journal of the
  Chemical Computing Group and J. Mol. Graph. Mod.  _18_ 464-477
  (2000)

  \param mol        the molecule of interest
  \param Vi         used to return the explict atom contribs
  \param hContrib   used to return the H contributions (if calculated)
  \param includeHs  (optional) if this is true (the default),
      the contribution of H atoms to the ASA will be included.
  \param force      (optional) calculate the values even if they are cached.

  \return the sum of the atomic contributions

*/
RDKIT_DESCRIPTORS_EXPORT double getLabuteAtomContribs(const ROMol &mol,
                                                      std::vector<double> &Vi,
                                                      double &hContrib,
                                                      bool includeHs = true,
                                                      bool force = false);

//! calculates Labute's Approximate Surface Area (ASA from MOE)
/*!
  Definition from P. Labute's article in the Journal of the
  Chemical Computing Group and J. Mol. Graph. Mod.  _18_ 464-477
  (2000)

  \param mol        the molecule of interest
  \param includeHs  (optional) if this is true (the default),
      the contribution of H atoms to the ASA will be included.
  \param force      (optional) calculate the value even if it's cached.

*/
RDKIT_DESCRIPTORS_EXPORT double calcLabuteASA(const ROMol &mol,
                                              bool includeHs = true,
                                              bool force = false);

const std::string tpsaVersion = "2.0.0";
//! calculates atomic contributions to the TPSA value
/*!
  The TPSA definition is from:
  P. Ertl, B. Rohde, P. Selzer
   Fast Calculation of Molecular Polar Surface Area as a Sum of Fragment-based
   Contributions and Its Application to the Prediction of Drug Transport
   Properties, J.Med.Chem. 43, 3714-3717, 2000
   By default the calculation does not include contributions from S or P atoms,
   this can be be changed with the includeSandP argument.

  \param mol          the molecule of interest
  \param Vi           used to return the atom contribs
  \param force        (optional) calculate the values even if they are cached.
  \param includeSandP (optional) include contributions from S and P atoms

  \return the sum of the atomic contributions

*/
RDKIT_DESCRIPTORS_EXPORT double getTPSAAtomContribs(const ROMol &mol,
                                                    std::vector<double> &Vi,
                                                    bool force = false,
                                                    bool includeSandP = false);

//! calculates the TPSA value for a molecule
/*!
  The TPSA definition is from:
  P. Ertl, B. Rohde, P. Selzer
   Fast Calculation of Molecular Polar Surface Area as a Sum of Fragment-based
   Contributions and Its Application to the Prediction of Drug Transport
   Properties, J.Med.Chem. 43, 3714-3717, 2000
   By default the calculation does not include contributions from S or P atoms,
   this can be be changed with the includeSandP argument.

  \param mol          the molecule of interest
  \param force        (optional) calculate the value even if it's cached.
  \param includeSandP (optional) include contributions from S and P atoms

*/
RDKIT_DESCRIPTORS_EXPORT double calcTPSA(const ROMol &mol, bool force = false,
                                         bool includeSandP = false);

RDKIT_DESCRIPTORS_EXPORT std::vector<double> calcSlogP_VSA(
    const ROMol &mol, std::vector<double> *bins = 0, bool force = false);
RDKIT_DESCRIPTORS_EXPORT std::vector<double> calcSMR_VSA(
    const ROMol &mol, std::vector<double> *bins = 0, bool force = false);
RDKIT_DESCRIPTORS_EXPORT std::vector<double> calcPEOE_VSA(
    const ROMol &mol, std::vector<double> *bins = 0, bool force = false);
RDKIT_DESCRIPTORS_EXPORT std::vector<double> calcCustomProp_VSA(
    const ROMol &mol, const std::string &customPropName,
    const std::vector<double> &bins, bool force = false);

}  // end of namespace Descriptors
}  // end of namespace RDKit

#endif