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
sic_dock
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://wsic_dockosettacommons.org. Questions about this casic_dock
8
// (c) addressed to University of Waprotocolsgton UW TechTransfer, email: license@u.washington.eprotocols
9
#ifndef INCLUDED_protocols_sic_dock_util_hh
10
#define INCLUDED_protocols_sic_dock_util_hh
11
12
#include <
core/types.hh
>
13
#include <
core/kinematics/Stub.hh
>
14
#include <
protocols/sic_dock/types.hh
>
15
#include <
protocols/sic_dock/RigidScore.fwd.hh
>
16
#include <
protocols/sic_dock/SICFast.fwd.hh
>
17
#include <
core/pose/Pose.fwd.hh
>
18
#include <
core/id/AtomID_Map.hh
>
19
#include <numeric/geometry/hashing/SixDHasher.fwd.hh>
20
//#include <numeric/xyzVector.fwd.hh>
21
#include <ObjexxFCL/FArray3D.fwd.hh>
22
#include <numeric/xyzTransform.hh>
23
24
25
namespace
protocols {
26
namespace
sic_dock {
27
28
int
29
neighbor_count
(
30
core::pose::Pose
const
& pose,
31
int
ires,
32
double
distance_threshold=10.0
33
);
34
35
core::Real
36
cb_weight
(
37
core::pose::Pose
const
&pose,
38
core::Size
ires,
39
core::Real
distance_threshold=10.0
40
);
41
42
double
43
slide_into_contact_and_score
(
44
protocols::sic_dock::SICFast
const
& sic,
45
protocols::sic_dock::RigidScore
const
& sfxn,
46
core::kinematics::Stub
& xa,
47
core::kinematics::Stub
const
& xb,
48
numeric::xyzVector<platform::Real>
const
& ori,
49
platform::Real
& score
50
);
51
52
double
53
slide_into_contact_and_score
(
54
protocols::sic_dock::SICFast
const
& sic,
55
protocols::sic_dock::RigidScore
const
& sfxn,
56
numeric::xyzTransform<core::Real> & xa,
57
numeric::xyzTransform<core::Real>
const
& xb,
58
numeric::xyzVector<platform::Real>
const
& ori,
59
platform::Real
& score
60
);
61
62
core::pose::Pose
const
&
pose_with_most_CBs
(
core::pose::Pose
const
& pose1,
core::pose::Pose
const
& pose2 );
63
bool
pose1_has_most_CBs
(
core::pose::Pose
const
& pose1,
core::pose::Pose
const
& pose2 );
64
platform::Size
count_CBs
(
core::pose::Pose
const
& pose );
65
core::id::AtomID_Map<double>
cb_weight_map_from_pose
(
core::pose::Pose
const
& pose );
66
utility::vector1<numeric::xyzVector<platform::Real>
>
get_CB_Vecs
(
core::pose::Pose
const
& pose );
67
utility::vector1<platform::Real>
cb_weights_from_pose
(
core::pose::Pose
const
& pose );
68
69
void
70
xform_pose
(
71
core::pose::Pose
& pose,
72
core::kinematics::Stub
const
& s,
73
platform::Size
sres=1,
74
platform::Size
eres=0
75
);
76
void
77
xform_pose_rev
(
78
core::pose::Pose
& pose,
79
core::kinematics::Stub
const
& s,
80
platform::Size
sres=1,
81
platform::Size
eres=0
82
);
83
84
void
85
xform_pose
(
86
core::pose::Pose
& pose,
87
numeric::xyzTransform<core::Real>
const
& x,
88
platform::Size
sres=1,
89
platform::Size
eres=0
90
);
91
92
/* Undefinded, commenting out to fix PyRosetta build void
93
xform_pose_rev(
94
core::pose::Pose & pose,
95
numeric::xyzTransform<core::Real> const & x,
96
platform::Size sres=1,
97
platform::Size eres=0
98
); */
99
100
utility::vector1<platform::Size>
range
(
platform::Size
beg,
platform::Size
end
);
101
Vec3
102
get_leap_lower_stub
(
103
core::pose::Pose
const
& pose,
104
platform::Size
ir
105
);
106
107
int
flood_fill3D
(
int
i,
int
j,
int
k, ObjexxFCL::FArray3D<double> & grid,
double
t
);
108
109
// void termini_exposed(core::pose::Pose const & pose, bool & ntgood, bool & ctgood );
110
111
inline
core::kinematics::Stub
multstubs
(
core::kinematics::Stub
const
& a,
core::kinematics::Stub
const
&
b
){
112
return
core::kinematics::Stub
( a.
M
*b.
M
, a.
M
*b.
v
+a.
v
);
113
}
114
inline
core::kinematics::Stub
invstub
(
core::kinematics::Stub
const
& a){
115
numeric::xyzMatrix<platform::Real>
const
MR = a.
M
.transposed();
116
return
core::kinematics::Stub
( MR, MR * -a.
v
);
117
}
118
119
120
}
// sic_dock
121
}
// protocols
122
123
#endif // INCLUDED_protocols_sic_dock_util_HH
Generated on Sat Jun 1 2013 11:32:20 for Rosetta 3.5 by
1.8.4