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
qsar
qsarMap.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/ligand_docking/qsar/qsarMap.hh
11
/// @author Sam DeLuca
12
13
#ifndef INCLUDED_protocols_qsar_qsarMap_hh
14
#define INCLUDED_protocols_qsar_qsarMap_hh
15
16
#include <map>
17
// AUTO-REMOVED #include <core/pose/Pose.hh>
18
#include <utility/pointer/ReferenceCount.hh>
19
// AUTO-REMOVED #include <core/grid/CartGrid.fwd.hh>
20
#include <
protocols/qsar/qsarMap.fwd.hh
>
21
//#include <protocols/qsar/qsarTypeManager.fwd.hh>
22
#include <
core/chemical/sdf/MolData.fwd.hh
>
23
24
#include <
core/types.hh
>
25
#include <
core/conformation/Residue.fwd.hh
>
26
#include <utility/vector1.hh>
27
#include <iostream>
28
29
30
namespace
protocols {
31
namespace
qsar {
32
33
class
qsarPoint
:
public
utility::pointer::ReferenceCount
34
{
35
public
:
36
///@brief Automatically generated virtual destructor for class deriving directly from ReferenceCount
37
virtual
~qsarPoint
();
38
qsarPoint
(
std::string
type,
core::Real
value,
std::string
name,
core::conformation::ResidueOP
residue );
39
///@brief set the value of the qsar point
40
void
set_value
(
core::Real
value);
41
42
43
///@brief return the value of the qsar point
44
core::Real
get_value
();
45
46
///@brief return the type of the qsar point
47
std::string
get_type
();
48
49
///@brief return the name of the atom the qsar point is associated with
50
std::string
get_name
();
51
52
///@brief return a pointer to the residue the qsar point is associated with
53
core::conformation::ResidueOP
get_residue
();
54
55
private
:
56
std::string
type_
;
57
core::Real
value_
;
58
std::string
atom_name_
;
59
core::conformation::ResidueOP
residue_
;
60
};
61
62
63
class
qsarMap
:
public
utility::pointer::ReferenceCount
64
{
65
public
:
66
///@brief Automatically generated virtual destructor for class deriving directly from ReferenceCount
67
virtual
~qsarMap
();
68
qsarMap
(
std::string
map_name,
core::conformation::ResidueOP
residue);
69
70
///@brief get size of map
71
core::Size
size
();
72
73
///@brief initialize grid so that every point has a constant value for every atom and every qsarType. mostly for debugging
74
void
fill_with_value
(
core::Size
value,
utility::vector1<std::string>
grids_to_use);
75
76
///@brief initialize grid using data from the mol_data object attached to a residue (if availible)
77
bool
fill_from_mol_data
(
core::chemical::sdf::MolData
mol_data);
78
79
///@brief add a new qsar point to the map
80
void
add_point
(
std::string
point_name,
qsarPointOP
new_point);
81
82
///@brief clear the qsar map
83
void
clear
();
84
85
///@brief return a point in the map from the point name
86
qsarPointOP
get_point
(
std::string
const
point_name);
87
88
///@brief return a point in the map from the atom_id and qsarType
89
qsarPointOP
get_point
(
core::Size
const
atom_id,
std::string
const
type);
90
91
///@brief return the residue associated with the qsarMap
92
core::conformation::ResidueOP
get_residue
();
93
94
///@brief return a vector of points associated with a given atom_id
95
utility::vector1<qsarPointOP>
find_points_for_atom
(
core::Size
const
atom_id);
96
97
///@brief return a vector of all points associated with a given qsarType;
98
utility::vector1<qsarPointOP>
find_points_of_type
(
std::string
const
type);
99
100
101
102
private
:
103
104
std::string
map_name_
;
105
std::map<std::string,qsarPointOP>
qsar_map_
;
106
std::multimap<std::string, qsarPointOP>
type_map_
;
107
std::multimap<core::Size,qsarPointOP>
atom_map_
;
108
109
core::conformation::ResidueOP
residue_
;
110
111
};
112
113
}
114
}
115
116
117
118
#endif
Generated on Sat Jun 1 2013 12:08:15 for Rosetta 3.5 by
1.8.4