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
abinitio
ResolutionSwitcher.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 relax_initialization_protocols
11
/// @brief initialization protocols for relax
12
/// @detailed
13
/// MultiResolutionProtocol
14
/// if your protocol wants to switch between full-atom and centroid representation derive it from this one
15
/// functionality to copy side-chains for fixed residues from an initial fa-pose to an post-centroid fa-pose is provided
16
///
17
///
18
/// @author Oliver Lange
19
///
20
21
22
#ifndef INCLUDED_protocols_abinitio_ResolutionSwitcher_hh
23
#define INCLUDED_protocols_abinitio_ResolutionSwitcher_hh
24
25
// Unit Headers
26
#include <
protocols/abinitio/ResolutionSwitcher.fwd.hh
>
27
28
// Package Headers
29
#include <
protocols/moves/Mover.hh
>
30
31
// Project Headers
32
#include <
core/pose/Pose.hh
>
33
#include <
core/scoring/ScoreFunction.hh
>
34
35
#include <utility/vector1.hh>
36
37
38
namespace
protocols {
39
namespace
abinitio {
40
41
class
ResolutionSwitcher
:
public
moves::Mover
{
42
public
:
43
ResolutionSwitcher
(
core::pose::Pose
const
&,
bool
fullatom
/*input pose*/
,
bool
start_centroid,
bool
apply_to_centroid );
44
~ResolutionSwitcher
() {};
45
46
//@brief if input was full-atom but we started (start_pose) from centroid we will copy side-chains
47
// repacks all residues that have been moved between start_pose and pose
48
virtual
void
apply
(
core::pose::Pose
& );
49
50
virtual
std::string
get_name
()
const
;
51
52
//@brief gives a starting pose ( with respect to setting in start_centroid )
53
core::pose::Pose
start_pose
()
const
;
54
55
core::pose::Pose
const
&
init_pose
()
const
{
56
return
init_pose_
;
57
}
58
59
core::pose::Pose
&
init_pose
() {
60
return
init_pose_
;
61
}
62
63
void
set_scorefxn
(
core::scoring::ScoreFunctionOP
scorefxn_fa ) {
64
scorefxn_fa_
= scorefxn_fa;
65
}
66
67
void
set_map_cst_from_centroid_to_fa
(
bool
const
setting ){
map_cst_from_centroid_to_fa_
= setting; }
68
69
70
private
:
71
///@brief true if apply() method is called on centroid pose
72
bool
apply_to_centroid_
;
73
74
75
///@brief init_pose ( before the sampling started ) -- used to steal sidechains if fullatom
76
core::pose::Pose
init_pose_
;
77
78
///@brief init_pose is full-atom
79
bool
init_fa_
;
80
81
///@brief true if we want the start_pose() to be centroid
82
bool
start_centroid_
;
83
84
///@brief full-atom scorefunction for repacking
85
core::scoring::ScoreFunctionOP
scorefxn_fa_
;
86
87
///@brief repack sidechains at moved positions and x positions to left and right
88
Size
repack_buffer_
;
89
90
bool
map_cst_from_centroid_to_fa_
;
91
92
};
93
94
}
95
}
96
97
#endif
98
Generated on Sat Jun 1 2013 11:41:49 for Rosetta 3.5 by
1.8.4