8 #ifndef IMPATOM_HIERARCHY_TOOLS_H
9 #define IMPATOM_HIERARCHY_TOOLS_H
11 #include "atom_config.h"
12 #include <IMP/algebra/algebra_config.h>
13 #include "Hierarchy.h"
19 #include <boost/graph/adjacency_list.hpp>
21 IMPATOM_BEGIN_NAMESPACE
46 int number_of_residues,
47 int first_residue_index=0,
61 const Ints domain_boundaries);
83 const IntRanges& residue_segments);
93 IMPATOMEXPORT std::string get_molecule_name(Hierarchy h);
94 IMPATOMEXPORT Ints get_residue_indexes(Hierarchy h);
96 IMPATOMEXPORT
int get_chain_id(Hierarchy h);
97 IMPATOMEXPORT
AtomType get_atom_type(Hierarchy h);
98 IMPATOMEXPORT std::string get_domain_name(Hierarchy h);
99 IMPATOMEXPORT
int get_copy_index(Hierarchy h);
113 double resolution=-1);
122 const ParticlesTemp &other
136 double resolution =-1
173 SingletonGeometry(d), res_(resolution){}
174 display::Geometries get_components()
const {
175 display::Geometries ret;
178 sel.set_target_radius(res_);
180 for (
unsigned int i=0; i< ps.size(); ++i) {
181 if (components_.find(ps[i])== components_.end()) {
183 components_[ps[i]]=g;
185 ret.push_back(components_.find(ps[i])->second);
198 SingletonsGeometry(sc), res_(resolution){}
199 display::Geometries get_components()
const {
200 display::Geometries ret;
202 if (components_.find(_1)
203 == components_.end()) {
207 ret.push_back(components_.find(_1)->second);
212 out << get_container() << std::endl;,{});
215 IMPATOM_END_NAMESPACE