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
frag_picker
quota
ABEGO_SS_Config.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/frag_picker/quota/QuotaSelector.hh
11
/// @brief provides a selector that picks best fragments based on their total score
12
/// @author Dominik Gront (dgront@chem.uw.edu.pl)
13
14
#ifndef INCLUDED_protocols_frag_picker_quota_ABEGO_SS_Config_hh
15
#define INCLUDED_protocols_frag_picker_quota_ABEGO_SS_Config_hh
16
17
#include <
protocols/frag_picker/quota/QuotaConfig.hh
>
18
19
// utility headers
20
#include <
core/types.hh
>
21
#include <utility/vector1.hh>
22
23
// C++ headers
24
// AUTO-REMOVED #include <map>
25
#include <string>
26
27
namespace
protocols {
28
namespace
frag_picker {
29
namespace
quota {
30
31
/// @brief read a config file for quota selector
32
class
ABEGO_SS_Config
:
public
QuotaConfig
{
33
public
:
34
35
/// @brief Constructor reads a config file
36
ABEGO_SS_Config
(
std::string
& config_file_name);
37
38
Size
n_columns
() {
return
bin_probs_
[1].size(); }
39
40
Size
n_rows
() {
return
bin_probs_
.size(); }
41
42
Size
size
() {
return
bin_probs_
.size(); }
43
44
std::string
&
source_file_name
() {
return
source_file_name_
; }
45
46
Real
probability
(
Size
seq_pos,
Size
bin) {
return
bin_probs_
[seq_pos][bin]; }
47
48
Real
highest_probability
(
Size
);
49
50
Size
most_probable_bin
(
Size
);
51
52
utility::vector1< std::pair<Size,Size>
>
get_pool_bins
(
Size
pool_id) {
return
pool_defs_
[pool_id]; }
53
private
:
54
std::string
source_file_name_
;
55
utility::vector1< utility::vector1< std::pair<Size,Size>
> >
pool_defs_
;
56
utility::vector1< utility::vector1<Real>
>
bin_probs_
;
57
};
58
59
}
// quota
60
}
// frag_picker
61
}
// protocols
62
63
64
#endif
/* INCLUDED_protocols_frag_picker_quota_ABEGO_SS_Config_HH */
Generated on Sat Jun 1 2013 11:52:33 for Rosetta 3.5 by
1.8.4