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
motifs
motif_utils.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 motif_utils.hh
11
/// @brief Header for motif helper/conversion/io functions
12
/// @author havranek, sthyme (sthyme@gmail.com)
13
14
#ifndef INCLUDED_protocols_motifs_motif_utils_hh
15
#define INCLUDED_protocols_motifs_motif_utils_hh
16
17
// Unit Headers
18
19
// Package Headers
20
#include <
protocols/motifs/BuildPosition.fwd.hh
>
21
#include <
protocols/motifs/Motif.fwd.hh
>
22
#include <
protocols/motifs/MotifLibrary.fwd.hh
>
23
#include <
protocols/motifs/SingleMotif.fwd.hh
>
24
25
// Project Headers (protocols)
26
#include <
protocols/dna/DnaDesignDef.fwd.hh
>
27
#include <
protocols/loops/Loops.fwd.hh
>
28
29
// Project Headers
30
#include <
core/chemical/AA.hh
>
31
#include <
core/conformation/Residue.fwd.hh
>
32
#include <
core/pack/rotamer_set/RotamerSet.fwd.hh
>
33
#include <
core/pose/Pose.fwd.hh
>
34
#include <
core/scoring/constraints/ConstraintSet.fwd.hh
>
35
// AUTO-REMOVED #include <core/scoring/ScoreFunction.fwd.hh>
36
#include <
core/types.hh
>
37
38
// Utility Headers
39
#include <utility/file/FileName.fwd.hh>
40
// AUTO-REMOVED #include <utility/io/izstream.hh>
41
#include <utility/vector1.fwd.hh>
42
43
// C++ Headers
44
#include <map>
45
#include <set>
46
47
#include <utility/vector1.hh>
48
#include <utility/io/izstream.fwd.hh>
49
50
51
namespace
protocols {
52
namespace
motifs {
53
54
// This group of functions loads the motifs from external files
55
SingleMotifOP
56
single_motif_from_filename
(
57
utility::file::FileName
const
& motif_filename
58
);
// uses a constructor that accepts two residues, not input atom names
59
// so motif atoms are set in the static map in Motif.cc
60
61
SingleMotifOP
62
single_motif_from_stream
(
63
utility::io::izstream & motif_info
64
);
65
66
SingleMotifOP
67
single_motif_from_stream
(
68
std::istream & motif_info
69
);
70
71
SingleMotifOP
72
single_ligand_motif_from_stream
(
73
std::istream & motif_info
74
);
75
76
// Dot product of the z-axis of nucleotides (1.0 = parallel, 0.0 = not)
77
// This test is only applicable in the case of motifs that involve nucleic acids
78
core::Real
79
parallel_base_test
(
80
core::conformation::Residue
const
& pose_dna,
81
core::conformation::Residue
const
& motif_dna
82
);
83
84
// The following group of functions are for havranek motif search
85
core::Real
86
backbone_stub_match
(
87
core::conformation::Residue
const
& r1,
88
core::conformation::Residue
const
& r2
89
);
90
91
void
92
add_motif_bb_constraints
(
93
core::scoring::constraints::ConstraintSetOP
cst_set,
94
core::pose::Pose
& pose,
95
core::Size
this_pos,
96
core::conformation::Residue
const
& inv_rotamer
97
);
98
99
void
add_motif_sc_constraints
(
100
core::scoring::constraints::ConstraintSetOP
cst_set,
101
core::pose::Pose
& pose,
102
core::Size
this_pos,
103
core::conformation::Residue
const
& inv_rotamer ,
104
MotifCOP
this_motif,
105
bool
const
is_it_forward
106
);
107
108
void
109
mutate_loops_for_search
(
110
core::pose::Pose
& pose,
111
protocols::loops::Loops
& flex_regions
112
);
113
114
// Functions for sthyme loading external data and setting up DNA mutations
115
MotifLibrary
const
116
get_MotifLibrary_user
();
117
118
MotifLibrary
const
119
get_LigandMotifLibrary_user
();
120
121
utility::vector1< core::conformation::ResidueOP >
const
122
get_targetconformers_user
();
123
124
std::map< std::string, utility::vector1< core::conformation::ResidueOP > >
const
125
setup_conformer_map
(
126
utility::vector1< core::conformation::ResidueOP >
const
& conformerOPs
127
);
128
129
utility::vector1< core::Size >
130
get_target_positions_make_dna_mutations
(
131
core::pose::Pose
& pose
132
);
133
134
std::map< core::Size, std::set< std::string > >
135
get_target_position_map_make_dna_mutations
(
136
core::pose::Pose
& pose
137
);
138
139
void
140
make_dna_mutations
(
141
core::pose::Pose
& pose
142
);
143
144
void
145
make_dna_mutations
(
146
core::pose::Pose
& pose,
147
protocols::dna::DnaDesignDefOPs
const
& targeted_dna
148
);
149
150
utility::vector1< core::Size >
151
defs2vector
(
152
core::pose::Pose
const
& pose,
153
protocols::dna::DnaDesignDefOPs
const
& targeted_dna
154
);
155
156
utility::vector1< std::pair< core::Size, utility::vector1< std::string >
> >
157
defs2allowedtypes
(
158
core::pose::Pose
const
& pose,
159
protocols::dna::DnaDesignDefOPs
const
& targeted_dna
160
);
161
162
std::map< core::Size, std::set< std::string > >
163
defs2map
(
164
core::pose::Pose
const
& pose,
165
protocols::dna::DnaDesignDefOPs
const
& targets
166
);
167
168
std::map< core::Size, std::set< std::string > >
169
bpdefs2map
(
170
core::pose::Pose
const
& pose,
171
protocols::dna::DnaDesignDefOPs
const
& targets
172
);
173
174
std::string
175
name3_from_oneletter
(
176
std::string
const
& oneletter
177
);
178
179
utility::vector1< core::Size >
180
get_motif_build_positions_user
(
181
core::pose::Pose
const
& pose
182
);
183
184
protocols::dna::DnaDesignDefOPs
185
get_motif_build_position_defs_user
();
186
187
void
188
load_build_position_data
(
189
BuildPosition & bp,
190
std::string
const
&
filename
,
191
core::pose::Pose
& pose
192
);
193
194
void
195
load_build_position_data
(
196
BuildPosition & bp,
197
std::string
const
&
filename
,
198
core::pose::Pose
& pose,
199
core::Size
const
ligand_marker
200
);
201
202
utility::vector1< utility::file::FileName >
203
get_filenames
(
204
utility::vector1< utility::file::FileName >
const
& listnames
205
);
206
207
core::conformation::ResidueOP
208
single_residue_from_stream
(
209
utility::io::izstream & residueinfo
210
);
211
212
utility::vector1< bool >
213
bools_from_sizes
(
214
core::Size
const
nres,
215
utility::vector1< core::Size >
const
& v
216
);
217
218
// Makes a base pair mutation, taken from devel for include reasons
219
void
220
make_base_pair_mutation
(
221
core::pose::Pose
& pose,
222
core::Size
const
seqpos,
223
core::chemical::AA
const
& na
224
);
225
226
core::Real
227
atom_specific_rms
(
228
core::conformation::Residue
const
& rsd1,
229
core::conformation::Residue
const
& rsd2,
230
utility::vector1< std::string >
const
& atoms
231
);
232
233
core::Real
234
atom_specific_rms
(
235
core::conformation::Residue
const
& rsd1,
236
core::conformation::Residue
const
& rsd2,
237
utility::vector1< core::Size >
const
& atoms
238
);
239
240
core::pack::rotamer_set::RotamerSetOP
241
build_rotamers_lite
(
242
core::pose::Pose
& pose,
243
core::Size
const
rotamer_build_position,
244
utility::vector1< bool >
aa_info,
245
core::Size
const
ex_,
246
bool
bump_check =
true
247
);
248
249
}
// namespace motifs
250
}
// namespace protocols
251
252
#endif // INCLUDED_protocols_motifs_motif_utils
Generated on Sat Jun 1 2013 12:00:06 for Rosetta 3.5 by
1.8.4