-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconformation_sampler.h
More file actions
executable file
·104 lines (86 loc) · 3.55 KB
/
conformation_sampler.h
File metadata and controls
executable file
·104 lines (86 loc) · 3.55 KB
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
/*
$Id$
AutoDock
Copyright (C) 1989-2007, Max Chang, Rik Belew, Garrett M. Morris, David S. Goodsell, Ruth Huey, Arthur J. Olson,
All Rights Reserved.
AutoDock is a Trade Mark of The Scripps Research Institute.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#include "constants.h"
#include "structs.h"
#include "support.h"
#include "getrms.h"
#include "autocomm.h"
#include "cnv_state_to_coords.h"
#include "getrms.h"
#ifndef _CONFORMATION_SAMPLER_H
#define _CONFORMATION_SAMPLER_H
#define BASE_DIMENSIONS 7
#define NUM_BINS 20
#define BIN_SIZE 0.1
class ConformationSampler {
public:
State base_state, probe_state;
Individual base_ind, probe_ind;
Phenotype base_point, probe_point;
Real base_axis_angle[4];
Quat base_q;
Real base_crd[MAX_ATOMS][SPACE]; //probe_crd?;
Real base_energy, total_energy, total_favorable_energy;
Real min_energy, min_energy_rmsd;
Real Boltzmann_sum, Boltzmann_diff_sum;
int dimensionality, evals, favorable_evals;
Real temp_rotation_angle;
Real min_values[BASE_DIMENSIONS-1];
Real max_values[BASE_DIMENSIONS-1];
int bin_count[NUM_BINS];
int bin_count_favorable[NUM_BINS];
Real bin_total_energy[NUM_BINS];
Real bin_total_favorable_energy[NUM_BINS];
Real bin_min_energy[NUM_BINS];
Real bin_max_energy[NUM_BINS];
Real bin_Boltzmann_sum[NUM_BINS];
ConformationSampler(State);
~ConformationSampler(void);
void random_sample(void);
void random_sample(int);
void systematic_search(int index);
Real current_energy(void);
Real current_rmsd(void);
Real reference_rmsd(void);
Real fraction_favorable(void);
Real average_favorable_energy(void);
Real energy_volume(void);
Real RK_entropy(void);
void output_statistics(void);
Real partition_function(void);
Real partition_function(int bin);
Real entropy_estimate(void);
private:
Real normalized_volume(void);
Real normalized_Boltzmann(void);
Real configurational_integral(void);
void update_bounds(void);
};
void systematic_conformation_sampler(State hist[MAX_RUNS], int nconf, Real init_vt[MAX_TORS][SPACE], Real init_crdpdb[MAX_ATOMS][SPACE], int init_tlist[MAX_TORS][MAX_ATOMS], Real init_lig_center[SPACE], int init_natom, int init_type[MAX_ATOMS], GridMapSetInfo *init_info);
void random_conformation_sampler(State hist[MAX_RUNS], int nconf, int num_samples, Real init_vt[MAX_TORS][SPACE], Real init_crdpdb[MAX_ATOMS][SPACE], int init_tlist[MAX_TORS][MAX_ATOMS], Real init_lig_center[SPACE], int init_natom, int init_type[MAX_ATOMS], GridMapSetInfo *init_info);
Individual set_ind(GridMapSetInfo *info, State state);
void raaEuler(Real raa[4], Real euler[3]);
void testMatrix(void);
void raaMatrix(Real raa[4], Real matrix[3][3]);
void matrixraa(Real matrix[3][3], Real raa[4]);
void multiplyraa(Real raa1[4], Real raa2[4], Real raa_result[4]);
void matrixMultiply(Real m1[3][3], Real m2[3][3], Real result[3][3]);
void rand_axis(Real axis[4], Real angle);
void setup_reference_coordinates(void);
#endif