IMP
2.2.1
The Integrative Modeling Platform
IMP Mainpage
All IMP Modules
Related Pages
Modules
Namespaces
Classes
Files
Examples
Indexes
File List
File Members
protein_ligand_score.h
Go to the documentation of this file.
1
/**
2
* \file IMP/atom/protein_ligand_score.h
3
* \brief Functions to read mol2s
4
*
5
* Copyright 2007-2014 IMP Inventors. All rights reserved.
6
*
7
*/
8
9
#ifndef IMPATOM_PROTEIN_LIGAND_SCORE_H
10
#define IMPATOM_PROTEIN_LIGAND_SCORE_H
11
12
#include <IMP/atom/atom_config.h>
13
#include "
Hierarchy.h
"
14
#include <
IMP/core/StatisticalPairScore.h
>
15
#include <
IMP/kernel/Model.h
>
16
#include <
IMP/kernel/Particle.h
>
17
#include <
IMP/kernel/Restraint.h
>
18
#include <
IMP/PairScore.h
>
19
#include <
IMP/container/PairsRestraint.h
>
20
#include <
IMP/algebra/Vector3D.h
>
21
#include <
IMP/base/file.h
>
22
#include <limits>
23
24
IMPATOM_BEGIN_NAMESPACE
25
26
/** \name Protein-ligand scoring
27
\anchor protein_ligand
28
29
\imp provides a statistical scoring function for scoring
30
protein-ligand complexes. See the
31
[Ligand Score application](@ref impligand_score) for more information.
32
@{
33
*/
34
class
ProteinLigandRestraint
;
35
36
#ifndef SWIG
37
/** The marker to identify the atom types.*/
38
typedef
Key<783462, false>
ProteinLigandType
;
39
IMP_VALUES
(
ProteinLigandType
,
ProteinLigandTypes
);
40
#else
41
class
ProteinLigandType
;
42
#endif
43
44
/** add_protein_ligand_score_data() must be called on the molecules
45
containing the atoms before the PairScore is used in order
46
to properly initialize the particles.
47
48
The default library to use is \c protein_ligand_rank_score.lib.
49
\imp also provides \c protein_ligand_pose_score.lib which can be
50
found at IMP::atom::get_data_path("protein_ligand_pose_score.lib").
51
*/
52
class
IMPATOMEXPORT
ProteinLigandAtomPairScore
53
:
public
core::StatisticalPairScore
<ProteinLigandType, true, false> {
54
friend
class
ProteinLigandRestraint
;
55
typedef
core::StatisticalPairScore<ProteinLigandType, true, false>
P
;
56
double
threshold_;
57
58
public
:
59
ProteinLigandAtomPairScore
(
double
threshold =
60
std::numeric_limits<double>::max());
61
ProteinLigandAtomPairScore
(
double
threshold,
base::TextInput
data_file);
62
double
get_maximum_distance()
const
{
return
threshold_; }
63
};
64
65
IMP_OBJECTS
(
ProteinLigandAtomPairScore
,
ProteinLigandAtomPairScores
);
66
67
/** Score a pair of molecules. See ProteinLigandAtomPairScore for
68
simply scoring the atom pairs.
69
70
\see ProteinLigandAtomPairScore
71
*/
72
class
IMPATOMEXPORT
ProteinLigandRestraint
:
public
container::PairsRestraint
{
73
void
initialize(
Hierarchy
protein,
Hierarchy
ligand);
74
75
public
:
76
ProteinLigandRestraint
(
Hierarchy
protein,
Hierarchy
ligand,
77
double
threshold = std::numeric_limits<double>::max());
78
ProteinLigandRestraint
(
Hierarchy
protein,
Hierarchy
ligand,
double
threshold,
79
base::TextInput
data_file);
80
};
81
82
IMP_OBJECTS
(
ProteinLigandRestraint
,
ProteinLigandRestraints
);
83
84
/** Add the data needed to use ProteinLigandAtomPairScore with the passed
85
Hierarchy.*/
86
IMPATOMEXPORT
void
add_protein_ligand_score_data
(
Hierarchy
h);
87
88
/** @} */
89
IMPATOM_END_NAMESPACE
90
91
#endif
/* IMPATOM_PROTEIN_LIGAND_SCORE_H */
PairsRestraint.h
Apply a PairScore to each Pair in a list.
IMP::atom::ProteinLigandAtomPairScore
Definition:
protein_ligand_score.h:52
IMP_VALUES
#define IMP_VALUES(Name, PluralName)
Define the type for storing sets of values.
Definition:
base/value_macros.h:24
IMP::base::TextInput
Definition:
base/file.h:89
IMP::core::StatisticalPairScore
Definition:
StatisticalPairScore.h:59
IMP::base::Vector
Definition:
base/Vector.h:37
IMP::atom::ProteinLigandRestraint
Definition:
protein_ligand_score.h:72
Hierarchy.h
Decorator for helping deal with a hierarchy of molecules.
IMP::atom::Hierarchy
The standard decorator for manipulating molecular structures.
Definition:
atom/Hierarchy.h:198
Restraint.h
Abstract base class for all restraints.
PairScore.h
Import IMP/kernel/PairScore.h in the namespace.
Model.h
Storage of a model, its restraints, constraints and particles.
Particle.h
Classes to handle individual model particles.
IMP::atom::add_protein_ligand_score_data
void add_protein_ligand_score_data(Hierarchy h)
IMP_OBJECTS
#define IMP_OBJECTS(Name, PluralName)
Define the types for storing sets of objects.
Definition:
base/object_macros.h:52
IMP::atom::ProteinLigandType
Key< 783462, false > ProteinLigandType
Definition:
protein_ligand_score.h:34
Vector3D.h
Simple 3D vector class.
file.h
Handling of file input/output.
StatisticalPairScore.h
Functions to read mol2s.
IMP::container::PairsRestraint
Applies a PairScore to each Pair in a list.
Definition:
PairsRestraint.h:34