Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CoarseRNA_DeNovoProtocol.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 suite 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 RNA_DeNovo_Protocol.hh
11 /// @brief
12 /// @detailed
13 ///
14 /// @author Rhiju Das
15 
16 
17 #ifndef INCLUDED_protocols_coarse_rna_CoarseRNA_DeNovoProtocol_HH
18 #define INCLUDED_protocols_coarse_rna_CoarseRNA_DeNovoProtocol_HH
19 
20 #include <core/types.hh>
21 // AUTO-REMOVED #include <core/chemical/ResidueTypeSet.fwd.hh>
22 #include <core/pose/Pose.fwd.hh>
26 #include <protocols/moves/Mover.hh>
33 
34 #include <utility/vector1.hh>
35 
36 //Oooh.
37 // AUTO-REMOVED #include <ObjexxFCL/FArray1D.hh>
38 
39 //// C++ headers
40 // AUTO-REMOVED #include <cstdlib>
41 #include <string>
42 
43 //Auto Headers
44 namespace protocols {
45 namespace coarse_rna {
46 
47 /// @brief The RNA de novo structure modeling protocol
49 public:
50 
51  /// @brief Construct the protocol object given
52  /// the RNA fragment library to use.
54  Size const nstruct,
55  Size const monte_carlo_cycles,
56  std::string const silent_file );
57 
59 
60  /// @brief Clone this object
61  virtual protocols::moves::MoverOP clone() const;
62 
63  /// @brief Apply the loop-rebuild protocol to the input pose
64  void apply( core::pose::Pose & pose );
65 
66  virtual std::string get_name() const;
67 
68  void
69  set_dump_pdb( bool const setting ){ dump_pdb_ = setting; };
70 
71  void
72  set_force_ideal_chainbreak( bool const & setting ){ force_ideal_chainbreak_ = setting; }
73 
74  void
75  set_check_pairing_dists( bool const & setting ){ check_pairing_dists_ = setting; }
76 
77  void
78  set_add_base_pair_constraints( bool const & setting ){ add_base_pair_constraints_ = setting; }
79 
80  void
81  set_jump_library_file( std::string const jump_library_file ) {
82  jump_library_file_ = jump_library_file;
83  }
84 
85  void
87  rna_params_file_ = file;
88  }
89 
90  void
92  rna_data_file_ = file;
93  }
94 
95  void
97  chunk_silent_files_ = chunk_silent_files;
98  }
99 
100  void
101  set_input_res( utility::vector1< core::Size > const & setting ){ input_res_ = setting; }
102 
103 
104 
105  void
106  set_lores_scorefxn( std::string const & lores_scorefxn ){ lores_scorefxn_ = lores_scorefxn; }
107 
108  void
109  output_to_silent_file( core::pose::Pose & pose, std::string const & silent_file, std::string const & out_file_tag, bool const score_only = false ) const;
110 
111  void
112  set_temperature( core::Real const & setting){ m_Temperature_ = setting; }
113 
114  void
115  set_staged_constraints( bool const & setting){ staged_constraints_ = setting; }
116 
117  void
118  set_sim_anneal( bool const & setting){ sim_anneal_ = setting; }
119 
120  void
121  set_close_loops( bool const & setting){ close_loops_ = setting; }
122 
123  void
124  set_choose_best_solution( bool const & setting){ choose_best_solution_ = setting; }
125 
126  void
127  set_freeze_domains( bool const & setting){ freeze_domains_ = setting; }
128 
129 private:
130 
131  void
133 
134  void
136 
137  core::Real
138  get_temperature( Size const & r, Size const & rounds ) const;
139 
140  void
142 
143  void
145 
146  void
148 
149  void
151 
152  void
154 
155  Size
156  figure_out_constraint_separation_cutoff( Size const & r, Size const & rounds, Size const & max_dist );
157 
158  void
159  update_pose_constraints( Size const & r, Size const & rounds, core::pose::Pose & pose );
160 
161  void
162  update_domain_rot_trans_mag( Size const & r, Size const & rounds );
163 
164  void
166 
167  void
168  check_new_pairing_dists( core::pose::Pose & pose, Size const & frag_pos );
169 
170 private:
171 
172  // protocol-specific data ... need to be specified as input.
173  Size const nstruct_;
175  Size const rounds_;
178  bool dump_pdb_;
180 
181  // parameters
182  core::Real m_Temperature_; // default temperature for monte carlo
184 
187 
189 
191 
196 
197  std::map< std::string, bool > tag_is_done_;
198 
201 
208 
211 
218 
220 
221 }; // class CoarseRNA_DeNovoProtocol
222 
223 
224 
225 }
226 } // protocols
227 
228 #endif