Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PdbDataFeatures.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 src/protocols/features/PdbDataFeatures.hh
11 /// @author Sam DeLuca
12 /// @author Matthew O'Meara
13 
14 #ifndef INCLUDED_protocols_features_PdbDataFeatures_HH
15 #define INCLUDED_protocols_features_PdbDataFeatures_HH
16 
17 // Unit Headers
20 
21 //External
22 #include <boost/uuid/uuid.hpp>
23 
24 // Project Headers
25 #include <core/pose/Pose.fwd.hh>
26 // AUTO-REMOVED #include <utility/sql_database/DatabaseSessionManager.hh>
27 #include <utility/vector1.fwd.hh>
28 
29 // C++ Headers
30 #include <string>
31 
32 #include <utility/vector1.hh>
33 
34 
35 namespace protocols {
36 namespace features {
37 
39 public:
41 
42  PdbDataFeatures(PdbDataFeatures const & src);
43 
44  virtual ~PdbDataFeatures();
45 
46  ///@brief return string with class name
48  type_name() const;
49 
50  ///@brief generate the table schemas and write them to the database
51  virtual void
52  write_schema_to_db(utility::sql_database::sessionOP db_session) const;
53 
54  ///@brief return the set of features reporters that are required to
55  ///also already be extracted by the time this one is used.
58 
59  ///@brief collect all the feature data for the pose
62  core::pose::Pose const & pose,
63  utility::vector1<bool> const & relevant_residues,
64  boost::uuids::uuid struct_id,
65  utility::sql_database::sessionOP db_session
66  );
67 
68  void delete_record(
69  boost::uuids::uuid struct_id,
70  utility::sql_database::sessionOP db_session
71  );
72 
73  void
75  utility::sql_database::sessionOP db_session,
76  boost::uuids::uuid struct_id,
77  core::pose::Pose & pose);
78 
79 private:
80 
82  utility::sql_database::sessionOP db_session,
83  boost::uuids::uuid struct_id,
84  core::pose::Pose & pose);
85 
87  core::pose::Pose const & pose,
88  utility::vector1<bool> const & relevant_residues,
89  boost::uuids::uuid struct_id,
90  utility::sql_database::sessionOP db_session
91  );
92 
93  ///@brief load the temperature and occupancy information into the
94  ///PDBInfo object. Backbone atoms are assigned max_bb_temperature
95  ///and min_bb_occupancy while sidechain atoms are assigned
96  ///max_sc_temperature and min_sc_occupancy.
97 
98  ///Note: The information stored in the residue_pdb_confidence table
99  ///is at the residue level not atom level. Since the temperature and
100  ///occupancy is usually at the atom level, writing data to the
101  ///database and reading it back in will result in a loss of
102  ///information.
104  utility::sql_database::sessionOP db_session,
105  boost::uuids::uuid struct_id,
106  core::pose::Pose & pose);
107 
109  core::pose::Pose const & pose,
110  utility::vector1<bool> const & relevant_residues,
111  boost::uuids::uuid struct_id,
112  utility::sql_database::sessionOP db_session
113  );
114 
115 
116 
117 };
118 
119 } // namespace
120 } // namespace
121 
122 
123 #endif // include guard