Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FragmentDME.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/FragmentDME.hh
11 /// @brief Object that scores a fragment by its Distance Matrix Error (DME) to the native
12 /// @author David E Kim
13 
14 #ifndef INCLUDED_protocols_frag_picker_scores_FragmentDME_hh
15 #define INCLUDED_protocols_frag_picker_scores_FragmentDME_hh
16 
17 // package headers
21 
22 #include <core/types.hh>
23 
24 #include <ObjexxFCL/FArray2D.hh>
25 #include <ObjexxFCL/FArray1D.hh>
26 
27 //Auto Headers
28 #include <core/pose/Pose.fwd.hh>
29 #include <utility/vector1.fwd.hh>
30 #include <iostream>
31 
32 
33 namespace protocols {
34 namespace frag_picker {
35 namespace scores {
36 
37 using namespace ObjexxFCL;
38 
40 
41 /// @brief scores a fragment by its DME to the given reference structure
43 public:
44 
45  /// @brief creates a DME-based scoring function.
46  /// @detailed fragments will be compared to a given pose, which should have the same number of residues a the query sequence
48 
49  /// @brief creates a DME-based scoring function.
50  /// @detailed fragments will be compared to given coordinates, which should have the same number of residues a the query sequence
52 
53  ~FragmentDME();
54 
55  void do_caching(VallChunkOP);
56  void clean_up();
58  bool cached_score(FragmentCandidateOP, FragmentScoreMapOP);
59 
60 private:
68  FArray1D_double weights_;
69 
70  void fill_CA_coords(core::pose::Pose const &, FArray2_double &, Size);
71 };
72 
73 /// @brief Maker class that produces a new FragmentDME object
75 public:
76 
78  MakeFragmentScoringMethod("FragmentDME") {
79  }
80 
82 };
83 
84 } // scores
85 } // frag_picker
86 } // protocols
87 
88 #endif // INCLUDED_protocols_frag_picker_scores_FragmentDME_HH