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
star
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 protocols/star/util.cc
11
/// @author Christopher Miles (cmiles@uw.edu)
12
13
// C/C++ headers
14
#include <string>
15
16
// External headers
17
#include <boost/format.hpp>
18
19
// Utility headers
20
#include <basic/options/option.hh>
21
#include <basic/options/keys/OptionKeys.hh>
22
#include <basic/options/keys/abinitio.OptionKeys.gen.hh>
23
24
// Project headers
25
#include <
core/types.hh
>
26
#include <
core/chemical/ChemicalManager.hh
>
27
#include <
core/io/silent/SilentFileData.hh
>
28
#include <
core/io/silent/SilentStruct.hh
>
29
#include <
core/io/silent/SilentStructFactory.hh
>
30
#include <
core/kinematics/FoldTree.hh
>
31
#include <
core/pose/Pose.hh
>
32
#include <
core/util/SwitchResidueTypeSet.hh
>
33
34
namespace
protocols {
35
namespace
star {
36
37
void
emit_intermediate
(
const
core::pose::Pose
& pose,
const
std::string
& silent_filename) {
38
using
core::Size
;
39
using
core::io::silent::SilentFileData
;
40
using
core::io::silent::SilentStructFactory
;
41
using
core::io::silent::SilentStructOP
;
42
using namespace
basic::options;
43
using namespace
basic::options::OptionKeys;
44
45
if
(!option[
OptionKeys::abinitio::debug
]()) {
46
return
;
47
}
48
49
static
Size
num_structures = 0;
50
51
SilentStructOP
silent =
SilentStructFactory::get_instance
()->
get_silent_struct_out
();
52
silent->fill_struct(pose,
str
(boost::format(
"model_%d"
) % ++num_structures));
53
54
SilentFileData
sfd;
55
sfd.
write_silent_struct
(*silent, silent_filename);
56
}
57
58
void
simple_fold_tree
(
core::pose::Pose
* pose) {
59
assert(pose);
60
pose->
fold_tree
(
core::kinematics::FoldTree
(pose->
total_residue
()));
61
}
62
63
void
to_centroid
(
core::pose::Pose
* pose) {
64
if
(!pose->
is_centroid
()) {
65
core::util::switch_to_residue_type_set
(*pose,
core::chemical::CENTROID
);
66
}
67
}
68
69
}
// namespace star
70
}
// namespace protocols
Generated on Sat Jun 1 2013 11:32:17 for Rosetta 3.5 by
1.8.4