Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
BetaTurnDetectionFeatures.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 Brian D. Weitzner (brian.weitzner@gmail.com)
13 
14 #ifndef INCLUDED_protocols_features_BetaTurnDetectionFeatures_hh
15 #define INCLUDED_protocols_features_BetaTurnDetectionFeatures_hh
16 
17 // Unit Headers
20 
21 //External
22 #include <boost/uuid/uuid.hpp>
23 
24 // Project Headers
25 #include <core/types.hh>
27 #include <numeric/HomogeneousTransform.fwd.hh>
28 #include <utility/sql_database/DatabaseSessionManager.fwd.hh>
29 #include <utility/vector1.fwd.hh>
30 #include <utility/tag/Tag.fwd.hh>
31 
32 // C++ Headers
33 #include <string>
34 
35 #include <utility/vector1.hh>
36 
37 
38 namespace protocols{
39 namespace features{
40 
42  A = 1,
43  B,
44  L,
45  E,
47 };
48 
50 public:
52 
54 
56 
57  ///@brief return string with class name
58  virtual std::string
59  type_name() const;
60 
61  ///@brief generate the table schemas and write them to the database
62  void
64  utility::sql_database::sessionOP db_session) const;
65 
66 private:
67  ///@brief generate the beta_turns table schema
68  void
70  utility::sql_database::sessionOP db_session) const;
71 
72 public:
73  ///@brief return the set of features reporters that are required to
74  ///also already be extracted by the time this one is used.
77 
78  ///@brief collect all the feature data for the pose
79  virtual core::Size
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 private:
86  static std::map< std::string, std::string > const & get_conformation_to_turn_type_map();
88 
89  bool all_turn_residues_are_on_the_same_chain( core::pose::Pose const & pose, Size first_residue ) const;
90 
91  bool residue_range_is_relevant( utility::vector1< bool > const & relevant_residues, Size range_begin, Size range_end ) const;
92 
93  bool residue_range_is_protein( core::pose::Pose const & pose, Size range_begin, Size range_end ) const;
94 
95  bool beta_turn_present( core::pose::Pose const & pose, Size first_residue ) const;
96 
97  std::string const & beta_turn_type( core::pose::Pose const & pose, Size first_residue ) const;
98 
99  std::string determine_ramachandran_hash( core::pose::Pose const & pose, core::Size first_residue ) const;
100 
102 
103  void validate_ramachandran_hash( std::string & rama_hash ) const;
104 
105 private:
108 
109 };
110 
111 } // features namespace
112 } // protocols namespace
113 
114 #endif //INCLUDED_protocols_features_BetaTurnDetectionFeatures_hh