Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
StepWiseUtil.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_Util.hh
11 /// @brief
12 /// @detailed
13 ///
14 /// @author Rhiju Das
15 
16 
17 #ifndef INCLUDED_protocols_swa_StepWiseUtil_HH
18 #define INCLUDED_protocols_swa_StepWiseUtil_HH
19 
20 
21 #include <core/pose/Pose.fwd.hh>
22 #include <core/types.hh>
24 #include <utility/vector1.hh>
25 #include <numeric/xyzMatrix.hh>
26 #include <numeric/xyzVector.hh>
27 #include <string>
28 #include <map>
29 // AUTO-REMOVED #include <core/chemical/AA.hh>
31 // AUTO-REMOVED #include <core/io/silent/SilentFileData.hh>
32 // AUTO-REMOVED #include <numeric/angle.functions.hh> // Need this to prevent the compiling error: 'principal_angle_degrees' is not a member of 'numeric' Oct 14, 2009
33 // AUTO-REMOVED #include <core/kinematics/MoveMap.hh>
36 // AUTO-REMOVED #include <core/conformation/Residue.hh>
38 // AUTO-REMOVED #include <set>
39 
40 //Auto Headers
41 #include <core/id/AtomID.fwd.hh>
43 
44 
45 
46 using namespace core;
48 
49 namespace protocols {
50 namespace swa {
51 
52  typedef std::map< std::string, pose::PoseOP > PoseList;
53 
54  Size
55  make_cut_at_moving_suite( pose::Pose & pose, Size const & moving_suite );
56 
57  bool
58  Is_close_chain_break(pose::Pose const & pose);
59 
60  bool
61  Contain_seq_num(Size const & seq_num, utility::vector1< Size > const & residue_list);
62 
63  void
64  Output_boolean(std::string const & tag, bool boolean);
65 
66  void
67  Output_boolean(bool boolean);
68 
69  void
70  Output_movemap(kinematics::MoveMap const & mm, Size const total_residue);
71 
72  void
74  utility::vector1< Size > const & fixed_res,
75  bool const move_takeoff_torsions = true,
76  bool const move_jumps_between_chains = false
77  );
78 
79  void
80  pdbslice( core::pose::Pose & new_pose,
81  core::pose::Pose const & pose,
82  utility::vector1< core::Size > const & slice_res );
83 
84  void
85  pdbslice( pose::Pose & pose,
86  utility::vector1< Size > const & slice_res );
87 
89  create_alignment_id_map( pose::Pose const & mod_pose, pose::Pose const & ref_pose,
90  utility::vector1< Size > const & superimpose_res );
91 
93  create_alignment_id_map( pose::Pose const & mod_pose,
94  pose::Pose const & ref_pose,
95  std::map< core::Size, core::Size > res_map );
96 
99  utility::vector1< Size > const & working_res ) ;
100 
101 
104  utility::vector1< Size > const & slice_res,
105  pose::Pose const & pose,
106  pose::Pose const & full_pose );
107 
109 
110 
112  get_file_name( std::string const & silent_file, std::string const & tag );
113 
114  void
116  scoring::ScoreFunctionOP & scorefxn );
117 
120  utility::vector1< Size > const & vec2 );
121 
122  void
123  get_euler_angles( Real & alpha, Real & beta, Real & gamma, Matrix M1, Matrix M2, bool const verbose = true );
124 
125  void
127  Matrix & M,
128  Real const & alpha,
129  Real const & beta,
130  Real const & gamma,
131  Vector const & /* axis1 not actually used*/,
132  Vector const & axis2,
133  Vector const & axis3
134  );
135 
136  void
138  Matrix & M,
139  Real const & alpha,
140  Real const & beta,
141  Real const & gamma );
142 
143  void
144  translate( pose::Pose & pose, Vector const shift,
145  pose::Pose const & ref_pose,
146  utility::vector1< Size > const & moving_res );
147 
148  void
149  rotate( pose::Pose & pose, Matrix const M,
150  pose::Pose const & ref_pose,
151  utility::vector1< Size > const & moving_res,
152  Vector const & centroid );
153 
154  void
155  rotate( pose::Pose & pose, Matrix const M,
156  pose::Pose const & ref_pose,
157  utility::vector1< Size > const & moving_res );
158 
159  void
160  get_base_centroid_and_rotation_matrix( pose::Pose const & pose, Size const i, Vector & centroid, Matrix & M );
161 
162  void
163  translate_and_rotate_residue_to_origin( pose::Pose & pose, Size const i, utility::vector1< Size > const moving_res, bool const do_not_rotate = false );
164 
165  void
167 
168 }
169 }
170 
171 #endif