Rosetta 3.5
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
protocols
enzdes
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
29
#include <
core/conformation/Residue.fwd.hh
>
30
#include <
core/chemical/ResidueType.fwd.hh
>
31
#include <
core/pose/Pose.fwd.hh
>
32
#include <
core/pack/task/PackerTask.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
40
#include <
protocols/toolbox/match_enzdes_util/EnzConstraintIO.fwd.hh
>
41
// Utility Headers
42
// AUTO-REMOVED #include <utility/pointer/ReferenceCount.hh>
43
// AUTO-REMOVED #include <set>
44
45
#include <
core/scoring/ScoreFunction.fwd.hh
>
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
62
is_catalytic_seqpos
(
63
core::pose::Pose
const
& pose,
64
core::Size
const
seqpos
65
);
66
67
utility::vector1< core::Size >
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
73
core::Real
74
sum_constraint_scoreterms
(
75
core::pose::Pose
const
& pose,
76
int
which_res
77
);
78
79
80
void
81
read_pose_from_pdb
(
82
core::pose::Pose
& pose,
83
std::string
const
&
filename
84
);
85
86
void
87
make_continuous_true_regions_in_bool_vector
(
88
utility::vector1< bool >
& the_vector,
89
core::Size
const
min_number_continuous_trues
90
);
91
92
core::pack::task::PackerTaskOP
93
recreate_task
(
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
101
toolbox::match_enzdes_util::EnzConstraintIOCOP
102
get_enzcst_io
(
core::pose::Pose
const
& pose );
103
104
void
105
remove_remark_header_for_geomcst
(
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
113
create_remark_headers_from_cstcache
(
114
core::pose::Pose
& pose
115
);
116
117
std::string
118
get_pdb_code_from_pose_tag
(
core::pose::Pose
const
& pose );
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
133
disable_constraint_scoreterms
(
core::scoring::ScoreFunctionOP
scorefxn);
134
void
135
enable_constraint_scoreterms
(
core::scoring::ScoreFunctionOP
scorefxn);
136
bool
137
is_scofx_cstfied
(
core::scoring::ScoreFunctionCOP
scorefxn);
138
void
139
scorefxn_update_from_options
(
core::scoring::ScoreFunctionOP
scorefxn);
140
141
void
142
remove_all_enzdes_constraints
(
core::pose::Pose
& pose );
143
144
void
145
get_resnum_from_cstid_list
(
std::string
const
& cstidlist,
core::pose::Pose
const
& pose,
utility::vector1<core::Size>
& resnums );
146
147
core::Size
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
Generated on Sat Jun 1 2013 11:47:48 for Rosetta 3.5 by
1.8.4