9 #ifndef IMPMULTIFIT_ANCHORS_READER_H 
   10 #define IMPMULTIFIT_ANCHORS_READER_H 
   16 #include <IMP/multifit/multifit_config.h> 
   18 IMPMULTIFIT_BEGIN_NAMESPACE
 
   29     for (
unsigned int i = 0; i < points_.size(); i++) {
 
   30       consider_point_.push_back(
true);
 
   34   void remove_edges_for_node(
int node_ind) {
 
   37     for (
int i = 0; i < (int)edges_.size(); i++) {
 
   38       if (!((edges_[i].first == node_ind) || (edges_[i].second == node_ind))) {
 
   39         new_edges.push_back(edges_[i]);
 
   42     consider_point_[node_ind] = 
false;
 
   45   int get_number_of_points()
 const { 
return points_.size(); }
 
   46   int get_number_of_edges()
 const { 
return edges_.size(); }
 
   47   bool get_is_point_considered(
int node_ind)
 const {
 
   48     return consider_point_[node_ind];
 
   50   void show(std::ostream &out = std::cout)
 const {
 
   51     out << 
"==== " << points_.size() << 
" Anchors:" << std::endl;
 
   52     for (
int i = 0; i < (int)points_.size(); i++) {
 
   53       out << points_[i] << std::endl;
 
   55     out << 
"====" << edges_.size() << 
" Edges:" << std::endl;
 
   56     for (
int i = 0; i < (int)edges_.size(); i++) {
 
   57       out << 
"(" << edges_[i].first << 
"," << edges_[i].second << 
") ";
 
   64     return (secondary_structure_ps_.size() == points_.size());
 
   68   void setup_secondary_structure(
Model *mdl);
 
   76   void set_secondary_structure_probabilities(
const Particles &ssres_ps,
 
   79   inline Particles get_secondary_structure_particles()
 const {
 
   80     return secondary_structure_ps_;
 
   83   std::vector<bool> consider_point_;
 
   91 IMPMULTIFITEXPORT 
AnchorsData read_anchors_data(
const char *txt_filename);
 
   93 void write_txt(
const std::string &txt_filename, 
const AnchorsData &ad);
 
   95 void write_cmm(
const std::string &cmm_filename,
 
   96                const std::string &marker_set_name, 
const AnchorsData &dpa);
 
   98 IMPMULTIFIT_END_NAMESPACE
 
Decorator for helping deal with a hierarchy. 
 
A decorator for storing secondary structure probabilities. 
 
bool get_secondary_structure_is_set()
Check if secondary structure is setup. 
 
Storage of anchors (points and edges) 
 
Storage of a model, its restraints, constraints and particles. 
 
Tools for data points assignment, after anchor point segmentation. 
 
Class for storing model, its restraints, constraints, and particles. 
 
#define IMP_VALUES(Name, PluralName)
Define the type for storing sets of values. 
 
std::ostream & show(Hierarchy h, std::ostream &out=std::cout)
Print the hierarchy using a given decorator to display each node. 
 
IMP::Vector< Int > Ints
Standard way to pass a bunch of Int values.