RxDock 0.1.0
A fast, versatile, and open-source program for docking ligands to proteins and nucleic acids
Loading...
Searching...
No Matches
GPFFHSP90.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// GPFFHSP90 Class. GPFFHSP90 represents a fitness function
14// valid for the CGP. It is used to train with the HSP90 set.
15
16#ifndef _RBT_GPFFHSP90_H_
17#define _RBT_GPFFHSP90_H_
18
19#include "rxdock/Context.h"
20#include "rxdock/Rand.h"
21#include "rxdock/geneticprogram/GPFitnessFunction.h"
22#include "rxdock/geneticprogram/GPGenome.h"
23#include "rxdock/geneticprogram/GPTypes.h"
24
25namespace rxdock {
26
27namespace geneticprogram {
28
30public:
31 static const std::string _CT;
32 GPFFHSP90(ContextPtr c) : contextp(c) { _RBTOBJECTCOUNTER_CONSTR_(_CT); }
33 virtual ~GPFFHSP90() { _RBTOBJECTCOUNTER_DESTR_(_CT); }
34
35 void ReadTables(std::istream &, ReturnTypeArray &, ReturnTypeArray &);
36 double CalculateFitness(GPGenomePtr, ReturnTypeArray &, ReturnTypeArray &,
37 double, bool);
38 double CalculateFitness(GPGenomePtr, ReturnTypeArray &, ReturnTypeArray &,
39 bool);
40
41private:
42 void CreateRandomCtes(int);
43 std::vector<double> ctes;
44 CellContextPtr contextp;
45 GPFFHSP90(); // default constructor disabled
46 ReturnTypeArray inputTestTable, inputTrainingTable;
47 ReturnTypeArray sfTestTable, sfTrainingTable;
48};
49
50// Useful typedefs
51typedef SmartPtr<GPFFHSP90> GPFFHSP90Ptr; // Smart pointer
52typedef std::vector<GPFFHSP90Ptr> GPFFHSP90List; // Vector of smart pointers
53typedef GPFFHSP90List::iterator GPFFHSP90ListIter;
54typedef GPFFHSP90List::const_iterator GPFFHSP90ListConstIter;
55
56} // namespace geneticprogram
57
58} // namespace rxdock
59
60#endif //_GPFFHSP90
Definition GPFFHSP90.h:29
Definition GPFitnessFunction.h:29