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
dna
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 util.hh
11
/// @brief
12
/// @author ashworth
13
14
#ifndef INCLUDED_protocols_dna_util_hh
15
#define INCLUDED_protocols_dna_util_hh
16
17
#include <
protocols/dna/DnaChains.fwd.hh
>
18
#include <
protocols/dna/typedefs.hh
>
19
#include <
protocols/dna/DnaDesignDef.fwd.hh
>
20
21
#include <
core/types.hh
>
22
#include <
core/chemical/AA.hh
>
23
#include <
core/chemical/ResidueType.hh
>
24
#include <
core/conformation/Atom.fwd.hh
>
25
#include <
core/conformation/Residue.fwd.hh
>
26
#include <
core/kinematics/FoldTree.hh
>
27
#include <
core/pack/rotamer_set/RotamerSets.fwd.hh
>
28
#include <
core/pack/task/PackerTask.fwd.hh
>
29
#include <
core/pose/Pose.fwd.hh
>
30
31
// Utility headers
32
#include <utility/vector0.fwd.hh>
33
#include <utility/vector1.hh>
// there is no forward declaration possible for const_iterator(?)
34
35
// C++ headers
36
#include <list>
37
#include <iosfwd>
38
39
40
namespace
protocols {
41
namespace
dna {
42
43
///@brief basic struct for remembering position/type information before/during/after design
44
class
PositionType
{
45
public
:
46
PositionType
(
47
core::Size
pos = 0,
48
core::chemical::ResidueTypeCOP
rt = 0,
49
bool
design =
false
50
) :
position
( pos ),
type
( rt ),
designable
( design ) {}
51
52
core::Size
position
;
53
core::chemical::ResidueTypeCOP
type
;
54
bool
designable
;
55
};
56
57
typedef
utility::vector1< PositionType >
PositionTypes
;
58
59
bool
60
close_to_dna
(
61
core::conformation::Residue
const
& pres,
62
core::conformation::Residue
const
& dres,
63
core::Real
cut2,
64
bool
base_only =
false
65
);
66
67
core::Real
68
argrot_dna_dis2
(
69
core::pose::Pose
const
& pose,
70
core::Size
presid,
71
core::conformation::Residue
const
& pres,
72
core::conformation::Residue
const
& dres,
73
core::Real
threshold,
74
bool
base_only =
false
75
);
76
77
core::Real
78
contact_distance2
(
79
core::conformation::Atoms::const_iterator a_begin,
80
core::conformation::Atoms::const_iterator a_end,
81
core::conformation::Atoms::const_iterator b_begin,
82
core::conformation::Atoms::const_iterator b_end,
83
core::Real
threshold = 0.0
84
);
85
86
core::Real
87
z_axis_dist
(
88
core::conformation::Residue
const
& pres,
89
core::conformation::Residue
const
& dres
90
);
91
92
std::string
dna_comp_name_str
(
std::string
const
& dna );
93
94
std::string
dna_full_name3
(
std::string
const
& name3 );
95
96
core::chemical::AA
97
dna_base_partner
(
core::chemical::AA
const
& na );
98
99
void
100
find_basepairs
(
101
core::pose::Pose
const
& pose,
102
DnaChains
& dna_chains,
103
bool
include_unpaired =
true
104
);
105
106
/* void
107
make_sequence_combinations(
108
ResTypeSequences & sequences,
109
utility::vector1< core::Size > const & seq_indices,
110
core::pack::task::PackerTaskCOP ptask
111
); */
112
113
void
114
make_single_mutants
(
115
ResTypeSequence
const
& sequence,
116
core::pack::task::PackerTaskCOP
ptask,
117
ResTypeSequences
& sequences
118
);
119
120
void
121
design_residues_list
(
122
std::list< PositionType > & design_residues,
123
core::pose::Pose
const
& pose,
124
core::pack::task::PackerTask
const
& ptask
125
);
126
127
void
128
make_sequence_combinations
(
129
utility::vector1< core::Size >::const_iterator
seqset_iter,
130
utility::vector1< core::Size >
const
& seq_indices,
131
core::pack::task::PackerTaskCOP
ptask,
132
ResTypeSequence
& sequence,
133
ResTypeSequences
& sequences
134
);
135
136
std::ostream &
operator <<
( std::ostream & os,
ResTypeSequence
const
& seq );
137
138
std::string
seq_to_str
(
ResTypeSequence
const
& seq );
139
140
std::ostream &
operator <<
( std::ostream & os,
ResTypeSequences
const
& seqs );
141
142
std::string
seq_pdb_str
(
143
ResTypeSequence
const
&,
144
core::pose::Pose
const
&
145
);
146
147
void
print_sequence_pdb_nums
(
148
ResTypeSequence
const
&,
149
core::pose::Pose
const
&,
150
std::ostream &
151
);
152
153
void
print_sequences_pdb_nums
(
154
ResTypeSequences
const
&,
155
core::pose::Pose
const
&,
156
std::ostream &
157
);
158
159
void
160
restrict_dna_rotamers
(
161
core::pack::rotamer_set::RotamerSetsCOP
rotsets,
162
ResTypeSequence
const
& seq,
163
utility::vector0<int>
& rot_to_pack
164
);
165
166
void
167
restrict_to_single_sequence
(
168
core::pack::rotamer_set::RotamerSetsCOP
rotamer_sets,
169
utility::vector1< core::chemical::ResidueTypeCOP >
const
& single_sequence,
170
utility::vector0< int >
& rot_to_pack
171
);
172
173
void
174
substitute_residue
(
175
core::pose::Pose
& pose,
176
core::Size
index,
177
core::chemical::ResidueType
const
& new_type
178
);
179
180
void
write_checkpoint
(
core::pose::Pose
& pose,
core::Size
iter );
181
void
load_checkpoint
(
core::pose::Pose
& pose,
core::Size
& iter );
182
void
checkpoint_cleanup
();
183
184
void
185
load_dna_design_defs_from_strings
(
186
DnaDesignDefOPs
& defs,
187
utility::vector1< std::string >
const
& str_defs
188
);
189
190
void
191
load_dna_design_defs_from_file
(
192
DnaDesignDefOPs
& defs,
193
std::string
const
&
filename
,
194
std::string
const
& pdb_prefix
195
);
196
197
void
198
load_dna_design_defs_from_options
(
199
DnaDesignDefOPs
& defs,
200
std::string
pdb_prefix =
std::string
()
201
);
202
203
void
204
add_constraints_from_file
(
205
core::pose::Pose
& pose
206
);
207
208
core::kinematics::FoldTree
209
make_base_pair_aware_fold_tree
(
210
core::pose::Pose
const
& pose
211
);
212
213
bool
214
not_already_connected
(
215
core::pose::Pose
const
& pose,
216
core::Size
const
num_jumps,
217
char
const
this_chain,
218
char
const
other_chain,
219
ObjexxFCL::FArray2D_int & jump_pairs
220
);
221
222
223
void
224
set_base_segment_chainbreak_constraints
(
225
core::pose::Pose
& pose,
226
core::Size
const
this_base,
227
core::Size
const
end_base
228
);
229
230
231
}
// namespace dna
232
}
// namespace protocols
233
234
#endif
Generated on Sat Jun 1 2013 11:32:18 for Rosetta 3.5 by
1.8.4