Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PackStatMover.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 PackStatMover.cc
11 ///
12 /// @brief
13 /// @author Monica Berrondo
14 
16 
18 
19 //#include <protocols/jobdist/standard_mains.hh>
20 
21 #include <core/pose/PDBInfo.hh>
22 
23 #include <basic/options/option.hh>
24 
25 // AUTO-REMOVED #include <core/pose/Pose.hh>
26 
27 #include <core/types.hh>
28 
29 #include <core/pose/Pose.hh>
30 #include <basic/Tracer.hh>
31 using basic::T;
32 
33 // option key includes
34 
35 #include <basic/options/keys/packstat.OptionKeys.gen.hh>
36 
37 #include <utility/vector1.hh>
38 
39 
40 //Auto using namespaces
41 namespace ObjexxFCL { namespace fmt { } } using namespace ObjexxFCL::fmt; // AUTO USING NS
42 //Auto using namespaces end
43 
44 
45 
46 using basic::Error;
47 using basic::Warning;
48 
49 static basic::Tracer TR("protocols.analysis.packstat");
50 using namespace core;
51 
52 namespace protocols {
53 namespace analysis {
54 
55 PackStatMover::PackStatMover() : moves::Mover() {
56  using namespace basic::options;
57  using namespace basic::options::OptionKeys;
58 
59  // bool verbose_ = verbose;
60  packstat_pdb_ = option[ OptionKeys::packstat::packstat_pdb ]();
61  include_water_ = option[ OptionKeys::packstat::include_water ]();
62  surface_accessibility_ = option[ OptionKeys::packstat::surface_accessibility ]();
63  residue_scores_ = option[ OptionKeys::packstat::residue_scores ]();
64  cavity_burial_probe_radius_ = option[ OptionKeys::packstat::cavity_burial_probe_radius ]();
65  oversample_ = option[ OptionKeys::packstat::oversample ]();
66 
67 }
68 
69 
70 void
72 {
73  using namespace core::scoring::packstat;
74  using namespace std;
75  using namespace core;
76  using namespace basic::options;
77  using namespace basic::options::OptionKeys;
78  using namespace ObjexxFCL::fmt;
79  using namespace numeric;
80  using namespace utility;
81 
82  std::string fname = pose.pdb_info()->name();
83 
84 
86 
87  core::Real packing_score = compute_packing_score( pd, oversample_ );
88 
89  TR << "packing score: " << fname << " " << packing_score;
90  if( include_water_ ) {
91  TR << " ( with waters? (pose?) )";
92  }
93  TR << std::endl;
94 
95  utility::vector1<core::Real> res_scores; // needed if output res scores or pdb
97  res_scores = compute_residue_packing_scores( pd, oversample_ );
98  }
99 
100  // if( packstat_pdb_ ) {
101  // output_packstat_pdb( fname, res_scores );
102  // }
103 
104  if( residue_scores_ ) {
105  for( int i = 1; i <= (int)res_scores.size(); ++i ) {
106  TR << "packing score: residue " << i << " " << res_scores[i] << std::endl;
107  }
108  }
109 
110 
111 }
112 
115  return "PackStatMover";
116 }
117 
118 } // analysis
119 } // protocols