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
RPF_ScoreEvaluator.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 PoseEvaluator
11
/// @brief PoseEvaluator
12
/// @detailed
13
///
14
///
15
/// @author Oliver Lange
16
17
// Unit Headers
18
#include <
protocols/simple_filters/RPF_ScoreEvaluator.hh
>
19
//#include <basic/options/option.hh>
20
21
// Package Headers
22
#include <
protocols/noesy_assign/NoesyModule.hh
>
23
#include <
protocols/noesy_assign/util.hh
>
24
// Project Headers
25
#include <
core/pose/Pose.hh
>
26
27
// ObjexxFCL Headers
28
29
// Utility headers
30
//#include <basic/Tracer.hh>
31
//#include <utility/io/izstream.hh>
32
// AUTO-REMOVED #include <utility/io/ozstream.hh>
33
// AUTO-REMOVED #include <utility/io/util.hh>
34
//#include <utility/file/file_sys_util.hh>
35
//#include <numeric/random/random.hh>
36
37
// C++ headers
38
#include <cstdlib>
39
#include <string>
40
#include <vector>
41
#include <sys/stat.h>
42
#include <iostream>
43
// option key includes
44
45
//#include <basic/options/keys/out.OptionKeys.gen.hh>
46
47
//Auto Headers
48
49
50
51
// C++ headers
52
53
//static basic::Tracer tr("protocols\.simple_filter\.RPF_ScoreEvaluator");
54
55
//static numeric::random::RandomGenerator RG(5512489); // <- Magic number, do not change it!
56
57
namespace
protocols {
58
namespace
simple_filters {
59
60
using namespace
core;
61
using namespace
std;
62
using namespace
noesy_assign;
63
64
RPF_ScoreEvaluator::RPF_ScoreEvaluator
(
std::string
tag,
core::Real
dcut )
65
: evaluation::SingleValuePoseEvaluator<core::
Real
>( tag ),
66
crosspeaks_( NULL ),
67
dcut_( dcut )
68
{
69
70
71
}
72
73
bool
RPF_ScoreEvaluator::applicable
(
core::pose::Pose
const
& pose )
const
{
74
return
pose.
is_fullatom
();
75
}
76
77
core::Real
RPF_ScoreEvaluator::apply
(
core::pose::Pose
& pose )
const
{
78
if
( !
noesy_assign::NoesyModule::cmdline_options_activated
() )
return
-9999;
79
if
( !
crosspeaks_
) {
80
crosspeaks_
=
new
CrossPeakList
(
noesy_assign::NoesyModule
( pose.
sequence
() ).crosspeaks() );
81
crosspeaks_
->find_assignments();
82
}
83
84
//return protocols::noesy_assign::compute_RPF_score( *crosspeaks_, pose, dcut_ );
85
}
86
87
88
// core::Real RPF_ScoreEvaluator::apply( core::pose::Pose& pose_in ) const {
89
// pose::Pose pose( pose_in );
90
91
// runtime_assert( constraints_ );
92
// pose.constraint_set( constraints_ );
93
94
// ScoreFunction scfxn;
95
// scfxn.set_weight( atom_pair_constraint, 1.0 );
96
// return scfxn( pose );
97
98
// }
99
100
101
}
102
}
Generated on Sat Jun 1 2013 12:14:30 for Rosetta 3.5 by
1.8.4