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
ProfileScore.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/ProfileScore.hh
11
/// @brief scores a fragment by an amino acid sequence identity
12
/// @author Dominik Gront (dgront@chem.uw.edu.pl)
13
14
#ifndef INCLUDED_protocols_frag_picker_scores_ProfileScore_hh
15
#define INCLUDED_protocols_frag_picker_scores_ProfileScore_hh
16
17
// type headers
18
#include <
core/types.hh
>
19
20
#include <
protocols/frag_picker/scores/ProfileScore.fwd.hh
>
21
22
// package headers
23
#include <
protocols/frag_picker/scores/CachingScoringMethod.hh
>
24
#include <
protocols/frag_picker/scores/FragmentScoreMap.fwd.hh
>
25
26
#include <
core/sequence/SequenceProfile.hh
>
27
#include <
core/sequence/ScoringScheme.hh
>
28
29
#include <utility/vector1.hh>
30
31
32
namespace
protocols {
33
namespace
frag_picker {
34
namespace
scores {
35
36
typedef
utility::vector1<utility::vector1<Real>
>
Matrix
;
37
38
/// @brief a fragment candidate
39
class
ProfileScore
:
public
CachingScoringMethod
{
40
public
:
41
42
ProfileScore
(
Size
priority,
Real
lowest_acceptable_value,
bool
use_lowest,
43
sequence::SequenceProfileOP
query_profile,
44
sequence::ScoringSchemeOP
profile_scoring,
Size
longest_vall_chunk) :
45
CachingScoringMethod
(priority, lowest_acceptable_value, use_lowest,
"ProfileScore"
) {
46
query_profile_
= query_profile;
47
profile_scoring_
= profile_scoring;
48
49
for
(
Size
i = 1; i <= query_profile->length(); ++i) {
50
utility::vector1<Real>
row(longest_vall_chunk);
51
scores_
.push_back(row);
52
}
53
}
54
55
~ProfileScore
();
56
57
void
do_caching
(
VallChunkOP
);
58
void
clean_up
() {
59
}
60
bool
cached_score
(
FragmentCandidateOP
,
FragmentScoreMapOP
);
61
bool
describe_score
(
FragmentCandidateOP
f,
FragmentScoreMapOP
empty_map,
62
std::ostream& out);
63
64
protected
:
65
Matrix
scores_
;
66
67
private
:
68
sequence::SequenceProfileOP
query_profile_
;
69
sequence::ScoringSchemeOP
profile_scoring_
;
70
std::string
cached_scores_id_
;
71
void
clear
();
72
};
73
74
class
MakeProfileScore
:
public
MakeFragmentScoringMethod
{
75
public
:
76
77
MakeProfileScore
() :
78
MakeFragmentScoringMethod
(
"ProfileScore"
) {
79
}
80
81
FragmentScoringMethodOP
make
(
Size
,
Real
,
bool
,
FragmentPickerOP
,
std::string
);
82
};
83
84
}
// scores
85
}
// frag_picker
86
}
// protocols
87
88
89
#endif
/* INCLUDED_protocols_frag_picker_scores_ProfileScore_HH */
Generated on Sat Jun 1 2013 11:53:03 for Rosetta 3.5 by
1.8.4