Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
enzdes_util.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 src/protocols/enzdes/enzdes_util.hh
11 /// @brief a bunch of utility functions used in enzdes
12 /// @author Florian Richter, floric@u.washington.edu
13 
14 
15 #ifndef INCLUDED_protocols_enzdes_enzdes_util_hh
16 #define INCLUDED_protocols_enzdes_enzdes_util_hh
17 
18 
19 // Unit headers
20 //
21 
22 // Package headers
23 // AUTO-REMOVED #include <core/scoring/constraints/Constraints.hh>
24 // AUTO-REMOVED #include <core/scoring/constraints/Func.fwd.hh>
25 
26 // AUTO-REMOVED #include <core/scoring/ScoreFunction.fwd.hh>
27 
28 // Project headers
31 #include <core/pose/Pose.fwd.hh>
33 //for parse_task_operations
34 // AUTO-REMOVED #include <boost/foreach.hpp>
35 #define foreach BOOST_FOREACH
36 // AUTO-REMOVED #include <core/pack/task/operation/TaskOperation.hh>
37 // AUTO-REMOVED #include <core/pack/task/TaskFactory.hh>
38 // AUTO-REMOVED #include <core/scoring/ScoreFunction.hh>
39 
41 // Utility Headers
42 // AUTO-REMOVED #include <utility/pointer/ReferenceCount.hh>
43 // AUTO-REMOVED #include <set>
44 
46 #include <utility/vector1.hh>
47 
48 
49 
50 //Utility Headers
51 
52 // C++ Headers
53 
54 namespace protocols {
55 namespace enzdes {
56 namespace enzutil {
57 
58 /// @brief queries whether a certain position is considered catalytic,
59 /// i.e. if the residue is constrained according to the enzdes constraint
60 /// file
61 bool
63  core::pose::Pose const & pose,
64  core::Size const seqpos
65 );
66 
68 catalytic_res( core::pose::Pose const & pose);
69 
70 /// @brief sums up coordinate, atom_pair, angle, and dihedral constraint
71 /// scores for the residue in question. in case which_res is -1, the scores
72 /// for the whole pose will be taken
75  core::pose::Pose const & pose,
76  int which_res
77 );
78 
79 
80 void
82  core::pose::Pose & pose,
83  std::string const & filename
84 );
85 
86 void
88  utility::vector1< bool > & the_vector,
89  core::Size const min_number_continuous_trues
90 );
91 
94  core::pose::Pose const & pose,
95  core::pack::task::PackerTask const & orig_task
96 );
97 
98 /// @brief convenience function to get enzdes cst io out of
99 /// cst cache. note: may return empty pointer in case
100 /// cst cache wasn't set yet
102 get_enzcst_io( core::pose::Pose const & pose );
103 
104 void
106  core::pose::Pose & pose,
107  core::Size geomcst
108 );
109 
110 /// @brief function to write proper remark headers
111 /// from whatever is found in the pose cstcache
112 void
114  core::pose::Pose & pose
115 );
116 
119 
120 ///@TODO delete and use cctype functions
121 bool
122 is_digit( char * cha );
123 
124 ///@TODO delete and use cctype functions
125 bool
126 is_uppercase_letter( char * cha);
127 
128 ///@TODO delete and use cctype functions
129 bool
130 is_lowercase_letter( char * cha );
131 
132 void
134 void
136 bool
138 void
140 
141 void
143 
144 void
146 
148 get_resnum_from_cstid( std::string const& cstid, core::pose::Pose const & pose);
149 
150 
151 }//enzutil
152 } //enzdes
153 } //protocols
154 
155 
156 #endif