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
rotamer_recovery
RRProtocolPackRotamers.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 src/protocols/rotamer_recovery/RRProtocolPackRotamers.cc
11
/// @author Matthew O'Meara (mattjomeara@gmail.com)
12
13
// Unit Headers
14
#include <
protocols/rotamer_recovery/RRProtocolPackRotamers.hh
>
15
16
// Project Headers
17
#include <
protocols/rotamer_recovery/RRComparer.hh
>
18
#include <
protocols/rotamer_recovery/RRReporter.hh
>
19
20
// Platform Headers
21
#include <basic/Tracer.hh>
22
#include <
core/pack/task/PackerTask.hh
>
23
#include <
core/pack/pack_rotamers.hh
>
24
#include <
core/pose/Pose.hh
>
25
#include <
core/scoring/ScoreFunctionFactory.hh
>
26
27
// C++ Headers
28
#include <string>
29
30
//Auto Headers
31
#include <utility/vector1.hh>
32
33
using
std::string
;
34
using
core::Size
;
35
using
core::pack::pack_rotamers
;
36
using
core::pose::Pose
;
37
using
core::scoring::ScoreFunction
;
38
using
core::scoring::getScoreFunction
;
39
using
core::pack::task::PackerTask
;
40
using
basic::Tracer;
41
42
namespace
protocols {
43
namespace
rotamer_recovery {
44
45
static
Tracer
TR
(
"protocol.moves.RRProtocolPackRotamers"
);
46
47
RRProtocolPackRotamers::RRProtocolPackRotamers
() {}
48
49
RRProtocolPackRotamers::RRProtocolPackRotamers
(
RRProtocolPackRotamers
const
& ) :
50
RRProtocol
()
51
{}
52
53
RRProtocolPackRotamers::~RRProtocolPackRotamers
() {}
54
55
string
56
RRProtocolPackRotamers::get_name
()
const
{
57
return
"RRProtocolPackRotamers"
;
58
}
59
60
string
61
RRProtocolPackRotamers::get_parameters
()
const
{
62
return
""
;
63
}
64
65
66
/// @details apply PackRotamers and measure rotamer recovery for each residue
67
void
68
RRProtocolPackRotamers::run
(
69
RRComparerOP
comparer,
70
RRReporterOP
reporter,
71
Pose
const
& pose,
72
ScoreFunction
const
& score_function,
73
PackerTask
const
& packer_task
74
) {
75
// Assume score_function.setup_for_scoring(pose) has already been called.
76
77
Pose
working_pose = pose;
// deep copy
78
pack_rotamers
(working_pose, score_function, &packer_task);
79
80
for
(
Size
ii = 1; ii <= pose.
total_residue
(); ++ii){
81
if
(!packer_task.
pack_residue
(ii))
continue
;
82
measure_rotamer_recovery
(
83
comparer, reporter,
84
pose, working_pose,
85
pose.
residue
(ii), working_pose.
residue
(ii) );
86
}
87
}
88
89
}
// rotamer_recovery
90
}
// protocols
Generated on Sat Jun 1 2013 12:10:19 for Rosetta 3.5 by
1.8.4