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
StepWiseClusterer.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 StepWiseClusterer.hh
11
/// @brief
12
/// @detailed
13
///
14
/// @author Rhiju Das
15
16
17
#ifndef INCLUDED_protocols_swa_StepWiseClusterer_HH
18
#define INCLUDED_protocols_swa_StepWiseClusterer_HH
19
20
#include <
core/pose/Pose.fwd.hh
>
21
#include <
core/import_pose/pose_stream/SilentFilePoseInputStream.fwd.hh
>
22
#include <
core/io/silent/SilentFileData.fwd.hh
>
23
#include <
core/chemical/ResidueTypeSet.fwd.hh
>
24
#include <
core/scoring/ScoreFunction.fwd.hh
>
25
#include <utility/pointer/ReferenceCount.hh>
26
#include <utility/vector1.hh>
27
#include <
core/types.hh
>
28
#include <
core/io/silent/SilentStruct.fwd.hh
>
29
#include <
protocols/swa/StepWiseUtil.hh
>
// For PoseList. This is a bit silly.
30
#include <
protocols/swa/StepWiseClusterer.fwd.hh
>
31
32
#include <map>
33
#include <string>
34
35
namespace
protocols {
36
namespace
swa {
37
38
/////////////////////////////////////////////////////////////////////////////////////////////////
39
/////////////////////////////////////////////////////////////////////////////////////////////////
40
class
StepWiseClusterer
:
public
utility::pointer::ReferenceCount
{
41
public
:
42
43
//constructor!
44
StepWiseClusterer
(
utility::vector1< std::string >
const
& silent_files_in );
45
46
StepWiseClusterer
(
std::string
const
& silent_file_in );
47
48
StepWiseClusterer
(
core::io::silent::SilentFileDataOP
& sfd );
49
50
//destructor -- necessary?
51
virtual
~StepWiseClusterer
();
52
53
/// @brief Filter a list of poses by score.
54
55
void
set_max_decoys
(
core::Size
const
& setting ){
max_decoys_
= setting; }
56
57
void
set_cluster_radius
(
core::Real
const
& setting ){
cluster_radius_
= setting; }
58
59
void
set_cluster_by_all_atom_rmsd
(
core::Real
const
& setting ){
cluster_by_all_atom_rmsd_
= setting; }
60
61
void
set_rename_tags
(
core::Real
const
& setting ){
rename_tags_
= setting; }
62
63
void
set_score_diff_cut
(
core::Real
const
& setting ){
score_diff_cut_
= setting; }
64
65
void
set_auto_tune
(
bool
const
auto_tune ){
auto_tune_
= auto_tune; }
66
67
void
set_force_align
(
bool
const
force_align ){
force_align_
= force_align; }
68
69
void
set_calc_rms_res
(
utility::vector1< core::Size >
const
& calc_rms_res );
70
71
void
set_silent_file_data
(
core::io::silent::SilentFileDataOP
& sfd );
72
73
void
set_rsd_type_set
(
std::string
const
& setting ){
rsd_type_set_
= setting; }
74
75
void
cluster
();
76
77
core::io::silent::SilentFileDataOP
silent_file_data
();
78
79
void
80
output_silent_file
(
std::string
const
& silent_file );
81
82
PoseList
83
clustered_pose_list
();
84
85
utility::vector1< core::io::silent::SilentStructOP >
&
86
silent_struct_output_list
(){
return
silent_struct_output_list_
; };
87
88
private
:
89
90
void
91
initialize_parameters_and_input
();
92
93
void
94
initialize_cluster_list
();
95
96
void
97
initialize_corresponding_atom_id_map
(
core::pose::Pose
const
& pose );
98
99
void
100
do_some_clustering
();
101
102
Size
103
check_for_closeness
(
core::pose::PoseOP
const
& pose_op );
104
105
void
106
cluster_with_auto_tune
();
107
108
void
109
recluster_current_pose_list
();
110
111
void
112
initialize_auto_tune_cluster_rmsds
();
113
114
utility::vector1< std::string >
silent_files_
;
115
Size
max_decoys_
;
116
core::Real
cluster_radius_
;
117
bool
cluster_by_all_atom_rmsd_
;
118
core::Real
score_diff_cut_
;
119
bool
auto_tune_
;
120
bool
rename_tags_
;
121
bool
force_align_
;
122
std::string
rsd_type_set_
;
123
124
core::Real
score_min_
;
125
bool
score_min_defined_
;
126
// core::scoring::ScoreFunctionOP scorefxn_;
127
128
utility::vector1< core::pose::PoseOP >
pose_output_list_
;
129
utility::vector1< std::string >
tag_output_list_
;
130
utility::vector1< core::io::silent::SilentStructOP >
silent_struct_output_list_
;
131
utility::vector1< core::Size >
num_pose_in_cluster_
;
132
133
core::import_pose::pose_stream::SilentFilePoseInputStreamOP
input_
;
134
135
utility::vector1< core::Real >
cluster_rmsds_to_try_with_auto_tune_
;
136
137
bool
hit_score_cutoff_
;
138
bool
initialized_atom_id_map_for_rmsd_
;
139
utility::vector1< core::Size >
calc_rms_res_
;
140
141
std::map< core::id::AtomID, core::id::AtomID >
corresponding_atom_id_map_
;
142
143
core::chemical::ResidueTypeSetCAP
rsd_set_
;
144
145
};
146
147
}
//swa
148
}
// protocols
149
150
#endif
Generated on Sat Jun 1 2013 12:20:13 for Rosetta 3.5 by
1.8.4