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
fldsgn
potentials
sspot
SSPairPotential.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
12
/// @author Nobuyasu Koga ( nobuyasu@uw.edu )
13
14
15
#ifndef INCLUDED_protocols_fldsgn_potentials_sspot_SSPairPotential_HH
16
#define INCLUDED_protocols_fldsgn_potentials_sspot_SSPairPotential_HH
17
18
// Unit header
19
#include <
protocols/fldsgn/potentials/sspot/SSPairPotential.fwd.hh
>
20
21
// Project headers
22
#include <
core/types.hh
>
23
#include <
core/pose/Pose.fwd.hh
>
24
#include <
core/scoring/EnergyGraph.fwd.hh
>
25
#include <
protocols/fldsgn/topology/SS_Info2.fwd.hh
>
26
#include <
protocols/fldsgn/topology/BB_Pos.fwd.hh
>
27
#include <
protocols/fldsgn/topology/DimerPairing.fwd.hh
>
28
29
// ObjexxFCL Headers
30
#include <ObjexxFCL/FArray1D.hh>
31
// AUTO-REMOVED #include <ObjexxFCL/FArray3D.hh>
32
#include <ObjexxFCL/FArray4D.hh>
33
34
// Utility Headers
35
#include <utility/pointer/ReferenceCount.hh>
36
37
#include <utility/vector1.hh>
38
39
40
namespace
protocols {
41
namespace
fldsgn {
42
namespace
potentials {
43
namespace
sspot {
44
45
/// @brief secondary structure scoring cut from classic rosetta structure.h/structure.cc
46
class
SSPairPotential
:
public
utility::pointer::ReferenceCount
{
47
public
:
48
49
50
typedef
std::string
String
;
51
typedef
core::Size
Size
;
52
typedef
core::Real
Real
;
53
typedef
core::Vector
Vector
;
54
typedef
core::pose::Pose
Pose
;
55
typedef
core::scoring::EnergyGraph
EnergyGraph
;
56
57
typedef
protocols::fldsgn::topology::DimerPairing
DimerPairing
;
58
typedef
protocols::fldsgn::topology::BB_Pos
BB_Pos
;
59
typedef
protocols::fldsgn::topology::SS_Info2
SS_Info2
;
60
typedef
protocols::fldsgn::topology::DimerPairings
DimerPairings
;
61
62
typedef
ObjexxFCL::FArray1D< int >
FArray1D_int
;
63
typedef
ObjexxFCL::FArray1D< Real >
FArray1D_real
;
64
typedef
ObjexxFCL::FArray4D< Real >
FArray4D_real
;
65
66
67
public
:
// construct/destruct
68
69
70
/// @brief default constructor
71
SSPairPotential
();
72
73
/// @brief default destructor
74
virtual
~SSPairPotential
();
75
76
77
public
:
// scoring
78
79
80
/// @brief score secondary structure
81
void
score
(
Pose
const
& pose,
82
SS_Info2
const
& ss_info,
83
DimerPairings
& dimer_pairs,
84
Real
& ss_score )
const
;
85
86
87
private
:
// methods
88
89
90
/// @brief calculate sum of dot product of the co vectors of strand dimers ss1 and ss2
91
/// @brief with the vector connecting the midpoints of the dimer vectors (vdist)
92
/// @brief also determine return the sign of the dot products for each dimer
93
/// @brief to determine which direction the CO groups point
94
void
95
pair_dp
(
96
Size
const
& ss1,
97
Size
const
& ss2,
98
BB_Pos
const
& bb_pos,
99
Real
& dp,
100
Vector
const
& mid_vector,
101
Size
& sign1,
102
Size
& sign2
103
)
const
;
104
105
106
private
:
107
108
109
// @brief
110
Real
calc_phithetascore
(
Size
const
strand_seqsep,
Real
const
phi
,
Real
const
theta )
const
;
111
112
// @brief
113
Real
calc_dotscore
(
Real
const
dpall )
const
;
114
115
/// @brief
116
Real
calc_rsigmascore
(
Real
sig,
Real
dist,
Size
const
sign1,
Size
const
sign2 )
const
;
117
118
/// @brief
119
static
void
rsigma_dot_initializer
(
FArray4D_real
& rsigma_dot );
120
121
122
private
:
// initialization
123
124
125
/// @brief load phi/theta bins for use in secondary structure scoring
126
void
load_phi_theta_bins
(
String
const
& ss_filename =
"scoring/score_functions/SecondaryStructurePotential/phi.theta.36.SS.resmooth"
);
127
128
/// @brief
129
void
load_dotscore_bins
();
130
131
132
private
:
// secondary structure data
133
134
135
/// @brief
136
Real
strand_dist_cutoff_
;
137
/// @brief
138
Size
dimer_seqsep_cutoff_
;
139
/// @brief
140
Size
lowstrand_
;
141
/// @brief
142
FArray4D_real
phithetascore_
;
143
/// @brief
144
FArray1D_real
dotscore_
;
145
/// @brief
146
FArray4D_real
rsigma_dot_
;
147
148
149
};
150
151
}
// ns sspot
152
}
// ns potentials
153
}
// ns fldsgn
154
}
// ns protocols
155
156
157
#endif
Generated on Sat Jun 1 2013 11:50:07 for Rosetta 3.5 by
1.8.4