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
COFilter.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 COFilter.cc
11
/// @brief runs reject or accept filters on pose
12
/// @detailed
13
/// Contains currently: COFilter
14
///
15
///
16
/// @author Robert Vernon
17
18
// Unit Headers
19
#include <
protocols/simple_filters/COFilter.hh
>
20
21
// Package Headers
22
23
// Project Headers
24
#include <
core/pose/Pose.hh
>
25
#include <
core/types.hh
>
26
// AUTO-REMOVED #include <core/scoring/ScoreFunction.hh>
27
#include <
core/scoring/ScoreFunction.fwd.hh
>
28
#include <
core/scoring/methods/ContactOrderEnergy.hh
>
29
30
// ObjexxFCL Headers
31
32
// Utility headers
33
#include <basic/Tracer.hh>
34
35
#include <utility/vector1.hh>
36
37
38
39
//// C++ headers
40
static
basic::Tracer
tr
(
"protocols.filters.COFilter"
);
41
42
namespace
protocols {
43
namespace
simple_filters {
44
45
bool
COFilter::apply
(
core::pose::Pose
const
& pose )
const
{
46
47
using
core::Real
;
48
using
core::Size
;
49
50
if
( !
AbinitioBaseFilter::apply
( pose ) )
return
false
;
51
if
(
sstype_
==
"fail"
)
return
true
;
52
53
54
core::Real
co_cutoff = 0.0;
55
56
if
(
sstype_
==
"ab"
) {
57
co_cutoff = ( 0.137f * pose.
total_residue
() ) + 3.25f;
58
}
else
if
(
sstype_
==
"b"
) {
59
co_cutoff = ( 0.145f * pose.
total_residue
() ) + 7.50f;
60
}
else
{
61
return
true
;
62
}
63
64
Real
co_score = 0.0;
65
66
core::scoring::methods::ContactOrderEnergy
co_energy;
67
//core::scoring::EnergyMap emap;
68
//core::scoring::ScoreFunction sfxn;
69
70
//co_energy.finalize_total_energy( pose, sfxn, emap );
71
co_score = co_energy.
calculate_contact_order
( pose );
72
73
if
( co_score < co_cutoff ) {
74
return
false
;
75
}
76
77
return
true
;
78
}
// apply_filter
79
80
}
// filters
81
}
// protocols
Generated on Sat Jun 1 2013 12:13:06 for Rosetta 3.5 by
1.8.4