8 #ifndef IMPATOM_SELECTION_H
9 #define IMPATOM_SELECTION_H
11 #include <IMP/atom/atom_config.h>
16 #include <IMP/algebra/algebra_config.h>
21 #include <boost/unordered_map.hpp>
23 IMPATOM_BEGIN_NAMESPACE
67 boost::dynamic_bitset<> parent)
const;
81 double resolution = 0, std::string molecule = None,
82 int residue_index = None, std::string chain = None,
84 HierarchyType hierarchy_type = None, Terminus terminus = None,
87 Ints copy_indexs = [],
int state_index = -1,
88 Ints state_indexes = []);
99 #if !defined(IMP_DOXYGEN) && !defined(SWIG)
105 void set_molecules(
Strings mols);
112 void set_state_indexes(
Ints states);
114 void set_terminus(Terminus t);
117 void set_chain_ids(
Strings chains);
119 void set_chains(
Strings chains) { set_chain_ids(chains); }
122 void set_residue_indexes(
Ints indexes);
129 void set_domains(
Strings names);
131 void set_molecule(std::string mol);
133 void set_chain_id(std::string c);
136 void set_chain(std::string c) { set_chain_id(c); }
140 IMPATOM_DEPRECATED_FUNCTION_DECL(2.2)
141 void set_chain(
char c) {
set_chain(std::string(1, c)); }
144 void set_residue_index(
int i);
150 void set_domain(std::string name);
152 void set_copy_index(
unsigned int copy);
154 void set_copy_indexes(
Ints copies);
162 void set_hierarchy_types(
Ints types);
169 operator ParticleIndexes()
const {
return get_selected_particle_indexes(); }
170 operator ParticlesTemp()
const {
return get_selected_particles(); }
201 const Selections &s,
double k, std::string name =
"Connectivity%1%");
212 std::string name =
"Connectivity%1%");
222 const Selection &s,
double k, std::string name =
"Connectivity%1%");
234 std::string name =
"Connectivity%1%");
250 std::string name = std::string());
257 #ifdef IMP_ALGEBRA_USE_IMP_CGAL
287 mutable boost::unordered_map<kernel::Particle *, base::Pointer<Geometry> >
297 IMPATOM_END_NAMESPACE
double get_volume(const Selection &s)
double get_mass(const Selection &s)
IMP::kernel::ParticleIndexes ParticleIndexes
The base class for geometry.
IMP::base::Vector< AtomType > AtomTypes
#define IMP_VALUES(Name, PluralName)
Define the type for storing sets of values.
void set_resolution(double r)
double get_radius_of_gyration(const Selection &s)
kernel::Restraint * create_distance_restraint(const Selection &n0, const Selection &n1, double x0, double k, std::string name="Distance%1%")
Implement geometry for the basic shapes from IMP.algebra.
void set_state_index(int state)
A particle with a user-defined type.
Import IMP/kernel/SingletonPredicate.h in the namespace.
kernel::Restraint * create_excluded_volume_restraint(const Selections &s)
Decorator for helping deal with a hierarchy of molecules.
core::XYZR create_cover(const Selection &s, std::string name=std::string())
IMP::base::Vector< IMP::base::Pointer< SingletonPredicate > > SingletonPredicates
#define IMP_SHOWABLE(Name)
The standard decorator for manipulating molecular structures.
A decorator for Residues.
A restraint is a term in an IMP ScoringFunction.
kernel::Restraint * create_connectivity_restraint(const Selections &s, double x0, double k, std::string name="Connectivity%1%")
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Class to handle individual model particles.
Key< 34897493, true > ParticleType
virtual Geometries get_components() const
Return a set of geometry composing this one.
double get_surface_area(const Selection &s)
IMP::base::Vector< ResidueType > ResidueTypes
kernel::Restraint * create_internal_connectivity_restraint(const Selection &s, double x0, double k, std::string name="Connectivity%1%")
Hierarchies get_leaves(const Selection &h)
Decorator for a sphere-like particle.
Class for storing model, its restraints, constraints, and particles.
IMP::base::Vector< Int > Ints
Standard way to pass a bunch of Int values.
A decorator for a particle with x,y,z coordinates and a radius.