10 #ifndef IMPBFF_AVNETWORKRESTRAINT_H
11 #define IMPBFF_AVNETWORKRESTRAINT_H
13 #include <IMP/bff/bff_config.h>
24 #include <IMP/bff/internal/FPSReaderWriter.h>
25 #include <IMP/bff/internal/json.h>
30 IMPBFF_BEGIN_NAMESPACE
57 int n_samples = 50000;
65 std::map<std::string, IMP::bff::AV*> avs_{};
84 std::map<std::string, AVPairDistanceMeasurement> distances_;
91 std::map<std::string, IMP::bff::AV*> create_av_decorated_particles(
92 nlohmann::json used_positions,
113 std::string fps_json_fn,
114 std::string name =
"AVNetworkRestraint%1%",
115 std::string score_set =
"",
116 int n_samples = 50000
149 double get_model_distance(
150 std::string position1_name,
151 std::string position2_name,
152 double forster_radius,
182 void show(std::ostream &out)
const {out <<
"AVNetwork restraint";}
192 #endif //IMPBFF_AVNETWORKRESTRAINT_H
Various important macros for implementing decorators.
A decorator for a particle with accessible volume (AV).
Simple Accessible Volume decorator.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Single variable function.
Storage of a model, its restraints, constraints and particles.
virtual double unprotected_evaluate(DerivativeAccumulator *da) const
Return the unweighted score for the restraint.
void show(std::ostream &out) const
Prints a description of the restraint.
A restraint that uses an annotated volumetric network to score particle distances.
Decorator for helping deal with a hierarchy of molecules.
ParticleIndexes const get_indexes()
Returns the particle indexes of the AVs.
double get_probability() const
Returns exp(score).
A nullptr-initialized pointer to an IMP Object.
const std::map< std::string, AVPairDistanceMeasurement > get_used_distances()
Returns the used experimental distances.
A shared base class to help in debugging and things.
Abstract base class for all restraints.
A decorator for helping deal with a generalized hierarchy.
virtual ModelObjectsTemp do_get_inputs() const =0
Class for adding derivatives from restraints to the model.
A restraint is a term in an IMP ScoringFunction.