Rosetta 3.5
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
protocols
features
ResidueTotalScoresFeatures.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/ResidueTotalScoresFeatures.hh
11
/// @brief report the total per residue score to a features database
12
/// @author Matthew O'Meara (mattjomeara@gmail.com)
13
14
#ifndef INCLUDED_protocols_features_ResidueTotalScoresFeatures_hh
15
#define INCLUDED_protocols_features_ResidueTotalScoresFeatures_hh
16
17
// Unit Headers
18
#include <
protocols/features/FeaturesReporter.hh
>
19
#include <
protocols/features/ResidueTotalScoresFeatures.fwd.hh
>
20
21
//External
22
#include <boost/uuid/uuid.hpp>
23
24
// Project Headers
25
#include <
core/types.hh
>
26
#include <
core/pose/Pose.fwd.hh
>
27
#include <
protocols/filters/Filter.fwd.hh
>
28
#include <
protocols/moves/Mover.fwd.hh
>
29
#include <
protocols/moves/DataMap.fwd.hh
>
30
#include <utility/vector1.fwd.hh>
31
#include <utility/tag/Tag.fwd.hh>
32
33
// C++ Headers
34
#include <string>
35
36
#include <
core/scoring/ScoreFunction.fwd.hh
>
37
#include <utility/vector1.hh>
38
39
40
namespace
protocols{
41
namespace
features{
42
43
class
ResidueTotalScoresFeatures
:
public
protocols::features::FeaturesReporter
{
44
public
:
45
ResidueTotalScoresFeatures
();
46
47
ResidueTotalScoresFeatures
(
48
core::scoring::ScoreFunctionOP
scfxn);
49
50
ResidueTotalScoresFeatures
(
ResidueTotalScoresFeatures
const
& src);
51
52
virtual
~ResidueTotalScoresFeatures
();
53
54
///@brief return string with class name
55
std::string
56
type_name
()
const
;
57
58
///@brief generate the table schemas and write them to the database
59
void
60
write_schema_to_db
(
61
utility::sql_database::sessionOP db_session)
const
;
62
63
private
:
64
///@brief generate the residue_total_scores_1b table schema
65
void
66
write_residue_total_scores_table_schema
(
67
utility::sql_database::sessionOP db_session)
const
;
68
69
private
:
70
///@brief generate the residue_total_scores_1b table schema
71
void
72
insert_residue_total_scores_rows
(
73
core::pose::Pose
const
& pose,
74
utility::vector1< bool >
const
& relevant_residues,
75
boost::uuids::uuid
const
struct_id,
76
utility::sql_database::sessionOP db_session)
const
;
77
78
public
:
79
///@brief return the set of features reporters that are required to
80
///also already be extracted by the time this one is used.
81
utility::vector1<std::string>
82
features_reporter_dependencies
()
const
;
83
84
void
85
parse_my_tag
(
86
utility::tag::TagPtr
const
tag,
87
protocols::moves::DataMap
& data,
88
protocols::filters::Filters_map
const
&
/*filters*/
,
89
protocols::moves::Movers_map
const
&
/*movers*/
,
90
core::pose::Pose
const
&
/*pose*/
);
91
92
93
///@brief collect all the feature data for the pose
94
core::Size
95
report_features
(
96
core::pose::Pose
const
& pose,
97
utility::vector1< bool >
const
& relevant_residues,
98
boost::uuids::uuid struct_id,
99
utility::sql_database::sessionOP db_session);
100
101
private
:
102
103
core::scoring::ScoreFunctionOP
scfxn_
;
104
105
};
106
107
}
// namespace
108
}
// namespace
109
110
#endif // include guard
Generated on Sat Jun 1 2013 11:49:20 for Rosetta 3.5 by
1.8.4