RxDock
0.1.0
A fast, versatile, and open-source program for docking ligands to proteins and nucleic acids
Loading...
Searching...
No Matches
tests
ChromTest.h
1
// Unit tests for ChromElement and subclasses
2
//
3
// Required input files:
4
// 1koc.json RxDock receptor file
5
// 1koc.psf Receptor topology file
6
// 1koc.crd Receptor coordinate file
7
// 1koc_c.sd Ligand coordinate file
8
// 1koc.as Docking site
9
//
10
// Required environment:
11
// Make sure the above files are colocated in a single directory
12
// and define RBT_HOME env. variable to point at this directory
13
#ifndef RBTCHROMTEST_H_
14
#define RBTCHROMTEST_H_
15
16
#include <gtest/gtest.h>
17
18
#include "rxdock/BiMolWorkSpace.h"
19
#include "rxdock/Chrom.h"
20
#include "rxdock/DockingSite.h"
21
#include "rxdock/Model.h"
22
#include "rxdock/SFAgg.h"
23
24
namespace
rxdock {
25
26
namespace
unittest {
27
28
class
ChromTest
:
public
::testing::Test {
29
protected
:
30
static
double
TINY;
31
// TextFixture methods
32
void
SetUp()
override
;
33
void
TearDown()
override
;
34
35
// extra setup for building a simple scoring function and workspace
36
void
setupWorkSpace();
37
38
// rdock helper methods
39
// RMSD calculation between two coordinate lists
40
double
rmsd(
const
CoordList &rc,
const
CoordList &c);
41
// Measures the variation in chromosome vector values for repeated
42
// mutations or randomisations
43
void
measureRandOrMutateDiff(
ChromElement
*chrom,
int
nTrials,
44
bool
bMutate,
// true=mutate; false=randomise
45
double
&meanDiff,
double
&minDiff,
46
double
&maxDiff);
47
// Measures the variation in chromosome vector values for repeated
48
// crossovers
49
void
measureCrossoverDiff(
ChromElement
*chrom,
int
nTrials,
double
&meanDiff,
50
double
&minDiff,
double
&maxDiff);
51
52
ModelPtr
m_recep_1koc;
53
ModelPtr
m_lig_1koc;
54
DockingSitePtr
m_site_1koc;
55
ChromElementPtr
m_chrom_1koc;
56
AtomList m_atomList;
// All atoms in receptor and ligand
57
BiMolWorkSpacePtr
m_workSpace;
// simple workspace
58
SFAggPtr
m_SF;
// simple scoring function
59
};
60
61
}
// namespace unittest
62
63
}
// namespace rxdock
64
65
#endif
/*RBTCHROMTEST_H_*/
rxdock::ChromElement
Definition
ChromElement.h:36
rxdock::SmartPtr< Model >
rxdock::unittest::ChromTest
Definition
ChromTest.h:28
Generated by
1.9.7