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
protocols
toolbox
pose_metric_calculators
PiPiCalculator.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
/// @begin PiPiCalculator
11
///
12
/// @brief
13
/// How many pi-pi interactiosn are there? pi-stacking considered are T-stacking and offset.
14
///
15
/// @detailed
16
/// Not much detailed here. Iterate through the carbons of aromatic rings and compare that to
17
/// the distance of the aromatic hydrogens. Default distance is 3.2A.
18
/// Wait, you want to know how to use this? Well, within your protocol, you need to do the following:
19
/// First, create the calculator. To do this, see below:
20
/// core::pose::metrics::PoseMetricCalculatorOP pi_pi_calculator = new protocols::toolbox::pose_metric_calculators::SaltBridgeCalculator();
21
/// Then you must register this so that the pose understands it. See below:
22
/// core::pose::metrics::CalculatorFactory::Instance().register_calculator( "pi_pi_metric", pi_pi_calculator );
23
/// To actually get the metric, you have to print it. For example:
24
/// core::pose::Pose pose;
25
/// pose.print_metric("pi_pi_metric", "pi_pi")
26
/// Where pi_pi_metric is the name that it is registered under and "pi_pi" is the key, seen below.
27
///
28
///
29
///
30
/// @author
31
/// Steven Combs
32
///
33
/// @last_modified October 22 2010
34
/////////////////////////////////////////////////////////////////////////
35
36
#ifndef INCLUDED_protocols_toolbox_pose_metric_calculators_PiPiCalculator_hh
37
#define INCLUDED_protocols_toolbox_pose_metric_calculators_PiPiCalculator_hh
38
39
40
41
#include <
core/pose/metrics/PoseMetricCalculatorBase.hh
>
42
#include <
core/pose/Pose.fwd.hh
>
43
#include <
core/types.hh
>
44
#include <basic/MetricValue.fwd.hh>
45
46
#include <utility/vector1.hh>
47
48
49
50
namespace
protocols{
51
namespace
toolbox {
52
namespace
pose_metric_calculators {
53
54
class
PiPiCalculator
:
public
core::pose::metrics::StructureDependentCalculator
{
55
public
:
56
//default constructor where distance_cutoff is = to 3.2
57
PiPiCalculator
();
58
59
//constructor where you define what the distance cutoff is for the Hydrogen and Acceptor atoms
60
PiPiCalculator
(
core::Real
dist_cutoff);
61
62
core::pose::metrics::PoseMetricCalculatorOP
clone
()
const
{
63
return
new
PiPiCalculator
(
distance_cutoff_
); };
64
65
private
:
66
core::Real
distance_cutoff_
;
//distance cutoff between the Hydrogen and Acceptor atoms. Default is 3.2
67
core::Size
pi_pi_total_
;
68
69
protected
:
70
virtual
void
lookup
(
std::string
const
& key, basic::MetricValueBase * valptr )
const
;
71
virtual
std::string
print
(
std::string
const
& key )
const
;
72
virtual
void
recompute
(
core::pose::Pose
const
& this_pose );
73
74
};
75
76
77
78
79
}
80
}
81
}
82
83
84
85
86
87
#endif
Generated on Sat Jun 1 2013 12:22:26 for Rosetta 3.5 by
1.8.4