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
NonResidueTypeConstraint.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_non_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_NonResidueTypeConstraint_HH
18
#define INCLUDED_core_scoring_constraints_NonResidueTypeConstraint_HH
19
20
#include <
core/scoring/constraints/NonResidueTypeConstraint.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
NonResidueTypeConstraint
:
public
Constraint
38
{
39
public
:
40
typedef
core::Real
Real
;
41
public
:
42
43
NonResidueTypeConstraint
(
44
pose::Pose
const
& pose,
45
Size
seqpos,
46
Real
non_native_residue_bonus
47
);
48
49
50
NonResidueTypeConstraint
(
51
pose::Pose
const
& pose,
52
Size
seqpos,
53
std::string
AAname
,
54
Real
favor_non_native_bonus
55
);
56
57
NonResidueTypeConstraint
(
58
Size
seqpos,
59
std::string
aa_in,
60
std::string
name3_in,
61
core::Real
bonus_in
62
);
63
64
virtual
~NonResidueTypeConstraint
();
65
66
virtual
67
Size
68
natoms
()
const
{
return
0; }
69
70
virtual
71
AtomID
const
&
72
atom
(
Size
const
)
const
{
73
utility_exit_with_message(
"NonResidueTypeConstraint is not atom-based!."
);
74
return
core::id::BOGUS_ATOM_ID
;
// required for compilation on Windows
75
}
76
77
virtual
78
utility::vector1< core::Size >
79
residues
()
const
;
80
81
void
82
show
( std::ostream & out )
const
;
83
84
virtual
85
ConstraintOP
86
remap_resid
(
core::id::SequenceMapping
const
&seqmap )
const
;
87
88
virtual
89
void
90
score
(
XYZ_Func
const
& xyz_func,
EnergyMap
const
& weights,
EnergyMap
& emap )
const
;
91
92
virtual
93
void
94
fill_f1_f2
(
95
AtomID
const
&
atom
,
96
XYZ_Func
const
&
xyz
,
97
Vector
& F1,
98
Vector
& F2,
99
EnergyMap
const
& weights
100
)
const
;
101
102
virtual
ConstraintOP
103
clone
()
const
;
104
private
:
105
Size
seqpos_
;
106
std::string
AAname
;
107
std::string
rsd_type_name3_
;
108
core::Real
favor_non_native_bonus_
;
109
};
// RotamerConstraint
110
111
112
}
// namespace constraints
113
}
// namespace scoring
114
}
// namespace core
115
116
#endif // INCLUDED_core_scoring_constraints_NonResidueTypeConstraint_HH
Generated on Sat Jun 1 2013 11:35:42 for Rosetta 3.5 by
1.8.4