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
movers
BuildAlaPose.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 protocols/protein_interface_design/movers/BuildAlaPose.cc
11
/// @brief
12
/// @author Sarel Fleishman (sarelf@u.washington.edu), Jacob Corn (jecorn@u.washington.edu)
13
14
// Unit headers
15
#include <
protocols/protein_interface_design/movers/BuildAlaPose.hh
>
16
#include <
protocols/protein_interface_design/movers/BuildAlaPoseCreator.hh
>
17
18
// Package headers
19
#include <
protocols/rosetta_scripts/util.hh
>
20
21
// AUTO-REMOVED #include <core/pose/Pose.hh>
22
// AUTO-REMOVED #include <core/conformation/Conformation.hh>
23
#include <
core/pack/pack_rotamers.hh
>
24
#include <
core/pack/task/PackerTask.hh
>
25
#include <
core/pack/task/TaskFactory.hh
>
26
#include <basic/Tracer.hh>
27
#include <
core/scoring/ScoreFunction.hh
>
28
#include <
core/scoring/ScoreFunctionFactory.hh
>
29
// AUTO-REMOVED #include <core/pack/task/operation/TaskOperations.hh>
30
#include <utility/tag/Tag.hh>
31
32
#include <utility/vector0.hh>
33
#include <utility/vector1.hh>
34
35
//Auto Headers
36
#include <
core/conformation/Residue.hh
>
37
#include <
core/id/types.hh
>
38
#include <
core/kinematics/Jump.hh
>
39
#include <
protocols/simple_moves/DesignRepackMover.hh
>
40
41
42
43
namespace
protocols {
44
namespace
protein_interface_design {
45
namespace
movers {
46
47
using namespace
core;
48
using namespace
std;
49
using namespace
core::scoring;
50
using namespace
protocols::moves;
51
52
static
basic::Tracer
TR
(
"protocols.protein_interface_design.movers.BuildAlaPose"
);
53
54
std::string
55
BuildAlaPoseCreator::keyname
()
const
56
{
57
return
BuildAlaPoseCreator::mover_name
();
58
}
59
60
protocols::moves::MoverOP
61
BuildAlaPoseCreator::create_mover
()
const
{
62
return
new
BuildAlaPose
;
63
}
64
65
std::string
66
BuildAlaPoseCreator::mover_name
()
67
{
68
return
"build_Ala_pose"
;
69
}
70
71
BuildAlaPose::BuildAlaPose
() : simple_moves::DesignRepackMover(
BuildAlaPoseCreator
::mover_name() ) {}
72
BuildAlaPose::BuildAlaPose
(
73
bool
const
partner1,
74
bool
const
partner2,
75
core::Real
interface_distance_cutoff
76
) :
77
simple_moves::DesignRepackMover(
BuildAlaPoseCreator
::mover_name() )
78
{
79
repack_partner1_
=
design_partner1_
=partner1;
80
repack_partner2_
=
design_partner2_
=partner2;
81
interface_distance_cutoff_
= interface_distance_cutoff;
82
runtime_assert(
interface_distance_cutoff_
>= 0 );
83
}
84
85
BuildAlaPose::~BuildAlaPose
() {}
86
87
void
88
BuildAlaPose::apply
(
pose::Pose
& pose )
89
{
90
using namespace
core::scoring;
91
using namespace
core::pack::task::operation;
92
93
allowed_aas_
.assign(
core::chemical::num_canonical_aas
,
false
);
94
allowed_aas_
[
core::chemical::aa_ala
] =
true
;
95
/* if( repack_partner1_ ^ repack_partner2_ ){
96
bool const prevent_chain1( !repack_partner1_ );
97
bool const prevent_chain2( !repack_partner2_ );
98
core::Size const prevent_chain_begin( pose.conformation().chain_begin( prevent_chain1 ? 1 : 2 ) );
99
core::Size const prevent_chain_end( pose.conformation().chain_end( prevent_chain2 ? 2 : 1 ) );
100
for( core::Size res=prevent_chain_begin; res<=prevent_chain_end; ++res )
101
prevent_repacking_.push_back( res );
102
} */
103
setup_packer_and_movemap
( pose );
104
105
using namespace
core::scoring;
106
core::scoring::ScoreFunctionOP
scorefxn(
ScoreFunctionFactory::create_score_function
(
STANDARD_WTS
,
SCORE12_PATCH
) );
107
pack::pack_rotamers
( pose, *scorefxn,
task_
);
108
(*scorefxn)( pose );
109
/// Now handled automatically. scorefxn->accumulate_residue_total_energies( pose );
110
}
111
112
std::string
113
BuildAlaPose::get_name
()
const
{
114
return
BuildAlaPoseCreator::mover_name
();
115
}
116
117
void
118
BuildAlaPose::parse_my_tag
(
TagPtr
const
tag,
DataMap
&data,
protocols::filters::Filters_map
const
&,
Movers_map
const
&,
core::pose::Pose
const
& )
119
{
120
design_partner1_
= tag->getOption<
bool
>(
"partner1"
, 0 );
121
design_partner2_
= tag->getOption<
bool
>(
"partner2"
, 1 );
122
repack_partner1_
=
design_partner1_
;
123
repack_partner2_
=
design_partner2_
;
124
interface_distance_cutoff_
= tag->getOption<
core::Real
>(
"interface_cutoff_distance"
, 8.0 );
125
126
task_factory
(
protocols::rosetta_scripts::parse_task_operations
( tag, data ) );
127
TR
<<
"defined BuildAlaPose mover "
<<
" for partners "
<<( repack_partner1_ ?
"1"
:
""
)<<(
repack_partner2_
?
"2"
:
""
)<<
" with distance cutoff "
<<
128
interface_distance_cutoff_
<<std::endl;
129
}
130
131
protocols::moves::MoverOP
132
BuildAlaPose::clone
()
const
{
133
return
(
protocols::moves::MoverOP
(
new
BuildAlaPose
( *
this
) ));
134
}
135
136
}
//movers
137
}
//protein_interface_design
138
}
//protocols
Generated on Sat Jun 1 2013 12:04:34 for Rosetta 3.5 by
1.8.4