Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PhiPsiRmsd.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/PhiPsiRmsd.hh
11 /// @brief Object that scores a fragment by its crmsd to the native
12 /// @author Dominik Gront (dgront@chem.uw.edu.pl)
13 
14 #ifndef INCLUDED_protocols_frag_picker_scores_PhiPsiRmsd_hh
15 #define INCLUDED_protocols_frag_picker_scores_PhiPsiRmsd_hh
16 
17 // package headers
20 
23 
24 // mini
25 #include <core/types.hh>
26 
27 #include <ObjexxFCL/FArray1D.hh>
28 
29 #include <utility/vector1.hh>
30 
31 
32 namespace protocols {
33 namespace frag_picker {
34 namespace scores {
35 
37 
38 /// @brief scores a fragment by the root mean square deviation of Phi and Psi angles.
40 public:
41 
42  /// @brief creates a Phi-Psi-based scoring function.
43  /// @detailed Phi-Psi angles from a fragment will be compared to relevant angles in a given pose, which should have the same number of residues a the query sequence
44  PhiPsiRmsd(Size priority, Real lowest_acceptable_value, bool use_lowest,
45  core::pose::PoseOP reference_pose);
47  void do_caching(VallChunkOP);
48  void clean_up();
51 
52  /// @brief Print debugging informations about a score for a given fragment
54 
55 private:
58  ObjexxFCL::FArray1D_double chunk_phi_;
59  ObjexxFCL::FArray1D_double chunk_psi_;
60  ObjexxFCL::FArray1D_double query_phi_;
61  ObjexxFCL::FArray1D_double query_psi_;
63  void read_talos_phi_psi(std::string const&);
64 };
65 
66 /// @brief Matker class that produces a new PhiPsiRmsd object
68 public:
69 
71  MakeFragmentScoringMethod("PhiPsiRmsd") {
72  }
73 
75 };
76 
77 } // scores
78 } // frag_picker
79 } // protocols
80 
81 #endif // INCLUDED_protocols_frag_picker_scores_PhiPsiRmsd_HH