Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RigidBodyMoveRotSetOps.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 protocols/toolbox/RotamerSetOperations/RigidBodyMoveRotSetOps.hh
11 /// @brief classes for rigid body movement during rotamer packing
12 /// @author Florian Richter, floric@u.washington.edu, sep 2009
13 
14 #ifndef INCLUDED_protocols_toolbox_rotamer_set_operations_RigidBodyMoveRotSetOps_hh
15 #define INCLUDED_protocols_toolbox_rotamer_set_operations_RigidBodyMoveRotSetOps_hh
16 
17 // Unit Headers
20 
21 //Project headers
23 #include <core/graph/Graph.fwd.hh>
27 #include <core/pose/Pose.fwd.hh>
29 
30 #include <utility/vector1.hh>
31 
32 
33 namespace protocols {
34 namespace toolbox {
35 namespace rotamer_set_operations {
36 
37 /// @details base class that handles single residue (usually ligand) rigid
38 /// body movements in the packer. subclass generates a list of alternative rigid body
39 /// placements. when the alter_rotamer_set function is called, this class
40 /// superimposes all rotamers in the initial RotamerSet onto every alternative
41 /// rigid body conformation in the member data list. these superimposed
42 /// conformations then get added to the rotamer set.
43 /// this class also handles the increased packer radius necessitated by the
44 /// rigid body movements. when the increase_packer_residue_radius function
45 /// is called, the biggest distance between the residue in the initial pose
46 /// and any of the alternate conformations is returned.
47 ///
48 /// Generating the alternative rigid body positions:
49 ///
50 /// Subclasses must implement get_rigid_body_confs.
51 ///
52 /// Subclasses may implement increase_packer_residue_radius to
53 /// optimize this calculation. Default implementation calls get_rigid_body_confs
54 /// and calculates the maximum nbr_atom delta.
55 ///
57 {
59 
60  protected:
62  parent()
63  {}
64 
66  parent(other),
68  {}
69 
70 
71  public:
72  /// @brief Adds additional rotamers at each rb conf.
73  ///
74  /// @details
75  /// fairly simple: iterate over the rotamers in the rotamer_set, superimpose
76  /// each of them onto all the internally stored rigid body confs, and then
77  /// add the newly generated rotamers to the rotamer_set
78  ///
79  /// Recalculates chi-angle expansion via call to RotamerSet::extra_chi_samples
80  /// and then generate candidate rotamers from each rb conf via
81  /// SingleResidueRotamerLibrary::fill_rotamer_vector if rotamer library is
82  /// available for the residue type, else just adds the alternate confs.
83  ///
84  /// Does not have full safety checks to make sure all the rotamers in the set are
85  /// of the same residue type as the internally stored ones, i.e. that no user sets this
86  /// position to designing in the task
87  virtual
88  void
90  core::pose::Pose const & pose,
91  core::scoring::ScoreFunction const & sfxn,
92  core::pack::task::PackerTask const & ptask,
93  core::graph::GraphCOP packer_neighbor_graph,
95  );
96 
97  /// @brief returns the largest possible change in nbr atoms location
98  ///
99  /// Default implementation calls determine_larget_nbr_atom_distance with
100  /// results of get_rigid_body_confs. Override this function if calculation
101  /// can be optimized without call call to get_rigid_body_confs.
103  virtual
104  core::Real
106  core::pose::Pose const & pose,
108  core::Size residue_index
109  );
110 
111  /// @brief returns candidate alternate RB conformations
112  virtual
115  core::pose::Pose const & pose,
116  core::pack::task::PackerTask const & ptask,
117  core::Size residue_index) = 0;
118 
119  /// @brief returns the largest observed distance between the nbr atom
120  /// in the target res and the nbr atom in any of the candidate rb confs
121  static
122  core::Real
124  core::conformation::Residue const & target_res,
126 
127  private:
129 };
130 
131 /// @details
132 /// Basic implementation of alternate rb conf set operation.
133 /// The alternative positions are set externally before packing.
135 {
136 public:
138 
139  // 'seqpos' could be removed, it can be derived from the input
140  // rotamer set. It is left in as a sanity check for this class.
141  RigidBodyMoveRSO( core::Size seqpos );
142  RigidBodyMoveRSO( RigidBodyMoveRSO const & other );
143 
144  virtual
146  clone() const;
147 
148  virtual
151  core::pose::Pose const & pose,
152  core::pack::task::PackerTask const & ptask,
153  core::Size residue_index);
154 
155  void
158  );
159 
160 private:
161 
164 };
165 
166 } //namespace protocols
167 } //namespace toolbox
168 } //namespace rotamer_set_operations
169 
170 #endif
171