Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DisulfideIdentity.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/DisulfideIdentity.hh
11 /// @brief a base class for fragment scoring
12 /// @author Dominik Gront (dgront@chem.uw.edu.pl)
13 
14 #ifndef INCLUDED_protocols_frag_picker_scores_DisulfideIdentity_hh
15 #define INCLUDED_protocols_frag_picker_scores_DisulfideIdentity_hh
16 
17 // type headers
18 #include <core/types.hh>
19 
20 // package headers
24 
25 #include <utility/vector1.hh>
26 
27 
28 namespace protocols {
29 namespace frag_picker {
30 namespace scores {
31 
32 /// @brief DisulfideIdentity score counts identical residues
33 /// @detailed Resulting score is the number of identical residues
34 /// on corresponding positions in a vall fragment and a query sequence
36 public:
37 
38  DisulfideIdentity(Size priority, Real lowest_acceptable_value, bool use_lowest,
39  std::string & fastaQueryDisulfide) :
40  FragmentScoringMethod(priority, lowest_acceptable_value, use_lowest,
41  "DisulfideIdentity"), query_(fastaQueryDisulfide) {
42  }
43 
44  bool score(FragmentCandidateOP f, FragmentScoreMapOP empty_map);
45 
46  /// @brief prints a detailed explanation how a fragment score has been computed
47  /// @detailed besides extensive output, the method should return the same result as score()
49  std::ostream& out);
50 
51 private:
54 };
55 
56 /// @brief Maker class that produces a new DisulfideIdentity object
58 public:
59 
61  MakeFragmentScoringMethod("DisulfideIdentity") {
62  }
63 
64  FragmentScoringMethodOP make(Size priority, Real lowest_acceptable_value, bool use_lowest,
65  FragmentPickerOP picker, std::string) {
66  return (FragmentScoringMethodOP) new DisulfideIdentity(priority,
67  lowest_acceptable_value, use_lowest, picker->get_query_seq_string());
68  }
69 };
70 
71 } // scores
72 } // frag_picker
73 } // protocols
74 
75 
76 #endif /* INCLUDED_protocols_frag_picker_scores_DisulfideIdentity_HH */