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
core
io
ddg
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
14
#include <
core/io/ddg/PositionDdGInfo.fwd.hh
>
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
>
24
#include <
core/scoring/ScoreFunction.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...
42
class
PositionDdGInfo
:
public
utility::pointer::ReferenceCount
{
43
44
public
:
45
46
PositionDdGInfo
(
47
core::Size
seqpos,
48
core::chemical::AA
wt_aa
49
);
50
51
virtual
~
PositionDdGInfo
();
52
53
void
54
add_mutation_ddG(
55
core::chemical::AA
aa,
56
core::Real
ddG
57
);
58
59
core::Size
60
seqpos
()
const
{
61
return
seqpos_; }
62
63
core::chemical::AA
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
:
73
core::Size
seqpos_
;
74
core::chemical::AA
wt_aa_
;
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 >
83
read_ddg_predictions_file
(
std::string
filename
);
84
85
86
}
//namespace ddG
87
}
//namespace io
88
}
//namespace core
89
90
#endif
Generated on Sat Jun 1 2013 11:32:54 for Rosetta 3.5 by
1.8.4