IMP  2.1.0
The Integrative Modeling Platform
fitting_solutions_reader_writer.h
Go to the documentation of this file.
1 /**
2  * \file IMP/multifit/fitting_solutions_reader_writer.h
3  * \brief handles reading and writing MultiFit fitting solutions file
4  *
5  * Copyright 2007-2013 IMP Inventors. All rights reserved.
6  *
7  */
8 
9 #ifndef IMPMULTIFIT_FITTING_SOLUTIONS_READER_WRITER_H
10 #define IMPMULTIFIT_FITTING_SOLUTIONS_READER_WRITER_H
11 
13 #include <IMP/kernel/Model.h>
14 #include <IMP/core/Hierarchy.h>
15 #include <IMP/base/Object.h>
16 #include <IMP/em/rigid_fitting.h>
17 #include <IMP/multifit/multifit_config.h>
18 #include "FittingSolutionRecord.h"
19 IMPMULTIFIT_BEGIN_NAMESPACE
20 
21 //! Fitting solutions reader
22 /**
23 \todo consider using TextInput
24  */
26  const char *fitting_fn);
27 //! Write fitting solutions to a file
28 /**
29 \param[in] fitting_fn the fitting filename
30 \param[in] fit_sols the fitting solutions to write to file
31 \param[in] num_sols optional, only write the first num_sols fits.
32  */
33 IMPMULTIFITEXPORT void write_fitting_solutions(
34  const char *fitting_fn,
35  const FittingSolutionRecords &fit_sols,
36  int num_sols=-1);
37 
38 IMPMULTIFITEXPORT FittingSolutionRecords convert_em_to_multifit_format(
39  const em::FittingSolutions &em_fits);
40 IMPMULTIFITEXPORT em::FittingSolutions convert_multifit_to_em_format(
41  const FittingSolutionRecords &multifit_fits);
42 
43 IMPMULTIFITEXPORT FittingSolutionRecords
44  convert_transformations_to_multifit_format(
45  const algebra::Transformation3Ds &trans);
46 
47 IMPMULTIFITEXPORT algebra::Transformation3Ds
48  convert_multifit_format_to_transformations(
49  const FittingSolutionRecords &recs);
50 
51 IMPMULTIFIT_END_NAMESPACE
52 #endif /* IMPMULTIFIT_FITTING_SOLUTIONS_READER_WRITER_H */
Decorator for helping deal with a hierarchy.
IMP::base::Vector< FittingSolutionRecord > FittingSolutionRecords
stored a multifit fitting solution
IMP::base::Vector< Transformation3D > Transformation3Ds
void write_fitting_solutions(const char *fitting_fn, const FittingSolutionRecords &fit_sols, int num_sols=-1)
Write fitting solutions to a file.
Storage of a model, its restraints, constraints and particles.
Simple 3D transformation class.
FittingSolutionRecords read_fitting_solutions(const char *fitting_fn)
Fitting solutions reader.
A shared base class to help in debugging and things.
preforms rigid fitting between a set of particles and a density map