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
loops
FoldTreeFromLoopsWrapper.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/loops/FoldTreeFromLoops.cc
11
/// @brief
12
/// @author Sarel Fleishman (sarelf@u.washington.edu)
13
14
// Unit headers
15
#include <
protocols/loops/FoldTreeFromLoopsWrapper.hh
>
16
#include <
protocols/loops/FoldTreeFromLoopsWrapperCreator.hh
>
17
18
// Package headers
19
#include <
protocols/loops/Loop.hh
>
20
#include <
protocols/loops/Loops.hh
>
21
#include <
protocols/loops/loops_main.hh
>
22
#include <
protocols/loops/util.hh
>
23
#include <
protocols/loops/loops_definers/util.hh
>
24
25
// Project headers
26
#include <
core/kinematics/FoldTree.hh
>
27
#include <
core/pose/Pose.hh
>
28
29
// Utility headers
30
#include <basic/Tracer.hh>
31
#include <utility/tag/Tag.hh>
32
33
namespace
protocols {
34
namespace
loops {
35
36
static
basic::Tracer
TR
(
"protocols.loops.FoldTreeFromLoopsWrapper"
);
37
38
FoldTreeFromLoops::FoldTreeFromLoops
() :
39
Mover(
FoldTreeFromLoopsCreator
::mover_name() ), loop_str_(
""
)
40
{
41
loops_
=
new
Loops
;
42
loops_
->clear();
43
}
44
45
46
FoldTreeFromLoops::~FoldTreeFromLoops
() {}
47
48
protocols::moves::MoverOP
FoldTreeFromLoops::clone
()
const
49
{
50
return
protocols::moves::MoverOP
(
new
FoldTreeFromLoops
( *
this
) );
51
}
52
53
protocols::moves::MoverOP
FoldTreeFromLoops::fresh_instance
()
const
54
{
55
return
protocols::moves::MoverOP
(
new
FoldTreeFromLoops
);
56
}
57
58
void
59
FoldTreeFromLoops::apply
(
core::pose::Pose
& pose )
60
{
61
if
(
loops
()->empty() ) {
62
utility_exit_with_message(
"No loops were specified"
);
63
}
64
core::kinematics::FoldTree
f;
65
fold_tree_from_loops
( pose, *
loops
(), f );
66
TR
<<
"old foldtree "
<<pose.
fold_tree
()<<
"\nNew foldtree "
;
67
pose.
fold_tree
( f );
68
TR
<<pose.
fold_tree
()<<std::endl;
69
}
70
71
std::string
72
FoldTreeFromLoops::get_name
()
const
{
73
return
FoldTreeFromLoopsCreator::mover_name
();
74
}
75
76
void
77
FoldTreeFromLoops::parse_my_tag
(
78
TagPtr
const
tag,
79
protocols::moves::DataMap
& data,
80
protocols::filters::Filters_map
const
&,
81
protocols::moves::Movers_map
const
&,
82
core::pose::Pose
const
& pose
83
) {
84
85
loops_
=
loops_definers::load_loop_definitions
(tag, data, pose);
86
}
87
88
void
FoldTreeFromLoops::loop_str
(
std::string
const
str
)
89
{
90
loop_str_
=
str
;
91
}
92
std::string
FoldTreeFromLoops::loop_str
()
const
93
{
94
return
loop_str_
;
95
}
96
97
void
FoldTreeFromLoops::loops
(
LoopsOP
const
l )
98
{
99
loops_
= l;
100
}
101
102
LoopsOP
FoldTreeFromLoops::loops
()
const
103
{
104
return
loops_
;
105
}
106
107
std::string
108
FoldTreeFromLoopsCreator::keyname
()
const
109
{
110
return
FoldTreeFromLoopsCreator::mover_name
();
111
}
112
113
protocols::moves::MoverOP
114
FoldTreeFromLoopsCreator::create_mover
()
const
{
115
return
new
FoldTreeFromLoops
;
116
}
117
118
std::string
119
FoldTreeFromLoopsCreator::mover_name
()
120
{
121
return
"FoldTreeFromLoops"
;
122
}
123
124
}
// namespace loops
125
}
// namespace protocols
Generated on Sat Jun 1 2013 11:57:27 for Rosetta 3.5 by
1.8.4