IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
LoopStatistical.h
Go to the documentation of this file.
1/**
2 * \file IMP/score_functor/LoopStatistical.h
3 * \brief Fiser/Melo loop modeling statistical potential
4 *
5 * Copyright 2007-2022 IMP Inventors. All rights reserved.
6 */
7
8#ifndef IMPSCORE_FUNCTOR_LOOP_STATISTICAL_H
9#define IMPSCORE_FUNCTOR_LOOP_STATISTICAL_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 LoopStatisticalType;
19#else
20/** The type of atoms for the loop modeling potential.*/
23#endif
24
25//! Score atoms based on the Fiser/Melo loop modeling statistical potential
26/**
27 See Fiser et al, Modeling of loops in protein structures.
28 Protein Science 9, 1753-1773, 2000.
29
30 Like DOPE, this potential should not be applied to two atoms from
31 the same residue. You may need to use the SameResiduePairFilter
32 to filter these out.
33
34 You need to use IMP::atom::add_loop_statistical_score_data()
35 to add the requisite type data to the particles being scored.
36*/
37class LoopStatistical : public Statistical<LoopStatisticalType, false, true> {
39
40 public:
41 LoopStatistical(double threshold = std::numeric_limits<double>::max())
42 : P(get_loop_type_key(), threshold, get_data_path("melo_score.lib")) {}
43 LoopStatistical(double threshold, TextInput data_file)
44 : P(get_loop_type_key(), threshold, data_file) {}
45 static IntKey get_loop_type_key() {
46 static const IntKey ik("loop statistical atom type");
47 return ik;
48 }
49};
50
51IMPSCOREFUNCTOR_END_NAMESPACE
52
53#endif /* IMPSCORE_FUNCTOR_LOOP_STATISTICAL_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< LoopStatisticalType > LoopStatisticalTypes
Key< 6453472 > LoopStatisticalType
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.