Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
15 
16 // Project Headers
19 
20 // Platform Headers
21 #include <basic/Tracer.hh>
24 #include <core/pose/Pose.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;
36 using core::pose::Pose;
40 using basic::Tracer;
41 
42 namespace protocols {
43 namespace rotamer_recovery {
44 
45 static Tracer TR("protocol.moves.RRProtocolPackRotamers");
46 
48 
50  RRProtocol()
51 {}
52 
54 
55 string
57  return "RRProtocolPackRotamers";
58 }
59 
60 string
62  return "";
63 }
64 
65 
66 /// @details apply PackRotamers and measure rotamer recovery for each residue
67 void
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;
83  comparer, reporter,
84  pose, working_pose,
85  pose.residue(ii), working_pose.residue(ii) );
86  }
87 }
88 
89 } // rotamer_recovery
90 } // protocols