RxDock 0.1.0
A fast, versatile, and open-source program for docking ligands to proteins and nucleic acids
Loading...
Searching...
No Matches
NmrSF.h
1/***********************************************************************
2 * The rDock program was developed from 1998 - 2006 by the software team
3 * at RiboTargets (subsequently Vernalis (R&D) Ltd).
4 * In 2006, the software was licensed to the University of York for
5 * maintenance and distribution.
6 * In 2012, Vernalis and the University of York agreed to release the
7 * program as Open Source software.
8 * This version is licensed under GNU-LGPL version 3.0 with support from
9 * the University of Barcelona.
10 * http://rdock.sourceforge.net/
11 ***********************************************************************/
12
13// Generic nmr restraint scoring function
14
15#ifndef _RBTNMRSF_H_
16#define _RBTNMRSF_H_
17
18#include "rxdock/BaseIdxSF.h"
19#include "rxdock/BaseInterSF.h"
20#include "rxdock/NoeRestraint.h"
21
22namespace rxdock {
23
24class NmrSF : public BaseInterSF, public BaseIdxSF {
25public:
26 // Class type string
27 static const std::string _CT;
28 // Parameter names
29 static const std::string _FILENAME; // Nmr restraint file name
30 static const std::string
31 _QUADRATIC; // True = quadratic penalty function; false = linear
32
33 NmrSF(const std::string &strName = "nmr");
34 virtual ~NmrSF();
35
36protected:
37 virtual void SetupReceptor();
38 virtual void SetupLigand();
39 virtual void SetupScore();
40 virtual double RawScore() const;
41 void ParameterUpdated(const std::string &strName);
42
43private:
44 double NoeDistance(const NoeRestraintAtoms &noe) const;
45 double StdDistance(const StdRestraintAtoms &std) const;
46
47 bool m_bQuadratic; // synchronised with QUADRATIC named parameter
48 NonBondedGridPtr m_spGrid;
49 AtomList m_ligAtomList; // All ligand atoms
50 NoeRestraintAtomsList m_noeList; // List of all NOE interactions
51 StdRestraintAtomsList m_stdList; // List of all STD interactions
52};
53
54} // namespace rxdock
55
56#endif //_RBTNMRSF_H_
Definition BaseIdxSF.h:30
Definition BaseInterSF.h:27
Definition NmrSF.h:24
Definition NoeRestraint.h:109
Definition NoeRestraint.h:159