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
electron_density
SetupForDensityScoringMover.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
11
/// @brief protocols for folding into density
12
/// @detailed
13
/// @author Frank DiMaio
14
15
#include <
protocols/electron_density/SetupForDensityScoringMover.hh
>
16
#include <
protocols/electron_density/SetupForDensityScoringMoverCreator.hh
>
17
#include <
protocols/electron_density/util.hh
>
18
19
// AUTO-REMOVED #include <core/scoring/dssp/Dssp.hh>
20
21
#include <
core/scoring/electron_density/util.hh
>
22
23
#include <
core/types.hh
>
24
// AUTO-REMOVED #include <core/pose/Pose.hh>
25
#include <utility/tag/Tag.hh>
26
// AUTO-REMOVED #include <core/conformation/Conformation.hh>
27
// AUTO-REMOVED #include <core/id/AtomID.hh>
28
#include <
core/chemical/AA.hh
>
29
#include <numeric/xyzVector.hh>
30
// AUTO-REMOVED #include <protocols/moves/DataMap.hh>
31
32
// AUTO-REMOVED #include <core/kinematics/MoveMap.hh>
33
#include <
core/scoring/electron_density/ElectronDensity.hh
>
34
// AUTO-REMOVED #include <core/kinematics/FoldTree.hh>
35
#include <
core/kinematics/Jump.hh
>
36
#include <
core/conformation/Residue.hh
>
37
38
// Symmetry
39
// AUTO-REMOVED #include <core/scoring/symmetry/SymmetricScoreFunction.hh>
40
// AUTO-REMOVED #include <core/pose/symmetry/util.hh>
41
// AUTO-REMOVED #include <core/conformation/symmetry/util.hh>
42
43
// AUTO-REMOVED #include <protocols/simple_moves/symmetry/SymMinMover.hh>
44
// AUTO-REMOVED #include <protocols/rigid/RB_geometry.hh>
45
46
#include <
core/pose/util.hh
>
47
48
// AUTO-REMOVED #include <core/scoring/ScoreFunction.hh>
49
// AUTO-REMOVED #include <core/scoring/ScoreFunctionFactory.hh>
50
51
#include <basic/options/option.hh>
52
53
// option key includes
54
#include <basic/options/keys/edensity.OptionKeys.gen.hh>
55
56
//
57
#include <basic/Tracer.hh>
58
59
#include <
protocols/loops/Loop.hh
>
60
#include <
protocols/loops/Loops.hh
>
61
#include <utility/vector0.hh>
62
#include <utility/vector1.hh>
63
64
using
basic::T
;
65
using
basic::Error;
66
using
basic::Warning;
67
68
69
namespace
protocols {
70
namespace
electron_density {
71
72
static
basic::Tracer
TR
(
"protocols.electron_density.util"
);
73
74
using namespace
protocols;
75
using namespace
core;
76
77
std::string
78
SetupForDensityScoringMoverCreator::keyname
()
const
79
{
80
return
SetupForDensityScoringMoverCreator::mover_name
();
81
}
82
83
protocols::moves::MoverOP
84
SetupForDensityScoringMoverCreator::create_mover
()
const
{
85
return
new
SetupForDensityScoringMover
;
86
}
87
88
std::string
89
SetupForDensityScoringMoverCreator::mover_name
()
90
{
91
return
"SetupForDensityScoring"
;
92
}
93
94
///////////////////////////////////////
95
///////////////////////////////////////
96
97
SetupForDensityScoringMover::SetupForDensityScoringMover
() : Mover() {
98
using namespace
basic::options;
99
dock_into_dens_strategy_
= option[ OptionKeys::edensity::realign ]();
100
}
101
102
void
SetupForDensityScoringMover::apply
(
core::pose::Pose
& pose ) {
103
core::pose::addVirtualResAsRoot
( pose );
104
core::scoring::electron_density::getDensityMap
().
maskResidues
(
mask_reses_
);
105
last_score
=
dockPoseIntoMap
( pose,
dock_into_dens_strategy_
);
106
core::scoring::electron_density::getDensityMap
().
clearMask
( );
107
}
108
109
protocols::moves::MoverOP
110
SetupForDensityScoringMover::clone
()
const
{
111
return
(
protocols::moves::MoverOP
(
new
SetupForDensityScoringMover
( *
this
) ) );
112
}
113
114
std::string
115
SetupForDensityScoringMover::get_name
()
const
{
116
return
SetupForDensityScoringMoverCreator::mover_name
();
117
}
118
119
void
SetupForDensityScoringMover::mask
(
protocols::loops::Loops
const
& loops ) {
120
mask_reses_
.clear();
121
for
( protocols::loops::Loops::LoopList::const_iterator it=loops.
loops
().begin(), it_end=loops.
loops
().end(); it != it_end; ++it )
122
for
(
core::Size
i=it->start(), i_end=it->stop(); i<i_end; ++i )
123
mask_reses_
.push_back(i);
124
}
125
126
void
SetupForDensityScoringMover::parse_my_tag
(
127
utility::tag::TagPtr
const
tag,
128
moves::DataMap
&,
129
filters::Filters_map
const
&,
130
moves::Movers_map
const
&,
131
core::pose::Pose
const
& ) {
132
133
TR <<
"Parsing SetupForDensityScoringMover----"
<< std::endl;
134
dock_into_dens_strategy_
= tag->getOption<
std::string
>(
"realign"
,
"no"
);
135
136
// TO DO: make mask parsable
137
}
138
139
///////////////////////////////////////
140
///////////////////////////////////////
141
142
void
set_pose_and_scorefxn_for_edens_scoring
(
core::pose::Pose
& pose,
core::scoring::ScoreFunction
&scorefxn ) {
143
core::pose::addVirtualResAsRoot
( pose );
144
core::scoring::electron_density::add_dens_scores_from_cmdline_to_scorefxn
( scorefxn );
145
}
146
147
148
149
}
150
}
151
Generated on Sat Jun 1 2013 11:47:39 for Rosetta 3.5 by
1.8.4