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
scores
LAMBEGO_Similarity.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/scores/TorsionBin.hh
11
/// @brief scores a fragment based on scores for a probability over torsion bins.
12
/// @author James Thompson
13
14
#ifndef INCLUDED_protocols_frag_picker_scores_LAMBEGO_Similarity_hh
15
#define INCLUDED_protocols_frag_picker_scores_LAMBEGO_Similarity_hh
16
17
// type headers
18
#include <
core/types.hh
>
19
20
#include <
protocols/frag_picker/VallChunk.fwd.hh
>
21
#include <
protocols/frag_picker/scores/CachingScoringMethod.hh
>
22
#include <utility/vector1_bool.hh>
23
#include <iostream>
24
25
#include <utility/vector1.hh>
26
27
28
29
30
namespace
protocols {
31
namespace
frag_picker {
32
namespace
scores {
33
34
typedef
utility::vector1< utility::vector1 < Real >
>
Matrix
;
35
36
/// @brief scores a fragment by torsion bin similarity
37
class
LAMBEGO_Similarity
:
public
CachingScoringMethod
{
38
public
:
39
40
LAMBEGO_Similarity
(
41
Size
priority,
42
Real
lowest_acceptable_value,
43
bool
use_lowest,
44
utility::vector1
<
utility::vector1< core::Real >
> query_bin_probs,
45
Size
sequence_length,
46
Size
longest_vall_chunk
47
) :
48
CachingScoringMethod
(
49
priority, lowest_acceptable_value, use_lowest,
50
"LAMBEGO"
51
),
52
query_len_
( sequence_length ),
53
query_bin_probs_
( query_bin_probs )
54
{
55
for
(
Size
i = 1; i <=
query_len_
; ++i ) {
56
utility::vector1< Real >
row(longest_vall_chunk);
57
scores_
.push_back(row);
58
}
59
}
60
61
void
do_caching
(
VallChunkOP
);
62
63
void
clean_up
() {};
64
65
/// @brief Computes the score
66
virtual
bool
cached_score
(
FragmentCandidateOP
,
FragmentScoreMapOP
);
67
68
private
:
69
char
torsion2big_bin_
(
70
core::Real
const
phi
,
71
core::Real
const
psi
,
72
core::Real
const
omega
,
73
char
const
ss
74
)
const
;
75
76
Size
bin_index_
(
char
const
bin_name )
const
;
77
78
protected
:
79
Matrix
scores_
;
80
81
private
:
82
std::string
name_
;
83
Size
query_len_
;
84
utility::vector1< utility::vector1< core::Real >
>
query_bin_probs_
;
85
std::string
cached_scores_id_
;
86
};
// LAMBEGO_Similarity
87
88
/// @brief Maker class that produces a new TorsionBin object
89
class
MakeLAMBEGO_Similarity
:
public
MakeFragmentScoringMethod
{
90
public
:
91
92
MakeLAMBEGO_Similarity
() :
93
MakeFragmentScoringMethod
(
"LAMBEGO_Similarity"
)
94
{}
95
96
FragmentScoringMethodOP
make
(
97
Size
priority,
98
Real
lowest_acceptable_value,
99
bool
use_lowest,
100
FragmentPickerOP
picker,
101
std::string
/* prediction_id */
102
);
103
};
104
105
}
// scores
106
}
// frag_picker
107
}
// protocols
108
109
#endif
/* INCLUDED_protocols_frag_picker_scores_TorsionBin_HH */
Generated on Sat Jun 1 2013 11:53:01 for Rosetta 3.5 by
1.8.4