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
protein_interface_design
filters
StubScoreLoopsFilter.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 sw=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
/// @author Sarel Fleishman (sarelf@uw.edu)
11
#include <
protocols/protein_interface_design/filters/StubScoreLoopsFilter.hh
>
12
#include <
protocols/protein_interface_design/filters/StubScoreLoopsFilterCreator.hh
>
13
#define foreach BOOST_FOREACH
14
#include <
core/pose/Pose.hh
>
15
#include <
protocols/hotspot_hashing/HotspotStub.hh
>
16
#include <
protocols/hotspot_hashing/HotspotStubSet.hh
>
17
#include <utility/tag/Tag.hh>
18
#include <
protocols/filters/Filter.hh
>
19
#include <
protocols/moves/Mover.hh
>
20
#include <
protocols/moves/DataMap.hh
>
21
#include <basic/Tracer.hh>
22
#include <
core/types.hh
>
23
24
#include <
protocols/protein_interface_design/movers/SetupHotspotConstraintsLoopsMover.hh
>
25
26
#include <
core/kinematics/Jump.hh
>
27
#include <
core/scoring/constraints/Constraint.hh
>
28
#include <
protocols/jobdist/Jobs.hh
>
29
#include <utility/vector0.hh>
30
#include <utility/vector1.hh>
31
32
//Auto Headers
33
#include <
protocols/simple_filters/ScoreTypeFilter.hh
>
34
35
36
37
namespace
protocols {
38
namespace
protein_interface_design{
39
namespace
filters {
40
41
static
basic::Tracer
tr
(
"protocols.protein_interface_design.filters.StubScoreLoopsFilter"
);
42
43
///@brief default ctor
44
StubScoreLoopsFilter::StubScoreLoopsFilter
() :
45
cb_force_( 0.5 )
46
{
47
set_score_type
(
core::scoring::backbone_stub_constraint
);
48
}
49
50
StubScoreLoopsFilter::~StubScoreLoopsFilter
() {}
51
52
void
53
StubScoreLoopsFilter::parse_my_tag
(
utility::tag::TagPtr
const
tag,
54
protocols::moves::DataMap
&,
55
protocols::filters::Filters_map
const
&,
56
protocols::moves::Movers_map
const
&,
57
core::pose::Pose
const
& pose )
58
{
59
tr.Info <<
"StubScoreLoopsFilter"
<<std::endl;
60
cb_force_
= tag->getOption<
core::Real
>(
"cb_force"
, 0.5 );
61
runtime_assert(
cb_force_
> 0.00001 );
62
stub_set_
=
new
hotspot_hashing::HotspotStubSet
;
63
stub_set_
->read_data( tag->getOption<
std::string
>(
"stubfile"
) );
64
protein_interface_design::movers::SetupHotspotConstraintsLoopsMover
hspmover(
stub_set_
);
65
resfile_
= tag->getOption<
std::string
>(
"resfile"
,
"NONE"
);
66
if
(
resfile_
!=
"NONE"
) hspmover.
set_resfile
(
resfile_
);
67
core::scoring::constraints::ConstraintCOPs
constraints;
68
core::Size
ncst = hspmover.
generate_csts
( pose, constraints );
69
set_constraints
( constraints );
70
tr.Info <<
"Filter with "
<< ncst <<
" hotspots in "
<< constraints.size() <<
" constraints."
<< std::endl;
71
}
72
73
protocols::filters::FilterOP
74
StubScoreLoopsFilter::fresh_instance
()
const
{
75
return
new
StubScoreLoopsFilter
();
76
}
77
78
79
protocols::filters::FilterOP
80
StubScoreLoopsFilter::clone
()
const
{
81
return
new
StubScoreLoopsFilter
( *
this
);
82
}
83
84
protocols::filters::FilterOP
85
StubScoreLoopsFilterCreator::create_filter
()
const
{
return
new
StubScoreLoopsFilter
; }
86
87
std::string
88
StubScoreLoopsFilterCreator::keyname
()
const
{
return
"StubScoreLoops"
; }
89
90
91
}
// filters
92
}
// protein_interface_design
93
}
// protocols
Generated on Sat Jun 1 2013 12:04:04 for Rosetta 3.5 by
1.8.4