Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
StepWiseRNA_Minimizer.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 SWA_ResidueSampler.hh
11 /// @brief
12 /// @detailed
13 ///
14 /// @author Rhiju Das
15 
16 
17 #ifndef INCLUDED_protocols_swa_rna_StepWiseRNA_Minimizer_HH
18 #define INCLUDED_protocols_swa_rna_StepWiseRNA_Minimizer_HH
19 
20 //#include <numeric/xyzMatrix.hh>
21 //#include <numeric/xyzVector.hh>
25 #include <protocols/swa/rna/StepWiseRNA_VDW_Bin_Screener.hh> //Feb 02, 2012: Need this to pass rosetta_tools/python_cc_reader/test_all_headers_compile.py
28 #include <core/pose/Pose.fwd.hh>
29 #include <core/types.hh>
32 #include <utility/vector1.hh>
33 #include <protocols/moves/Mover.hh>
34 #include <string>
35 #include <map>
36 
37 namespace protocols {
38 namespace swa {
39 namespace rna {
40 
41  // typedef std::map< std::string, core::pose::PoseOP > PoseList;
42 
43  /////////////////////////////////////////////////////////////////////////////////////////////////
44  /////////////////////////////////////////////////////////////////////////////////////////////////
46  public:
47 
48 
49  //constructor!
51  utility::vector1 <pose_data_struct2> const & pose_data_list,
52  StepWiseRNA_JobParametersCOP & job_parameters );
53 
54  //destructor -- necessary?
56 
57  /// @brief Apply the minimizer to one pose
58  virtual void apply( core::pose::Pose & pose_to_visualize );
59 
60  virtual std::string get_name() const;
61 
62  void
63  set_silent_file( std::string const & silent_file );
64 
65  void
67 
68  void
69  set_scorefxn( core::scoring::ScoreFunctionOP const & scorefxn );
70 
72 
73  void
75 
76  void
77  set_native_edensity_score_cutoff( core::Real const & setting); //Fang's electron density code
78 
79  void
80  set_verbose( bool const setting){verbose_=setting;}
81 
82  void
83  set_centroid_screen(bool const setting){centroid_screen_=setting;} //For testing purposes.
84 
85  void
86  set_perform_o2star_pack(bool const setting){ perform_o2star_pack_=setting;} //For testing purposes.
87 
88  void
89  set_output_before_o2star_pack(bool const setting){output_before_o2star_pack_=setting;} //For testing purposes.
90 
91  void
92  set_rm_virt_phosphate(bool const setting){rm_virt_phosphate_=setting;}
93 
94  void
95  set_perform_minimize(bool const setting){perform_minimize_=setting;}
96 
97  void
99 
100  void
102 
103  void
104  set_native_rmsd_screen( bool const setting ){native_screen_=setting;}
105 
106  void
108 
109  void
110  set_user_input_VDW_bin_screener(StepWiseRNA_VDW_Bin_ScreenerOP const & user_input_VDW_bin_screener){ user_input_VDW_bin_screener_= user_input_VDW_bin_screener; }
111 
112  void
113  set_rename_tag( bool const setting ){ rename_tag_=setting;}
114 
115  private:
116 
118  Get_default_movemap( core::pose::Pose const & pose ) const;
119 
120  void
122 
123  bool
124  pass_all_pose_screens(core::pose::Pose & pose, std::string const in_tag, core::io::silent::SilentFileData & silent_file_data) const;
125 
126  void
127  Freeze_sugar_torsions(core::kinematics::MoveMap & mm, Size const nres) const;
128 
129  void
130  output_empty_minimizer_silent_file() const; //FEB 09, 2012
131 
132  void
133  output_pose_data_wrapper(std::string & tag, char tag_first_char, core::pose::Pose & pose, core::io::silent::SilentFileData & silent_file_data, std::string const out_silent_file) const;
134 
135  core::Size
137 
138  bool
139  native_edensity_score_screener(core::pose::Pose & pose, core::pose::Pose & native_pose) const; //Fang's electron density code
140 
141  private:
142 
145 
150  bool verbose_;
154 
155  bool perform_electron_density_screen_, rm_virt_phosphate_; //Fang's electron density code
156  core::Real native_edensity_score_cutoff_; //Fang's electron density code
157 
158  bool centroid_screen_; //for testing purposes
159 
160  bool perform_o2star_pack_; //Jan 19, 2012
161  bool output_before_o2star_pack_; //for testing purposes
162 
163  bool perform_minimize_; //Parin Mar 12, 2012
164 
168 
169  std::map< core::id::AtomID, core::id::AtomID > pose_to_native_map_;
170 
172 
174 
176 
177 
178  };
179 
180 }
181 } //swa
182 } // protocols
183 
184 #endif