Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
InterchainPotential.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 core/scoring/methods/InterchainEnergy.cc
11 /// @brief Statistically derived rotamer pair potentials
12 /// @detailed For docking (or between chains) only those residues at the interface
13 /// and between the two interfaces need to be evaluated
14 /// @author Monica Berrondo
15 
16 #ifndef INCLUDED_protocols_scoring_InterchainPotential_hh
17 #define INCLUDED_protocols_scoring_InterchainPotential_hh
18 
19 #include <core/types.hh>
20 
21 // Unit headers
24 // AUTO-REMOVED #include <protocols/scoring/InterfaceInfo.hh>
26 
27 // Package headers
28 // AUTO-REMOVED #include <protocols/scoring/Interface.hh>
30 
31 #include <basic/datacache/CacheableData.hh>
32 
33 #include <ObjexxFCL/FArray1D.hh>
34 #include <ObjexxFCL/FArray2D.hh>
35 #include <ObjexxFCL/FArray3D.hh>
36 
38 #include <utility/vector1.hh>
39 
40 
41 // C++
42 
43 
44 namespace protocols {
45 namespace scoring {
46 
47 using namespace core::conformation;
48 
50 
51 public:
52 
53  static InterchainPotential * get_instance();
54 
55 public:
56 
57  void
58  compute_interface( core::pose::Pose & pose ) const;
59 
60  void
61  finalize( core::pose::Pose & pose ) const;
62 
63  ///
64  void
65  evaluate_env_score(
66  core::pose::Pose const & pose,
67  core::conformation::Residue const & rsd,
68  core::Real & env_score
69  ) const;
70 
71  ///
72  void
73  evaluate_contact_score(
74  core::pose::Pose const & pose,
75  core::Real & contact_score
76  ) const;
77 
78  ///
79  void
80  evaluate_pair_and_vdw_score(
81  core::pose::Pose const & pose,
82  core::conformation::Residue const & rsd1,
83  core::conformation::Residue const & rsd2,
84  core::Real & pair_score,
85  core::Real & vdw_score
86  ) const;
87 
88  // Commention out to make PyRosetta compile (undefined in .cc file)
89  //core::Size interface_residues( core::pose::Pose const & pose ) const;
90 
91  InterfaceInfo const & interface_from_pose( core::pose::Pose const & ) const;
92  InterfaceInfo & nonconst_interface_from_pose( core::pose::Pose & ) const;
93 
94 private:
97  InterchainPotential & operator = ( InterchainPotential const & rhs );
98 
100 
101  // const-ref to scoring database
103 
104  ObjexxFCL::FArray2D< core::Real > interchain_env_log_;
105  ObjexxFCL::FArray2D< core::Real > interchain_pair_log_;
106 };
107 
108 } // ns scoring
109 } // ns core
110 
111 #endif