Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ABEGO_SS_Score.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/ABEGO_SS_Score.hh
11 /// @brief scores a fragment by secondary structure similarity
12 /// @author Dominik Gront (dgront@chem.uw.edu.pl)
13 
14 #ifndef INCLUDED_protocols_frag_picker_scores_ABEGO_SS_Score_hh
15 #define INCLUDED_protocols_frag_picker_scores_ABEGO_SS_Score_hh
16 
17 // type headers
18 #include <core/types.hh>
19 
20 // package headers
21 // AUTO-REMOVED #include <protocols/frag_picker/FragmentPicker.hh>
24 
27 
28 // AUTO-REMOVED #include <core/fragment/SecondaryStructure.hh>
29 
30 #include <utility/vector1.hh>
31 
32 
33 namespace protocols {
34 namespace frag_picker {
35 namespace scores {
36 
38 
42 
44 public:
45 
46  ABEGO_SS_Score(Size priority, Real lowest_acceptable_value, bool use_lowest,
47  std::string prediction_file_name,Size longest_vall_chunk) :
48  CachingScoringMethod(priority, lowest_acceptable_value, use_lowest,
49  "ABEGO_SS_Score") {
50 
51  quota::ABEGO_SS_Config prediction_file(prediction_file_name);
52  query_len_ = prediction_file.size();
53  n_classes_ = prediction_file.n_columns();
54  for (Size i = 1; i <= query_len_; ++i) {
55  utility::vector1<Real> row(longest_vall_chunk);
56  scores_.push_back(row);
57  }
58  for(Size iseq=1;iseq<=query_len_;iseq++) {
60  for(Size ibin=1;ibin<=n_classes_;ibin++)
61  row.push_back(prediction_file.probability(iseq,ibin));
62  ratios_.push_back( row );
63  }
64  for(Size ibin=1;ibin<=n_classes_;ibin++)
65  maps_.push_back( new quota::ABEGO_SS_Map(prediction_file.get_pool_bins(ibin)) );
66  }
67 
69 
70  void do_caching(VallChunkOP);
72  void clean_up() {}
73 
74  /// @brief Computes the score
76 
77 private:
84 };
85 
86 /// @brief Maker class that produces a new ABEGO_SS_Score object
88 public:
89 
91  MakeFragmentScoringMethod("ABEGO_SS_Score") {
92  }
93 
96 };
97 
98 } // scores
99 } // frag_picker
100 } // protocols
101 
102 
103 #endif /* INCLUDED_protocols_frag_picker_scores_ABEGO_SS_Score_HH */