File: MolSurf.h

package info (click to toggle)
rdkit 201203-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 37,840 kB
  • sloc: cpp: 93,902; python: 51,897; java: 5,192; ansic: 3,497; xml: 2,499; sql: 1,641; yacc: 1,518; lex: 1,076; makefile: 325; fortran: 183; sh: 153; cs: 51
file content (108 lines) | stat: -rw-r--r-- 3,801 bytes parent folder | download | duplicates (2)
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
//
//  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.

*/
#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

    */
    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.
	  
    */
    double calcLabuteASA(const ROMol &mol,bool includeHs=true,
			 bool force=false);

    const std::string tpsaVersion="1.1.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

      \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.

      \return the sum of the atomic contributions

    */
    double getTPSAAtomContribs(const ROMol &mol,
                               std::vector<double> &Vi,
                               bool force=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

      \param mol        the molecule of interest
      \param force      (optional) calculate the value even if it's cached.
	  
    */
    double calcTPSA(const ROMol &mol,
                    bool force=false);

    std::vector<double> calcSlogP_VSA(const ROMol &mol,std::vector<double> *bins=0,
                                      bool force=false);
    std::vector<double> calcSMR_VSA(const ROMol &mol,std::vector<double> *bins=0,
                                      bool force=false);
    std::vector<double> calcPEOE_VSA(const ROMol &mol,std::vector<double> *bins=0,
                                      bool force=false);
    
  } // end of namespace Descriptors
} //end of namespace RDKit

#endif