Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
15 
16 // Project Headers
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>
25 #include <core/pack/min_pack.hh>
26 #include <core/pose/Pose.hh>
27 // AUTO-REMOVED #include <core/scoring/ScoreFunction.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;
38 using core::pose::Pose;
42 using basic::Tracer;
43 
44 namespace protocols {
45 namespace rotamer_recovery {
46 
47 static Tracer TR("protocol.moves.RRProtocolMinPack");
48 
50 
52  RRProtocol()
53 {}
54 
56 
57 string
59  return "RRProtocolMinPack";
60 }
61 
62 string
64  return "";
65 }
66 
67 
68 /// @details apply MinPack and measure rotamer recovery for each residue
69 void
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;
85  comparer, reporter,
86  pose, working_pose,
87  pose.residue(ii), working_pose.residue(ii) );
88  }
89 }
90 
91 } // rotamer_recovery
92 } // protocols