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
swa
monte_carlo
RNA_DeleteMover.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 RNA_DeleteMover
11
/// @brief Deletes an RNA residue from a chain terminus.
12
/// @detailed
13
/// @author Rhiju Das
14
15
#include <
protocols/swa/monte_carlo/RNA_DeleteMover.hh
>
16
#include <
protocols/swa/monte_carlo/RNA_SWA_MonteCarloUtil.hh
>
17
#include <
protocols/swa/monte_carlo/SubToFullInfo.hh
>
18
19
// libRosetta headers
20
#include <
core/types.hh
>
21
#include <
core/pose/Pose.hh
>
22
#include <
core/chemical/VariantType.hh
>
23
#include <
core/pose/util.hh
>
24
#include <basic/Tracer.hh>
25
26
27
using namespace
core;
28
using
core::Real
;
29
30
//////////////////////////////////////////////////////////////////////////
31
// Removes one residue from a 5' or 3' chain terminus, and appropriately
32
// updates the pose sub_to_full_info object.
33
//////////////////////////////////////////////////////////////////////////
34
35
static
basic::Tracer
TR
(
"protocols.swa.monte_carlo.rna_delete_mover"
) ;
36
37
namespace
protocols {
38
namespace
swa {
39
namespace
monte_carlo {
40
41
42
//////////////////////////////////////////////////////////////////////////
43
//constructor!
44
// RNA_DeleteMover::RNA_DeleteMover() {}
45
46
//////////////////////////////////////////////////////////////////////////
47
//destructor
48
RNA_DeleteMover::~RNA_DeleteMover()
49
{}
50
51
//////////////////////////////////////////////////////////////////////////
52
void
53
RNA_DeleteMover::apply(
core::pose::Pose
& )
54
{
55
std::cout <<
"not defined yet"
<< std::endl;
56
}
57
58
//////////////////////////////////////////////////////////////////////
59
void
60
RNA_DeleteMover::apply(
core::pose::Pose
& pose,
Size
const
res_to_delete,
MovingResidueCase
const
moving_residue_case )
61
{
62
63
pose.
delete_polymer_residue
( res_to_delete );
64
if
( moving_residue_case ==
CHAIN_TERMINUS_5PRIME
)
pose::add_variant_type_to_pose_residue
( pose,
"VIRTUAL_PHOSPHATE"
, res_to_delete );
65
66
// important book-keeping.
67
reorder_sub_to_full_info_after_delete
( pose, res_to_delete );
68
}
69
70
71
//////////////////////////////////////////////////////////////////////
72
void
73
RNA_DeleteMover::wipe_out_moving_residues(
pose::Pose
& pose ){
74
75
utility::vector1< Size >
possible_res;
76
utility::vector1< MovingResidueCase >
moving_residue_cases;
77
utility::vector1< AddOrDeleteChoice >
add_or_delete_choices;
78
79
get_potential_delete_residues
( pose,
80
possible_res,
81
moving_residue_cases,
82
add_or_delete_choices );
83
84
if
( possible_res.size() > 0 ){
// recursively delete all residues.
85
apply( pose, possible_res[1], moving_residue_cases[1] );
86
wipe_out_moving_residues( pose );
87
}
88
89
}
90
91
//////////////////////////////////////////////////////////////////////
92
std::string
93
RNA_DeleteMover::get_name()
const
{
94
return
"RNA_DeleteMover"
;
95
}
96
97
}
98
}
99
}
Generated on Sat Jun 1 2013 12:18:58 for Rosetta 3.5 by
1.8.4