Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TalosSSSimilarity.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/TalosSSSimilarity.hh
11 /// @brief scores a fragment by secondary structure similarity
12 /// @author rvernon@u.washington.edu
13 
14 #ifndef INCLUDED_protocols_frag_picker_scores_TalosSSSimilarity_hh
15 #define INCLUDED_protocols_frag_picker_scores_TalosSSSimilarity_hh
16 
17 // type headers
18 #include <core/types.hh>
19 
20 // package headers
24 
26 
27 #include <utility/vector1.hh>
28 
29 
30 namespace protocols {
31 namespace frag_picker {
32 namespace scores {
33 
35 
36 /// @brief scores a fragment by secondary structure similarity
37 /// @detail The score for each position is P(H), P(L) or P(E) if
38 /// a vall residue is within Helix, Loop or Extended secondary stucture element, respectively.
39 /// P(H), P(L) and P(E) denotes the probability that a given residue in a query
40 /// is within Helix, Loop or Extended secondary stucture element.
41 /// The total score of a fragment is a simple sum of all positions; for N-mer fragment is a sum of N terms\n
42 /// If P(H), P(L) and P(E) probabilities takes only 1.0 and 0.0 values, result of this scoring function
43 /// should be the same as SecondaryIdentity, although the later one is faster.
45 public:
46 
47  TalosSSSimilarity(Size priority, Real lowest_acceptable_value, bool use_lowest,
48  core::fragment::SecondaryStructureOP query_prediction, std::string prediction_name,
49  Size sequence_length, utility::vector1<Size> & frag_sizes, Size longest_vall_chunk);
50 
52 
53  void do_caching(VallChunkOP);
56  void clean_up() {}
57 
58  /// @brief Computes the score
60 
61  /// @brief returns the secondary structure porediction object that is used by this score
63 
65 protected:
68 private:
73 
75 
77 };
78 
79 /// @brief Maker class that produces a new TalosSSSimilarity object
81 public:
82 
84  MakeFragmentScoringMethod("TalosSSSimilarity") {
85  }
86 
87  FragmentScoringMethodOP make(Size priority, Real lowest_acceptable_value, bool use_lowest,
88  FragmentPickerOP picker, std::string prediction_id) {
89 
90  Size sequence_length = picker->get_query_seq()->length();
91  Size vall_max_len = picker->get_vall()->get_largest_chunk_size();
92 
93  return (FragmentScoringMethodOP) new TalosSSSimilarity(priority,
94  lowest_acceptable_value, use_lowest,
95  picker->get_query_ss(prediction_id),prediction_id,
96  sequence_length,picker->frag_sizes_,vall_max_len);
97  }
98 };
99 
100 } // scores
101 } // frag_picker
102 } // protocols
103 
104 
105 #endif /* INCLUDED_protocols_frag_picker_scores_TalosSSSimilarity_HH */