Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
LAMBEGO_Similarity.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 protocols/frag_picker/scores/TorsionBin.hh
11 /// @brief scores a fragment based on scores for a probability over torsion bins.
12 /// @author James Thompson
13 
14 #ifndef INCLUDED_protocols_frag_picker_scores_LAMBEGO_Similarity_hh
15 #define INCLUDED_protocols_frag_picker_scores_LAMBEGO_Similarity_hh
16 
17 // type headers
18 #include <core/types.hh>
19 
22 #include <utility/vector1_bool.hh>
23 #include <iostream>
24 
25 #include <utility/vector1.hh>
26 
27 
28 
29 
30 namespace protocols {
31 namespace frag_picker {
32 namespace scores {
33 
35 
36 /// @brief scores a fragment by torsion bin similarity
38 public:
39 
41  Size priority,
42  Real lowest_acceptable_value,
43  bool use_lowest,
45  Size sequence_length,
46  Size longest_vall_chunk
47  ) :
49  priority, lowest_acceptable_value, use_lowest,
50  "LAMBEGO"
51  ),
52  query_len_( sequence_length ),
53  query_bin_probs_( query_bin_probs )
54  {
55  for ( Size i = 1; i <= query_len_; ++i ) {
56  utility::vector1< Real > row(longest_vall_chunk);
57  scores_.push_back(row);
58  }
59  }
60 
61  void do_caching(VallChunkOP);
62 
63  void clean_up() {};
64 
65  /// @brief Computes the score
67 
68 private:
69  char torsion2big_bin_(
70  core::Real const phi,
71  core::Real const psi,
72  core::Real const omega,
73  char const ss
74  ) const;
75 
76  Size bin_index_( char const bin_name ) const;
77 
78 protected:
80 
81 private:
86 }; // LAMBEGO_Similarity
87 
88 /// @brief Maker class that produces a new TorsionBin object
90 public:
91 
93  MakeFragmentScoringMethod("LAMBEGO_Similarity")
94  {}
95 
97  Size priority,
98  Real lowest_acceptable_value,
99  bool use_lowest,
100  FragmentPickerOP picker,
101  std::string /* prediction_id */
102  );
103 };
104 
105 } // scores
106 } // frag_picker
107 } // protocols
108 
109 #endif /* INCLUDED_protocols_frag_picker_scores_TorsionBin_HH */