9 #ifndef IMPMULTIFIT_DATA_POINTS_ASSIGNMENT_H
10 #define IMPMULTIFIT_DATA_POINTS_ASSIGNMENT_H
18 #include <IMP/statistics/internal/ClusteringEngine.h>
19 #include <IMP/statistics/internal/DataPoints.h>
21 #include <IMP/multifit/multifit_config.h>
24 IMPMULTIFIT_BEGIN_NAMESPACE
25 typedef std::map<IntPair, int> CEdges;
32 (
const IMP::statistics::internal::XYZDataPoints *data,
33 const IMP::statistics::internal::ClusteringEngine *cluster_engine);
36 int get_number_of_clusters()
const {
return cluster_sets_.size();}
42 for(
int i=0;i<get_number_of_clusters();i++) {
43 IMP::statistics::internal::Array1DD xyz =cluster_engine_->get_center(i);
48 const IMP::statistics::internal::ClusteringEngine *get_cluster_engine()
49 const {
return cluster_engine_;};
54 void connect_clusters(
int c1,
int c2);
55 void set_edges(
double voxel_size=3.);
59 std::vector<algebra::Vector3Ds> cluster_sets_;
60 const IMP::statistics::internal::ClusteringEngine *cluster_engine_;
65 IMPMULTIFITEXPORT
void write_chimera(
66 const std::string &chimera_filename,
70 CEdges> read_cmm(
const std::string &cmm_filename);
75 CEdges> read_cmm(
const std::string &cmm_filename);
82 IMPMULTIFITEXPORT
void write_pdb(
const std::string &pdb_filename,
86 const std::string &filename);
90 const std::string &filename);
102 const std::string &filename);
107 Float resolution,
Float apix,
const std::string &filename);
114 IMPMULTIFIT_END_NAMESPACE
void write_pdb(const Selection &mhd, base::TextOutput out, unsigned int model=1)
void write_segments_as_mrc(em::DensityMap *dmap, const DataPointsAssignment &dpa, Float resolution, Float apix, Float threshold, const std::string &filename)
Write segments in MRC format.
IntPairs get_edges(const BoundingBoxD< 3 > &)
Return the edges of the box as indices into the vertices list.
Decorator for helping deal with a hierarchy of molecules.
Class for handling density maps.
base::Vector< VectorD< 3 > > Vector3Ds
functionality for defining rigid bodies
Handling of data for anchor points segmentation.
double Float
Basic floating-point value (could be float, double...)