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