Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
util.hh
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/medal/util.hh
11 /// @author Christopher Miles (cmiles@uw.edu)
12 
13 #ifndef INCLUDED_PROTOCOLS_MEDAL_UTIL_HH
14 #define INCLUDED_PROTOCOLS_MEDAL_UTIL_HH
15 
16 // External headers
17 #include <boost/unordered_set.hpp>
18 
19 // Utility headers
20 #include <utility/vector1.hh>
21 
22 // Project headers
23 #include <core/types.hh>
25 #include <core/pose/Pose.fwd.hh>
28 
29 namespace protocols {
30 namespace medal {
31 
33 
34 /// @brief Computes per-residue alignment probabilities. To minimize assumptions
35 /// about the fold tree, the number of residues in the pose is an explicit input.
36 void alignment_probabilities(const unsigned num_residues,
37  const core::sequence::SequenceAlignment& alignment,
38  Probabilities* p);
39 
40 /// @brief Computes per-residue chunk probabilities. A linear voting scheme is
41 /// used to bias sampling toward larger chunks.
43 
44 /// @brief Computes per-residue cutpoint probabilities. Sampling is biased
45 /// toward residues proximal to a cutpoint.
46 void cutpoint_probabilities(const unsigned num_residues,
47  const core::kinematics::FoldTree& tree,
48  Probabilities* p);
49 
50 /// @brief Biases sampling away from termini
51 void end_bias_probabilities(const unsigned num_residues, Probabilities* p);
52 
53 /// @brief Zeroes out the probability of residues for which fragment insertion
54 /// would cross cutpoint boundaries.
56  const core::Size fragment_len,
57  Probabilities* probs);
58 
59 /// @brief Populates a hash table with the residues contained in loops
60 void as_set(protocols::loops::LoopsCOP loops, boost::unordered_set<core::Size>* s);
61 
62 void to_centroid(core::pose::Pose* pose);
63 
64 } // namespace medal
65 } // namespace protocols
66 
67 #endif // PROTOCOLS_MEDAL_UTIL_HH_