Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
LoopAnchorFeatures.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/features/LoopAnchorFeatures.hh
11 /// @brief report comments stored with each pose
12 /// @author Matthew O'Meara
13 
14 #ifndef INCLUDED_protocols_features_LoopAnchorFeatures_hh
15 #define INCLUDED_protocols_features_LoopAnchorFeatures_hh
16 
17 // Unit Headers
20 
21 //External
22 #include <boost/uuid/uuid.hpp>
23 #include <cppdb/frontend.h>
24 
25 // Utility Headers
26 #include <numeric/HomogeneousTransform.fwd.hh>
27 
28 namespace protocols{
29 namespace features{
30 
32 public:
34 
36 
37  virtual ~LoopAnchorFeatures();
38 
39  ///@brief return string with class name
41  type_name() const;
42 
43  ///@brief generate the table schemas and write them to the database
44  void
46  utility::sql_database::sessionOP db_session) const;
47 
48 private:
49  ///@brief generate the loop_anchors table schema
50  void
52  utility::sql_database::sessionOP db_session) const;
53 
54  ///@brief generate the loop_anchor_transforms table schema
55  void
57  utility::sql_database::sessionOP db_session) const;
58 
59  ///@brief generate the loop_anchor_transforms_three_res table schema
60  void
62  utility::sql_database::sessionOP db_session) const;
63 
64 public:
65  ///@brief return the set of features reporters that are required to
66  ///also already be extracted by the time this one is used.
69 
70  void
72  utility::tag::TagPtr const tag,
73  protocols::moves::DataMap & /*data*/,
74  protocols::filters::Filters_map const & /*filters*/,
75  protocols::moves::Movers_map const & /*movers*/,
76  core::pose::Pose const & /*pose*/);
77 
78  ///@brief collect all the feature data for the pose
81  core::pose::Pose const & pose,
82  utility::vector1< bool > const & /*relevant_residues*/,
83  boost::uuids::uuid struct_id,
84  utility::sql_database::sessionOP db_session);
85 
86  void
87  set_use_relevant_residues_as_loop_length( bool const use_relevant_residues_as_loop_length );
88 
89  void
90  set_use_single_residue_to_define_anchor_transfrom( bool const use_single_residue_to_define_anchor_transfrom );
91 
92 private:
93 
97 
98  core::Size min_loop_length( utility::vector1< bool > const & relevant_residue );
99  core::Size max_loop_length( utility::vector1< bool > const & relevant_residue );
100  core::Size determine_correct_length( utility::vector1< bool > const & relevant_residue, Size default_length );
101 
102  numeric::HomogeneousTransform<core::Real>
104  core::pose::Pose const & pose,
105  utility::vector1<core::Size> const & residue_begin,
106  utility::vector1<core::Size> const & residue_end,
107  utility::vector1<core::Size> const & atoms);
108 
109  void
111  boost::uuids::uuid struct_id,
112  core::Size begin,
113  core::Size end,
114  core::pose::Pose const & pose,
115  cppdb::statement & stmt);
116 
117  core::Real
119  core::pose::Pose const & pose,
120  utility::vector1<core::Size> const & residues,
121  utility::vector1<core::Size> const & atoms);
122 private:
123 
128 
129 };
130 
131 } // features namespace
132 } // protocols namespace
133 
134 #endif //INCLUDED_protocols_features_LoopAnchorFeatures_hh