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
ProfileScoreSubMatrix.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/ProfileScoreSubMatrix.hh
11
/// @brief scores a fragment by substitution matrix (e.g. Blosum62) profile score
12
/// @author Dan Kulp (dwkulp@gmail.com), based on code from Dominik Gront (dgront@chem.uw.edu.pl)
13
14
#ifndef INCLUDED_protocols_frag_picker_scores_ProfileScoreSubMatrix_HH
15
#define INCLUDED_protocols_frag_picker_scores_ProfileScoreSubMatrix_HH
16
17
// type headers
18
#include <
core/types.hh
>
19
20
21
// package headers
22
#include <
protocols/frag_picker/scores/CachingScoringMethod.hh
>
23
#include <
protocols/frag_picker/scores/FragmentScoreMap.fwd.hh
>
24
25
#include <utility/vector1.hh>
26
27
28
29
namespace
protocols {
30
namespace
frag_picker {
31
namespace
scores {
32
33
typedef
utility::vector1<utility::vector1<Real>
>
Matrix
;
34
35
/// @brief a fragment candidate
36
class
ProfileScoreSubMatrix
:
public
CachingScoringMethod
{
37
public
:
38
39
ProfileScoreSubMatrix
(
Size
priority,
Real
lowest_acceptable_value,
bool
use_lowest,
std::string
sequence,
Size
longest_vall_chunk,
std::string
subMatrixFile);
40
~ProfileScoreSubMatrix
();
41
42
void
do_caching
(
VallChunkOP
);
43
void
clean_up
() {
44
}
45
bool
score
(
FragmentCandidateOP
,
FragmentScoreMapOP
);
46
bool
cached_score
(
FragmentCandidateOP
,
FragmentScoreMapOP
);
47
// Undefinede, commenting out to fix PyRosetta build bool describe_score(FragmentCandidateOP, FragmentScoreMapOP, std::ostream&);
48
protected
:
49
Matrix
scores_
;
50
51
private
:
52
std::string
sequence_
;
53
std::string
subMatrixFile_
;
54
55
utility::vector1< utility::vector1< Real >
>
sub_matrix_
;
56
std::string
cached_scores_id_
;
57
void
clear
();
58
};
59
60
class
MakeProfileScoreSubMatrix
:
public
MakeFragmentScoringMethod
{
61
public
:
62
63
MakeProfileScoreSubMatrix
() :
64
MakeFragmentScoringMethod
(
"ProfileScoreSubMatrix"
) {
65
}
66
67
FragmentScoringMethodOP
make
(
Size
,
Real
,
bool
,
FragmentPickerOP
,
std::string
);
68
};
69
70
}
// scores
71
}
// frag_picker
72
}
// protocols
73
74
75
#endif
/* INCLUDED_protocols_frag_picker_scores_ProfileScoreSubMatrix_HH */
Generated on Sat Jun 1 2013 11:53:04 for Rosetta 3.5 by
1.8.4