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
core
util
kinematics_util.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 core/util/kinematics_util.cc
11
/// @author Christopher Miles (cmiles@uw.edu)
12
13
// Unit headers
14
#include <
core/util/kinematics_util.hh
>
15
16
// Project headers
17
#include <
core/chemical/VariantType.hh
>
18
#include <
core/kinematics/FoldTree.hh
>
19
#include <
core/pose/Pose.hh
>
20
#include <
core/pose/util.hh
>
21
22
//Auto Headers
23
#include <utility/vector1.hh>
24
25
namespace
core {
26
namespace
util {
27
28
void
add_cutpoint_variants
(
core::pose::Pose
* pose) {
29
const
core::kinematics::FoldTree
& tree(pose->
fold_tree
());
30
for
(
unsigned
i = 1; i <= pose->
total_residue
(); ++i) {
31
if
(!tree.is_cutpoint(i) || i >= (pose->
total_residue
() - 1))
32
continue
;
33
34
core::pose::add_variant_type_to_pose_residue
(*pose,
core::chemical::CUTPOINT_LOWER
, i);
35
core::pose::add_variant_type_to_pose_residue
(*pose,
core::chemical::CUTPOINT_UPPER
, i + 1);
36
}
37
}
38
39
void
remove_cutpoint_variants
(
core::pose::Pose
* pose) {
40
const
core::kinematics::FoldTree
& tree(pose->
fold_tree
());
41
for
(
unsigned
i = 1; i <= pose->
total_residue
(); ++i) {
42
if
(!tree.is_cutpoint(i) || i >= (pose->
total_residue
() - 1))
43
continue
;
44
45
core::pose::remove_variant_type_from_pose_residue
(*pose,
core::chemical::CUTPOINT_LOWER
, i);
46
core::pose::remove_variant_type_from_pose_residue
(*pose,
core::chemical::CUTPOINT_UPPER
, i + 1);
47
}
48
}
49
50
}
// namespace core
51
}
// namespace util
Generated on Sat Jun 1 2013 11:40:30 for Rosetta 3.5 by
1.8.4