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
rna
RNA_TorsionEnergy.cc
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/methods/RNA_TorsionEnergy.cc
11
/// @brief RNA_Torsion energy method class implementation
12
/// @author Rhiju Das
13
14
// Unit Headers
15
#include <
core/scoring/rna/RNA_TorsionEnergy.hh
>
16
#include <
core/scoring/rna/RNA_TorsionEnergyCreator.hh
>
17
18
// Package Headers
19
#include <
core/scoring/rna/RNA_TorsionPotential.hh
>
20
#include <
core/scoring/ScoringManager.hh
>
21
22
// Project headers
23
24
// Utility headers
25
// AUTO-REMOVED #include <numeric/conversions.hh>
26
27
#include <
core/scoring/EnergyMap.hh
>
28
#include <utility/vector1.hh>
29
30
31
// C++
32
33
34
namespace
core {
35
namespace
scoring {
36
namespace
rna {
37
38
39
/// @details This must return a fresh instance of the RNA_TorsionEnergy class,
40
/// never an instance already in use
41
methods::EnergyMethodOP
42
RNA_TorsionEnergyCreator::create_energy_method
(
43
methods::EnergyMethodOptions
const
&
44
)
const
{
45
return
new
RNA_TorsionEnergy
;
46
}
47
48
ScoreTypes
49
RNA_TorsionEnergyCreator::score_types_for_method
()
const
{
50
ScoreTypes
sts;
51
sts.push_back(
rna_torsion
);
52
return
sts;
53
}
54
55
56
/// ctor
57
RNA_TorsionEnergy::RNA_TorsionEnergy
() :
58
parent
( new
RNA_TorsionEnergyCreator
),
59
rna_torsion_potential_(
ScoringManager
::get_instance()->get_RNA_TorsionPotential() )
60
{}
61
62
/// clone
63
methods::EnergyMethodOP
64
RNA_TorsionEnergy::clone
()
const
65
{
66
return
new
RNA_TorsionEnergy
;
67
}
68
69
70
///////////////////////////////////////////////////////////////////////////////
71
void
72
RNA_TorsionEnergy::residue_pair_energy
(
73
conformation::Residue
const
& rsd1,
74
conformation::Residue
const
& rsd2,
75
pose::Pose
const
& pose,
76
ScoreFunction
const
&,
77
EnergyMap
& emap )
const
{
78
79
EnergyMap
emap_temp;
80
emap[
rna_torsion
] +=
rna_torsion_potential_
.
residue_pair_energy
( rsd1, rsd2, pose );
81
82
}
83
84
85
///////////////////////////////////////////////////////////////////////////////
86
void
87
RNA_TorsionEnergy::eval_intrares_energy
(
88
conformation::Residue
const
& rsd,
89
pose::Pose
const
& pose,
90
ScoreFunction
const
&,
91
EnergyMap
& emap )
const
{
92
93
emap[
rna_torsion
] +=
rna_torsion_potential_
.
eval_intrares_energy
( rsd, pose );
94
// emap[ rna_sugar_close ] += rna_torsion_potential_->eval_sugar_close_energy( rsd1, rsd2, pose );
95
96
97
}
98
99
100
101
///////////////////////////////////////////////////////////////////////////////
102
void
103
RNA_TorsionEnergy::eval_atom_derivative
(
104
id::AtomID
const
&
id
,
105
pose::Pose
const
& pose,
106
kinematics::DomainMap
const
&,
// domain_map,
107
ScoreFunction
const
&,
108
EnergyMap
const
& weights,
109
Vector
& F1,
110
Vector
& F2
111
)
const
112
{
113
114
rna_torsion_potential_
.
eval_atom_derivative
(
id
, pose, weights, F1, F2 );
115
116
// Hey, maybe RNA sugar close potential should be a DIFFERENT energy function now.
117
// rna_torsion_potential_->eval_atom_derivative_sugar( id, pose, sfxn, weights, F1, F2 );
118
119
}
120
121
122
void
RNA_TorsionEnergy::indicate_required_context_graphs
(
utility::vector1< bool >
&
/*context_graphs_required */
)
const
{}
123
124
/// @brief RNA_PairwiseLowResolutionEnergy distance cutoff
125
Distance
126
RNA_TorsionEnergy::atomic_interaction_cutoff
()
const
127
{
128
return
0.0;
/// Uh, I don't know.
129
}
130
131
core::Size
132
RNA_TorsionEnergy::version
()
const
133
{
134
return
2;
// A new torsion potential (integration from Das lab branch -- Aug 2011)
135
}
136
137
138
139
}
// rna
140
}
// scoring
141
}
// core
142
Generated on Sat Jun 1 2013 11:40:01 for Rosetta 3.5 by
1.8.4