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
hybridization
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
11
/// @brief Align a random jump to template
12
/// @detailed
13
/// @author Yifan Song
14
15
#ifndef INCLUDED_protocols_hybridization_util_hh
16
#define INCLUDED_protocols_hybridization_util_hh
17
18
#include <
core/pose/Pose.hh
>
19
#include <
core/chemical/ResidueType.hh
>
20
#include <
core/fragment/FragSet.fwd.hh
>
21
#include <
core/conformation/Residue.hh
>
22
23
#include <
core/id/AtomID.hh
>
24
#include <
core/id/AtomID_Map.hh
>
25
26
#include <
core/kinematics/FoldTree.hh
>
27
#include <
core/kinematics/Jump.hh
>
28
#include <
core/kinematics/Edge.hh
>
29
30
#include <
core/types.hh
>
31
32
#include <list>
33
34
#include <
protocols/loops/Loops.hh
>
35
#include <
protocols/loops/Loop.hh
>
36
#include <
core/sequence/SequenceAlignment.hh
>
37
38
#include <set>
39
40
namespace
protocols {
41
//namespace comparative_modeling {
42
namespace
hybridization {
43
44
core::Size
45
get_num_residues_nonvirt
(
core::pose::Pose
const
& pose );
46
47
// constraint loading and generation
48
void
setup_centroid_constraints
(
49
core::pose::Pose
&pose,
50
utility::vector1 < core::pose::PoseCOP >
templates,
51
utility::vector1 < core::Real >
template_weights,
52
std::string
cen_cst_file,
53
std::set< core::Size > ignore_res_for_AUTO = std::set<core::Size>());
54
55
void
setup_fullatom_constraints
(
56
core::pose::Pose
&pose,
57
utility::vector1 < core::pose::PoseCOP >
templates,
58
utility::vector1 < core::Real >
template_weights,
59
std::string
cen_cst_file,
60
std::string
fa_cst_file );
61
62
void
generate_centroid_constraints
(
63
core::pose::Pose
&pose,
64
utility::vector1 < core::pose::PoseCOP >
templates,
65
utility::vector1 < core::Real >
template_weights,
66
std::set< core::Size > ignore_res = std::set<core::Size>());
67
68
void
generate_fullatom_constraints
(
69
core::pose::Pose
&pose,
70
utility::vector1 < core::pose::PoseCOP >
templates,
71
utility::vector1 < core::Real >
template_weights );
72
73
void
add_strand_pairs_cst
(
core::pose::Pose
& pose,
utility::vector1
< std::pair< core::Size, core::Size > >
const
strand_pairs);
74
75
void
add_non_protein_cst
(
core::pose::Pose
& pose,
core::Real
const
cst_weight);
76
77
bool
discontinued_upper
(
core::pose::Pose
const
& pose,
core::Size
const
seqpos);
78
79
bool
discontinued_lower
(
core::pose::Pose
const
& pose,
core::Size
const
seqpos);
80
81
std::list < core::Size >
downstream_residues_from_jump
(
core::pose::Pose
const
& pose,
core::Size
const
jump_number);
82
83
// atom_map: from mod_pose to ref_pose
84
void
85
get_superposition_transformation
(
86
core::pose::Pose
const
& mod_pose,
87
core::pose::Pose
const
& ref_pose,
88
core::id::AtomID_Map< core::id::AtomID >
const
& atom_map,
89
numeric::xyzMatrix< core::Real >
&
R
,
numeric::xyzVector< core::Real >
&preT,
numeric::xyzVector< core::Real >
&postT );
90
91
core::Size
atom_map_valid_size
(
92
core::pose::Pose
const
& pose,
93
core::id::AtomID_Map< core::id::AtomID >
const
& atom_map
94
);
95
96
void
97
partial_align
(
98
core::pose::Pose
& pose,
99
core::pose::Pose
const
& ref_pose,
100
core::id::AtomID_Map< core::id::AtomID >
const
& atom_map,
101
bool
iterate_convergence,
102
utility::vector1<core::Real>
distance_thresholds,
103
core::Real
min_coverage );
104
105
void
106
partial_align
(
107
core::pose::Pose
& pose,
108
core::pose::Pose
const
& ref_pose,
109
core::id::AtomID_Map< core::id::AtomID >
const
& atom_map,
110
std::list <core::Size>
const
& residue_list,
111
bool
iterate_convergence =
false
,
112
utility::vector1<core::Real>
distance_thresholds=
utility::vector1<core::Real>
(0),
113
core::Real
min_coverage = 0.2);
114
115
core::id::AtomID_Map< core::id::AtomID >
116
update_atom_map
(
117
core::pose::Pose
& pose,
118
core::pose::Pose
const
& ref_pose,
119
core::id::AtomID_Map< core::id::AtomID >
const
& atom_map,
120
core::Real
distance_squared_threshold
121
);
122
123
core::Size
124
natom_aligned
(
125
core::pose::Pose
& pose,
126
core::pose::Pose
const
& ref_pose,
127
core::id::AtomID_Map< core::id::AtomID >
const
& atom_map,
128
core::Real
distance_squared_threshold = 4.0
129
);
130
131
void
132
get_superposition_transformation
(
133
core::pose::Pose
const
& mod_pose,
134
core::pose::Pose
const
& ref_pose,
135
core::id::AtomID_Map< core::id::AtomID >
const
& atom_map,
136
numeric::xyzMatrix< core::Real >
&
R
,
numeric::xyzVector< core::Real >
&preT,
numeric::xyzVector< core::Real >
&postT );
137
138
void
139
apply_transformation
(
140
core::pose::Pose
& mod_pose,
141
std::list <core::Size>
const
& residue_list,
142
numeric::xyzMatrix< core::Real >
const
&
R
,
numeric::xyzVector< core::Real >
const
& preT,
numeric::xyzVector< core::Real >
const
& postT
143
);
144
145
core::fragment::FragSetOP
146
create_fragment_set
(
core::pose::Pose
const
& pose,
core::Size
len,
core::Size
nfrag );
147
148
protocols::loops::Loops
149
renumber_with_pdb_info
(
protocols::loops::Loops
& template_chunk,
core::pose::PoseCOP
template_pose );
150
151
core::Real
get_gdtmm
(
core::pose::Pose
& native,
core::pose::Pose
& pose,
core::sequence::SequenceAlignmentOP
& aln );
152
153
}
// hybridize
154
//} // comparative_modeling
155
}
// protocols
156
157
#endif
158
Generated on Sat Jun 1 2013 11:32:19 for Rosetta 3.5 by
1.8.4