9 #ifndef IMPMULTIFIT_FITTING_SOLUTION_RECORD_H
10 #define IMPMULTIFIT_FITTING_SOLUTION_RECORD_H
15 #include <IMP/multifit/multifit_config.h>
16 #include <boost/serialization/access.hpp>
18 IMPMULTIFIT_BEGIN_NAMESPACE
31 inline unsigned int get_index()
const {
return index_; }
32 void set_index(
unsigned int new_ind) { index_ = new_ind; }
33 inline std::string get_solution_filename()
const {
return sol_fn_; }
34 void set_solution_filename(std::string sol_fn) { sol_fn_ = sol_fn; }
36 return fit_transformation_;
39 fit_transformation_ = t;
41 inline unsigned int get_match_size()
const {
return match_size_; }
42 void set_match_size(
unsigned int match_size) { match_size_ = match_size; }
43 inline Float get_match_average_distance()
const {
return match_avg_dist_; }
44 void set_match_average_distance(
Float match_avg_dist) {
45 match_avg_dist_ = match_avg_dist;
47 inline Float get_fitting_score()
const {
return fitting_score_; }
48 void set_fitting_score(
Float fit_score) { fitting_score_ = fit_score; }
49 inline Float get_rmsd_to_reference()
const {
return rmsd_to_ref_; }
50 void set_rmsd_to_reference(
Float rmsd_to_ref) { rmsd_to_ref_ = rmsd_to_ref; }
52 return dock_transformation_;
55 dock_transformation_ = t;
57 inline Float get_envelope_penetration_score()
const {
return env_pen_; }
58 void set_envelope_penetration_score(
Float s) { env_pen_ = s; }
63 void show(std::ostream& out = std::cout)
const;
64 static std::string get_record_header() {
66 ss <<
"solution index | solution filename | fit rotation | fit translation "
68 <<
" match size | match average distance | "
69 <<
" envelope penetration score | fitting score|"
70 <<
"dock rotation | dock translation |"
71 <<
" RMSD to reference" << std::endl;
80 unsigned int match_size_;
81 Float match_avg_dist_;
87 friend class boost::serialization::access;
89 template<
class Archive>
void serialize(Archive &ar,
const unsigned int) {
90 ar & index_ & sol_fn_ & fit_transformation_ & dock_transformation_
91 & match_size_ & match_avg_dist_ & env_pen_ & fitting_score_
97 IMPMULTIFIT_END_NAMESPACE
Decorator for helping deal with a hierarchy.
A fitting solution record.
Storage of a model, its restraints, constraints and particles.
#define IMP_VALUES(Name, PluralName)
Define the type for storing sets of values.
Ints get_index(const ParticlesTemp &particles, const Subset &subset, const Subsets &excluded)
std::ostream & show(Hierarchy h, std::ostream &out=std::cout)
Print the hierarchy using a given decorator to display each node.
double Float
Basic floating-point value (could be float, double...)