Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PositionDdGInfo.hh
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 #ifndef INCLUDED_core_io_ddg_PositionDdGInfo_hh
11 #define INCLUDED_core_io_ddg_PositionDdGInfo_hh
12 
13 // Unit header
15 
16 // Utility headers
17 #include <utility/pointer/ReferenceCount.hh>
18 
19 #include <fstream>
20 
21 #include <core/types.hh>
22 #include <core/chemical/AA.hh>
23 #include <core/pose/Pose.fwd.hh>
25 #include <utility/vector1.hh>
26 #include <map>
27 
28 
29 namespace core{
30 namespace io {
31 namespace PositionDdGInfo{
32 
33  using namespace core;
34  using namespace scoring;
35 
36  // the following functions added by flo may '11 to read in ddg prediction output files
37  // so that this info can be used in other protocols
38 
39  /// @brief small helper class that stores the ddGs for mutations
40  /// at a given position. camel case gets weird when trying to write
41  /// words containing ddG...
43 
44  public:
45 
47  core::Size seqpos,
48  core::chemical::AA wt_aa
49  );
50 
51  virtual ~PositionDdGInfo();
52 
53  void
54  add_mutation_ddG(
56  core::Real ddG
57  );
58 
60  seqpos() const {
61  return seqpos_; }
62 
64  wt_aa() const {
65  return wt_aa_; }
66 
67  std::map< core::chemical::AA, core::Real > const &
68  mutation_ddGs() const {
69  return mutation_ddGs_; }
70 
71 
72  private:
75  std::map< core::chemical::AA, core::Real > mutation_ddGs_;
76 
77  };
78 
79 
80  /// @brief function that reads in a ddg predictions out file
81  /// and returns the info in it as a map of PositionDdGInfo
82  const std::map< core::Size, PositionDdGInfoOP >
84 
85 
86 }//namespace ddG
87 }//namespace io
88 } //namespace core
89 
90 #endif