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
toolbox
match_enzdes_util
EnzdesCacheableObserver.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 .hh file for enzdes cacheable observer
11
/// @brief
12
/// @author Florian Richter, floric@u.washington.edu
13
14
#ifndef INCLUDED_protocols_toolbox_match_enzdes_util_EnzdesCacheableObserver_hh
15
#define INCLUDED_protocols_toolbox_match_enzdes_util_EnzdesCacheableObserver_hh
16
17
//unit headers
18
#include <
protocols/toolbox/match_enzdes_util/EnzdesCacheableObserver.fwd.hh
>
19
#include <
core/pose/datacache/CacheableObserver.hh
>
20
21
//package headers
22
#include <
protocols/toolbox/match_enzdes_util/EnzdesCstCache.fwd.hh
>
23
#include <
protocols/toolbox/match_enzdes_util/EnzdesSeqRecoveryCache.fwd.hh
>
24
#include <
protocols/toolbox/match_enzdes_util/EnzdesLoopsFile.fwd.hh
>
25
26
//project headers
27
#include <
core/conformation/Residue.fwd.hh
>
28
#include <
core/pack/task/PackerTask.fwd.hh
>
29
#include <
core/pose/Pose.fwd.hh
>
30
#include <
core/types.hh
>
31
#include <
core/conformation/signals/LengthEvent.fwd.hh
>
32
33
//utility headers
34
#include <utility/signals/Link.hh>
35
36
#include <map>
37
38
#include <
core/scoring/constraints/Constraint.fwd.hh
>
39
#include <utility/vector1.hh>
40
41
#ifdef WIN32
42
#include <
core/scoring/constraints/Constraint.hh
>
43
#endif
44
45
46
namespace
protocols {
47
namespace
toolbox {
48
namespace
match_enzdes_util {
49
50
51
/// @brief convenience function to get a cacheable observer from a pose
52
EnzdesCacheableObserverOP
53
get_enzdes_observer
(
54
core::pose::Pose
& pose );
55
56
EnzdesCacheableObserverCOP
57
get_enzdes_observer
(
58
core::pose::Pose
const
& pose );
59
60
class
EnzdesCacheableObserver
:
public
core::pose::datacache::CacheableObserver
{
61
62
public
:
//typedefs
63
64
//typedef utility::signals::Link Link;
65
66
public
:
//constructor/destructor/
67
68
EnzdesCacheableObserver
();
69
70
EnzdesCacheableObserver
(
EnzdesCacheableObserver
const
& other );
71
72
~EnzdesCacheableObserver
();
73
74
virtual
75
core::pose::datacache::CacheableObserverOP
76
clone
();
77
78
virtual
79
core::pose::datacache::CacheableObserverOP
80
create
();
81
82
public
:
//observer interface
83
84
virtual
85
bool
is_attached
()
const
;
86
87
protected
:
//observer interface
88
89
virtual
90
void
attach_impl
(
core::pose::Pose
& pose );
91
92
virtual
93
void
detach_impl
();
94
95
void
96
on_length_change
(
core::conformation::signals::LengthEvent
const
& event );
97
98
public
:
//enzdes specific stuff
99
100
void
101
set_cst_cache
(
102
toolbox::match_enzdes_util::EnzdesCstCacheOP
cst_cache
103
);
104
105
toolbox::match_enzdes_util::EnzdesCstCacheOP
106
cst_cache
();
107
108
toolbox::match_enzdes_util::EnzdesCstCacheCOP
109
cst_cache
()
const
;
110
111
std::map< core::Size, utility::vector1< core::conformation::ResidueCOP > >
const
&
112
lig_rigid_body_confs
()
const
;
113
114
void
115
set_rigid_body_confs_for_lig
(
116
core::Size
seqpos,
117
utility::vector1< core::conformation::ResidueCOP >
const
& rg_confs
118
);
119
120
void
121
erase_rigid_body_confs_for_lig
(
122
core::Size
seqpos );
123
124
void
set_seq_recovery_cache
(
EnzdesSeqRecoveryCacheOP
seq_recovery_cache);
125
126
EnzdesSeqRecoveryCacheOP
get_seq_recovery_cache
();
127
EnzdesSeqRecoveryCacheCOP
get_seq_recovery_cache
()
const
;
128
129
void
130
set_enzdes_loops_file
(
131
EnzdesLoopsFileCOP
loopfile_in
132
);
133
134
EnzdesLoopsFileCOP
135
enzdes_loops_file
()
const
;
136
137
void
138
setup_favor_native_constraints
(
139
core::pose::Pose
& pose,
140
core::pack::task::PackerTaskCOP
task,
141
core::pose::Pose
const
& native_pose
142
);
143
144
void
145
remove_favor_native_constraints
(
146
core::pose::Pose
& pose
147
);
148
149
150
private
:
151
152
//enzdes constraint storage
153
toolbox::match_enzdes_util::EnzdesCstCacheOP
cst_cache_
;
154
//contains wt seq and keeps track of the designed residues
155
EnzdesSeqRecoveryCacheOP
seq_recovery_cache_
;
156
157
//favor native constraints
158
core::scoring::constraints::ConstraintCOPs
favor_native_constraints_
;
159
160
//evtl loops file
161
EnzdesLoopsFileCOP
enz_loops_file_
;
162
163
// storage for different rigid body conformations for ligands
164
//e.g. from matching or docking
165
std::map< core::Size, utility::vector1< core::conformation::ResidueCOP > >
lig_rigid_body_confs_
;
166
167
utility::signals::Link
length_event_link_
;
168
169
};
170
171
172
}
//match_enzdes_util
173
}
//toolbox
174
}
//protocols
175
176
177
#endif
Generated on Sat Jun 1 2013 12:21:10 for Rosetta 3.5 by
1.8.4