Rosetta 3.5
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
protocols
swa
rna
StepWiseRNA_AnalyticalLoopCloseSampler.hh
Go to the documentation of this file.
1
// -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
2
// vi: set ts=2 noet:
3
//
4
// (c) Copyright Rosetta Commons Member Institutions.
5
// (c) This file is part of the Rosetta software res and is made available under license.
6
// (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
7
// (c) For more information, see http://www.rosettacommons.org. Questions about this can be
8
// (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
9
10
/// @file StepWiseRNA_AnalyticalLoopCloseSampler.hh
11
/// @brief Alternative SWA sampling using Analytical Loop Closure
12
/// @author Fang-Chieh Chou
13
14
15
#ifndef INCLUDED_protocols_swa_rna_StepWiseRNA_AnalyticalLoopCloseSampler_HH
16
#define INCLUDED_protocols_swa_rna_StepWiseRNA_AnalyticalLoopCloseSampler_HH
17
18
#include <
protocols/swa/rna/StepWiseRNA_Util.hh
>
19
#include <
protocols/swa/rna/StepWiseRNA_JobParameters.fwd.hh
>
20
#include <
protocols/swa/rna/StepWiseRNA_BaseCentroidScreener.fwd.hh
>
21
#include <
protocols/swa/rna/StepWiseRNA_RotamerGenerator_Wrapper.fwd.hh
>
22
#include <
protocols/swa/rna/StepWiseRNA_FloatingBase_Sampler_Util.hh
>
23
#include <
protocols/swa/rna/StepWiseRNA_VDW_Bin_Screener.fwd.hh
>
24
#include <
core/conformation/Residue.hh
>
25
#include <
core/pack/task/PackerTask.fwd.hh
>
26
#include <
core/pose/Pose.fwd.hh
>
27
#include <
core/types.hh
>
28
#include <
core/scoring/ScoreFunction.fwd.hh
>
29
#include <
core/io/silent/SilentFileData.fwd.hh
>
30
#include <utility/vector1.hh>
31
#include <
protocols/moves/Mover.hh
>
32
#include <string>
33
#include <map>
34
35
36
namespace
protocols {
37
namespace
swa {
38
namespace
rna {
39
40
// typedef std::map< std::string, core::pose::PoseOP > PoseList;
41
42
/////////////////////////////////////////////////////////////////////////////////////////////////
43
/////////////////////////////////////////////////////////////////////////////////////////////////
44
class
StepWiseRNA_AnalyticalLoopCloseSampler
:
public
protocols::moves::Mover
{
45
public
:
46
47
//constructor!
48
StepWiseRNA_AnalyticalLoopCloseSampler
(
StepWiseRNA_JobParametersCOP
&
job_parameters_
);
49
50
//destructor -- necessary?
51
~StepWiseRNA_AnalyticalLoopCloseSampler
();
52
53
/// @brief Apply the minimizer to one pose
54
virtual
void
apply
(
core::pose::Pose
& pose_to_visualize );
55
56
/// @brief Each derived class must specify its name. The class name.
57
virtual
std::string
get_name
()
const
{
58
return
"StepWiseRNA_AnalyticalLoopCloseSampler"
;
59
}
60
61
void
62
set_centroid_screen
(
bool
const
setting ) {
63
centroid_screen_
= setting;
64
}
65
66
void
67
set_base_pairing_only_screen
(
bool
const
setting ) {
68
base_pairing_only_screen_
= setting;
69
}
70
71
void
72
set_VDW_atr_rep_screen
(
bool
const
setting ) {
73
VDW_atr_rep_screen_
= setting;
74
}
75
76
77
void
78
set_silent_file
(
std::string
const
& setting );
79
80
void
81
set_output_filename
(
std::string
const
& output_filename );
82
83
void
84
set_scorefxn
(
core::scoring::ScoreFunctionOP
const
& scorefxn );
85
86
void
87
set_fast
(
bool
const
& setting );
88
89
void
90
set_medium_fast
(
bool
const
& setting );
91
92
void
93
set_native_rmsd_screen
(
bool
const
& setting );
94
95
void
96
set_native_screen_rmsd_cutoff
(
core::Real
const
& setting ) {
97
native_screen_rmsd_cutoff_
= setting ;
98
}
99
100
void
101
set_verbose
(
bool
const
& setting );
102
103
void
104
set_o2star_screen
(
bool
const
& setting );
105
106
void
107
set_cluster_rmsd
(
core::Real
const
& setting );
108
109
// Undefined, commenting out to fix PyRosetta build void set_allow_bulge_at_chainbreak ( bool const & setting );
110
111
utility::vector1< pose_data_struct2 >
&
112
get_pose_data_list
();
113
114
core::io::silent::SilentFileDataOP
&
silent_file_data
();
115
116
void
output_pose_data_list
(
std::string
const
final_sampler_output_silent_file )
const
;
117
118
void
set_num_pose_kept
(
core::Size
const
& num_pose_kept );
119
120
void
121
set_base_centroid_screener
(
StepWiseRNA_BaseCentroidScreenerOP
& screener );
122
123
void
124
set_distinguish_pucker
(
bool
const
& setting ) {
125
distinguish_pucker_
= setting ;
126
}
127
128
void
129
set_finer_sampling_at_chain_closure
(
bool
const
& setting ) {
130
finer_sampling_at_chain_closure_
= setting;
131
}
132
133
void
134
set_PBP_clustering_at_chain_closure
(
bool
const
& setting ) {
135
PBP_clustering_at_chain_closure_
= setting;
136
}
137
138
void
139
set_user_input_VDW_bin_screener
(
StepWiseRNA_VDW_Bin_ScreenerOP
const
& user_input_VDW_bin_screener );
140
141
void
142
set_allow_syn_pyrimidine
(
bool
const
& setting ) {
143
allow_syn_pyrimidine_
=setting;
144
}
145
146
void
147
set_extra_syn_chi_rotamer
(
bool
const
& setting ) {
148
extra_syn_chi_rotamer_
= setting;
149
}
150
151
void
152
set_extra_anti_chi_rotamer
(
bool
const
& setting ) {
153
extra_anti_chi_rotamer_
= setting;
154
}
155
156
void
157
set_use_phenix_geo
(
bool
const
& setting ) {
158
use_phenix_geo_
= setting;
159
}
160
private
:
161
162
void
163
initialize_scorefunctions
();
164
165
void
166
standard_sampling
(
core::pose::Pose
& pose,
utility::vector1< pose_data_struct2 >
& pose_data_list );
167
168
void
169
copy_suite_torsion
(
core::pose::Pose
& pose,
core::pose::Pose
const
& ref_pose,
core::Size
const
& suite_num );
170
171
void
172
get_base_atr_rep_score
(
core::pose::Pose
const
& pose,
core::Real
& base_atr_score,
core::Real
& base_rep_score );
173
174
bool
175
Full_atom_van_der_Waals_screening_REPLICATE
(
176
core::pose::Pose
& current_pose_screen,
177
core::Real
const
& base_rep_score,
178
core::Real
const
& base_atr_score,
179
core::Real
& delta_rep_score,
180
core::Real
& delta_atr_score,
181
core::Size
const
& gap_size,
182
bool
const
& Is_internal );
183
184
185
bool
186
Full_atom_van_der_Waals_screening
(
187
core::pose::Pose
& current_pose_screen,
188
core::Real
const
& base_rep_score,
189
core::Real
const
& base_atr_score,
190
core::Real
& delta_rep_score,
191
core::Real
& delta_atr_score,
192
core::Size
const
& gap_size,
193
bool
const
& Is_internal );
194
195
void
196
initialize_o2star_packer_task
(
core::pose::Pose
const
& pose );
197
198
void
199
sample_o2star_hydrogen
(
core::pose::Pose
& pose ,
core::pose::Pose
& pose_with_original_HO2star_torsion );
200
201
core::Real
202
Pose_selection_by_full_score
(
utility::vector1< pose_data_struct2 >
& pose_data_list,
core::pose::Pose
& current_pose,
std::string
const
& tag );
203
204
205
void
206
Update_pose_data_list
(
std::string
const
& tag,
utility::vector1< pose_data_struct2 >
& pose_data_list,
core::pose::Pose
const
& current_pose,
core::Real
const
& current_score )
const
;
207
208
void
209
cluster_pose_data_list
(
utility::vector1< pose_data_struct2 >
& pose_data_list );
210
211
std::string
212
create_tag
(
std::string
const
prestring,
StepWiseRNA_RotamerGenerator_WrapperOP
const
& rotamer_generator )
const
;
213
214
std::string
//silly function to convert to real to string
215
create_torsion_value_string
(
core::Real
const
& torsion_value )
const
;
216
217
std::string
218
create_rotamer_string
(
core::pose::Pose
const
& pose )
const
;
219
220
/////////////////////////////////////function related to sampling/setup virtual sugar /////////////////////////////////////////////////////////////////
221
222
223
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
224
225
226
private
:
227
228
StepWiseRNA_JobParametersCOP
job_parameters_
;
//need to use the full_to_sub map...should convert to const style.. Parin Feb 28, 2010
229
230
core::io::silent::SilentFileDataOP
sfd_
;
231
utility::vector1< pose_data_struct2 >
pose_data_list_
;
232
233
core::scoring::ScoreFunctionOP
scorefxn_
;
234
core::scoring::ScoreFunctionOP
atr_rep_screening_scorefxn_
;
235
core::scoring::ScoreFunctionOP
sampling_scorefxn_
;
236
core::scoring::ScoreFunctionOP
o2star_pack_scorefxn_
;
237
core::scoring::ScoreFunctionOP
chainbreak_scorefxn_
;
238
239
utility::vector1 < core::Size >
working_rmsd_res_
;
240
241
SillyCountStruct
count_data_
;
242
std::string
silent_file_
;
243
std::string
output_filename_
;
244
core::Real
const
bin_size_
;
/*ALWAYS 20!!!*/
245
core::Real
const
rep_cutoff_
;
246
core::Size
num_pose_kept_
;
247
core::Size
const
multiplier_
;
248
core::Real
cluster_rmsd_
;
249
bool
verbose_
;
250
bool
native_rmsd_screen_
;
251
core::Real
native_screen_rmsd_cutoff_
;
252
253
bool
o2star_screen_
;
254
core::pack::task::PackerTaskOP
o2star_pack_task_
;
255
bool
fast_
;
256
bool
medium_fast_
;
257
258
StepWiseRNA_BaseCentroidScreenerOP
base_centroid_screener_
;
259
260
bool
centroid_screen_
;
261
bool
base_pairing_only_screen_
;
262
bool
VDW_atr_rep_screen_
;
263
bool
distinguish_pucker_
;
264
core::Real
current_score_cutoff_
;
265
bool
finer_sampling_at_chain_closure_
;
266
bool
PBP_clustering_at_chain_closure_
;
267
bool
extra_anti_chi_rotamer_
;
268
bool
extra_syn_chi_rotamer_
;
269
bool
allow_syn_pyrimidine_
;
270
bool
use_phenix_geo_
;
271
272
StepWiseRNA_VDW_Bin_ScreenerOP
user_input_VDW_bin_screener_
;
273
274
275
};
276
277
}
278
}
//swa
279
}
// protocols
280
281
#endif
Generated on Sat Jun 1 2013 12:19:27 for Rosetta 3.5 by
1.8.4