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
core
scoring
constraints
ResidueTypeConstraint.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 core/scoring/constraints/ResidueConstraint.hh
11
///
12
/// @brief implements favor_native_residue constraints, assigning an energy bonus
13
/// to a residue if it matches the identity within the constraint object
14
/// @author Sarel Fleishman
15
16
17
#ifndef INCLUDED_core_scoring_constraints_ResidueTypeConstraint_hh
18
#define INCLUDED_core_scoring_constraints_ResidueTypeConstraint_hh
19
20
#include <
core/scoring/constraints/ResidueTypeConstraint.fwd.hh
>
21
#include <
core/scoring/constraints/Constraint.hh
>
22
23
// AUTO-REMOVED #include <core/pose/Pose.hh>
24
#include <
core/conformation/Conformation.fwd.hh
>
25
#include <
core/id/AtomID.hh
>
26
27
// AUTO-REMOVED #include <utility/vector1.hh>
28
29
#include <utility/vector1.hh>
30
31
32
namespace
core {
33
namespace
scoring {
34
namespace
constraints {
35
36
///@brief This class favors a particular residue identity at a particular position by reducing its res_type energy.
37
class
ResidueTypeConstraint
:
public
Constraint
38
{
39
public
:
40
typedef
core::Real
Real
;
41
public
:
42
ResidueTypeConstraint
();
43
44
ResidueTypeConstraint
(
45
pose::Pose
const
& pose,
46
Size
seqpos,
47
Real
native_residue_bonus
48
);
49
50
51
ResidueTypeConstraint
(
52
pose::Pose
const
& pose,
53
Size
seqpos,
54
std::string
AAname
,
55
Real
favor_native_bonus
56
);
57
58
ResidueTypeConstraint
(
59
Size
seqpos,
60
std::string
aa_in,
61
std::string
name3_in,
62
core::Real
bonus_in
63
);
64
65
virtual
~ResidueTypeConstraint
();
66
67
virtual
68
Size
69
natoms
()
const
{
return
0; }
70
71
virtual
72
AtomID
const
&
73
atom
(
Size
const
)
const
{
74
utility_exit_with_message(
"ResidueTypeConstraint is not atom-based!."
);
75
return
core::id::BOGUS_ATOM_ID
;
// required for compilation on Windows
76
}
77
78
virtual
79
utility::vector1< core::Size >
80
residues
()
const
;
81
82
void
83
show
( std::ostream & out )
const
;
84
85
virtual
86
ConstraintOP
87
remap_resid
(
core::id::SequenceMapping
const
&seqmap )
const
;
88
89
/// @brief possibility to compare constraint according to data
90
/// and not just pointers
91
bool
operator ==
(
Constraint
const
& other )
const
;
92
93
virtual
ConstraintOP
remapped_clone
(
94
pose::Pose
const
& src,
95
pose::Pose
const
& dest,
96
id::SequenceMappingCOP
map = NULL
97
)
const
;
98
99
virtual
100
void
101
score
(
XYZ_Func
const
& xyz_func,
EnergyMap
const
& weights,
EnergyMap
& emap )
const
;
102
103
virtual
104
void
105
fill_f1_f2
(
106
AtomID
const
&
atom
,
107
XYZ_Func
const
&
xyz
,
108
Vector
& F1,
109
Vector
& F2,
110
EnergyMap
const
& weights
111
)
const
;
112
113
virtual
ConstraintOP
114
clone
()
const
;
115
private
:
116
Size
seqpos_
;
117
std::string
AAname
;
118
std::string
rsd_type_name3_
;
119
core::Real
favor_native_bonus_
;
120
};
// RotamerConstraint
121
122
123
}
// namespace constraints
124
}
// namespace scoring
125
}
// namespace core
126
127
#endif // INCLUDED_core_scoring_constraints_ResidueTypeConstraint_HH
Generated on Sat Jun 1 2013 11:35:43 for Rosetta 3.5 by
1.8.4