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
design_opt
GreedyOptMutationMover.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
/// @file protocols/design_opt/GreedyOptMutationMover.hh
11
/// @author Chris King (chrisk1@uw.edu)
12
13
#ifndef INCLUDED_protocols_design_opt_GreedyOptMutationMover_hh
14
#define INCLUDED_protocols_design_opt_GreedyOptMutationMover_hh
15
#include <
protocols/design_opt/GreedyOptMutationMover.fwd.hh
>
16
#include <
protocols/simple_filters/DeltaFilter.fwd.hh
>
17
#include <
core/types.hh
>
18
#include <
core/pose/Pose.hh
>
19
#include <utility/tag/Tag.fwd.hh>
20
#include <
protocols/filters/Filter.fwd.hh
>
21
#include <
protocols/moves/Mover.hh
>
22
#include <
core/pack/task/TaskFactory.fwd.hh
>
23
#include <
core/pack/task/PackerTask.fwd.hh
>
24
#include <
protocols/moves/DataMap.fwd.hh
>
25
#include <
core/scoring/ScoreFunction.fwd.hh
>
26
27
#include <utility/vector1.hh>
28
29
#include <
protocols/filters/Filter.hh
>
30
31
namespace
protocols {
32
namespace
design_opt{
33
34
class
GreedyOptMutationMover
:
public
protocols::moves::Mover
35
{
36
public
:
37
typedef
core::pose::Pose
Pose
;
38
public
:
39
GreedyOptMutationMover
();
40
GreedyOptMutationMover
(
41
core::pack::task::TaskFactoryOP
task_factory
,
42
core::scoring::ScoreFunctionOP
scorefxn
,
43
protocols::moves::MoverOP
relax_mover
,
44
utility::vector1< protocols::filters::FilterOP >
filters
,
45
utility::vector1< std::string >
sample_types
,
46
utility::vector1< core::Real >
filter_deltas
,
47
bool
dump_pdb
=
false
,
48
bool
dump_table
=
false
,
49
bool
parallel
=
false
,
50
bool
stop_before_condition
=
false
,
51
bool
skip_best_check
=
false
,
52
bool
rtmin
=
false
,
53
bool
shuffle_order
=
false
,
54
protocols::filters::FilterOP
stopping_condition
=
protocols::filters::FilterOP
( NULL )
55
);
56
57
bool
pose_coords_are_same
(
core::pose::Pose
const
& pose1,
core::pose::Pose
const
& pose2 );
58
void
filter_seqpos_pareto_opt_ptmuts
();
59
void
clear_cached_data
();
60
void
calc_pfront_poses_filter_ranks
();
61
void
dump_scoring_table
(
std::string
filename
,
core::pose::Pose
const
& ref_pose )
const
;
62
void
apply
(
Pose
& pose );
63
protocols::moves::MoverOP
clone
()
const
;
64
virtual
std::string
get_name
()
const
;
65
protocols::moves::MoverOP
fresh_instance
()
const
{
return
protocols::moves::MoverOP
(
new
GreedyOptMutationMover
); }
66
67
void
parse_my_tag
(
utility::tag::TagPtr
const
tag,
protocols::moves::DataMap
&,
protocols::filters::Filters_map
const
&,
protocols::moves::Movers_map
const
&,
core::pose::Pose
const
& );
68
void
add_filter
(
69
protocols::filters::FilterOP
,
70
std::string
const
sample_type,
71
core::Real
filter_delta
72
);
73
virtual
~GreedyOptMutationMover
();
74
core::pack::task::TaskFactoryOP
task_factory
()
const
;
75
void
task_factory
(
core::pack::task::TaskFactoryOP
task_factory );
76
core::scoring::ScoreFunctionOP
scorefxn
()
const
;
77
void
scorefxn
(
core::scoring::ScoreFunctionOP
scorefxn );
78
utility::vector1< protocols::filters::FilterOP >
filters
()
const
;
79
void
filters
(
utility::vector1< protocols::filters::FilterOP >
filters );
80
protocols::moves::MoverOP
relax_mover
()
const
;
81
void
relax_mover
(
protocols::moves::MoverOP
relax_mover );
82
bool
dump_pdb
()
const
;
83
void
dump_pdb
(
bool
const
dump_pdb
);
84
bool
dump_table
()
const
;
85
void
dump_table
(
bool
const
dump_table
);
86
bool
parallel
()
const
;
87
void
parallel
(
bool
const
parallel
);
88
utility::vector1< std::string >
sample_types
()
const
;
89
void
sample_types
(
utility::vector1< std::string >
const
sample_types );
90
utility::vector1< core::Real >
filter_deltas
()
const
;
91
void
filter_deltas
(
utility::vector1< core::Real >
const
filter_deltas );
92
void
stopping_condition
(
protocols::filters::FilterOP
f ){
stopping_condition_
= f; }
93
protocols::filters::FilterOP
stopping_condition
()
const
{
return
stopping_condition_
; }
94
bool
stop_before_condition
()
const
;
95
void
stop_before_condition
(
bool
const
stop_before_condition
);
96
bool
skip_best_check
()
const
;
97
void
skip_best_check
(
bool
const
skip_best_check
);
98
utility::vector1< protocols::simple_filters::DeltaFilterOP >
delta_filters
()
const
;
99
void
delta_filters
(
utility::vector1< protocols::simple_filters::DeltaFilterOP >
const
d );
100
bool
rtmin
()
const
;
101
void
rtmin
(
bool
const
b
);
102
bool
shuffle_order
()
const
;
103
void
shuffle_order
(
bool
const
b
);
104
105
private
:
106
core::pack::task::TaskFactoryOP
task_factory_
;
107
core::scoring::ScoreFunctionOP
scorefxn_
;
108
utility::vector1< protocols::filters::FilterOP >
filters_
;
109
protocols::moves::MoverOP
relax_mover_
;
110
utility::vector1< std::string >
sample_types_
;
111
bool
dump_pdb_
;
112
bool
dump_table_
;
113
bool
parallel_
;
114
protocols::filters::FilterOP
stopping_condition_
;
// dflt NULL ; if defined, stops greedy optimization when the filter's apply evaluates to true;
115
utility::vector1
<
std::pair
<
core::Size
,
utility::vector1
<
116
std::pair< core::chemical::AA, utility::vector1< core::Real > > > > >
seqpos_aa_vals_vec_
;
117
utility::vector1< core::Real >
filter_deltas_
;
118
core::pose::Pose
ref_pose_
;
119
utility::vector1< core::pose::Pose >
pfront_poses_
;
120
utility::vector1< utility::vector1< core::Real >
>
pfront_poses_filter_vals_
;
121
utility::vector1< utility::vector1< core::Size >
>
pfront_poses_filter_ranks_
;
122
core::Size
nstruct_iter_
;
123
bool
stop_before_condition_
;
124
bool
skip_best_check_
;
125
utility::vector1<protocols::simple_filters::DeltaFilterOP>
reset_delta_filters_
;
126
bool
rtmin_
;
//dflt false; should we rtmin after packing?
127
core::Real
design_shell_
;
//dflt -1 to only allow pointmutations, higher allows suroundings to be designed as well
128
core::Real
repack_shell_
;
129
bool
shuffle_order_
;
//randomize the order that mutations are attempted?
130
};
131
132
133
}
// design_opt
134
}
// protocols
135
136
137
#endif
/*INCLUDED_protocols_design_opt_GreedyOptMutationMover_HH*/
Generated on Sat Jun 1 2013 11:46:08 for Rosetta 3.5 by
1.8.4