Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DockingEnsemble.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 DockingEnsemble.cc
11 /// @brief container class for ensemble docking information to be used with ConformerSwitchMover
12 /// @author Monica Berrondo
13 
14 #ifndef INCLUDED_protocols_docking_DockingEnsemble_HH
15 #define INCLUDED_protocols_docking_DockingEnsemble_HH
16 
17 // Unit headers
19 
20 // Package headers
21 #include <protocols/moves/Mover.hh>
23 
24 #include <core/types.hh>
25 
26 #include <core/pose/Pose.hh>
28 
29 //Option key includes
30 
31 // ObjexxFCL Headers
32 
33 // C++ Headers
34 #include <map>
35 #include <string>
36 
37 // Utility Headers
38 #include <utility/pointer/ReferenceCount.hh>
39 
40 #include <utility/vector0.hh>
41 #include <utility/vector1.hh>
42 
43 
44 namespace protocols {
45 namespace docking {
46 
47 /// @brief this mover does the conformer swap in RosettaDock's ensemble docking. It takes
48 /// in a multi-model PDB file as an ensemble, and does swaps conformers by superpositioning
49 /// over interface residues, and selects a conformer based on a partition function using
50 /// a ScoreFunction.
52 
53 public:
54  ///@brief Automatically generated virtual destructor for class deriving directly from ReferenceCount
55  virtual ~DockingEnsemble();
56 
57  //default constructor
59  start_res_(1),
60  end_res_(1),
61  jump_id_(1),
62  ensemble_size_(0),
64  partner_("")
65  {}
66 
67  //constructor with arguments
70  Size end_res,
71  Size jump_id,
72  std::string ensemble_file_path,
76  );
77 
78  // @brief recover sidechains for a conformer
80 
81  // @brief calculate reference energies for prepacking
84 
85  // @brief update pdblist file with reference energies
86  void update_pdblist_file();
87 
89 
90  void set_current_confnum( core::Size conf_num ) { conf_num_ = conf_num; }
92 
93  // @brief return a pose from the ensemble (Either fullatom or centroid)
94  core::pose::Pose & get_conformer( core::Size conf_num ) { return ensemble_list_[conf_num]; }
95  core::pose::Pose & get_conformer_cen( core::Size conf_num ) { return ensemble_list_cen_[conf_num]; } // Add by DK
96 
97  // @brief simple getters
99  core::Size jump_id() { return jump_id_; }
104 
105  // return reference energies.
106  // Can either be done with the current conformer (for example at the end of docking)
107  // or by passing the conf_num of the conformer you want an energy for (for example when calculating Probability Tables)
112 
114 
115 private:
116  void load_ensemble();
117 
120  std::string partner_; // which partner is this a conformer for?
126 
128 }; //mover
129 
130 } // docking
131 } // rosetta
132 
133 
134 #endif