Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
StepWiseRNA_CombineLongLoopFilterer.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 StepWiseRNA_CombineLongLoopFilterer.hh
11 /// @brief
12 /// @detailed
13 ///
14 /// @author Parin Sripakdeevong (sripakpa@stanford.edu)
15 /// @author Rhiju Das (rhiju@stanford.edu)
16 
17 
18 #ifndef INCLUDED_protocols_swa_rna_StepWiseRNA_CombineLongLoopFilterer_hh
19 #define INCLUDED_protocols_swa_rna_StepWiseRNA_CombineLongLoopFilterer_hh
20 
22 #include <core/pose/Pose.fwd.hh>
25 #include <core/types.hh>
26 #include <utility/vector1.hh>
27 #include <protocols/moves/Mover.hh>
28 #include <ObjexxFCL/FArray1D.fwd.hh>
29 #include <ObjexxFCL/FArray1D.hh>
31 
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 
46  public:
47 
49  side_one_tag( "" ),
50  side_two_tag( "" ),
51  //combine_score( 999999999999.99 ) //Feb 12, 2012 This might lead to server-test error at R47200
52  combine_score( 999999.9) //Feb 12, 2012
53  {
54  }
55 
57 
58  public:
59 
63  };
64 
65 
67 
68  public:
69 
71  total_count( 0 ),
72  score_cut_count( 0 ),
77  {
78  }
79 
81 
82  public:
83 
90  };
91 
92 
94  public:
95 
96  //constructor!
97  StepWiseRNA_CombineLongLoopFilterer( StepWiseRNA_JobParametersCOP const & job_parameters, bool const combine_helical_silent_file);
98 
99  //destructor -- necessary?
101 
102  /////////////////////////////////////////////////////////////////////////
103 
104 
105  void
106  set_silent_files_in( utility::vector1< std::string > const & setting){ silent_files_in_= setting; } //Only called if COPY_DOF is true
107 
108  void
109  set_parin_favorite_output( bool const setting){ parin_favorite_output_=setting; }
110 
111  void
112  filter();
113 
114  void
116 
117  //void
118  //set_score_diff_cut(core::Real const setting){score_diff_cut_=setting;}
119 
120  void
122 
123  void
125 
126  void
128 
129  void set_max_decoys( core::Size const & setting ){ max_decoys_ = setting; }
130 
131  private:
132 
133  void
135 
136  void
138 
139 
142 
143 
144  bool
145  previously_builded_res_VDW_filter(pose_data_struct2 const & side_ONE_pose_data ,
146  pose_data_struct2 const & side_TWO_pose_data ,
147  core::Real const overlap_dist_cutoff,
148  core::Size const num_atom_contacts_cutoff);
149 
150  bool
151  previously_builded_res_contact_filter(pose_data_struct2 const & side_ONE_pose_data , pose_data_struct2 const & side_TWO_pose_data );
152 
153  bool
154  previously_builded_res_clash_filter(pose_data_struct2 const & side_ONE_pose_data , pose_data_struct2 const & side_TWO_pose_data );
155 
156  bool
157  moving_res_contact_filter(pose_data_struct2 const & side_ONE_pose_data , pose_data_struct2 const & side_TWO_pose_data );
158 
159  void
160  align_all_pose( utility::vector1< pose_data_struct2 > const & side_ONE_pose_data_list,
161  utility::vector1< pose_data_struct2 > const & side_TWO_pose_data_list);
162 
163 
164  void
166 
167  bool
168  pass_all_filters(pose_data_struct2 const & side_ONE_pose_data, pose_data_struct2 const & side_TWO_pose_data );
169 
170  void
172 
173  void
175 
176  void
178 
179 // bool
180 // score_sort_citeria(Combine_Tags_Info tag_info_1, Combine_Tags_Info tag_info_2);
181 
182  void
184 
185 
187  get_parent_tag(utility::vector1<std::string> const & tag_token) const;
188 
189  bool
190  Is_virt_sample_ribose_tag(std::string const & tag, utility::vector1<std::string> const & tag_token) const;
191 
192  bool
193  Is_sibling_ribose_rotamer_pose(std::string const & curr_tag, std::string const & prev_tag, std::map< std::string , std::string > const & tag_to_source_map) const;
194 
195 
196  private:
197 
198 // utility::vector1< utility::vector1< Size > > input_res_vectors_;
199 
201 
207  bool verbose_;
215 
222 
223  std::map< core::Size, core::Size > full_to_input_res_map_ONE_;
224  std::map< core::Size, core::Size > full_to_input_res_map_TWO_;
228  //core::Real score_diff_cut_;
233 
241 
244 
245  std::map< std::string , std::string > tag_to_source_map_ONE_;
246  std::map< std::string , std::string > tag_to_source_map_TWO_;
247 
248 
249  };
250 
251 }
252 } //swa
253 } // protocols
254 
255 #endif