Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
26 #include <core/pose/Pose.fwd.hh>
27 #include <core/types.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 /////////////////////////////////////////////////////////////////////////////////////////////////
45 public:
46 
47  //constructor!
49 
50  //destructor -- necessary?
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
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 
113 
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
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 ) {
131  }
132 
133  void
134  set_PBP_clustering_at_chain_closure ( bool const & 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
164 
165  void
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
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
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
197 
198  void
199  sample_o2star_hydrogen ( core::pose::Pose & pose , core::pose::Pose & pose_with_original_HO2star_torsion );
200 
201  core::Real
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
210 
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 
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 
232 
238 
240 
244  core::Real const bin_size_; /*ALWAYS 20!!!*/
249  bool verbose_;
252 
255  bool fast_;
257 
259 
271 
273 
274 
275 };
276 
277 }
278 } //swa
279 } // protocols
280 
281 #endif