IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
Dope.h
Go to the documentation of this file.
1/**
2 * \file IMP/score_functor/Dope.h
3 * \brief A Score on the distance between a pair of particles.
4 *
5 * Copyright 2007-2022 IMP Inventors. All rights reserved.
6 */
7
8#ifndef IMPSCORE_FUNCTOR_DOPE_H
9#define IMPSCORE_FUNCTOR_DOPE_H
10
11#include <IMP/score_functor/score_functor_config.h>
12#include "Score.h"
13#include <IMP/file.h>
14#include "Statistical.h"
15#include <IMP/algebra/utility.h>
16IMPSCOREFUNCTOR_BEGIN_NAMESPACE
17#ifdef SWIG
18class DopeType;
19#else
20//! The type of atoms for Dope.
23#endif
24
25//! Score pair of atoms based on DOPE.
26/** See M.-y. Shen and A. Sali. Statistical potential for assessment and
27 prediction of protein structures. Protein Science 15, 2507-2524, 2006.
28
29 You need to use IMP::atom::add_dope_score_data() to add the requisite
30 atom type data to the particles being scored.
31*/
32class Dope : public Statistical<DopeType, false, true> {
34
35 public:
36 Dope(double threshold = std::numeric_limits<double>::max())
37 : P(get_dope_type_key(), threshold, get_data_path("dope_score.lib")) {}
38 Dope(double threshold, TextInput data_file)
39 : P(get_dope_type_key(), threshold, data_file) {}
40 static IntKey get_dope_type_key() {
41 static const IntKey ik("dope atom type");
42 return ik;
43 }
44};
45
46IMPSCOREFUNCTOR_END_NAMESPACE
47
48#endif /* IMPSCORE_FUNCTOR_DOPE_H */
A Score on the distance between a pair of particles.
A Score on the distance between a pair of particles.
Functions to deal with very common math operations.
A base class for Keys.
Definition Key.h:45
Statistical(IntKey k, double threshold, TextInput data_file)
Definition Statistical.h:64
Handling of file input/output.
IMP::Vector< DopeType > DopeTypes
Definition Dope.h:22
Key< 6453462 > DopeType
The type of atoms for Dope.
Definition Dope.h:21
std::string get_data_path(std::string file_name)
Return the full path to one of this module's data files.
Key< 1 > IntKey
The type used to identify int attributes in the Particles.
Definition base_types.h:36
#define IMP_VALUES(Name, PluralName)
Define the type for storing sets of values.