Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
20 
21 // Project headers
22 #include <core/types.hh>
23 #include <core/pose/Pose.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
47 public:
48 
49 
51  typedef core::Size Size;
52  typedef core::Real Real;
56 
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
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
137  /// @brief
139  /// @brief
141  /// @brief
143  /// @brief
145  /// @brief
147 
148 
149 };
150 
151 } // ns sspot
152 } // ns potentials
153 } // ns fldsgn
154 } // ns protocols
155 
156 
157 #endif