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
loophash
LoopHashSampler.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/loophash/LoopHashSampler.hh
11
/// @brief
12
/// @author Mike Tyka
13
14
15
16
#ifndef INCLUDED_protocols_loophash_LoopHashSampler_hh
17
#define INCLUDED_protocols_loophash_LoopHashSampler_hh
18
19
#include <
protocols/loophash/LoopHashSampler.fwd.hh
>
20
#include <
protocols/loophash/LoopHashLibrary.fwd.hh
>
21
#include <
protocols/loophash/LocalInserter.fwd.hh
>
22
23
#include <
core/types.hh
>
24
#include <
core/pose/Pose.fwd.hh
>
25
#include <
core/scoring/ScoreFunction.hh
>
26
#include <
core/io/silent/SilentStruct.fwd.hh
>
27
#include <utility/pointer/ReferenceCount.hh>
28
#include <string>
29
#include <vector>
30
31
#include <utility/vector1.hh>
32
33
34
35
namespace
protocols {
36
namespace
loophash {
37
38
39
40
class
LoopHashSampler
:
public
utility::pointer::ReferenceCount
{
41
public
:
42
43
LoopHashSampler
(
44
LoopHashLibraryOP
library,
45
LocalInserterOP
inserter
46
);
47
48
virtual
~LoopHashSampler
();
49
50
void
set_defaults
();
51
52
/// @brief create a set of structures for a the given range of residues and other parameters stored int his class.
53
void
build_structures
(
54
const
core::pose::Pose
& start_pose,
55
std::vector< core::io::silent::SilentStructOP > &lib_structs
56
);
57
58
/// @brief create a set of structures with closed gaps
59
void
close_gaps
(
60
const
core::pose::Pose
& start_pose,
61
std::vector< core::pose::Pose > &lib_structs,
62
core::Size
loop_size
63
);
64
65
void
set_start_res
(
core::Size
value ) {
start_res_
= value; }
66
void
set_stop_res
(
core::Size
value ) {
stop_res_
= value; }
67
void
set_min_bbrms
(
core::Real
value ) {
min_bbrms_
= value; }
68
void
set_max_bbrms
(
core::Real
value ) {
max_bbrms_
= value; }
69
void
set_min_rms
(
core::Real
value ) {
min_rms_
= value; }
70
void
set_max_rms
(
core::Real
value ) {
max_rms_
= value; }
71
void
set_max_radius
(
core::Size
value ) {
max_radius_
= value; }
72
void
set_max_struct
(
core::Size
value ) {
max_struct_
= value; }
73
void
set_max_struct_per_radius
(
core::Size
value ) {
max_struct_per_radius_
= value; }
74
void
set_max_nstruct
(
core::Size
value ) {
max_nstruct_
= value; }
75
void
set_nonideal
(
bool
value ) {
nonideal_
= value; }
76
void
set_filter_by_phipsi
(
bool
value) {
filter_by_phipsi_
= value; }
77
// This is meant for model creation, not mpi refinement!
78
79
core::Size
get_start_res
() {
return
start_res_
; }
80
core::Size
get_stop_res
() {
return
stop_res_
; }
81
core::Real
get_min_bbrms
() {
return
min_bbrms_
; }
82
core::Real
get_max_bbrms
() {
return
max_bbrms_
; }
83
core::Real
get_min_rms
() {
return
min_rms_
; }
84
core::Real
get_max_rms
() {
return
max_rms_
; }
85
core::Size
get_max_nstruct
() {
return
max_nstruct_
; }
86
bool
get_filter_by_phipsi
() {
return
filter_by_phipsi_
; }
87
88
//fpd pre-filter structures with a scorefunction
89
//fpd this is done using a chainbroken pose (before constraint minimization!)
90
//fpd useful for experimentally derived scorefunctions (eg density)
91
void
use_prefiltering
(
core::scoring::ScoreFunctionOP
score_filt,
core::Size
nstruct ) {
92
score_filt_
= score_filt;
93
nprefilter_
= nstruct;
94
}
95
96
private
:
97
98
/// @brief pointer to the library used for insertion
99
LoopHashLibraryOP
library_
;
100
101
/// @brief pointer to the insertion functor which provides the peptide insertion facility
102
LocalInserterOP
inserter_
;
103
104
/// @brief parameters for insertion positions
105
core::Size
start_res_
;
106
core::Size
stop_res_
;
107
core::Real
min_bbrms_
;
108
core::Real
max_bbrms_
;
109
core::Real
min_rms_
;
110
core::Real
max_rms_
;
111
core::Size
max_struct_
;
112
core::Size
max_struct_per_radius_
;
113
core::Size
max_radius_
;
114
core::Size
max_nstruct_
;
115
bool
nonideal_
;
116
bool
filter_by_phipsi_
;
117
118
/// @brief (fpd) pre-filtering options
119
core::Size
nprefilter_
;
120
core::scoring::ScoreFunctionOP
score_filt_
;
121
};
122
123
124
125
126
127
}
128
}
129
130
#endif
Generated on Sat Jun 1 2013 11:57:13 for Rosetta 3.5 by
1.8.4