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
nonlocal
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/nonlocal/util.hh
11
/// @author Christopher Miles (cmiles@uw.edu)
12
13
#ifndef INCLUDED_PROTOCOLS_NONLOCAL_UTIL_HH
14
#define INCLUDED_PROTOCOLS_NONLOCAL_UTIL_HH
15
16
// C/C++ headers
17
// AUTO-REMOVED #include <string>
18
19
// Utility headers
20
#include <utility/vector1.hh>
21
22
// Project headers
23
#include <
core/types.hh
>
24
// AUTO-REMOVED #include <core/id/SequenceMapping.fwd.hh>
25
#include <
core/pose/Pose.fwd.hh
>
26
#include <
core/sequence/SequenceAlignment.fwd.hh
>
27
#include <
protocols/comparative_modeling/ThreadingJob.fwd.hh
>
28
// AUTO-REMOVED #include <protocols/loops/Loop.hh>
29
// AUTO-REMOVED #include <protocols/loops/Loops.hh>
30
31
// Package headers
32
#include <
core/scoring/ScoreType.hh
>
33
34
#include <
protocols/loops/Loop.fwd.hh
>
35
#include <
protocols/loops/Loops.fwd.hh
>
36
37
38
namespace
protocols {
39
namespace
nonlocal {
40
41
/// @brief Combine aligned and unaligned regions, limit size of final loop
42
protocols::loops::Loops
combine_and_trim
(
core::Size
min_chunk_sz,
43
core::Size
num_residues,
44
const
protocols::loops::LoopsOP
aligned_regions,
45
const
protocols::loops::LoopsOP
unaligned_regions);
46
47
// -- Utility methods -- not to be called directly
48
void
find_regions_with_minimum_size
(
const
core::sequence::SequenceAlignment
& alignment,
49
const
core::Size
unaligned_region_min_sz,
50
protocols::loops::LoopsOP
& aligned_regions,
51
protocols::loops::LoopsOP
& unaligned_regions);
52
53
/// @brief Best-effort attempt to limit the length of a chunk by recursively
54
/// decomposing <regions> such that min_chunk_sz <= |chunk| <= max_chunk_sz.
55
void
limit_chunk_size
(
core::Size
min_chunk_sz,
56
core::Size
max_chunk_sz,
57
protocols::loops::LoopsOP
& regions);
58
59
/// @brief Recursively decomposes <loop> into a series of <pieces>, each having
60
/// length less than or equal to <max_length>.
61
void
decompose
(
core::Size
min_chunk_sz,
62
core::Size
max_chunk_sz,
63
const
protocols::loops::Loop
& loop,
64
utility::vector1<protocols::loops::Loop>
* pieces);
65
66
/// @brief If -abinitio:debug is enabled, writes <pose> to <file>.
67
void
emit_intermediate
(
const
core::pose::Pose
& pose,
const
std::string
& file);
68
69
/// @brief Retrieves the current job from the JobDistributor
70
protocols::comparative_modeling::ThreadingJob
const
*
/*const*/
current_job
();
71
72
/// @brief Computes the distance between consecutive CA atoms. If the distance exceeds
73
/// a user-specified threshold, creates a new chunk and adds it to <chunks>. CA-CA
74
/// distance threshold is retrieved from the option system (rigid::max_ca_ca_dist).
75
void
chunks_by_CA_CA_distance
(
const
core::pose::Pose
& pose,
protocols::loops::LoopsOP
chunks);
76
77
/// @brief Computes the distance between consecutive CA atoms. If the distance exceeds
78
/// <threshold>, creates a new chunk and adds it to <chunks>.
79
void
chunks_by_CA_CA_distance
(
const
core::pose::Pose
& pose,
protocols::loops::LoopsOP
chunks,
double
threshold);
80
81
/// @brief Returns the unweighted score of the ScoreType for the given residue. Assumes that the Pose has recently been scored by ScoreFunction with non-zero weight for the ScoreType.
82
core::Real
get_per_residue_score
(
83
core::Size
rsd_idx,
84
core::scoring::ScoreType
scoretype,
85
core::pose::Pose
const
& pose
86
);
87
88
}
// namespace nonlocal
89
}
// namespace protocols
90
91
#endif // PROTOCOLS_NONLOCAL_UTIL_HH_
Generated on Sat Jun 1 2013 11:32:20 for Rosetta 3.5 by
1.8.4