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
simple_filters
StructuralSimilarityEvaluator.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 protocols/simple_filters/StructuralSimilarityEvaluator.cc
11
/// @brief
12
/// @author James Thompson
13
14
#include <
core/types.hh
>
15
// AUTO-REMOVED #include <core/pose/util.hh>
16
#include <
core/pose/Pose.hh
>
17
18
#include <
core/scoring/rms_util.hh
>
19
20
#include <utility/vector1.hh>
21
#include <numeric/util.hh>
22
23
#include <
protocols/simple_filters/StructuralSimilarityEvaluator.hh
>
24
25
#include <string>
26
27
//Auto Headers
28
#include <
core/conformation/Residue.hh
>
29
namespace
protocols {
30
namespace
simple_filters {
31
32
StructuralSimilarityEvaluator::StructuralSimilarityEvaluator
(
33
utility::vector1< core::pose::Pose >
const
& poses,
34
std::string
const
& atom_name,
35
std::string
const
& tag
36
) :
37
evaluation::SingleValuePoseEvaluator< core::
Real
>(tag),
38
atom_name_(atom_name),
39
poses_(poses)
40
{}
41
42
StructuralSimilarityEvaluator::~StructuralSimilarityEvaluator
() {}
43
44
void
StructuralSimilarityEvaluator::apply
(
45
core::pose::Pose
& pose,
46
std::string
/*tag*/
,
47
core::io::silent::SilentStruct
& ss
48
)
const
{
49
using
core::Size
;
50
using
core::Real
;
51
using
core::pose::Pose
;
52
using
utility::vector1
;
53
54
typedef
vector1< Pose >::const_iterator
iter;
55
56
vector1< Real >
gdtmms(
poses_
.size(), 0.0 );;
57
for
(
Size
ii = 1; ii <=
poses_
.size(); ++ii ) {
58
gdtmms[ii] =
core::scoring::CA_gdtmm
( pose,
poses_
[ii] );
59
}
60
61
Real
const
median_gdtmm( numeric::median( gdtmms ) );
62
ss.
add_energy
(
"median_sim"
, median_gdtmm );
63
}
64
65
}
// simple_filter
66
}
// protocols
Generated on Sat Jun 1 2013 12:14:46 for Rosetta 3.5 by
1.8.4