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
DatabaseJobInputter.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/DatabaseJobInputter.hh
11
/// @brief header file for DatabaseJobInputter class
12
/// @author Matthew O'Meara (mattjomeara@gmail.com)
13
14
15
#ifndef INCLUDED_protocols_features_DatabaseJobInputter_hh
16
#define INCLUDED_protocols_features_DatabaseJobInputter_hh
17
18
// Unit Headers
19
#include <
protocols/jd2/JobInputter.hh
>
20
#include <
protocols/features/DatabaseJobInputter.fwd.hh
>
21
#include <
protocols/jd2/Job.fwd.hh
>
22
// AUTO-REMOVED #include <protocols/features/ProteinSilentReport.hh>
23
24
// Project Headers
25
#include <
core/pose/Pose.fwd.hh
>
26
// AUTO-REMOVED #include <core/scoring/ScoreFunction.hh>
27
#include <
core/scoring/ScoreFunction.fwd.hh
>
28
#include <
protocols/features/ProteinSilentReport.fwd.hh
>
29
30
// Utility Headers
31
#include <utility/vector1.hh>
32
33
//C++ Headers
34
#include <string>
35
#include <map>
36
#include <set>
37
38
//External
39
#include <boost/uuid/uuid.hpp>
40
41
namespace
protocols {
42
namespace
features {
43
44
///@details This is the simplest implementation of JobInputter, which
45
///reads from -s/-l and Database files.
46
class
DatabaseJobInputter
:
public
protocols::jd2::JobInputter
47
{
48
public
:
49
50
DatabaseJobInputter
();
51
52
virtual
~DatabaseJobInputter
();
53
54
static
void
register_options
();
55
56
/// @brief load options from option sytem
57
void
58
load_options_from_option_system
();
59
60
/// @brief Set database name
61
void
62
set_database_name
(
std::string
const
& database_name);
63
64
/// @brief Get database name
65
std::string
66
get_database_name
()
const
;
67
68
/// @brief Set database postreSQL schema
69
void
70
set_database_pq_schema
(
std::string
const
& database_pq_schema);
71
72
/// @brief Get database postreSQL schema
73
std::string
74
get_database_pq_schema
()
const
;
75
76
/// @brief Get score function
77
core::scoring::ScoreFunctionOP
78
get_scorefunction
();
79
80
/// @brief Set score function
81
void
82
set_scorefunction
(
core::scoring::ScoreFunctionOP
scorefunction );
83
84
/// @brief set struct_ids from a list of strings of hex-uuid representations
85
void
86
set_struct_ids_from_strings
(
87
utility::vector1<std::string>
const
& struct_id_strings);
88
89
/// @brief set input tags using a database SELECT command
90
void
91
set_struct_ids_from_sql
(
utility::vector1<std::string>
const
& sql);
92
93
// /// @brief Get input tags
94
// void
95
// get_tags(utility::vector1< std::string > & tags);
96
97
/// @brief this function is responsible for filling the pose reference with
98
/// the pose indicated by the job. The Job object (within its InnerJob)
99
/// contains a PoseCOP. This function needs to either fill the pose
100
/// reference from the InnerJob or, on first demand of a pose from that
101
/// InnerJob, instantiate the pose, hand off a COP to the InnerJob, and fill
102
/// the reference. This implementation uses pose_from_pdb
103
virtual
void
pose_from_job
(
core::pose::Pose
& pose,
protocols::jd2::JobOP
job );
104
105
/// @brief this function determines what jobs exist from -in::file::silent and
106
/// -in::file::tags.
107
virtual
void
fill_jobs
(
protocols::jd2::Jobs
& jobs );
108
109
/// @brief Return the type of input source that the DatabaseJobInputter is currently
110
/// using.
111
/// @return Always <em>DATABASE</em>.
112
virtual
protocols::jd2::JobInputterInputSource::Enum
input_source
()
const
;
113
114
private
:
115
core::scoring::ScoreFunctionOP
scfxn_
;
116
protocols::features::ProteinSilentReportOP
protein_silent_report_
;
117
std::string
database_name_
;
118
std::string
database_pq_schema_
;
119
core::Size
input_protocol_id_
;
120
std::map< std::string, boost::uuids::uuid >
tag_structures_
;
121
std::map< std::string, std::set< core::Size > >
tag_residues_
;
122
};
// DatabaseJobInputter
123
124
}
// namespace features
125
}
// namespace protocols
126
127
#endif //INCLUDED_protocols_features_DatabaseJobInputter_hh
Generated on Sat Jun 1 2013 11:49:00 for Rosetta 3.5 by
1.8.4