Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DirectReadoutPotential.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/DirectReadoutPotential.hh
11 /// @brief 1st pass implementation of Kono + Sarai's protein-DNA interaction potential
12 /// @details Needs polishing, converting to mini standards in some respects, but still in trial stage.
13 /// @author Amy Ticoll
14 
15 
16 #ifndef INCLUDED_core_scoring_dna_DirectReadoutPotential_hh
17 #define INCLUDED_core_scoring_dna_DirectReadoutPotential_hh
18 
19 // Unit Headers
21 
22 // Package headers
23 
24 // Project headers
25 #include <core/types.hh>
27 
28 // Utility headers
29 #include <utility/pointer/ReferenceCount.hh>
30 
31 #include <string>
32 
33 namespace core {
34 namespace scoring {
35 namespace dna {
36 
37 /// @brief 1st pass implementation of Kono + Sarai's protein-DNA interaction potential
38 /// @details Needs polishing, converting to mini standards in some respects, but still in trial stage.
39 
41 
42 public:
44 
45 public:
46 
47  /// @brief ctor, reads data file
49 
50  // get score method
51  Real rsd_rsd_energy(conformation::Residue const & rsd1,conformation::Residue const & rsd2) const;
52 
53 private:
54  Real score[9][9][4][20][4];
55  int num_pairs[4][20];
56  // int pair_base[80];
57  // int pair_aa[80];
58  // int pair_num[80];
59 
60  string A_bins[9][9][4];
61  string G_bins[9][9][4];
62  string T_bins[9][9][4];
63  string C_bins[9][9][4];
64 
66  const Real wt;
67  const Real RT;
68 
69  void fill_bins(string (&my_array)[9][9][4], char const base);
70  void get_pairs();
71  int get_xy_bin(Real coord) const;
72  int get_z_bin(Real coord) const;
73 
74 };
75 
76 }
77 }
78 }
79 
80 #endif