14 from sys
import version_info
as _swig_python_version_info
18 import builtins
as __builtin__
24 strthis =
"proxy of " + self.this.__repr__()
25 except __builtin__.Exception:
27 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
30 def _swig_setattr_nondynamic_instance_variable(set):
31 def set_instance_attr(self, name, value):
33 set(self, name, value)
34 elif name ==
"thisown":
36 elif hasattr(self, name)
and isinstance(getattr(type(self), name), property):
37 set(self, name, value)
39 raise AttributeError(
"You cannot add instance attributes to %s" % self)
40 return set_instance_attr
43 def _swig_setattr_nondynamic_class_variable(set):
44 def set_class_attr(cls, name, value):
45 if hasattr(cls, name)
and not isinstance(getattr(cls, name), property):
48 raise AttributeError(
"You cannot add class attributes to %s" % cls)
52 def _swig_add_metaclass(metaclass):
53 """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
55 return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
59 class _SwigNonDynamicMeta(type):
60 """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
61 __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
66 class IMP_ATOM_SwigPyIterator(object):
67 r"""Proxy of C++ swig::IMP_ATOM_SwigPyIterator class."""
69 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
71 def __init__(self, *args, **kwargs):
72 raise AttributeError(
"No constructor defined - class is abstract")
74 __swig_destroy__ = _IMP_atom.delete_IMP_ATOM_SwigPyIterator
77 r"""value(IMP_ATOM_SwigPyIterator self) -> PyObject *"""
78 return _IMP_atom.IMP_ATOM_SwigPyIterator_value(self)
81 r"""incr(IMP_ATOM_SwigPyIterator self, size_t n=1) -> IMP_ATOM_SwigPyIterator"""
82 return _IMP_atom.IMP_ATOM_SwigPyIterator_incr(self, n)
85 r"""decr(IMP_ATOM_SwigPyIterator self, size_t n=1) -> IMP_ATOM_SwigPyIterator"""
86 return _IMP_atom.IMP_ATOM_SwigPyIterator_decr(self, n)
88 def distance(self, x):
89 r"""distance(IMP_ATOM_SwigPyIterator self, IMP_ATOM_SwigPyIterator x) -> ptrdiff_t"""
90 return _IMP_atom.IMP_ATOM_SwigPyIterator_distance(self, x)
93 r"""equal(IMP_ATOM_SwigPyIterator self, IMP_ATOM_SwigPyIterator x) -> bool"""
94 return _IMP_atom.IMP_ATOM_SwigPyIterator_equal(self, x)
97 r"""copy(IMP_ATOM_SwigPyIterator self) -> IMP_ATOM_SwigPyIterator"""
98 return _IMP_atom.IMP_ATOM_SwigPyIterator_copy(self)
101 r"""next(IMP_ATOM_SwigPyIterator self) -> PyObject *"""
102 return _IMP_atom.IMP_ATOM_SwigPyIterator_next(self)
105 r"""__next__(IMP_ATOM_SwigPyIterator self) -> PyObject *"""
106 return _IMP_atom.IMP_ATOM_SwigPyIterator___next__(self)
109 r"""previous(IMP_ATOM_SwigPyIterator self) -> PyObject *"""
110 return _IMP_atom.IMP_ATOM_SwigPyIterator_previous(self)
112 def advance(self, n):
113 r"""advance(IMP_ATOM_SwigPyIterator self, ptrdiff_t n) -> IMP_ATOM_SwigPyIterator"""
114 return _IMP_atom.IMP_ATOM_SwigPyIterator_advance(self, n)
117 r"""__eq__(IMP_ATOM_SwigPyIterator self, IMP_ATOM_SwigPyIterator x) -> bool"""
118 return _IMP_atom.IMP_ATOM_SwigPyIterator___eq__(self, x)
121 r"""__ne__(IMP_ATOM_SwigPyIterator self, IMP_ATOM_SwigPyIterator x) -> bool"""
122 return _IMP_atom.IMP_ATOM_SwigPyIterator___ne__(self, x)
124 def __iadd__(self, n):
125 r"""__iadd__(IMP_ATOM_SwigPyIterator self, ptrdiff_t n) -> IMP_ATOM_SwigPyIterator"""
126 return _IMP_atom.IMP_ATOM_SwigPyIterator___iadd__(self, n)
128 def __isub__(self, n):
129 r"""__isub__(IMP_ATOM_SwigPyIterator self, ptrdiff_t n) -> IMP_ATOM_SwigPyIterator"""
130 return _IMP_atom.IMP_ATOM_SwigPyIterator___isub__(self, n)
132 def __add__(self, n):
133 r"""__add__(IMP_ATOM_SwigPyIterator self, ptrdiff_t n) -> IMP_ATOM_SwigPyIterator"""
134 return _IMP_atom.IMP_ATOM_SwigPyIterator___add__(self, n)
136 def __sub__(self, *args):
138 __sub__(IMP_ATOM_SwigPyIterator self, ptrdiff_t n) -> IMP_ATOM_SwigPyIterator
139 __sub__(IMP_ATOM_SwigPyIterator self, IMP_ATOM_SwigPyIterator x) -> ptrdiff_t
141 return _IMP_atom.IMP_ATOM_SwigPyIterator___sub__(self, *args)
146 _IMP_atom.IMP_ATOM_SwigPyIterator_swigregister(IMP_ATOM_SwigPyIterator)
153 IMP_DEBUG = _IMP_atom.IMP_DEBUG
155 IMP_RELEASE = _IMP_atom.IMP_RELEASE
157 IMP_SILENT = _IMP_atom.IMP_SILENT
159 IMP_PROGRESS = _IMP_atom.IMP_PROGRESS
161 IMP_TERSE = _IMP_atom.IMP_TERSE
163 IMP_VERBOSE = _IMP_atom.IMP_VERBOSE
165 IMP_MEMORY = _IMP_atom.IMP_MEMORY
167 IMP_NONE = _IMP_atom.IMP_NONE
169 IMP_USAGE = _IMP_atom.IMP_USAGE
171 IMP_INTERNAL = _IMP_atom.IMP_INTERNAL
173 IMP_KERNEL_HAS_LOG4CXX = _IMP_atom.IMP_KERNEL_HAS_LOG4CXX
175 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_atom.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
177 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_atom.IMP_COMPILER_HAS_DEBUG_VECTOR
179 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_atom.IMP_COMPILER_HAS_RANDOM_SHUFFLE
181 IMP_COMPILER_HAS_THREE_WAY = _IMP_atom.IMP_COMPILER_HAS_THREE_WAY
183 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_atom.IMP_KERNEL_HAS_BOOST_RANDOM
185 IMP_KERNEL_HAS_NUMPY = _IMP_atom.IMP_KERNEL_HAS_NUMPY
187 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_atom.IMP_KERNEL_HAS_BOOST_SYSTEM
189 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_atom.IMP_KERNEL_HAS_GPERFTOOLS
191 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_atom.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
193 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_atom.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
195 IMPKERNEL_SHOW_WARNINGS = _IMP_atom.IMPKERNEL_SHOW_WARNINGS
199 class _DirectorObjects:
200 """@internal Simple class to keep references to director objects
201 to prevent premature deletion."""
204 def register(self, obj):
205 """Take a reference to a director object; will only work for
206 refcounted C++ classes"""
207 if hasattr(obj,
'get_ref_count'):
208 self._objects.append(obj)
210 """Only drop our reference and allow cleanup by Python if no other
211 Python references exist (we hold 3 references: one in self._objects,
212 one in x, and one in the argument list for getrefcount) *and* no
213 other C++ references exist (the Python object always holds one)"""
214 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
215 or x.get_ref_count() > 1]
219 def get_object_count(self):
220 """Get number of director objects (useful for testing only)"""
221 return len(self._objects)
222 _director_objects = _DirectorObjects()
224 class _ostream(object):
225 r"""Proxy of C++ std::ostream class."""
227 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
229 def __init__(self, *args, **kwargs):
230 raise AttributeError(
"No constructor defined")
231 __repr__ = _swig_repr
233 def write(self, osa_buf):
234 r"""write(_ostream self, char const * osa_buf)"""
235 return _IMP_atom._ostream_write(self, osa_buf)
238 _IMP_atom._ostream_swigregister(_ostream)
239 IMP_C_OPEN_BINARY = _IMP_atom.IMP_C_OPEN_BINARY
242 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_atom.IMP_CGAL_HAS_BOOST_FILESYSTEM
244 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_atom.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
246 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_atom.IMP_CGAL_HAS_BOOST_RANDOM
248 IMP_CGAL_HAS_NUMPY = _IMP_atom.IMP_CGAL_HAS_NUMPY
250 IMPCGAL_SHOW_WARNINGS = _IMP_atom.IMPCGAL_SHOW_WARNINGS
253 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_atom.IMP_ALGEBRA_HAS_IMP_CGAL
255 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_atom.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
257 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_atom.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
259 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_atom.IMP_ALGEBRA_HAS_BOOST_RANDOM
261 IMP_ALGEBRA_HAS_CGAL = _IMP_atom.IMP_ALGEBRA_HAS_CGAL
263 IMP_ALGEBRA_HAS_NUMPY = _IMP_atom.IMP_ALGEBRA_HAS_NUMPY
265 IMP_ALGEBRA_HAS_ANN = _IMP_atom.IMP_ALGEBRA_HAS_ANN
267 IMPALGEBRA_SHOW_WARNINGS = _IMP_atom.IMPALGEBRA_SHOW_WARNINGS
270 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_atom.IMP_DISPLAY_HAS_IMP_CGAL
272 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_atom.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
274 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_atom.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
276 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_atom.IMP_DISPLAY_HAS_BOOST_RANDOM
278 IMP_DISPLAY_HAS_CGAL = _IMP_atom.IMP_DISPLAY_HAS_CGAL
280 IMP_DISPLAY_HAS_NUMPY = _IMP_atom.IMP_DISPLAY_HAS_NUMPY
282 IMPDISPLAY_SHOW_WARNINGS = _IMP_atom.IMPDISPLAY_SHOW_WARNINGS
285 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_atom.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
287 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_atom.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
289 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_atom.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
291 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_atom.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
293 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_atom.IMP_SCORE_FUNCTOR_HAS_CGAL
295 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_atom.IMP_SCORE_FUNCTOR_HAS_HDF5
297 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_atom.IMP_SCORE_FUNCTOR_HAS_NUMPY
299 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_atom.IMPSCOREFUNCTOR_SHOW_WARNINGS
302 IMP_CORE_HAS_IMP_CGAL = _IMP_atom.IMP_CORE_HAS_IMP_CGAL
304 IMP_CORE_HAS_IMP_KERNEL = _IMP_atom.IMP_CORE_HAS_IMP_KERNEL
306 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_atom.IMP_CORE_HAS_BOOST_FILESYSTEM
308 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_atom.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
310 IMP_CORE_HAS_BOOST_RANDOM = _IMP_atom.IMP_CORE_HAS_BOOST_RANDOM
312 IMP_CORE_HAS_CGAL = _IMP_atom.IMP_CORE_HAS_CGAL
314 IMP_CORE_HAS_HDF5 = _IMP_atom.IMP_CORE_HAS_HDF5
316 IMP_CORE_HAS_NUMPY = _IMP_atom.IMP_CORE_HAS_NUMPY
318 IMPCORE_SHOW_WARNINGS = _IMP_atom.IMPCORE_SHOW_WARNINGS
321 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_atom.IMP_CONTAINER_HAS_IMP_ALGEBRA
323 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_atom.IMP_CONTAINER_HAS_IMP_CGAL
325 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_atom.IMP_CONTAINER_HAS_IMP_DISPLAY
327 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_atom.IMP_CONTAINER_HAS_IMP_KERNEL
329 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_atom.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
331 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_atom.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
333 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_atom.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
335 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_atom.IMP_CONTAINER_HAS_BOOST_RANDOM
337 IMP_CONTAINER_HAS_CGAL = _IMP_atom.IMP_CONTAINER_HAS_CGAL
339 IMP_CONTAINER_HAS_HDF5 = _IMP_atom.IMP_CONTAINER_HAS_HDF5
341 IMP_CONTAINER_HAS_NUMPY = _IMP_atom.IMP_CONTAINER_HAS_NUMPY
343 IMP_CONTAINER_HAS_PYTHON_IHM = _IMP_atom.IMP_CONTAINER_HAS_PYTHON_IHM
345 IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP = _IMP_atom.IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP
347 IMP_CONTAINER_HAS_ROBIN_MAP = _IMP_atom.IMP_CONTAINER_HAS_ROBIN_MAP
349 IMPCONTAINER_SHOW_WARNINGS = _IMP_atom.IMPCONTAINER_SHOW_WARNINGS
352 IMP_ATOM_HAS_IMP_CGAL = _IMP_atom.IMP_ATOM_HAS_IMP_CGAL
354 IMP_ATOM_HAS_IMP_KERNEL = _IMP_atom.IMP_ATOM_HAS_IMP_KERNEL
356 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_atom.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
358 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_atom.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
360 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_atom.IMP_ATOM_HAS_BOOST_RANDOM
362 IMP_ATOM_HAS_BOOST_REGEX = _IMP_atom.IMP_ATOM_HAS_BOOST_REGEX
364 IMP_ATOM_HAS_CGAL = _IMP_atom.IMP_ATOM_HAS_CGAL
366 IMP_ATOM_HAS_HDF5 = _IMP_atom.IMP_ATOM_HAS_HDF5
368 IMP_ATOM_HAS_NUMPY = _IMP_atom.IMP_ATOM_HAS_NUMPY
370 IMP_ATOM_HAS_PYTHON_IHM = _IMP_atom.IMP_ATOM_HAS_PYTHON_IHM
372 IMPATOM_SHOW_WARNINGS = _IMP_atom.IMPATOM_SHOW_WARNINGS
374 IMP_ATOM_TYPE_INDEX = _IMP_atom.IMP_ATOM_TYPE_INDEX
376 IMP_RESIDUE_TYPE_INDEX = _IMP_atom.IMP_RESIDUE_TYPE_INDEX
378 IMP_HIERARCHY_TYPE_INDEX = _IMP_atom.IMP_HIERARCHY_TYPE_INDEX
380 IMP_CHAIN_TYPE_INDEX = _IMP_atom.IMP_CHAIN_TYPE_INDEX
383 r"""Proxy of C++ IMP::internal::BoostDigraph< IMP::atom::HierarchyTree,IMP::atom::Hierarchy,IMP::atom::ShowHierarchyTreeVertex > class."""
385 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
386 __repr__ = _swig_repr
389 r"""__init__(HierarchyTree self) -> HierarchyTree"""
390 _IMP_atom.HierarchyTree_swiginit(self, _IMP_atom.new_HierarchyTree())
393 r"""get_graph(HierarchyTree self) -> IMP::atom::HierarchyTree const &"""
394 return _IMP_atom.HierarchyTree_get_graph(self)
397 r"""get_vertices(HierarchyTree self) -> IMP::internal::BoostDigraph< IMP::atom::HierarchyTree,IMP::atom::Hierarchy,IMP::atom::ShowHierarchyTreeVertex >::VertexDescriptors"""
398 return _IMP_atom.HierarchyTree_get_vertices(self)
400 def get_vertex_name(self, i):
401 r"""get_vertex_name(HierarchyTree self, IMP::internal::BoostDigraph< IMP::atom::HierarchyTree,IMP::atom::Hierarchy,IMP::atom::ShowHierarchyTreeVertex >::VertexDescriptor i) -> Hierarchy"""
402 return _IMP_atom.HierarchyTree_get_vertex_name(self, i)
404 def get_in_neighbors(self, v):
405 r"""get_in_neighbors(HierarchyTree self, IMP::internal::BoostDigraph< IMP::atom::HierarchyTree,IMP::atom::Hierarchy,IMP::atom::ShowHierarchyTreeVertex >::VertexDescriptor v) -> IMP::internal::BoostDigraph< IMP::atom::HierarchyTree,IMP::atom::Hierarchy,IMP::atom::ShowHierarchyTreeVertex >::VertexDescriptors"""
406 return _IMP_atom.HierarchyTree_get_in_neighbors(self, v)
408 def get_out_neighbors(self, v):
409 r"""get_out_neighbors(HierarchyTree self, IMP::internal::BoostDigraph< IMP::atom::HierarchyTree,IMP::atom::Hierarchy,IMP::atom::ShowHierarchyTreeVertex >::VertexDescriptor v) -> IMP::internal::BoostDigraph< IMP::atom::HierarchyTree,IMP::atom::Hierarchy,IMP::atom::ShowHierarchyTreeVertex >::VertexDescriptors"""
410 return _IMP_atom.HierarchyTree_get_out_neighbors(self, v)
413 r"""show_graphviz(HierarchyTree self, _ostream out=std::cout)"""
414 return _IMP_atom.HierarchyTree_show_graphviz(self, *args)
416 def get_graphviz_string(self):
417 r"""get_graphviz_string(HierarchyTree self) -> std::string"""
418 return _IMP_atom.HierarchyTree_get_graphviz_string(self)
420 def add_edge(self, v0, v1):
421 r"""add_edge(HierarchyTree self, IMP::internal::BoostDigraph< IMP::atom::HierarchyTree,IMP::atom::Hierarchy,IMP::atom::ShowHierarchyTreeVertex >::VertexDescriptor v0, IMP::internal::BoostDigraph< IMP::atom::HierarchyTree,IMP::atom::Hierarchy,IMP::atom::ShowHierarchyTreeVertex >::VertexDescriptor v1)"""
422 return _IMP_atom.HierarchyTree_add_edge(self, v0, v1)
424 def add_vertex(self, l):
425 r"""add_vertex(HierarchyTree self, Hierarchy l) -> IMP::internal::BoostDigraph< IMP::atom::HierarchyTree,IMP::atom::Hierarchy,IMP::atom::ShowHierarchyTreeVertex >::VertexDescriptor"""
426 return _IMP_atom.HierarchyTree_add_vertex(self, l)
428 def remove_vertex(self, l):
429 r"""remove_vertex(HierarchyTree self, IMP::internal::BoostDigraph< IMP::atom::HierarchyTree,IMP::atom::Hierarchy,IMP::atom::ShowHierarchyTreeVertex >::VertexDescriptor l)"""
430 return _IMP_atom.HierarchyTree_remove_vertex(self, l)
431 __swig_destroy__ = _IMP_atom.delete_HierarchyTree
434 _IMP_atom.HierarchyTree_swigregister(HierarchyTree)
436 _value_types.append(
"HierarchyTree")
440 _plural_types.append(
"PDBRecords")
441 _value_types.append(
"PDBRecord")
444 _object_types.append(
"LennardJonesType")
447 def _object_cast_to_LennardJonesType(o):
448 r"""_object_cast_to_LennardJonesType(Object o) -> LennardJonesType"""
449 return _IMP_atom._object_cast_to_LennardJonesType(o)
451 _object_types.append(
"PDBSelector")
454 def _object_cast_to_PDBSelector(o):
455 r"""_object_cast_to_PDBSelector(Object o) -> PDBSelector"""
456 return _IMP_atom._object_cast_to_PDBSelector(o)
459 return [Angle(x)
for x
in l]
460 _plural_types.append(
"Angles")
463 _value_types.append(
"Angle")
467 return [Atom(x)
for x
in l]
468 _plural_types.append(
"Atoms")
471 _value_types.append(
"Atom")
475 return [Bond(x)
for x
in l]
476 _plural_types.append(
"Bonds")
479 _value_types.append(
"Bond")
483 return [Bonded(x)
for x
in l]
484 _plural_types.append(
"Bondeds")
487 _value_types.append(
"Bonded")
490 def CHARMMAtomList(l=[]):
491 return [CHARMMAtom(x)
for x
in l]
492 _plural_types.append(
"CHARMMAtomList")
495 _value_types.append(
"CHARMMAtom")
499 return [Chain(x)
for x
in l]
500 _plural_types.append(
"Chains")
503 _value_types.append(
"Chain")
506 def CenterOfMasses(l=[]):
507 return [CenterOfMass(x)
for x
in l]
508 _plural_types.append(
"CenterOfMasses")
511 _value_types.append(
"CenterOfMass")
515 return [Charged(x)
for x
in l]
516 _plural_types.append(
"Chargeds")
519 _value_types.append(
"Charged")
522 def Diffusions(l=[]):
523 return [Diffusion(x)
for x
in l]
524 _plural_types.append(
"Diffusions")
527 _value_types.append(
"Diffusion")
530 def RigidBodyDiffusions(l=[]):
531 return [RigidBodyDiffusion(x)
for x
in l]
532 _plural_types.append(
"RigidBodyDiffusions")
535 _value_types.append(
"RigidBodyDiffusion")
538 def TAMDParticles(l=[]):
539 return [TAMDParticle(x)
for x
in l]
540 _plural_types.append(
"TAMDParticles")
543 _value_types.append(
"TAMDParticle")
546 def TAMDCentroids(l=[]):
547 return [TAMDCentroid(x)
for x
in l]
548 _plural_types.append(
"TAMDCentroids")
551 _value_types.append(
"TAMDCentroid")
555 return [Dihedral(x)
for x
in l]
556 _plural_types.append(
"Dihedrals")
559 _value_types.append(
"Dihedral")
563 return [Domain(x)
for x
in l]
564 _plural_types.append(
"Domains")
567 _value_types.append(
"Domain")
571 return [Fragment(x)
for x
in l]
572 _plural_types.append(
"Fragments")
575 _value_types.append(
"Fragment")
578 def Hierarchies(l=[]):
579 return [Hierarchy(x)
for x
in l]
580 _plural_types.append(
"Hierarchies")
583 _value_types.append(
"Hierarchy")
586 def LennardJonesTypeds(l=[]):
587 return [LennardJonesTyped(x)
for x
in l]
588 _plural_types.append(
"LennardJonesTypeds")
591 _value_types.append(
"LennardJonesTyped")
595 return [Mass(x)
for x
in l]
596 _plural_types.append(
"Masses")
599 _value_types.append(
"Mass")
602 def LinearVelocities(l=[]):
603 return [LinearVelocity(x)
for x
in l]
604 _plural_types.append(
"LinearVelocities")
607 _value_types.append(
"LinearVelocity")
610 def AngularVelocities(l=[]):
611 return [AngularVelocity(x)
for x
in l]
612 _plural_types.append(
"AngularVelocities")
615 _value_types.append(
"AngularVelocity")
619 return [Molecule(x)
for x
in l]
620 _plural_types.append(
"Molecules")
623 _value_types.append(
"Molecule")
627 return [Residue(x)
for x
in l]
628 _plural_types.append(
"Residues")
631 _value_types.append(
"Residue")
634 def Representations(l=[]):
635 return [Representation(x)
for x
in l]
636 _plural_types.append(
"Representations")
639 _value_types.append(
"Representation")
643 return [State(x)
for x
in l]
644 _plural_types.append(
"States")
647 _value_types.append(
"State")
651 return [Copy(x)
for x
in l]
652 _plural_types.append(
"Copies")
655 _value_types.append(
"Copy")
658 def SecondaryStructureResidues(l=[]):
659 return [SecondaryStructureResidue(x)
for x
in l]
660 _plural_types.append(
"SecondaryStructureResidues")
663 _value_types.append(
"SecondaryStructureResidue")
666 def StructureSources(l=[]):
667 return [StructureSource(x)
for x
in l]
668 _plural_types.append(
"StructureSources")
671 _value_types.append(
"StructureSource")
674 _object_types.append(
"Simulator")
677 def _object_cast_to_Simulator(o):
678 r"""_object_cast_to_Simulator(Object o) -> Simulator"""
679 return _IMP_atom._object_cast_to_Simulator(o)
681 _object_types.append(
"ATOMPDBSelector")
684 def _object_cast_to_ATOMPDBSelector(o):
685 r"""_object_cast_to_ATOMPDBSelector(Object o) -> ATOMPDBSelector"""
686 return _IMP_atom._object_cast_to_ATOMPDBSelector(o)
688 _object_types.append(
"AllMol2Selector")
691 def _object_cast_to_AllMol2Selector(o):
692 r"""_object_cast_to_AllMol2Selector(Object o) -> AllMol2Selector"""
693 return _IMP_atom._object_cast_to_AllMol2Selector(o)
695 _object_types.append(
"AllPDBSelector")
698 def _object_cast_to_AllPDBSelector(o):
699 r"""_object_cast_to_AllPDBSelector(Object o) -> AllPDBSelector"""
700 return _IMP_atom._object_cast_to_AllPDBSelector(o)
702 _object_types.append(
"AndPDBSelector")
705 def _object_cast_to_AndPDBSelector(o):
706 r"""_object_cast_to_AndPDBSelector(Object o) -> AndPDBSelector"""
707 return _IMP_atom._object_cast_to_AndPDBSelector(o)
709 _object_types.append(
"XorPDBSelector")
712 def _object_cast_to_XorPDBSelector(o):
713 r"""_object_cast_to_XorPDBSelector(Object o) -> XorPDBSelector"""
714 return _IMP_atom._object_cast_to_XorPDBSelector(o)
716 _object_types.append(
"ResidueTypePDBSelector")
719 def _object_cast_to_ResidueTypePDBSelector(o):
720 r"""_object_cast_to_ResidueTypePDBSelector(Object o) -> ResidueTypePDBSelector"""
721 return _IMP_atom._object_cast_to_ResidueTypePDBSelector(o)
723 _object_types.append(
"AtomTypePDBSelector")
726 def _object_cast_to_AtomTypePDBSelector(o):
727 r"""_object_cast_to_AtomTypePDBSelector(Object o) -> AtomTypePDBSelector"""
728 return _IMP_atom._object_cast_to_AtomTypePDBSelector(o)
730 _object_types.append(
"AngleSingletonScore")
733 def _object_cast_to_AngleSingletonScore(o):
734 r"""_object_cast_to_AngleSingletonScore(Object o) -> AngleSingletonScore"""
735 return _IMP_atom._object_cast_to_AngleSingletonScore(o)
737 _object_types.append(
"BondEndpointsRefiner")
740 def _object_cast_to_BondEndpointsRefiner(o):
741 r"""_object_cast_to_BondEndpointsRefiner(Object o) -> BondEndpointsRefiner"""
742 return _IMP_atom._object_cast_to_BondEndpointsRefiner(o)
744 _object_types.append(
"BondPairContainer")
747 def _object_cast_to_BondPairContainer(o):
748 r"""_object_cast_to_BondPairContainer(Object o) -> BondPairContainer"""
749 return _IMP_atom._object_cast_to_BondPairContainer(o)
751 _object_types.append(
"BondSingletonScore")
754 def _object_cast_to_BondSingletonScore(o):
755 r"""_object_cast_to_BondSingletonScore(Object o) -> BondSingletonScore"""
756 return _IMP_atom._object_cast_to_BondSingletonScore(o)
758 _object_types.append(
"BondedPairFilter")
761 def _object_cast_to_BondedPairFilter(o):
762 r"""_object_cast_to_BondedPairFilter(Object o) -> BondedPairFilter"""
763 return _IMP_atom._object_cast_to_BondedPairFilter(o)
765 _object_types.append(
"BrownianDynamics")
768 def _object_cast_to_BrownianDynamics(o):
769 r"""_object_cast_to_BrownianDynamics(Object o) -> BrownianDynamics"""
770 return _IMP_atom._object_cast_to_BrownianDynamics(o)
772 _object_types.append(
"BrownianDynamicsTAMD")
775 def _object_cast_to_BrownianDynamicsTAMD(o):
776 r"""_object_cast_to_BrownianDynamicsTAMD(Object o) -> BrownianDynamicsTAMD"""
777 return _IMP_atom._object_cast_to_BrownianDynamicsTAMD(o)
779 _object_types.append(
"CAlphaPDBSelector")
782 def _object_cast_to_CAlphaPDBSelector(o):
783 r"""_object_cast_to_CAlphaPDBSelector(Object o) -> CAlphaPDBSelector"""
784 return _IMP_atom._object_cast_to_CAlphaPDBSelector(o)
786 _object_types.append(
"CBetaPDBSelector")
789 def _object_cast_to_CBetaPDBSelector(o):
790 r"""_object_cast_to_CBetaPDBSelector(Object o) -> CBetaPDBSelector"""
791 return _IMP_atom._object_cast_to_CBetaPDBSelector(o)
793 _object_types.append(
"BackbonePDBSelector")
796 def _object_cast_to_BackbonePDBSelector(o):
797 r"""_object_cast_to_BackbonePDBSelector(Object o) -> BackbonePDBSelector"""
798 return _IMP_atom._object_cast_to_BackbonePDBSelector(o)
800 _object_types.append(
"CHARMMParameters")
803 def _object_cast_to_CHARMMParameters(o):
804 r"""_object_cast_to_CHARMMParameters(Object o) -> CHARMMParameters"""
805 return _IMP_atom._object_cast_to_CHARMMParameters(o)
807 _object_types.append(
"CHARMMResidueTopology")
810 def _object_cast_to_CHARMMResidueTopology(o):
811 r"""_object_cast_to_CHARMMResidueTopology(Object o) -> CHARMMResidueTopology"""
812 return _IMP_atom._object_cast_to_CHARMMResidueTopology(o)
814 _object_types.append(
"CHARMMSegmentTopology")
817 def _object_cast_to_CHARMMSegmentTopology(o):
818 r"""_object_cast_to_CHARMMSegmentTopology(Object o) -> CHARMMSegmentTopology"""
819 return _IMP_atom._object_cast_to_CHARMMSegmentTopology(o)
821 _object_types.append(
"CHARMMStereochemistryRestraint")
824 def _object_cast_to_CHARMMStereochemistryRestraint(o):
825 r"""_object_cast_to_CHARMMStereochemistryRestraint(Object o) -> CHARMMStereochemistryRestraint"""
826 return _IMP_atom._object_cast_to_CHARMMStereochemistryRestraint(o)
828 _object_types.append(
"CHARMMTopology")
831 def _object_cast_to_CHARMMTopology(o):
832 r"""_object_cast_to_CHARMMTopology(Object o) -> CHARMMTopology"""
833 return _IMP_atom._object_cast_to_CHARMMTopology(o)
835 _object_types.append(
"CPDBSelector")
838 def _object_cast_to_CPDBSelector(o):
839 r"""_object_cast_to_CPDBSelector(Object o) -> CPDBSelector"""
840 return _IMP_atom._object_cast_to_CPDBSelector(o)
842 _object_types.append(
"ChainPDBSelector")
845 def _object_cast_to_ChainPDBSelector(o):
846 r"""_object_cast_to_ChainPDBSelector(Object o) -> ChainPDBSelector"""
847 return _IMP_atom._object_cast_to_ChainPDBSelector(o)
849 _object_types.append(
"CoulombPairScore")
852 def _object_cast_to_CoulombPairScore(o):
853 r"""_object_cast_to_CoulombPairScore(Object o) -> CoulombPairScore"""
854 return _IMP_atom._object_cast_to_CoulombPairScore(o)
856 _object_types.append(
"CoverBond")
859 def _object_cast_to_CoverBond(o):
860 r"""_object_cast_to_CoverBond(Object o) -> CoverBond"""
861 return _IMP_atom._object_cast_to_CoverBond(o)
863 _object_types.append(
"DihedralSingletonScore")
866 def _object_cast_to_DihedralSingletonScore(o):
867 r"""_object_cast_to_DihedralSingletonScore(Object o) -> DihedralSingletonScore"""
868 return _IMP_atom._object_cast_to_DihedralSingletonScore(o)
870 _object_types.append(
"DopePairScore")
873 def _object_cast_to_DopePairScore(o):
874 r"""_object_cast_to_DopePairScore(Object o) -> DopePairScore"""
875 return _IMP_atom._object_cast_to_DopePairScore(o)
877 _object_types.append(
"LoopStatisticalPairScore")
880 def _object_cast_to_LoopStatisticalPairScore(o):
881 r"""_object_cast_to_LoopStatisticalPairScore(Object o) -> LoopStatisticalPairScore"""
882 return _IMP_atom._object_cast_to_LoopStatisticalPairScore(o)
884 _object_types.append(
"OrientedSoapPairScore")
887 def _object_cast_to_OrientedSoapPairScore(o):
888 r"""_object_cast_to_OrientedSoapPairScore(Object o) -> OrientedSoapPairScore"""
889 return _IMP_atom._object_cast_to_OrientedSoapPairScore(o)
891 _object_types.append(
"EzRestraint")
894 def _object_cast_to_EzRestraint(o):
895 r"""_object_cast_to_EzRestraint(Object o) -> EzRestraint"""
896 return _IMP_atom._object_cast_to_EzRestraint(o)
898 _object_types.append(
"ForceFieldParameters")
901 def _object_cast_to_ForceFieldParameters(o):
902 r"""_object_cast_to_ForceFieldParameters(Object o) -> ForceFieldParameters"""
903 return _IMP_atom._object_cast_to_ForceFieldParameters(o)
905 _object_types.append(
"ForceSwitch")
908 def _object_cast_to_ForceSwitch(o):
909 r"""_object_cast_to_ForceSwitch(Object o) -> ForceSwitch"""
910 return _IMP_atom._object_cast_to_ForceSwitch(o)
912 _object_types.append(
"HydrogenPDBSelector")
915 def _object_cast_to_HydrogenPDBSelector(o):
916 r"""_object_cast_to_HydrogenPDBSelector(Object o) -> HydrogenPDBSelector"""
917 return _IMP_atom._object_cast_to_HydrogenPDBSelector(o)
919 _object_types.append(
"ImproperSingletonScore")
922 def _object_cast_to_ImproperSingletonScore(o):
923 r"""_object_cast_to_ImproperSingletonScore(Object o) -> ImproperSingletonScore"""
924 return _IMP_atom._object_cast_to_ImproperSingletonScore(o)
926 _object_types.append(
"_LennardJonesTypedPairScore")
929 def _object_cast_to__LennardJonesTypedPairScore(o):
930 r"""_object_cast_to__LennardJonesTypedPairScore(Object o) -> _LennardJonesTypedPairScore"""
931 return _IMP_atom._object_cast_to__LennardJonesTypedPairScore(o)
933 _object_types.append(
"_SwitchedLennardJonesTypedPairScore")
936 def _object_cast_to__SwitchedLennardJonesTypedPairScore(o):
937 r"""_object_cast_to__SwitchedLennardJonesTypedPairScore(Object o) -> _SwitchedLennardJonesTypedPairScore"""
938 return _IMP_atom._object_cast_to__SwitchedLennardJonesTypedPairScore(o)
940 _object_types.append(
"Mol2Selector")
943 def _object_cast_to_Mol2Selector(o):
944 r"""_object_cast_to_Mol2Selector(Object o) -> Mol2Selector"""
945 return _IMP_atom._object_cast_to_Mol2Selector(o)
947 _object_types.append(
"MolecularDynamics")
950 def _object_cast_to_MolecularDynamics(o):
951 r"""_object_cast_to_MolecularDynamics(Object o) -> MolecularDynamics"""
952 return _IMP_atom._object_cast_to_MolecularDynamics(o)
954 _object_types.append(
"NPDBSelector")
957 def _object_cast_to_NPDBSelector(o):
958 r"""_object_cast_to_NPDBSelector(Object o) -> NPDBSelector"""
959 return _IMP_atom._object_cast_to_NPDBSelector(o)
961 _object_types.append(
"NonAlternativePDBSelector")
964 def _object_cast_to_NonAlternativePDBSelector(o):
965 r"""_object_cast_to_NonAlternativePDBSelector(Object o) -> NonAlternativePDBSelector"""
966 return _IMP_atom._object_cast_to_NonAlternativePDBSelector(o)
968 _object_types.append(
"NonHydrogenMol2Selector")
971 def _object_cast_to_NonHydrogenMol2Selector(o):
972 r"""_object_cast_to_NonHydrogenMol2Selector(Object o) -> NonHydrogenMol2Selector"""
973 return _IMP_atom._object_cast_to_NonHydrogenMol2Selector(o)
975 _object_types.append(
"NonHydrogenPDBSelector")
978 def _object_cast_to_NonHydrogenPDBSelector(o):
979 r"""_object_cast_to_NonHydrogenPDBSelector(Object o) -> NonHydrogenPDBSelector"""
980 return _IMP_atom._object_cast_to_NonHydrogenPDBSelector(o)
982 _object_types.append(
"NonWaterNonHydrogenPDBSelector")
985 def _object_cast_to_NonWaterNonHydrogenPDBSelector(o):
986 r"""_object_cast_to_NonWaterNonHydrogenPDBSelector(Object o) -> NonWaterNonHydrogenPDBSelector"""
987 return _IMP_atom._object_cast_to_NonWaterNonHydrogenPDBSelector(o)
989 _object_types.append(
"NonWaterPDBSelector")
992 def _object_cast_to_NonWaterPDBSelector(o):
993 r"""_object_cast_to_NonWaterPDBSelector(Object o) -> NonWaterPDBSelector"""
994 return _IMP_atom._object_cast_to_NonWaterPDBSelector(o)
996 _object_types.append(
"NotPDBSelector")
999 def _object_cast_to_NotPDBSelector(o):
1000 r"""_object_cast_to_NotPDBSelector(Object o) -> NotPDBSelector"""
1001 return _IMP_atom._object_cast_to_NotPDBSelector(o)
1003 _object_types.append(
"OrPDBSelector")
1006 def _object_cast_to_OrPDBSelector(o):
1007 r"""_object_cast_to_OrPDBSelector(Object o) -> OrPDBSelector"""
1008 return _IMP_atom._object_cast_to_OrPDBSelector(o)
1010 _object_types.append(
"PPDBSelector")
1013 def _object_cast_to_PPDBSelector(o):
1014 r"""_object_cast_to_PPDBSelector(Object o) -> PPDBSelector"""
1015 return _IMP_atom._object_cast_to_PPDBSelector(o)
1017 _object_types.append(
"ProteinLigandAtomPairScore")
1020 def _object_cast_to_ProteinLigandAtomPairScore(o):
1021 r"""_object_cast_to_ProteinLigandAtomPairScore(Object o) -> ProteinLigandAtomPairScore"""
1022 return _IMP_atom._object_cast_to_ProteinLigandAtomPairScore(o)
1024 _object_types.append(
"ProteinLigandRestraint")
1027 def _object_cast_to_ProteinLigandRestraint(o):
1028 r"""_object_cast_to_ProteinLigandRestraint(Object o) -> ProteinLigandRestraint"""
1029 return _IMP_atom._object_cast_to_ProteinLigandRestraint(o)
1031 _object_types.append(
"SameResiduePairFilter")
1034 def _object_cast_to_SameResiduePairFilter(o):
1035 r"""_object_cast_to_SameResiduePairFilter(Object o) -> SameResiduePairFilter"""
1036 return _IMP_atom._object_cast_to_SameResiduePairFilter(o)
1038 _object_types.append(
"SoapPairFilter")
1041 def _object_cast_to_SoapPairFilter(o):
1042 r"""_object_cast_to_SoapPairFilter(Object o) -> SoapPairFilter"""
1043 return _IMP_atom._object_cast_to_SoapPairFilter(o)
1045 _object_types.append(
"SmoothingFunction")
1048 def _object_cast_to_SmoothingFunction(o):
1049 r"""_object_cast_to_SmoothingFunction(Object o) -> SmoothingFunction"""
1050 return _IMP_atom._object_cast_to_SmoothingFunction(o)
1052 _object_types.append(
"StereochemistryPairFilter")
1055 def _object_cast_to_StereochemistryPairFilter(o):
1056 r"""_object_cast_to_StereochemistryPairFilter(Object o) -> StereochemistryPairFilter"""
1057 return _IMP_atom._object_cast_to_StereochemistryPairFilter(o)
1059 _object_types.append(
"VelocityScalingOptimizerState")
1062 def _object_cast_to_VelocityScalingOptimizerState(o):
1063 r"""_object_cast_to_VelocityScalingOptimizerState(Object o) -> VelocityScalingOptimizerState"""
1064 return _IMP_atom._object_cast_to_VelocityScalingOptimizerState(o)
1066 _object_types.append(
"WaterPDBSelector")
1069 def _object_cast_to_WaterPDBSelector(o):
1070 r"""_object_cast_to_WaterPDBSelector(Object o) -> WaterPDBSelector"""
1071 return _IMP_atom._object_cast_to_WaterPDBSelector(o)
1073 _object_types.append(
"WritePDBOptimizerState")
1076 def _object_cast_to_WritePDBOptimizerState(o):
1077 r"""_object_cast_to_WritePDBOptimizerState(Object o) -> WritePDBOptimizerState"""
1078 return _IMP_atom._object_cast_to_WritePDBOptimizerState(o)
1081 _plural_types.append(
"AtomTypes")
1082 _value_types.append(
"AtomType")
1085 CHARMMAtomTopologies=list
1086 _plural_types.append(
"CHARMMAtomTopologies")
1087 _value_types.append(
"CHARMMAtomTopology")
1090 CHARMMBondEndpoints=list
1091 _plural_types.append(
"CHARMMBondEndpoints")
1092 _value_types.append(
"CHARMMBondEndpoint")
1095 CHARMMBondParametersList=list
1096 _plural_types.append(
"CHARMMBondParametersList")
1097 _value_types.append(
"CHARMMBondParameters")
1100 CHARMMDihedralParametersList=list
1101 _plural_types.append(
"CHARMMDihedralParametersList")
1102 _value_types.append(
"CHARMMDihedralParameters")
1105 _object_types.append(
"CHARMMIdealResidueTopology")
1108 def _object_cast_to_CHARMMIdealResidueTopology(o):
1109 r"""_object_cast_to_CHARMMIdealResidueTopology(Object o) -> CHARMMIdealResidueTopology"""
1110 return _IMP_atom._object_cast_to_CHARMMIdealResidueTopology(o)
1112 CHARMMInternalCoordinates=list
1113 _plural_types.append(
"CHARMMInternalCoordinates")
1114 _value_types.append(
"CHARMMInternalCoordinate")
1117 _object_types.append(
"CHARMMPatch")
1120 def _object_cast_to_CHARMMPatch(o):
1121 r"""_object_cast_to_CHARMMPatch(Object o) -> CHARMMPatch"""
1122 return _IMP_atom._object_cast_to_CHARMMPatch(o)
1124 _object_types.append(
"CHARMMResidueTopologyBase")
1127 def _object_cast_to_CHARMMResidueTopologyBase(o):
1128 r"""_object_cast_to_CHARMMResidueTopologyBase(Object o) -> CHARMMResidueTopologyBase"""
1129 return _IMP_atom._object_cast_to_CHARMMResidueTopologyBase(o)
1132 _plural_types.append(
"ResidueTypes")
1133 _value_types.append(
"ResidueType")
1137 _plural_types.append(
"ChainTypes")
1138 _value_types.append(
"ChainType")
1142 _plural_types.append(
"Selections")
1143 _value_types.append(
"Selection")
1146 _object_types.append(
"RemoveRigidMotionOptimizerState")
1149 def _object_cast_to_RemoveRigidMotionOptimizerState(o):
1150 r"""_object_cast_to_RemoveRigidMotionOptimizerState(Object o) -> RemoveRigidMotionOptimizerState"""
1151 return _IMP_atom._object_cast_to_RemoveRigidMotionOptimizerState(o)
1153 _object_types.append(
"BerendsenThermostatOptimizerState")
1156 def _object_cast_to_BerendsenThermostatOptimizerState(o):
1157 r"""_object_cast_to_BerendsenThermostatOptimizerState(Object o) -> BerendsenThermostatOptimizerState"""
1158 return _IMP_atom._object_cast_to_BerendsenThermostatOptimizerState(o)
1160 _object_types.append(
"LangevinThermostatOptimizerState")
1163 def _object_cast_to_LangevinThermostatOptimizerState(o):
1164 r"""_object_cast_to_LangevinThermostatOptimizerState(Object o) -> LangevinThermostatOptimizerState"""
1165 return _IMP_atom._object_cast_to_LangevinThermostatOptimizerState(o)
1167 _object_types.append(
"SelectionGeometry")
1170 def _object_cast_to_SelectionGeometry(o):
1171 r"""_object_cast_to_SelectionGeometry(Object o) -> SelectionGeometry"""
1172 return _IMP_atom._object_cast_to_SelectionGeometry(o)
1174 _object_types.append(
"HierarchyGeometry")
1177 def _object_cast_to_HierarchyGeometry(o):
1178 r"""_object_cast_to_HierarchyGeometry(Object o) -> HierarchyGeometry"""
1179 return _IMP_atom._object_cast_to_HierarchyGeometry(o)
1181 _object_types.append(
"HierarchiesGeometry")
1184 def _object_cast_to_HierarchiesGeometry(o):
1185 r"""_object_cast_to_HierarchiesGeometry(Object o) -> HierarchiesGeometry"""
1186 return _IMP_atom._object_cast_to_HierarchiesGeometry(o)
1188 _object_types.append(
"BondGeometry")
1191 def _object_cast_to_BondGeometry(o):
1192 r"""_object_cast_to_BondGeometry(Object o) -> BondGeometry"""
1193 return _IMP_atom._object_cast_to_BondGeometry(o)
1195 _object_types.append(
"BondsGeometry")
1198 def _object_cast_to_BondsGeometry(o):
1199 r"""_object_cast_to_BondsGeometry(Object o) -> BondsGeometry"""
1200 return _IMP_atom._object_cast_to_BondsGeometry(o)
1202 _object_types.append(
"CAAngleRestraint")
1205 def _object_cast_to_CAAngleRestraint(o):
1206 r"""_object_cast_to_CAAngleRestraint(Object o) -> CAAngleRestraint"""
1207 return _IMP_atom._object_cast_to_CAAngleRestraint(o)
1209 _object_types.append(
"CADihedralRestraint")
1212 def _object_cast_to_CADihedralRestraint(o):
1213 r"""_object_cast_to_CADihedralRestraint(Object o) -> CADihedralRestraint"""
1214 return _IMP_atom._object_cast_to_CADihedralRestraint(o)
1216 _object_types.append(
"HelixRestraint")
1219 def _object_cast_to_HelixRestraint(o):
1220 r"""_object_cast_to_HelixRestraint(Object o) -> HelixRestraint"""
1221 return _IMP_atom._object_cast_to_HelixRestraint(o)
1223 CHARMMDihedrals=list
1224 _plural_types.append(
"CHARMMDihedrals")
1225 _value_types.append(
"CHARMMDihedral")
1229 _plural_types.append(
"CHARMMBonds")
1230 _value_types.append(
"CHARMMBond")
1234 _plural_types.append(
"CHARMMAngles")
1235 _value_types.append(
"CHARMMAngle")
1238 r"""Proxy of C++ IMP::atom::Bond class."""
1240 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1242 def __init__(self, *args):
1244 __init__(Bond self) -> Bond
1245 __init__(Bond self, Model m, ParticleIndex id) -> Bond
1246 __init__(Bond self, _ParticleAdaptor d) -> Bond
1248 _IMP_atom.Bond_swiginit(self, _IMP_atom.new_Bond(*args))
1250 def show(self, *args):
1251 r"""show(Bond self, _ostream out=std::cout)"""
1252 return _IMP_atom.Bond_show(self, *args)
1255 def get_is_setup(*args):
1257 get_is_setup(_ParticleAdaptor p) -> bool
1258 get_is_setup(Model m, ParticleIndex pi) -> bool
1260 return _IMP_atom.Bond_get_is_setup(*args)
1261 UNKNOWN = _IMP_atom.Bond_UNKNOWN
1263 NONBIOLOGICAL = _IMP_atom.Bond_NONBIOLOGICAL
1265 SINGLE = _IMP_atom.Bond_SINGLE
1267 DOUBLE = _IMP_atom.Bond_DOUBLE
1269 TRIPLE = _IMP_atom.Bond_TRIPLE
1271 HYDROGEN = _IMP_atom.Bond_HYDROGEN
1273 SALT = _IMP_atom.Bond_SALT
1275 PEPTIDE = _IMP_atom.Bond_PEPTIDE
1277 AMIDE = _IMP_atom.Bond_AMIDE
1279 AROMATIC = _IMP_atom.Bond_AROMATIC
1282 def get_bonded(self, i):
1283 r"""get_bonded(Bond self, unsigned int i) -> Bonded"""
1284 return _IMP_atom.Bond_get_bonded(self, i)
1287 r"""get_type(Bond self) -> IMP::Int"""
1288 return _IMP_atom.Bond_get_type(self)
1290 def set_type(self, t):
1291 r"""set_type(Bond self, IMP::Int t)"""
1292 return _IMP_atom.Bond_set_type(self, t)
1295 r"""get_order(Bond self) -> IMP::Int"""
1296 return _IMP_atom.Bond_get_order(self)
1298 def set_order(self, t):
1299 r"""set_order(Bond self, IMP::Int t)"""
1300 return _IMP_atom.Bond_set_order(self, t)
1302 def get_length(self):
1303 r"""get_length(Bond self) -> IMP::Float"""
1304 return _IMP_atom.Bond_get_length(self)
1306 def set_length(self, t):
1307 r"""set_length(Bond self, IMP::Float t)"""
1308 return _IMP_atom.Bond_set_length(self, t)
1310 def get_stiffness(self):
1311 r"""get_stiffness(Bond self) -> IMP::Float"""
1312 return _IMP_atom.Bond_get_stiffness(self)
1314 def set_stiffness(self, t):
1315 r"""set_stiffness(Bond self, IMP::Float t)"""
1316 return _IMP_atom.Bond_set_stiffness(self, t)
1319 def get_length_key():
1320 r"""get_length_key() -> FloatKey"""
1321 return _IMP_atom.Bond_get_length_key()
1323 def add_attribute(self, *args):
1325 add_attribute(Bond self, FloatKey k, IMP::Float v, bool opt)
1326 add_attribute(Bond self, FloatKey a0, IMP::Float a1)
1327 add_attribute(Bond self, IntKey a0, IMP::Int a1)
1328 add_attribute(Bond self, FloatsKey a0, IMP::Floats a1)
1329 add_attribute(Bond self, IntsKey a0, IMP::Ints a1)
1330 add_attribute(Bond self, StringKey a0, IMP::String a1)
1331 add_attribute(Bond self, ParticleIndexKey a0, Particle a1)
1332 add_attribute(Bond self, ObjectKey a0, Object a1)
1333 add_attribute(Bond self, SparseFloatKey a0, IMP::Float a1)
1334 add_attribute(Bond self, SparseIntKey a0, IMP::Int a1)
1335 add_attribute(Bond self, SparseStringKey a0, IMP::String a1)
1336 add_attribute(Bond self, SparseParticleIndexKey a0, ParticleIndex a1)
1338 return _IMP_atom.Bond_add_attribute(self, *args)
1340 def get_value(self, *args):
1342 get_value(Bond self, FloatKey a0) -> IMP::Float
1343 get_value(Bond self, IntKey a0) -> IMP::Int
1344 get_value(Bond self, FloatsKey a0) -> IMP::Floats
1345 get_value(Bond self, IntsKey a0) -> IMP::Ints
1346 get_value(Bond self, StringKey a0) -> IMP::String
1347 get_value(Bond self, ParticleIndexKey a0) -> Particle
1348 get_value(Bond self, ObjectKey a0) -> Object
1349 get_value(Bond self, SparseFloatKey a0) -> IMP::Float
1350 get_value(Bond self, SparseIntKey a0) -> IMP::Int
1351 get_value(Bond self, SparseStringKey a0) -> IMP::String
1352 get_value(Bond self, SparseParticleIndexKey a0) -> ParticleIndex
1354 return _IMP_atom.Bond_get_value(self, *args)
1356 def set_value(self, *args):
1358 set_value(Bond self, FloatKey a0, IMP::Float a1)
1359 set_value(Bond self, IntKey a0, IMP::Int a1)
1360 set_value(Bond self, FloatsKey a0, IMP::Floats a1)
1361 set_value(Bond self, IntsKey a0, IMP::Ints a1)
1362 set_value(Bond self, StringKey a0, IMP::String a1)
1363 set_value(Bond self, ParticleIndexKey a0, Particle a1)
1364 set_value(Bond self, ObjectKey a0, Object a1)
1365 set_value(Bond self, SparseFloatKey a0, IMP::Float a1)
1366 set_value(Bond self, SparseIntKey a0, IMP::Int a1)
1367 set_value(Bond self, SparseStringKey a0, IMP::String a1)
1368 set_value(Bond self, SparseParticleIndexKey a0, ParticleIndex a1)
1370 return _IMP_atom.Bond_set_value(self, *args)
1372 def remove_attribute(self, *args):
1374 remove_attribute(Bond self, FloatKey a0)
1375 remove_attribute(Bond self, IntKey a0)
1376 remove_attribute(Bond self, FloatsKey a0)
1377 remove_attribute(Bond self, IntsKey a0)
1378 remove_attribute(Bond self, StringKey a0)
1379 remove_attribute(Bond self, ParticleIndexKey a0)
1380 remove_attribute(Bond self, ObjectKey a0)
1381 remove_attribute(Bond self, SparseFloatKey a0)
1382 remove_attribute(Bond self, SparseIntKey a0)
1383 remove_attribute(Bond self, SparseStringKey a0)
1384 remove_attribute(Bond self, SparseParticleIndexKey a0)
1386 return _IMP_atom.Bond_remove_attribute(self, *args)
1388 def has_attribute(self, *args):
1390 has_attribute(Bond self, FloatKey a0) -> bool
1391 has_attribute(Bond self, IntKey a0) -> bool
1392 has_attribute(Bond self, FloatsKey a0) -> bool
1393 has_attribute(Bond self, IntsKey a0) -> bool
1394 has_attribute(Bond self, StringKey a0) -> bool
1395 has_attribute(Bond self, ParticleIndexKey a0) -> bool
1396 has_attribute(Bond self, ObjectKey a0) -> bool
1397 has_attribute(Bond self, SparseFloatKey a0) -> bool
1398 has_attribute(Bond self, SparseIntKey a0) -> bool
1399 has_attribute(Bond self, SparseStringKey a0) -> bool
1400 has_attribute(Bond self, SparseParticleIndexKey a0) -> bool
1402 return _IMP_atom.Bond_has_attribute(self, *args)
1404 def get_derivative(self, a0):
1405 r"""get_derivative(Bond self, FloatKey a0) -> double"""
1406 return _IMP_atom.Bond_get_derivative(self, a0)
1409 r"""get_name(Bond self) -> std::string"""
1410 return _IMP_atom.Bond_get_name(self)
1412 def clear_caches(self):
1413 r"""clear_caches(Bond self)"""
1414 return _IMP_atom.Bond_clear_caches(self)
1416 def set_name(self, a0):
1417 r"""set_name(Bond self, std::string a0)"""
1418 return _IMP_atom.Bond_set_name(self, a0)
1421 r"""set_check_level(Bond self, IMP::CheckLevel a0)"""
1422 return _IMP_atom.Bond_set_check_level(self, a0)
1424 def add_to_derivative(self, a0, a1, a2):
1425 r"""add_to_derivative(Bond self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
1426 return _IMP_atom.Bond_add_to_derivative(self, a0, a1, a2)
1428 def set_is_optimized(self, a0, a1):
1429 r"""set_is_optimized(Bond self, FloatKey a0, bool a1)"""
1430 return _IMP_atom.Bond_set_is_optimized(self, a0, a1)
1432 def get_is_optimized(self, a0):
1433 r"""get_is_optimized(Bond self, FloatKey a0) -> bool"""
1434 return _IMP_atom.Bond_get_is_optimized(self, a0)
1437 r"""get_check_level(Bond self) -> IMP::CheckLevel"""
1438 return _IMP_atom.Bond_get_check_level(self)
1440 def __eq__(self, *args):
1442 __eq__(Bond self, Bond o) -> bool
1443 __eq__(Bond self, Particle d) -> bool
1445 return _IMP_atom.Bond___eq__(self, *args)
1447 def __ne__(self, *args):
1449 __ne__(Bond self, Bond o) -> bool
1450 __ne__(Bond self, Particle d) -> bool
1452 return _IMP_atom.Bond___ne__(self, *args)
1454 def __le__(self, *args):
1456 __le__(Bond self, Bond o) -> bool
1457 __le__(Bond self, Particle d) -> bool
1459 return _IMP_atom.Bond___le__(self, *args)
1461 def __lt__(self, *args):
1463 __lt__(Bond self, Bond o) -> bool
1464 __lt__(Bond self, Particle d) -> bool
1466 return _IMP_atom.Bond___lt__(self, *args)
1468 def __ge__(self, *args):
1470 __ge__(Bond self, Bond o) -> bool
1471 __ge__(Bond self, Particle d) -> bool
1473 return _IMP_atom.Bond___ge__(self, *args)
1475 def __gt__(self, *args):
1477 __gt__(Bond self, Bond o) -> bool
1478 __gt__(Bond self, Particle d) -> bool
1480 return _IMP_atom.Bond___gt__(self, *args)
1483 r"""__hash__(Bond self) -> std::size_t"""
1484 return _IMP_atom.Bond___hash__(self)
1487 r"""__str__(Bond self) -> std::string"""
1488 return _IMP_atom.Bond___str__(self)
1491 r"""__repr__(Bond self) -> std::string"""
1492 return _IMP_atom.Bond___repr__(self)
1494 def _get_as_binary(self):
1495 r"""_get_as_binary(Bond self) -> PyObject *"""
1496 return _IMP_atom.Bond__get_as_binary(self)
1498 def _set_from_binary(self, p):
1499 r"""_set_from_binary(Bond self, PyObject * p)"""
1500 return _IMP_atom.Bond__set_from_binary(self, p)
1502 def __getstate__(self):
1503 p = self._get_as_binary()
1504 if len(self.__dict__) > 1:
1505 d = self.__dict__.copy()
1510 def __setstate__(self, p):
1511 if not hasattr(self,
'this'):
1513 if isinstance(p, tuple):
1515 self.__dict__.update(d)
1516 return self._set_from_binary(p)
1518 __swig_destroy__ = _IMP_atom.delete_Bond
1521 _IMP_atom.Bond_swigregister(Bond)
1523 r"""Proxy of C++ IMP::atom::Bonded class."""
1525 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1527 def __init__(self, *args):
1529 __init__(Bonded self) -> Bonded
1530 __init__(Bonded self, Model m, ParticleIndex id) -> Bonded
1531 __init__(Bonded self, _ParticleAdaptor d) -> Bonded
1533 _IMP_atom.Bonded_swiginit(self, _IMP_atom.new_Bonded(*args))
1535 def show(self, *args):
1536 r"""show(Bonded self, _ostream out=std::cout)"""
1537 return _IMP_atom.Bonded_show(self, *args)
1540 def setup_particle(*args):
1542 setup_particle(Model m, ParticleIndex pi) -> Bonded
1543 setup_particle(_ParticleAdaptor pa) -> Bonded
1545 return _IMP_atom.Bonded_setup_particle(*args)
1548 def get_is_setup(*args):
1550 get_is_setup(_ParticleAdaptor p) -> bool
1551 get_is_setup(Model m, ParticleIndex pi) -> bool
1553 return _IMP_atom.Bonded_get_is_setup(*args)
1555 def get_number_of_bonds(self):
1556 r"""get_number_of_bonds(Bonded self) -> unsigned int"""
1557 return _IMP_atom.Bonded_get_number_of_bonds(self)
1559 def get_bond_indexes(self):
1560 r"""get_bond_indexes(Bonded self) -> IMP::ParticleIndexes"""
1561 return _IMP_atom.Bonded_get_bond_indexes(self)
1564 r"""get_bond(Bonded self, unsigned int i) -> Bond"""
1565 return _IMP_atom.Bonded_get_bond(self, i)
1567 def get_bonded(self, i):
1568 r"""get_bonded(Bonded self, unsigned int i) -> Bonded"""
1569 return _IMP_atom.Bonded_get_bonded(self, i)
1571 def add_attribute(self, *args):
1573 add_attribute(Bonded self, FloatKey k, IMP::Float v, bool opt)
1574 add_attribute(Bonded self, FloatKey a0, IMP::Float a1)
1575 add_attribute(Bonded self, IntKey a0, IMP::Int a1)
1576 add_attribute(Bonded self, FloatsKey a0, IMP::Floats a1)
1577 add_attribute(Bonded self, IntsKey a0, IMP::Ints a1)
1578 add_attribute(Bonded self, StringKey a0, IMP::String a1)
1579 add_attribute(Bonded self, ParticleIndexKey a0, Particle a1)
1580 add_attribute(Bonded self, ObjectKey a0, Object a1)
1581 add_attribute(Bonded self, SparseFloatKey a0, IMP::Float a1)
1582 add_attribute(Bonded self, SparseIntKey a0, IMP::Int a1)
1583 add_attribute(Bonded self, SparseStringKey a0, IMP::String a1)
1584 add_attribute(Bonded self, SparseParticleIndexKey a0, ParticleIndex a1)
1586 return _IMP_atom.Bonded_add_attribute(self, *args)
1588 def get_value(self, *args):
1590 get_value(Bonded self, FloatKey a0) -> IMP::Float
1591 get_value(Bonded self, IntKey a0) -> IMP::Int
1592 get_value(Bonded self, FloatsKey a0) -> IMP::Floats
1593 get_value(Bonded self, IntsKey a0) -> IMP::Ints
1594 get_value(Bonded self, StringKey a0) -> IMP::String
1595 get_value(Bonded self, ParticleIndexKey a0) -> Particle
1596 get_value(Bonded self, ObjectKey a0) -> Object
1597 get_value(Bonded self, SparseFloatKey a0) -> IMP::Float
1598 get_value(Bonded self, SparseIntKey a0) -> IMP::Int
1599 get_value(Bonded self, SparseStringKey a0) -> IMP::String
1600 get_value(Bonded self, SparseParticleIndexKey a0) -> ParticleIndex
1602 return _IMP_atom.Bonded_get_value(self, *args)
1604 def set_value(self, *args):
1606 set_value(Bonded self, FloatKey a0, IMP::Float a1)
1607 set_value(Bonded self, IntKey a0, IMP::Int a1)
1608 set_value(Bonded self, FloatsKey a0, IMP::Floats a1)
1609 set_value(Bonded self, IntsKey a0, IMP::Ints a1)
1610 set_value(Bonded self, StringKey a0, IMP::String a1)
1611 set_value(Bonded self, ParticleIndexKey a0, Particle a1)
1612 set_value(Bonded self, ObjectKey a0, Object a1)
1613 set_value(Bonded self, SparseFloatKey a0, IMP::Float a1)
1614 set_value(Bonded self, SparseIntKey a0, IMP::Int a1)
1615 set_value(Bonded self, SparseStringKey a0, IMP::String a1)
1616 set_value(Bonded self, SparseParticleIndexKey a0, ParticleIndex a1)
1618 return _IMP_atom.Bonded_set_value(self, *args)
1620 def remove_attribute(self, *args):
1622 remove_attribute(Bonded self, FloatKey a0)
1623 remove_attribute(Bonded self, IntKey a0)
1624 remove_attribute(Bonded self, FloatsKey a0)
1625 remove_attribute(Bonded self, IntsKey a0)
1626 remove_attribute(Bonded self, StringKey a0)
1627 remove_attribute(Bonded self, ParticleIndexKey a0)
1628 remove_attribute(Bonded self, ObjectKey a0)
1629 remove_attribute(Bonded self, SparseFloatKey a0)
1630 remove_attribute(Bonded self, SparseIntKey a0)
1631 remove_attribute(Bonded self, SparseStringKey a0)
1632 remove_attribute(Bonded self, SparseParticleIndexKey a0)
1634 return _IMP_atom.Bonded_remove_attribute(self, *args)
1636 def has_attribute(self, *args):
1638 has_attribute(Bonded self, FloatKey a0) -> bool
1639 has_attribute(Bonded self, IntKey a0) -> bool
1640 has_attribute(Bonded self, FloatsKey a0) -> bool
1641 has_attribute(Bonded self, IntsKey a0) -> bool
1642 has_attribute(Bonded self, StringKey a0) -> bool
1643 has_attribute(Bonded self, ParticleIndexKey a0) -> bool
1644 has_attribute(Bonded self, ObjectKey a0) -> bool
1645 has_attribute(Bonded self, SparseFloatKey a0) -> bool
1646 has_attribute(Bonded self, SparseIntKey a0) -> bool
1647 has_attribute(Bonded self, SparseStringKey a0) -> bool
1648 has_attribute(Bonded self, SparseParticleIndexKey a0) -> bool
1650 return _IMP_atom.Bonded_has_attribute(self, *args)
1652 def get_derivative(self, a0):
1653 r"""get_derivative(Bonded self, FloatKey a0) -> double"""
1654 return _IMP_atom.Bonded_get_derivative(self, a0)
1657 r"""get_name(Bonded self) -> std::string"""
1658 return _IMP_atom.Bonded_get_name(self)
1660 def clear_caches(self):
1661 r"""clear_caches(Bonded self)"""
1662 return _IMP_atom.Bonded_clear_caches(self)
1664 def set_name(self, a0):
1665 r"""set_name(Bonded self, std::string a0)"""
1666 return _IMP_atom.Bonded_set_name(self, a0)
1669 r"""set_check_level(Bonded self, IMP::CheckLevel a0)"""
1670 return _IMP_atom.Bonded_set_check_level(self, a0)
1672 def add_to_derivative(self, a0, a1, a2):
1673 r"""add_to_derivative(Bonded self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
1674 return _IMP_atom.Bonded_add_to_derivative(self, a0, a1, a2)
1676 def set_is_optimized(self, a0, a1):
1677 r"""set_is_optimized(Bonded self, FloatKey a0, bool a1)"""
1678 return _IMP_atom.Bonded_set_is_optimized(self, a0, a1)
1680 def get_is_optimized(self, a0):
1681 r"""get_is_optimized(Bonded self, FloatKey a0) -> bool"""
1682 return _IMP_atom.Bonded_get_is_optimized(self, a0)
1685 r"""get_check_level(Bonded self) -> IMP::CheckLevel"""
1686 return _IMP_atom.Bonded_get_check_level(self)
1688 def __eq__(self, *args):
1690 __eq__(Bonded self, Bonded o) -> bool
1691 __eq__(Bonded self, Particle d) -> bool
1693 return _IMP_atom.Bonded___eq__(self, *args)
1695 def __ne__(self, *args):
1697 __ne__(Bonded self, Bonded o) -> bool
1698 __ne__(Bonded self, Particle d) -> bool
1700 return _IMP_atom.Bonded___ne__(self, *args)
1702 def __le__(self, *args):
1704 __le__(Bonded self, Bonded o) -> bool
1705 __le__(Bonded self, Particle d) -> bool
1707 return _IMP_atom.Bonded___le__(self, *args)
1709 def __lt__(self, *args):
1711 __lt__(Bonded self, Bonded o) -> bool
1712 __lt__(Bonded self, Particle d) -> bool
1714 return _IMP_atom.Bonded___lt__(self, *args)
1716 def __ge__(self, *args):
1718 __ge__(Bonded self, Bonded o) -> bool
1719 __ge__(Bonded self, Particle d) -> bool
1721 return _IMP_atom.Bonded___ge__(self, *args)
1723 def __gt__(self, *args):
1725 __gt__(Bonded self, Bonded o) -> bool
1726 __gt__(Bonded self, Particle d) -> bool
1728 return _IMP_atom.Bonded___gt__(self, *args)
1731 r"""__hash__(Bonded self) -> std::size_t"""
1732 return _IMP_atom.Bonded___hash__(self)
1735 r"""__str__(Bonded self) -> std::string"""
1736 return _IMP_atom.Bonded___str__(self)
1739 r"""__repr__(Bonded self) -> std::string"""
1740 return _IMP_atom.Bonded___repr__(self)
1742 def _get_as_binary(self):
1743 r"""_get_as_binary(Bonded self) -> PyObject *"""
1744 return _IMP_atom.Bonded__get_as_binary(self)
1746 def _set_from_binary(self, p):
1747 r"""_set_from_binary(Bonded self, PyObject * p)"""
1748 return _IMP_atom.Bonded__set_from_binary(self, p)
1750 def __getstate__(self):
1751 p = self._get_as_binary()
1752 if len(self.__dict__) > 1:
1753 d = self.__dict__.copy()
1758 def __setstate__(self, p):
1759 if not hasattr(self,
'this'):
1761 if isinstance(p, tuple):
1763 self.__dict__.update(d)
1764 return self._set_from_binary(p)
1766 __swig_destroy__ = _IMP_atom.delete_Bonded
1769 _IMP_atom.Bonded_swigregister(Bonded)
1772 r"""create_custom_bond(Bonded a, Bonded b, IMP::Float length, IMP::Float stiffness=-1) -> Bond"""
1773 return _IMP_atom.create_custom_bond(a, b, length, stiffness)
1777 create_bond(Bonded a, Bonded b, IMP::Int t) -> Bond
1778 create_bond(Bonded a, Bonded b, Bond o) -> Bond
1780 return _IMP_atom.create_bond(*args)
1783 r"""destroy_bond(Bond b)"""
1784 return _IMP_atom.destroy_bond(b)
1787 r"""get_bond(Bonded a, Bonded b) -> Bond"""
1788 return _IMP_atom.get_bond(a, b)
1790 r"""Proxy of C++ IMP::atom::BondGeometry class."""
1792 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1794 def __init__(self, *args):
1796 __init__(BondGeometry self, Particle p) -> BondGeometry
1797 __init__(BondGeometry self, Bond d) -> BondGeometry
1799 _IMP_atom.BondGeometry_swiginit(self, _IMP_atom.new_BondGeometry(*args))
1801 def get_version_info(self):
1802 r"""get_version_info(BondGeometry self) -> VersionInfo"""
1803 return _IMP_atom.BondGeometry_get_version_info(self)
1804 __swig_destroy__ = _IMP_atom.delete_BondGeometry
1807 r"""__str__(BondGeometry self) -> std::string"""
1808 return _IMP_atom.BondGeometry___str__(self)
1811 r"""__repr__(BondGeometry self) -> std::string"""
1812 return _IMP_atom.BondGeometry___repr__(self)
1816 return _object_cast_to_BondGeometry(o)
1820 _IMP_atom.BondGeometry_swigregister(BondGeometry)
1822 r"""Proxy of C++ IMP::atom::BondsGeometry class."""
1824 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1826 def __init__(self, sc):
1827 r"""__init__(BondsGeometry self, SingletonContainer sc) -> BondsGeometry"""
1828 _IMP_atom.BondsGeometry_swiginit(self, _IMP_atom.new_BondsGeometry(sc))
1830 def get_version_info(self):
1831 r"""get_version_info(BondsGeometry self) -> VersionInfo"""
1832 return _IMP_atom.BondsGeometry_get_version_info(self)
1833 __swig_destroy__ = _IMP_atom.delete_BondsGeometry
1836 r"""__str__(BondsGeometry self) -> std::string"""
1837 return _IMP_atom.BondsGeometry___str__(self)
1840 r"""__repr__(BondsGeometry self) -> std::string"""
1841 return _IMP_atom.BondsGeometry___repr__(self)
1845 return _object_cast_to_BondsGeometry(o)
1849 _IMP_atom.BondsGeometry_swigregister(BondsGeometry)
1851 r"""Proxy of C++ IMP::atom::Hierarchy class."""
1853 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1855 def __init__(self, *args):
1857 __init__(Hierarchy self, Model m, ParticleIndex pi) -> Hierarchy
1858 __init__(Hierarchy self, _ParticleAdaptor pi) -> Hierarchy
1859 __init__(Hierarchy self) -> Hierarchy
1860 __init__(Hierarchy self, Hierarchy h) -> Hierarchy
1862 _IMP_atom.Hierarchy_swiginit(self, _IMP_atom.new_Hierarchy(*args))
1865 def setup_particle(*args):
1867 setup_particle(Particle p, _ParticleIndexesAdaptor children) -> Hierarchy
1868 setup_particle(Particle p) -> Hierarchy
1869 setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor children=IMP::ParticleIndexesAdaptor()) -> Hierarchy
1871 return _IMP_atom.Hierarchy_setup_particle(*args)
1874 def get_is_setup(*args):
1876 get_is_setup(Particle p) -> bool
1877 get_is_setup(Model m, ParticleIndex p) -> bool
1879 return _IMP_atom.Hierarchy_get_is_setup(*args)
1881 def get_is_valid(self, print_info=False):
1882 r"""get_is_valid(Hierarchy self, bool print_info=False) -> bool"""
1883 return _IMP_atom.Hierarchy_get_is_valid(self, print_info)
1885 def add_child(self, o):
1886 r"""add_child(Hierarchy self, Hierarchy o)"""
1887 return _IMP_atom.Hierarchy_add_child(self, o)
1889 def get_child(self, i):
1890 r"""get_child(Hierarchy self, unsigned int i) -> Hierarchy"""
1891 return _IMP_atom.Hierarchy_get_child(self, i)
1893 def get_children(self):
1894 r"""get_children(Hierarchy self) -> IMP::atom::Hierarchies"""
1895 return _IMP_atom.Hierarchy_get_children(self)
1897 def get_parent(self):
1898 r"""get_parent(Hierarchy self) -> Hierarchy"""
1899 return _IMP_atom.Hierarchy_get_parent(self)
1903 r"""get_traits() -> HierarchyTraits"""
1904 return _IMP_atom.Hierarchy_get_traits()
1906 def show(self, *args):
1908 show(Hierarchy self, _ostream out, std::string delimiter)
1909 show(Hierarchy self, _ostream out=std::cout)
1911 return _IMP_atom.Hierarchy_show(self, *args)
1913 def add_attribute(self, *args):
1915 add_attribute(Hierarchy self, FloatKey k, IMP::Float v, bool opt)
1916 add_attribute(Hierarchy self, FloatKey a0, IMP::Float a1)
1917 add_attribute(Hierarchy self, IntKey a0, IMP::Int a1)
1918 add_attribute(Hierarchy self, FloatsKey a0, IMP::Floats a1)
1919 add_attribute(Hierarchy self, IntsKey a0, IMP::Ints a1)
1920 add_attribute(Hierarchy self, StringKey a0, IMP::String a1)
1921 add_attribute(Hierarchy self, ParticleIndexKey a0, Particle a1)
1922 add_attribute(Hierarchy self, ObjectKey a0, Object a1)
1923 add_attribute(Hierarchy self, SparseFloatKey a0, IMP::Float a1)
1924 add_attribute(Hierarchy self, SparseIntKey a0, IMP::Int a1)
1925 add_attribute(Hierarchy self, SparseStringKey a0, IMP::String a1)
1926 add_attribute(Hierarchy self, SparseParticleIndexKey a0, ParticleIndex a1)
1928 return _IMP_atom.Hierarchy_add_attribute(self, *args)
1930 def get_value(self, *args):
1932 get_value(Hierarchy self, FloatKey a0) -> IMP::Float
1933 get_value(Hierarchy self, IntKey a0) -> IMP::Int
1934 get_value(Hierarchy self, FloatsKey a0) -> IMP::Floats
1935 get_value(Hierarchy self, IntsKey a0) -> IMP::Ints
1936 get_value(Hierarchy self, StringKey a0) -> IMP::String
1937 get_value(Hierarchy self, ParticleIndexKey a0) -> Particle
1938 get_value(Hierarchy self, ObjectKey a0) -> Object
1939 get_value(Hierarchy self, SparseFloatKey a0) -> IMP::Float
1940 get_value(Hierarchy self, SparseIntKey a0) -> IMP::Int
1941 get_value(Hierarchy self, SparseStringKey a0) -> IMP::String
1942 get_value(Hierarchy self, SparseParticleIndexKey a0) -> ParticleIndex
1944 return _IMP_atom.Hierarchy_get_value(self, *args)
1946 def set_value(self, *args):
1948 set_value(Hierarchy self, FloatKey a0, IMP::Float a1)
1949 set_value(Hierarchy self, IntKey a0, IMP::Int a1)
1950 set_value(Hierarchy self, FloatsKey a0, IMP::Floats a1)
1951 set_value(Hierarchy self, IntsKey a0, IMP::Ints a1)
1952 set_value(Hierarchy self, StringKey a0, IMP::String a1)
1953 set_value(Hierarchy self, ParticleIndexKey a0, Particle a1)
1954 set_value(Hierarchy self, ObjectKey a0, Object a1)
1955 set_value(Hierarchy self, SparseFloatKey a0, IMP::Float a1)
1956 set_value(Hierarchy self, SparseIntKey a0, IMP::Int a1)
1957 set_value(Hierarchy self, SparseStringKey a0, IMP::String a1)
1958 set_value(Hierarchy self, SparseParticleIndexKey a0, ParticleIndex a1)
1960 return _IMP_atom.Hierarchy_set_value(self, *args)
1962 def remove_attribute(self, *args):
1964 remove_attribute(Hierarchy self, FloatKey a0)
1965 remove_attribute(Hierarchy self, IntKey a0)
1966 remove_attribute(Hierarchy self, FloatsKey a0)
1967 remove_attribute(Hierarchy self, IntsKey a0)
1968 remove_attribute(Hierarchy self, StringKey a0)
1969 remove_attribute(Hierarchy self, ParticleIndexKey a0)
1970 remove_attribute(Hierarchy self, ObjectKey a0)
1971 remove_attribute(Hierarchy self, SparseFloatKey a0)
1972 remove_attribute(Hierarchy self, SparseIntKey a0)
1973 remove_attribute(Hierarchy self, SparseStringKey a0)
1974 remove_attribute(Hierarchy self, SparseParticleIndexKey a0)
1976 return _IMP_atom.Hierarchy_remove_attribute(self, *args)
1978 def has_attribute(self, *args):
1980 has_attribute(Hierarchy self, FloatKey a0) -> bool
1981 has_attribute(Hierarchy self, IntKey a0) -> bool
1982 has_attribute(Hierarchy self, FloatsKey a0) -> bool
1983 has_attribute(Hierarchy self, IntsKey a0) -> bool
1984 has_attribute(Hierarchy self, StringKey a0) -> bool
1985 has_attribute(Hierarchy self, ParticleIndexKey a0) -> bool
1986 has_attribute(Hierarchy self, ObjectKey a0) -> bool
1987 has_attribute(Hierarchy self, SparseFloatKey a0) -> bool
1988 has_attribute(Hierarchy self, SparseIntKey a0) -> bool
1989 has_attribute(Hierarchy self, SparseStringKey a0) -> bool
1990 has_attribute(Hierarchy self, SparseParticleIndexKey a0) -> bool
1992 return _IMP_atom.Hierarchy_has_attribute(self, *args)
1994 def get_derivative(self, a0):
1995 r"""get_derivative(Hierarchy self, FloatKey a0) -> double"""
1996 return _IMP_atom.Hierarchy_get_derivative(self, a0)
1999 r"""get_name(Hierarchy self) -> std::string"""
2000 return _IMP_atom.Hierarchy_get_name(self)
2002 def clear_caches(self):
2003 r"""clear_caches(Hierarchy self)"""
2004 return _IMP_atom.Hierarchy_clear_caches(self)
2006 def set_name(self, a0):
2007 r"""set_name(Hierarchy self, std::string a0)"""
2008 return _IMP_atom.Hierarchy_set_name(self, a0)
2011 r"""set_check_level(Hierarchy self, IMP::CheckLevel a0)"""
2012 return _IMP_atom.Hierarchy_set_check_level(self, a0)
2014 def add_to_derivative(self, a0, a1, a2):
2015 r"""add_to_derivative(Hierarchy self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2016 return _IMP_atom.Hierarchy_add_to_derivative(self, a0, a1, a2)
2018 def set_is_optimized(self, a0, a1):
2019 r"""set_is_optimized(Hierarchy self, FloatKey a0, bool a1)"""
2020 return _IMP_atom.Hierarchy_set_is_optimized(self, a0, a1)
2022 def get_is_optimized(self, a0):
2023 r"""get_is_optimized(Hierarchy self, FloatKey a0) -> bool"""
2024 return _IMP_atom.Hierarchy_get_is_optimized(self, a0)
2027 r"""get_check_level(Hierarchy self) -> IMP::CheckLevel"""
2028 return _IMP_atom.Hierarchy_get_check_level(self)
2030 def __eq__(self, *args):
2032 __eq__(Hierarchy self, Hierarchy o) -> bool
2033 __eq__(Hierarchy self, Particle d) -> bool
2035 return _IMP_atom.Hierarchy___eq__(self, *args)
2037 def __ne__(self, *args):
2039 __ne__(Hierarchy self, Hierarchy o) -> bool
2040 __ne__(Hierarchy self, Particle d) -> bool
2042 return _IMP_atom.Hierarchy___ne__(self, *args)
2044 def __le__(self, *args):
2046 __le__(Hierarchy self, Hierarchy o) -> bool
2047 __le__(Hierarchy self, Particle d) -> bool
2049 return _IMP_atom.Hierarchy___le__(self, *args)
2051 def __lt__(self, *args):
2053 __lt__(Hierarchy self, Hierarchy o) -> bool
2054 __lt__(Hierarchy self, Particle d) -> bool
2056 return _IMP_atom.Hierarchy___lt__(self, *args)
2058 def __ge__(self, *args):
2060 __ge__(Hierarchy self, Hierarchy o) -> bool
2061 __ge__(Hierarchy self, Particle d) -> bool
2063 return _IMP_atom.Hierarchy___ge__(self, *args)
2065 def __gt__(self, *args):
2067 __gt__(Hierarchy self, Hierarchy o) -> bool
2068 __gt__(Hierarchy self, Particle d) -> bool
2070 return _IMP_atom.Hierarchy___gt__(self, *args)
2073 r"""__hash__(Hierarchy self) -> std::size_t"""
2074 return _IMP_atom.Hierarchy___hash__(self)
2077 r"""__str__(Hierarchy self) -> std::string"""
2078 return _IMP_atom.Hierarchy___str__(self)
2081 r"""__repr__(Hierarchy self) -> std::string"""
2082 return _IMP_atom.Hierarchy___repr__(self)
2084 def _get_as_binary(self):
2085 r"""_get_as_binary(Hierarchy self) -> PyObject *"""
2086 return _IMP_atom.Hierarchy__get_as_binary(self)
2088 def _set_from_binary(self, p):
2089 r"""_set_from_binary(Hierarchy self, PyObject * p)"""
2090 return _IMP_atom.Hierarchy__set_from_binary(self, p)
2092 def __getstate__(self):
2093 p = self._get_as_binary()
2094 if len(self.__dict__) > 1:
2095 d = self.__dict__.copy()
2100 def __setstate__(self, p):
2101 if not hasattr(self,
'this'):
2103 if isinstance(p, tuple):
2105 self.__dict__.update(d)
2106 return self._set_from_binary(p)
2108 __swig_destroy__ = _IMP_atom.delete_Hierarchy
2111 _IMP_atom.Hierarchy_swigregister(Hierarchy)
2112 ATOM_TYPE = _IMP_atom.ATOM_TYPE
2114 RESIDUE_TYPE = _IMP_atom.RESIDUE_TYPE
2116 CHAIN_TYPE = _IMP_atom.CHAIN_TYPE
2118 MOLECULE_TYPE = _IMP_atom.MOLECULE_TYPE
2120 DOMAIN_TYPE = _IMP_atom.DOMAIN_TYPE
2122 FRAGMENT_TYPE = _IMP_atom.FRAGMENT_TYPE
2124 XYZ_TYPE = _IMP_atom.XYZ_TYPE
2126 XYZR_TYPE = _IMP_atom.XYZR_TYPE
2128 MASS_TYPE = _IMP_atom.MASS_TYPE
2130 STATE_TYPE = _IMP_atom.STATE_TYPE
2133 def get_by_type(mhd, t):
2134 r"""get_by_type(Hierarchy mhd, IMP::atom::GetByType t) -> IMP::atom::Hierarchies"""
2135 return _IMP_atom.get_by_type(mhd, t)
2137 def create_fragment(ps):
2138 r"""create_fragment(IMP::atom::Hierarchies const & ps) -> Hierarchy"""
2139 return _IMP_atom.create_fragment(ps)
2141 def get_internal_bonds(mhd, with_representations=False):
2142 r"""get_internal_bonds(Hierarchy mhd, bool with_representations=False) -> IMP::atom::Bonds"""
2143 return _IMP_atom.get_internal_bonds(mhd, with_representations)
2146 r"""get_root(Hierarchy h) -> Hierarchy"""
2147 return _IMP_atom.get_root(h)
2150 r"""show(Hierarchy h, _ostream out=std::cout)"""
2151 return _IMP_atom.show(*args)
2155 create_rigid_body(IMP::atom::Hierarchies const & h, std::string name=std::string("created rigid body")) -> RigidBody
2156 create_rigid_body(Hierarchy h) -> RigidBody
2158 return _IMP_atom.create_rigid_body(*args)
2161 r"""create_compatible_rigid_body(Hierarchy h, Hierarchy reference) -> RigidBody"""
2162 return _IMP_atom.create_compatible_rigid_body(h, reference)
2164 def get_is_heterogen(h):
2165 r"""get_is_heterogen(Hierarchy h) -> bool"""
2166 return _IMP_atom.get_is_heterogen(h)
2169 r"""create_clone(Hierarchy d) -> Hierarchy"""
2170 return _IMP_atom.create_clone(d)
2172 def create_clone_one(d):
2173 r"""create_clone_one(Hierarchy d) -> Hierarchy"""
2174 return _IMP_atom.create_clone_one(d)
2177 r"""destroy(Hierarchy d)"""
2178 return _IMP_atom.destroy(d)
2180 def get_bounding_box(h):
2181 r"""get_bounding_box(Hierarchy h) -> BoundingBox3D"""
2182 return _IMP_atom.get_bounding_box(h)
2184 def get_bounding_sphere(h):
2185 r"""get_bounding_sphere(Hierarchy h) -> Sphere3D"""
2186 return _IMP_atom.get_bounding_sphere(h)
2188 r"""Proxy of C++ IMP::atom::Angle class."""
2190 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2192 def __init__(self, *args):
2194 __init__(Angle self) -> Angle
2195 __init__(Angle self, Model m, ParticleIndex id) -> Angle
2196 __init__(Angle self, _ParticleAdaptor d) -> Angle
2198 _IMP_atom.Angle_swiginit(self, _IMP_atom.new_Angle(*args))
2200 def show(self, *args):
2201 r"""show(Angle self, _ostream out=std::cout)"""
2202 return _IMP_atom.Angle_show(self, *args)
2205 def setup_particle(*args):
2207 setup_particle(Model m, ParticleIndex pi, XYZ a, XYZ b, XYZ c) -> Angle
2208 setup_particle(_ParticleAdaptor pa, XYZ a, XYZ b, XYZ c) -> Angle
2210 return _IMP_atom.Angle_setup_particle(*args)
2213 def get_is_setup(*args):
2215 get_is_setup(_ParticleAdaptor p) -> bool
2216 get_is_setup(Model m, ParticleIndex pi) -> bool
2218 return _IMP_atom.Angle_get_is_setup(*args)
2220 def get_particle(self, *args):
2222 get_particle(Angle self) -> Particle
2223 get_particle(Angle self, unsigned int i) -> Particle
2225 return _IMP_atom.Angle_get_particle(self, *args)
2227 def get_ideal(self):
2228 r"""get_ideal(Angle self) -> IMP::Float"""
2229 return _IMP_atom.Angle_get_ideal(self)
2231 def set_ideal(self, t):
2232 r"""set_ideal(Angle self, IMP::Float t)"""
2233 return _IMP_atom.Angle_set_ideal(self, t)
2235 def get_stiffness(self):
2236 r"""get_stiffness(Angle self) -> IMP::Float"""
2237 return _IMP_atom.Angle_get_stiffness(self)
2239 def set_stiffness(self, t):
2240 r"""set_stiffness(Angle self, IMP::Float t)"""
2241 return _IMP_atom.Angle_set_stiffness(self, t)
2244 def get_particle_key(i):
2245 r"""get_particle_key(unsigned int i) -> ParticleIndexKey"""
2246 return _IMP_atom.Angle_get_particle_key(i)
2249 def get_ideal_key():
2250 r"""get_ideal_key() -> FloatKey"""
2251 return _IMP_atom.Angle_get_ideal_key()
2254 def get_stiffness_key():
2255 r"""get_stiffness_key() -> FloatKey"""
2256 return _IMP_atom.Angle_get_stiffness_key()
2258 def add_attribute(self, *args):
2260 add_attribute(Angle self, FloatKey k, IMP::Float v, bool opt)
2261 add_attribute(Angle self, FloatKey a0, IMP::Float a1)
2262 add_attribute(Angle self, IntKey a0, IMP::Int a1)
2263 add_attribute(Angle self, FloatsKey a0, IMP::Floats a1)
2264 add_attribute(Angle self, IntsKey a0, IMP::Ints a1)
2265 add_attribute(Angle self, StringKey a0, IMP::String a1)
2266 add_attribute(Angle self, ParticleIndexKey a0, Particle a1)
2267 add_attribute(Angle self, ObjectKey a0, Object a1)
2268 add_attribute(Angle self, SparseFloatKey a0, IMP::Float a1)
2269 add_attribute(Angle self, SparseIntKey a0, IMP::Int a1)
2270 add_attribute(Angle self, SparseStringKey a0, IMP::String a1)
2271 add_attribute(Angle self, SparseParticleIndexKey a0, ParticleIndex a1)
2273 return _IMP_atom.Angle_add_attribute(self, *args)
2275 def get_value(self, *args):
2277 get_value(Angle self, FloatKey a0) -> IMP::Float
2278 get_value(Angle self, IntKey a0) -> IMP::Int
2279 get_value(Angle self, FloatsKey a0) -> IMP::Floats
2280 get_value(Angle self, IntsKey a0) -> IMP::Ints
2281 get_value(Angle self, StringKey a0) -> IMP::String
2282 get_value(Angle self, ParticleIndexKey a0) -> Particle
2283 get_value(Angle self, ObjectKey a0) -> Object
2284 get_value(Angle self, SparseFloatKey a0) -> IMP::Float
2285 get_value(Angle self, SparseIntKey a0) -> IMP::Int
2286 get_value(Angle self, SparseStringKey a0) -> IMP::String
2287 get_value(Angle self, SparseParticleIndexKey a0) -> ParticleIndex
2289 return _IMP_atom.Angle_get_value(self, *args)
2291 def set_value(self, *args):
2293 set_value(Angle self, FloatKey a0, IMP::Float a1)
2294 set_value(Angle self, IntKey a0, IMP::Int a1)
2295 set_value(Angle self, FloatsKey a0, IMP::Floats a1)
2296 set_value(Angle self, IntsKey a0, IMP::Ints a1)
2297 set_value(Angle self, StringKey a0, IMP::String a1)
2298 set_value(Angle self, ParticleIndexKey a0, Particle a1)
2299 set_value(Angle self, ObjectKey a0, Object a1)
2300 set_value(Angle self, SparseFloatKey a0, IMP::Float a1)
2301 set_value(Angle self, SparseIntKey a0, IMP::Int a1)
2302 set_value(Angle self, SparseStringKey a0, IMP::String a1)
2303 set_value(Angle self, SparseParticleIndexKey a0, ParticleIndex a1)
2305 return _IMP_atom.Angle_set_value(self, *args)
2307 def remove_attribute(self, *args):
2309 remove_attribute(Angle self, FloatKey a0)
2310 remove_attribute(Angle self, IntKey a0)
2311 remove_attribute(Angle self, FloatsKey a0)
2312 remove_attribute(Angle self, IntsKey a0)
2313 remove_attribute(Angle self, StringKey a0)
2314 remove_attribute(Angle self, ParticleIndexKey a0)
2315 remove_attribute(Angle self, ObjectKey a0)
2316 remove_attribute(Angle self, SparseFloatKey a0)
2317 remove_attribute(Angle self, SparseIntKey a0)
2318 remove_attribute(Angle self, SparseStringKey a0)
2319 remove_attribute(Angle self, SparseParticleIndexKey a0)
2321 return _IMP_atom.Angle_remove_attribute(self, *args)
2323 def has_attribute(self, *args):
2325 has_attribute(Angle self, FloatKey a0) -> bool
2326 has_attribute(Angle self, IntKey a0) -> bool
2327 has_attribute(Angle self, FloatsKey a0) -> bool
2328 has_attribute(Angle self, IntsKey a0) -> bool
2329 has_attribute(Angle self, StringKey a0) -> bool
2330 has_attribute(Angle self, ParticleIndexKey a0) -> bool
2331 has_attribute(Angle self, ObjectKey a0) -> bool
2332 has_attribute(Angle self, SparseFloatKey a0) -> bool
2333 has_attribute(Angle self, SparseIntKey a0) -> bool
2334 has_attribute(Angle self, SparseStringKey a0) -> bool
2335 has_attribute(Angle self, SparseParticleIndexKey a0) -> bool
2337 return _IMP_atom.Angle_has_attribute(self, *args)
2339 def get_derivative(self, a0):
2340 r"""get_derivative(Angle self, FloatKey a0) -> double"""
2341 return _IMP_atom.Angle_get_derivative(self, a0)
2344 r"""get_name(Angle self) -> std::string"""
2345 return _IMP_atom.Angle_get_name(self)
2347 def clear_caches(self):
2348 r"""clear_caches(Angle self)"""
2349 return _IMP_atom.Angle_clear_caches(self)
2351 def set_name(self, a0):
2352 r"""set_name(Angle self, std::string a0)"""
2353 return _IMP_atom.Angle_set_name(self, a0)
2356 r"""set_check_level(Angle self, IMP::CheckLevel a0)"""
2357 return _IMP_atom.Angle_set_check_level(self, a0)
2359 def add_to_derivative(self, a0, a1, a2):
2360 r"""add_to_derivative(Angle self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2361 return _IMP_atom.Angle_add_to_derivative(self, a0, a1, a2)
2363 def set_is_optimized(self, a0, a1):
2364 r"""set_is_optimized(Angle self, FloatKey a0, bool a1)"""
2365 return _IMP_atom.Angle_set_is_optimized(self, a0, a1)
2367 def get_is_optimized(self, a0):
2368 r"""get_is_optimized(Angle self, FloatKey a0) -> bool"""
2369 return _IMP_atom.Angle_get_is_optimized(self, a0)
2372 r"""get_check_level(Angle self) -> IMP::CheckLevel"""
2373 return _IMP_atom.Angle_get_check_level(self)
2375 def __eq__(self, *args):
2377 __eq__(Angle self, Angle o) -> bool
2378 __eq__(Angle self, Particle d) -> bool
2380 return _IMP_atom.Angle___eq__(self, *args)
2382 def __ne__(self, *args):
2384 __ne__(Angle self, Angle o) -> bool
2385 __ne__(Angle self, Particle d) -> bool
2387 return _IMP_atom.Angle___ne__(self, *args)
2389 def __le__(self, *args):
2391 __le__(Angle self, Angle o) -> bool
2392 __le__(Angle self, Particle d) -> bool
2394 return _IMP_atom.Angle___le__(self, *args)
2396 def __lt__(self, *args):
2398 __lt__(Angle self, Angle o) -> bool
2399 __lt__(Angle self, Particle d) -> bool
2401 return _IMP_atom.Angle___lt__(self, *args)
2403 def __ge__(self, *args):
2405 __ge__(Angle self, Angle o) -> bool
2406 __ge__(Angle self, Particle d) -> bool
2408 return _IMP_atom.Angle___ge__(self, *args)
2410 def __gt__(self, *args):
2412 __gt__(Angle self, Angle o) -> bool
2413 __gt__(Angle self, Particle d) -> bool
2415 return _IMP_atom.Angle___gt__(self, *args)
2418 r"""__hash__(Angle self) -> std::size_t"""
2419 return _IMP_atom.Angle___hash__(self)
2422 r"""__str__(Angle self) -> std::string"""
2423 return _IMP_atom.Angle___str__(self)
2426 r"""__repr__(Angle self) -> std::string"""
2427 return _IMP_atom.Angle___repr__(self)
2429 def _get_as_binary(self):
2430 r"""_get_as_binary(Angle self) -> PyObject *"""
2431 return _IMP_atom.Angle__get_as_binary(self)
2433 def _set_from_binary(self, p):
2434 r"""_set_from_binary(Angle self, PyObject * p)"""
2435 return _IMP_atom.Angle__set_from_binary(self, p)
2437 def __getstate__(self):
2438 p = self._get_as_binary()
2439 if len(self.__dict__) > 1:
2440 d = self.__dict__.copy()
2445 def __setstate__(self, p):
2446 if not hasattr(self,
'this'):
2448 if isinstance(p, tuple):
2450 self.__dict__.update(d)
2451 return self._set_from_binary(p)
2453 __swig_destroy__ = _IMP_atom.delete_Angle
2456 _IMP_atom.Angle_swigregister(Angle)
2458 r"""Proxy of C++ IMP::atom::Dihedral class."""
2460 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2462 def __init__(self, *args):
2464 __init__(Dihedral self) -> Dihedral
2465 __init__(Dihedral self, Model m, ParticleIndex id) -> Dihedral
2466 __init__(Dihedral self, _ParticleAdaptor d) -> Dihedral
2468 _IMP_atom.Dihedral_swiginit(self, _IMP_atom.new_Dihedral(*args))
2470 def show(self, *args):
2471 r"""show(Dihedral self, _ostream out=std::cout)"""
2472 return _IMP_atom.Dihedral_show(self, *args)
2475 def setup_particle(*args):
2477 setup_particle(Model m, ParticleIndex pi, XYZ a, XYZ b, XYZ c, XYZ d) -> Dihedral
2478 setup_particle(_ParticleAdaptor pa, XYZ a, XYZ b, XYZ c, XYZ d) -> Dihedral
2480 return _IMP_atom.Dihedral_setup_particle(*args)
2483 def get_is_setup(*args):
2485 get_is_setup(_ParticleAdaptor p) -> bool
2486 get_is_setup(Model m, ParticleIndex pi) -> bool
2488 return _IMP_atom.Dihedral_get_is_setup(*args)
2490 def get_particle(self, *args):
2492 get_particle(Dihedral self) -> Particle
2493 get_particle(Dihedral self, unsigned int i) -> Particle
2495 return _IMP_atom.Dihedral_get_particle(self, *args)
2497 def get_ideal(self):
2498 r"""get_ideal(Dihedral self) -> IMP::Float"""
2499 return _IMP_atom.Dihedral_get_ideal(self)
2501 def set_ideal(self, t):
2502 r"""set_ideal(Dihedral self, IMP::Float t)"""
2503 return _IMP_atom.Dihedral_set_ideal(self, t)
2505 def get_multiplicity(self):
2506 r"""get_multiplicity(Dihedral self) -> IMP::Int"""
2507 return _IMP_atom.Dihedral_get_multiplicity(self)
2509 def set_multiplicity(self, t):
2510 r"""set_multiplicity(Dihedral self, IMP::Int t)"""
2511 return _IMP_atom.Dihedral_set_multiplicity(self, t)
2513 def get_stiffness(self):
2514 r"""get_stiffness(Dihedral self) -> IMP::Float"""
2515 return _IMP_atom.Dihedral_get_stiffness(self)
2517 def set_stiffness(self, t):
2518 r"""set_stiffness(Dihedral self, IMP::Float t)"""
2519 return _IMP_atom.Dihedral_set_stiffness(self, t)
2522 def get_particle_key(i):
2523 r"""get_particle_key(unsigned int i) -> ParticleIndexKey"""
2524 return _IMP_atom.Dihedral_get_particle_key(i)
2527 def get_ideal_key():
2528 r"""get_ideal_key() -> FloatKey"""
2529 return _IMP_atom.Dihedral_get_ideal_key()
2532 def get_multiplicity_key():
2533 r"""get_multiplicity_key() -> IntKey"""
2534 return _IMP_atom.Dihedral_get_multiplicity_key()
2537 def get_stiffness_key():
2538 r"""get_stiffness_key() -> FloatKey"""
2539 return _IMP_atom.Dihedral_get_stiffness_key()
2541 def add_attribute(self, *args):
2543 add_attribute(Dihedral self, FloatKey k, IMP::Float v, bool opt)
2544 add_attribute(Dihedral self, FloatKey a0, IMP::Float a1)
2545 add_attribute(Dihedral self, IntKey a0, IMP::Int a1)
2546 add_attribute(Dihedral self, FloatsKey a0, IMP::Floats a1)
2547 add_attribute(Dihedral self, IntsKey a0, IMP::Ints a1)
2548 add_attribute(Dihedral self, StringKey a0, IMP::String a1)
2549 add_attribute(Dihedral self, ParticleIndexKey a0, Particle a1)
2550 add_attribute(Dihedral self, ObjectKey a0, Object a1)
2551 add_attribute(Dihedral self, SparseFloatKey a0, IMP::Float a1)
2552 add_attribute(Dihedral self, SparseIntKey a0, IMP::Int a1)
2553 add_attribute(Dihedral self, SparseStringKey a0, IMP::String a1)
2554 add_attribute(Dihedral self, SparseParticleIndexKey a0, ParticleIndex a1)
2556 return _IMP_atom.Dihedral_add_attribute(self, *args)
2558 def get_value(self, *args):
2560 get_value(Dihedral self, FloatKey a0) -> IMP::Float
2561 get_value(Dihedral self, IntKey a0) -> IMP::Int
2562 get_value(Dihedral self, FloatsKey a0) -> IMP::Floats
2563 get_value(Dihedral self, IntsKey a0) -> IMP::Ints
2564 get_value(Dihedral self, StringKey a0) -> IMP::String
2565 get_value(Dihedral self, ParticleIndexKey a0) -> Particle
2566 get_value(Dihedral self, ObjectKey a0) -> Object
2567 get_value(Dihedral self, SparseFloatKey a0) -> IMP::Float
2568 get_value(Dihedral self, SparseIntKey a0) -> IMP::Int
2569 get_value(Dihedral self, SparseStringKey a0) -> IMP::String
2570 get_value(Dihedral self, SparseParticleIndexKey a0) -> ParticleIndex
2572 return _IMP_atom.Dihedral_get_value(self, *args)
2574 def set_value(self, *args):
2576 set_value(Dihedral self, FloatKey a0, IMP::Float a1)
2577 set_value(Dihedral self, IntKey a0, IMP::Int a1)
2578 set_value(Dihedral self, FloatsKey a0, IMP::Floats a1)
2579 set_value(Dihedral self, IntsKey a0, IMP::Ints a1)
2580 set_value(Dihedral self, StringKey a0, IMP::String a1)
2581 set_value(Dihedral self, ParticleIndexKey a0, Particle a1)
2582 set_value(Dihedral self, ObjectKey a0, Object a1)
2583 set_value(Dihedral self, SparseFloatKey a0, IMP::Float a1)
2584 set_value(Dihedral self, SparseIntKey a0, IMP::Int a1)
2585 set_value(Dihedral self, SparseStringKey a0, IMP::String a1)
2586 set_value(Dihedral self, SparseParticleIndexKey a0, ParticleIndex a1)
2588 return _IMP_atom.Dihedral_set_value(self, *args)
2590 def remove_attribute(self, *args):
2592 remove_attribute(Dihedral self, FloatKey a0)
2593 remove_attribute(Dihedral self, IntKey a0)
2594 remove_attribute(Dihedral self, FloatsKey a0)
2595 remove_attribute(Dihedral self, IntsKey a0)
2596 remove_attribute(Dihedral self, StringKey a0)
2597 remove_attribute(Dihedral self, ParticleIndexKey a0)
2598 remove_attribute(Dihedral self, ObjectKey a0)
2599 remove_attribute(Dihedral self, SparseFloatKey a0)
2600 remove_attribute(Dihedral self, SparseIntKey a0)
2601 remove_attribute(Dihedral self, SparseStringKey a0)
2602 remove_attribute(Dihedral self, SparseParticleIndexKey a0)
2604 return _IMP_atom.Dihedral_remove_attribute(self, *args)
2606 def has_attribute(self, *args):
2608 has_attribute(Dihedral self, FloatKey a0) -> bool
2609 has_attribute(Dihedral self, IntKey a0) -> bool
2610 has_attribute(Dihedral self, FloatsKey a0) -> bool
2611 has_attribute(Dihedral self, IntsKey a0) -> bool
2612 has_attribute(Dihedral self, StringKey a0) -> bool
2613 has_attribute(Dihedral self, ParticleIndexKey a0) -> bool
2614 has_attribute(Dihedral self, ObjectKey a0) -> bool
2615 has_attribute(Dihedral self, SparseFloatKey a0) -> bool
2616 has_attribute(Dihedral self, SparseIntKey a0) -> bool
2617 has_attribute(Dihedral self, SparseStringKey a0) -> bool
2618 has_attribute(Dihedral self, SparseParticleIndexKey a0) -> bool
2620 return _IMP_atom.Dihedral_has_attribute(self, *args)
2622 def get_derivative(self, a0):
2623 r"""get_derivative(Dihedral self, FloatKey a0) -> double"""
2624 return _IMP_atom.Dihedral_get_derivative(self, a0)
2627 r"""get_name(Dihedral self) -> std::string"""
2628 return _IMP_atom.Dihedral_get_name(self)
2630 def clear_caches(self):
2631 r"""clear_caches(Dihedral self)"""
2632 return _IMP_atom.Dihedral_clear_caches(self)
2634 def set_name(self, a0):
2635 r"""set_name(Dihedral self, std::string a0)"""
2636 return _IMP_atom.Dihedral_set_name(self, a0)
2639 r"""set_check_level(Dihedral self, IMP::CheckLevel a0)"""
2640 return _IMP_atom.Dihedral_set_check_level(self, a0)
2642 def add_to_derivative(self, a0, a1, a2):
2643 r"""add_to_derivative(Dihedral self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2644 return _IMP_atom.Dihedral_add_to_derivative(self, a0, a1, a2)
2646 def set_is_optimized(self, a0, a1):
2647 r"""set_is_optimized(Dihedral self, FloatKey a0, bool a1)"""
2648 return _IMP_atom.Dihedral_set_is_optimized(self, a0, a1)
2650 def get_is_optimized(self, a0):
2651 r"""get_is_optimized(Dihedral self, FloatKey a0) -> bool"""
2652 return _IMP_atom.Dihedral_get_is_optimized(self, a0)
2655 r"""get_check_level(Dihedral self) -> IMP::CheckLevel"""
2656 return _IMP_atom.Dihedral_get_check_level(self)
2658 def __eq__(self, *args):
2660 __eq__(Dihedral self, Dihedral o) -> bool
2661 __eq__(Dihedral self, Particle d) -> bool
2663 return _IMP_atom.Dihedral___eq__(self, *args)
2665 def __ne__(self, *args):
2667 __ne__(Dihedral self, Dihedral o) -> bool
2668 __ne__(Dihedral self, Particle d) -> bool
2670 return _IMP_atom.Dihedral___ne__(self, *args)
2672 def __le__(self, *args):
2674 __le__(Dihedral self, Dihedral o) -> bool
2675 __le__(Dihedral self, Particle d) -> bool
2677 return _IMP_atom.Dihedral___le__(self, *args)
2679 def __lt__(self, *args):
2681 __lt__(Dihedral self, Dihedral o) -> bool
2682 __lt__(Dihedral self, Particle d) -> bool
2684 return _IMP_atom.Dihedral___lt__(self, *args)
2686 def __ge__(self, *args):
2688 __ge__(Dihedral self, Dihedral o) -> bool
2689 __ge__(Dihedral self, Particle d) -> bool
2691 return _IMP_atom.Dihedral___ge__(self, *args)
2693 def __gt__(self, *args):
2695 __gt__(Dihedral self, Dihedral o) -> bool
2696 __gt__(Dihedral self, Particle d) -> bool
2698 return _IMP_atom.Dihedral___gt__(self, *args)
2701 r"""__hash__(Dihedral self) -> std::size_t"""
2702 return _IMP_atom.Dihedral___hash__(self)
2705 r"""__str__(Dihedral self) -> std::string"""
2706 return _IMP_atom.Dihedral___str__(self)
2709 r"""__repr__(Dihedral self) -> std::string"""
2710 return _IMP_atom.Dihedral___repr__(self)
2712 def _get_as_binary(self):
2713 r"""_get_as_binary(Dihedral self) -> PyObject *"""
2714 return _IMP_atom.Dihedral__get_as_binary(self)
2716 def _set_from_binary(self, p):
2717 r"""_set_from_binary(Dihedral self, PyObject * p)"""
2718 return _IMP_atom.Dihedral__set_from_binary(self, p)
2720 def __getstate__(self):
2721 p = self._get_as_binary()
2722 if len(self.__dict__) > 1:
2723 d = self.__dict__.copy()
2728 def __setstate__(self, p):
2729 if not hasattr(self,
'this'):
2731 if isinstance(p, tuple):
2733 self.__dict__.update(d)
2734 return self._set_from_binary(p)
2736 __swig_destroy__ = _IMP_atom.delete_Dihedral
2739 _IMP_atom.Dihedral_swigregister(Dihedral)
2741 r"""Proxy of C++ IMP::atom::SmoothingFunction class."""
2743 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2745 def __init__(self, *args, **kwargs):
2746 raise AttributeError(
"No constructor defined - class is abstract")
2748 def __call__(self, *args):
2750 __call__(SmoothingFunction self, double score, double distance) -> double
2751 __call__(SmoothingFunction self, double score, double deriv, double distance) -> IMP::DerivativePair
2753 return _IMP_atom.SmoothingFunction___call__(self, *args)
2754 __swig_destroy__ = _IMP_atom.delete_SmoothingFunction
2757 r"""__str__(SmoothingFunction self) -> std::string"""
2758 return _IMP_atom.SmoothingFunction___str__(self)
2761 r"""__repr__(SmoothingFunction self) -> std::string"""
2762 return _IMP_atom.SmoothingFunction___repr__(self)
2766 return _object_cast_to_SmoothingFunction(o)
2770 _IMP_atom.SmoothingFunction_swigregister(SmoothingFunction)
2771 class ForceSwitch(SmoothingFunction):
2772 r"""Proxy of C++ IMP::atom::ForceSwitch class."""
2774 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2776 def __init__(self, min_distance, max_distance):
2777 r"""__init__(ForceSwitch self, double min_distance, double max_distance) -> ForceSwitch"""
2778 _IMP_atom.ForceSwitch_swiginit(self, _IMP_atom.new_ForceSwitch(min_distance, max_distance))
2780 def __call__(self, *args):
2782 __call__(ForceSwitch self, double score, double distance) -> double
2783 __call__(ForceSwitch self, double score, double deriv, double distance) -> IMP::DerivativePair
2785 return _IMP_atom.ForceSwitch___call__(self, *args)
2787 def get_version_info(self):
2788 r"""get_version_info(ForceSwitch self) -> VersionInfo"""
2789 return _IMP_atom.ForceSwitch_get_version_info(self)
2790 __swig_destroy__ = _IMP_atom.delete_ForceSwitch
2793 r"""__str__(ForceSwitch self) -> std::string"""
2794 return _IMP_atom.ForceSwitch___str__(self)
2797 r"""__repr__(ForceSwitch self) -> std::string"""
2798 return _IMP_atom.ForceSwitch___repr__(self)
2802 return _object_cast_to_ForceSwitch(o)
2806 _IMP_atom.ForceSwitch_swigregister(ForceSwitch)
2808 r"""Proxy of C++ IMP::atom::AngleSingletonScore class."""
2810 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2812 def __init__(self, f):
2813 r"""__init__(AngleSingletonScore self, UnaryFunction f) -> AngleSingletonScore"""
2814 _IMP_atom.AngleSingletonScore_swiginit(self, _IMP_atom.new_AngleSingletonScore(f))
2816 def do_get_inputs(self, m, pis):
2817 r"""do_get_inputs(AngleSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2818 return _IMP_atom.AngleSingletonScore_do_get_inputs(self, m, pis)
2820 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
2821 r"""evaluate_indexes(AngleSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
2822 return _IMP_atom.AngleSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
2824 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
2825 r"""evaluate_indexes_scores(AngleSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
2826 return _IMP_atom.AngleSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
2828 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
2829 r"""evaluate_indexes_delta(AngleSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
2830 return _IMP_atom.AngleSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
2832 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
2833 r"""evaluate_if_good_indexes(AngleSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
2834 return _IMP_atom.AngleSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
2836 def get_version_info(self):
2837 r"""get_version_info(AngleSingletonScore self) -> VersionInfo"""
2838 return _IMP_atom.AngleSingletonScore_get_version_info(self)
2839 __swig_destroy__ = _IMP_atom.delete_AngleSingletonScore
2842 r"""__str__(AngleSingletonScore self) -> std::string"""
2843 return _IMP_atom.AngleSingletonScore___str__(self)
2846 r"""__repr__(AngleSingletonScore self) -> std::string"""
2847 return _IMP_atom.AngleSingletonScore___repr__(self)
2851 return _object_cast_to_AngleSingletonScore(o)
2855 _IMP_atom.AngleSingletonScore_swigregister(AngleSingletonScore)
2857 r"""Proxy of C++ IMP::atom::BondEndpointsRefiner class."""
2859 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2862 r"""__init__(BondEndpointsRefiner self) -> BondEndpointsRefiner"""
2863 _IMP_atom.BondEndpointsRefiner_swiginit(self, _IMP_atom.new_BondEndpointsRefiner())
2865 def do_get_inputs(self, m, pis):
2866 r"""do_get_inputs(BondEndpointsRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2867 return _IMP_atom.BondEndpointsRefiner_do_get_inputs(self, m, pis)
2869 def get_version_info(self):
2870 r"""get_version_info(BondEndpointsRefiner self) -> VersionInfo"""
2871 return _IMP_atom.BondEndpointsRefiner_get_version_info(self)
2872 __swig_destroy__ = _IMP_atom.delete_BondEndpointsRefiner
2875 r"""__str__(BondEndpointsRefiner self) -> std::string"""
2876 return _IMP_atom.BondEndpointsRefiner___str__(self)
2879 r"""__repr__(BondEndpointsRefiner self) -> std::string"""
2880 return _IMP_atom.BondEndpointsRefiner___repr__(self)
2884 return _object_cast_to_BondEndpointsRefiner(o)
2888 _IMP_atom.BondEndpointsRefiner_swigregister(BondEndpointsRefiner)
2890 r"""Proxy of C++ IMP::atom::BondPairContainer class."""
2892 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2894 def __init__(self, sc):
2895 r"""__init__(BondPairContainer self, SingletonContainer sc) -> BondPairContainer"""
2896 _IMP_atom.BondPairContainer_swiginit(self, _IMP_atom.new_BondPairContainer(sc))
2898 def do_get_inputs(self):
2899 r"""do_get_inputs(BondPairContainer self) -> IMP::ModelObjectsTemp"""
2900 return _IMP_atom.BondPairContainer_do_get_inputs(self)
2902 def do_apply(self, sm):
2903 r"""do_apply(BondPairContainer self, PairModifier sm)"""
2904 return _IMP_atom.BondPairContainer_do_apply(self, sm)
2906 def do_apply_moved(self, sm, moved_pis, reset_pis):
2907 r"""do_apply_moved(BondPairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
2908 return _IMP_atom.BondPairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
2910 def get_version_info(self):
2911 r"""get_version_info(BondPairContainer self) -> VersionInfo"""
2912 return _IMP_atom.BondPairContainer_get_version_info(self)
2913 __swig_destroy__ = _IMP_atom.delete_BondPairContainer
2916 r"""__str__(BondPairContainer self) -> std::string"""
2917 return _IMP_atom.BondPairContainer___str__(self)
2920 r"""__repr__(BondPairContainer self) -> std::string"""
2921 return _IMP_atom.BondPairContainer___repr__(self)
2925 return _object_cast_to_BondPairContainer(o)
2929 _IMP_atom.BondPairContainer_swigregister(BondPairContainer)
2931 r"""Proxy of C++ IMP::atom::BondSingletonScore class."""
2933 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2935 def __init__(self, f):
2936 r"""__init__(BondSingletonScore self, UnaryFunction f) -> BondSingletonScore"""
2937 _IMP_atom.BondSingletonScore_swiginit(self, _IMP_atom.new_BondSingletonScore(f))
2939 def get_unary_function(self):
2940 r"""get_unary_function(BondSingletonScore self) -> UnaryFunction"""
2941 return _IMP_atom.BondSingletonScore_get_unary_function(self)
2943 def do_get_inputs(self, m, pis):
2944 r"""do_get_inputs(BondSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2945 return _IMP_atom.BondSingletonScore_do_get_inputs(self, m, pis)
2947 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
2948 r"""evaluate_indexes(BondSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
2949 return _IMP_atom.BondSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
2951 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
2952 r"""evaluate_indexes_scores(BondSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
2953 return _IMP_atom.BondSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
2955 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
2956 r"""evaluate_indexes_delta(BondSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
2957 return _IMP_atom.BondSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
2959 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
2960 r"""evaluate_if_good_indexes(BondSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
2961 return _IMP_atom.BondSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
2963 def get_version_info(self):
2964 r"""get_version_info(BondSingletonScore self) -> VersionInfo"""
2965 return _IMP_atom.BondSingletonScore_get_version_info(self)
2966 __swig_destroy__ = _IMP_atom.delete_BondSingletonScore
2969 r"""__str__(BondSingletonScore self) -> std::string"""
2970 return _IMP_atom.BondSingletonScore___str__(self)
2973 r"""__repr__(BondSingletonScore self) -> std::string"""
2974 return _IMP_atom.BondSingletonScore___repr__(self)
2978 return _object_cast_to_BondSingletonScore(o)
2982 _IMP_atom.BondSingletonScore_swigregister(BondSingletonScore)
2984 r"""Proxy of C++ IMP::atom::DihedralSingletonScore class."""
2986 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2989 r"""__init__(DihedralSingletonScore self) -> DihedralSingletonScore"""
2990 _IMP_atom.DihedralSingletonScore_swiginit(self, _IMP_atom.new_DihedralSingletonScore())
2992 def do_get_inputs(self, m, pis):
2993 r"""do_get_inputs(DihedralSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2994 return _IMP_atom.DihedralSingletonScore_do_get_inputs(self, m, pis)
2996 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
2997 r"""evaluate_indexes(DihedralSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
2998 return _IMP_atom.DihedralSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
3000 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
3001 r"""evaluate_indexes_scores(DihedralSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
3002 return _IMP_atom.DihedralSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
3004 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
3005 r"""evaluate_indexes_delta(DihedralSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
3006 return _IMP_atom.DihedralSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
3008 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
3009 r"""evaluate_if_good_indexes(DihedralSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
3010 return _IMP_atom.DihedralSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
3012 def get_version_info(self):
3013 r"""get_version_info(DihedralSingletonScore self) -> VersionInfo"""
3014 return _IMP_atom.DihedralSingletonScore_get_version_info(self)
3015 __swig_destroy__ = _IMP_atom.delete_DihedralSingletonScore
3018 r"""__str__(DihedralSingletonScore self) -> std::string"""
3019 return _IMP_atom.DihedralSingletonScore___str__(self)
3022 r"""__repr__(DihedralSingletonScore self) -> std::string"""
3023 return _IMP_atom.DihedralSingletonScore___repr__(self)
3027 return _object_cast_to_DihedralSingletonScore(o)
3030 def _get_as_binary(self):
3031 r"""_get_as_binary(DihedralSingletonScore self) -> PyObject *"""
3032 return _IMP_atom.DihedralSingletonScore__get_as_binary(self)
3034 def _set_from_binary(self, p):
3035 r"""_set_from_binary(DihedralSingletonScore self, PyObject * p)"""
3036 return _IMP_atom.DihedralSingletonScore__set_from_binary(self, p)
3038 def __getstate__(self):
3039 p = self._get_as_binary()
3040 if len(self.__dict__) > 1:
3041 d = self.__dict__.copy()
3046 def __setstate__(self, p):
3047 if not hasattr(self,
'this'):
3049 if isinstance(p, tuple):
3051 self.__dict__.update(d)
3052 return self._set_from_binary(p)
3056 _IMP_atom.DihedralSingletonScore_swigregister(DihedralSingletonScore)
3058 r"""Proxy of C++ IMP::atom::ImproperSingletonScore class."""
3060 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3062 def __init__(self, f):
3063 r"""__init__(ImproperSingletonScore self, UnaryFunction f) -> ImproperSingletonScore"""
3064 _IMP_atom.ImproperSingletonScore_swiginit(self, _IMP_atom.new_ImproperSingletonScore(f))
3066 def do_get_inputs(self, m, pis):
3067 r"""do_get_inputs(ImproperSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3068 return _IMP_atom.ImproperSingletonScore_do_get_inputs(self, m, pis)
3070 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
3071 r"""evaluate_indexes(ImproperSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
3072 return _IMP_atom.ImproperSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
3074 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
3075 r"""evaluate_indexes_scores(ImproperSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
3076 return _IMP_atom.ImproperSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
3078 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
3079 r"""evaluate_indexes_delta(ImproperSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
3080 return _IMP_atom.ImproperSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
3082 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
3083 r"""evaluate_if_good_indexes(ImproperSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
3084 return _IMP_atom.ImproperSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
3086 def get_version_info(self):
3087 r"""get_version_info(ImproperSingletonScore self) -> VersionInfo"""
3088 return _IMP_atom.ImproperSingletonScore_get_version_info(self)
3089 __swig_destroy__ = _IMP_atom.delete_ImproperSingletonScore
3092 r"""__str__(ImproperSingletonScore self) -> std::string"""
3093 return _IMP_atom.ImproperSingletonScore___str__(self)
3096 r"""__repr__(ImproperSingletonScore self) -> std::string"""
3097 return _IMP_atom.ImproperSingletonScore___repr__(self)
3101 return _object_cast_to_ImproperSingletonScore(o)
3105 _IMP_atom.ImproperSingletonScore_swigregister(ImproperSingletonScore)
3107 r"""Proxy of C++ IMP::atom::CenterOfMass class."""
3109 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3111 def get_constraint(self):
3112 r"""get_constraint(CenterOfMass self) -> Constraint"""
3113 return _IMP_atom.CenterOfMass_get_constraint(self)
3116 r"""get_mass(CenterOfMass self) -> IMP::Float"""
3117 return _IMP_atom.CenterOfMass_get_mass(self)
3119 def get_coordinate(self, i):
3120 r"""get_coordinate(CenterOfMass self, int i) -> IMP::Float"""
3121 return _IMP_atom.CenterOfMass_get_coordinate(self, i)
3123 def get_coordinates(self):
3124 r"""get_coordinates(CenterOfMass self) -> Vector3D"""
3125 return _IMP_atom.CenterOfMass_get_coordinates(self)
3127 def __init__(self, *args):
3129 __init__(CenterOfMass self) -> CenterOfMass
3130 __init__(CenterOfMass self, Model m, ParticleIndex id) -> CenterOfMass
3131 __init__(CenterOfMass self, _ParticleAdaptor d) -> CenterOfMass
3133 _IMP_atom.CenterOfMass_swiginit(self, _IMP_atom.new_CenterOfMass(*args))
3135 def show(self, *args):
3136 r"""show(CenterOfMass self, _ostream out=std::cout)"""
3137 return _IMP_atom.CenterOfMass_show(self, *args)
3140 def setup_particle(*args):
3142 setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor members) -> CenterOfMass
3143 setup_particle(_ParticleAdaptor pa, _ParticleIndexesAdaptor members) -> CenterOfMass
3144 setup_particle(Model m, ParticleIndex pi, Refiner refiner) -> CenterOfMass
3145 setup_particle(_ParticleAdaptor pa, Refiner refiner) -> CenterOfMass
3147 return _IMP_atom.CenterOfMass_setup_particle(*args)
3150 def teardown_particle(com):
3151 r"""teardown_particle(CenterOfMass com)"""
3152 return _IMP_atom.CenterOfMass_teardown_particle(com)
3155 def get_is_setup(*args):
3157 get_is_setup(_ParticleAdaptor p) -> bool
3158 get_is_setup(Model m, ParticleIndex pi) -> bool
3160 return _IMP_atom.CenterOfMass_get_is_setup(*args)
3162 def add_attribute(self, *args):
3164 add_attribute(CenterOfMass self, FloatKey k, IMP::Float v, bool opt)
3165 add_attribute(CenterOfMass self, FloatKey a0, IMP::Float a1)
3166 add_attribute(CenterOfMass self, IntKey a0, IMP::Int a1)
3167 add_attribute(CenterOfMass self, FloatsKey a0, IMP::Floats a1)
3168 add_attribute(CenterOfMass self, IntsKey a0, IMP::Ints a1)
3169 add_attribute(CenterOfMass self, StringKey a0, IMP::String a1)
3170 add_attribute(CenterOfMass self, ParticleIndexKey a0, Particle a1)
3171 add_attribute(CenterOfMass self, ObjectKey a0, Object a1)
3172 add_attribute(CenterOfMass self, SparseFloatKey a0, IMP::Float a1)
3173 add_attribute(CenterOfMass self, SparseIntKey a0, IMP::Int a1)
3174 add_attribute(CenterOfMass self, SparseStringKey a0, IMP::String a1)
3175 add_attribute(CenterOfMass self, SparseParticleIndexKey a0, ParticleIndex a1)
3177 return _IMP_atom.CenterOfMass_add_attribute(self, *args)
3179 def get_value(self, *args):
3181 get_value(CenterOfMass self, FloatKey a0) -> IMP::Float
3182 get_value(CenterOfMass self, IntKey a0) -> IMP::Int
3183 get_value(CenterOfMass self, FloatsKey a0) -> IMP::Floats
3184 get_value(CenterOfMass self, IntsKey a0) -> IMP::Ints
3185 get_value(CenterOfMass self, StringKey a0) -> IMP::String
3186 get_value(CenterOfMass self, ParticleIndexKey a0) -> Particle
3187 get_value(CenterOfMass self, ObjectKey a0) -> Object
3188 get_value(CenterOfMass self, SparseFloatKey a0) -> IMP::Float
3189 get_value(CenterOfMass self, SparseIntKey a0) -> IMP::Int
3190 get_value(CenterOfMass self, SparseStringKey a0) -> IMP::String
3191 get_value(CenterOfMass self, SparseParticleIndexKey a0) -> ParticleIndex
3193 return _IMP_atom.CenterOfMass_get_value(self, *args)
3195 def set_value(self, *args):
3197 set_value(CenterOfMass self, FloatKey a0, IMP::Float a1)
3198 set_value(CenterOfMass self, IntKey a0, IMP::Int a1)
3199 set_value(CenterOfMass self, FloatsKey a0, IMP::Floats a1)
3200 set_value(CenterOfMass self, IntsKey a0, IMP::Ints a1)
3201 set_value(CenterOfMass self, StringKey a0, IMP::String a1)
3202 set_value(CenterOfMass self, ParticleIndexKey a0, Particle a1)
3203 set_value(CenterOfMass self, ObjectKey a0, Object a1)
3204 set_value(CenterOfMass self, SparseFloatKey a0, IMP::Float a1)
3205 set_value(CenterOfMass self, SparseIntKey a0, IMP::Int a1)
3206 set_value(CenterOfMass self, SparseStringKey a0, IMP::String a1)
3207 set_value(CenterOfMass self, SparseParticleIndexKey a0, ParticleIndex a1)
3209 return _IMP_atom.CenterOfMass_set_value(self, *args)
3211 def remove_attribute(self, *args):
3213 remove_attribute(CenterOfMass self, FloatKey a0)
3214 remove_attribute(CenterOfMass self, IntKey a0)
3215 remove_attribute(CenterOfMass self, FloatsKey a0)
3216 remove_attribute(CenterOfMass self, IntsKey a0)
3217 remove_attribute(CenterOfMass self, StringKey a0)
3218 remove_attribute(CenterOfMass self, ParticleIndexKey a0)
3219 remove_attribute(CenterOfMass self, ObjectKey a0)
3220 remove_attribute(CenterOfMass self, SparseFloatKey a0)
3221 remove_attribute(CenterOfMass self, SparseIntKey a0)
3222 remove_attribute(CenterOfMass self, SparseStringKey a0)
3223 remove_attribute(CenterOfMass self, SparseParticleIndexKey a0)
3225 return _IMP_atom.CenterOfMass_remove_attribute(self, *args)
3227 def has_attribute(self, *args):
3229 has_attribute(CenterOfMass self, FloatKey a0) -> bool
3230 has_attribute(CenterOfMass self, IntKey a0) -> bool
3231 has_attribute(CenterOfMass self, FloatsKey a0) -> bool
3232 has_attribute(CenterOfMass self, IntsKey a0) -> bool
3233 has_attribute(CenterOfMass self, StringKey a0) -> bool
3234 has_attribute(CenterOfMass self, ParticleIndexKey a0) -> bool
3235 has_attribute(CenterOfMass self, ObjectKey a0) -> bool
3236 has_attribute(CenterOfMass self, SparseFloatKey a0) -> bool
3237 has_attribute(CenterOfMass self, SparseIntKey a0) -> bool
3238 has_attribute(CenterOfMass self, SparseStringKey a0) -> bool
3239 has_attribute(CenterOfMass self, SparseParticleIndexKey a0) -> bool
3241 return _IMP_atom.CenterOfMass_has_attribute(self, *args)
3243 def get_derivative(self, a0):
3244 r"""get_derivative(CenterOfMass self, FloatKey a0) -> double"""
3245 return _IMP_atom.CenterOfMass_get_derivative(self, a0)
3248 r"""get_name(CenterOfMass self) -> std::string"""
3249 return _IMP_atom.CenterOfMass_get_name(self)
3251 def clear_caches(self):
3252 r"""clear_caches(CenterOfMass self)"""
3253 return _IMP_atom.CenterOfMass_clear_caches(self)
3255 def set_name(self, a0):
3256 r"""set_name(CenterOfMass self, std::string a0)"""
3257 return _IMP_atom.CenterOfMass_set_name(self, a0)
3260 r"""set_check_level(CenterOfMass self, IMP::CheckLevel a0)"""
3261 return _IMP_atom.CenterOfMass_set_check_level(self, a0)
3263 def add_to_derivative(self, a0, a1, a2):
3264 r"""add_to_derivative(CenterOfMass self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
3265 return _IMP_atom.CenterOfMass_add_to_derivative(self, a0, a1, a2)
3267 def set_is_optimized(self, a0, a1):
3268 r"""set_is_optimized(CenterOfMass self, FloatKey a0, bool a1)"""
3269 return _IMP_atom.CenterOfMass_set_is_optimized(self, a0, a1)
3271 def get_is_optimized(self, a0):
3272 r"""get_is_optimized(CenterOfMass self, FloatKey a0) -> bool"""
3273 return _IMP_atom.CenterOfMass_get_is_optimized(self, a0)
3276 r"""get_check_level(CenterOfMass self) -> IMP::CheckLevel"""
3277 return _IMP_atom.CenterOfMass_get_check_level(self)
3279 def __eq__(self, *args):
3281 __eq__(CenterOfMass self, CenterOfMass o) -> bool
3282 __eq__(CenterOfMass self, Particle d) -> bool
3284 return _IMP_atom.CenterOfMass___eq__(self, *args)
3286 def __ne__(self, *args):
3288 __ne__(CenterOfMass self, CenterOfMass o) -> bool
3289 __ne__(CenterOfMass self, Particle d) -> bool
3291 return _IMP_atom.CenterOfMass___ne__(self, *args)
3293 def __le__(self, *args):
3295 __le__(CenterOfMass self, CenterOfMass o) -> bool
3296 __le__(CenterOfMass self, Particle d) -> bool
3298 return _IMP_atom.CenterOfMass___le__(self, *args)
3300 def __lt__(self, *args):
3302 __lt__(CenterOfMass self, CenterOfMass o) -> bool
3303 __lt__(CenterOfMass self, Particle d) -> bool
3305 return _IMP_atom.CenterOfMass___lt__(self, *args)
3307 def __ge__(self, *args):
3309 __ge__(CenterOfMass self, CenterOfMass o) -> bool
3310 __ge__(CenterOfMass self, Particle d) -> bool
3312 return _IMP_atom.CenterOfMass___ge__(self, *args)
3314 def __gt__(self, *args):
3316 __gt__(CenterOfMass self, CenterOfMass o) -> bool
3317 __gt__(CenterOfMass self, Particle d) -> bool
3319 return _IMP_atom.CenterOfMass___gt__(self, *args)
3322 r"""__hash__(CenterOfMass self) -> std::size_t"""
3323 return _IMP_atom.CenterOfMass___hash__(self)
3326 r"""__str__(CenterOfMass self) -> std::string"""
3327 return _IMP_atom.CenterOfMass___str__(self)
3330 r"""__repr__(CenterOfMass self) -> std::string"""
3331 return _IMP_atom.CenterOfMass___repr__(self)
3333 def _get_as_binary(self):
3334 r"""_get_as_binary(CenterOfMass self) -> PyObject *"""
3335 return _IMP_atom.CenterOfMass__get_as_binary(self)
3337 def _set_from_binary(self, p):
3338 r"""_set_from_binary(CenterOfMass self, PyObject * p)"""
3339 return _IMP_atom.CenterOfMass__set_from_binary(self, p)
3341 def __getstate__(self):
3342 p = self._get_as_binary()
3343 if len(self.__dict__) > 1:
3344 d = self.__dict__.copy()
3349 def __setstate__(self, p):
3350 if not hasattr(self,
'this'):
3352 if isinstance(p, tuple):
3354 self.__dict__.update(d)
3355 return self._set_from_binary(p)
3357 __swig_destroy__ = _IMP_atom.delete_CenterOfMass
3360 _IMP_atom.CenterOfMass_swigregister(CenterOfMass)
3362 r"""Proxy of C++ IMP::atom::CoverBond class."""
3364 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3367 r"""__init__(CoverBond self) -> CoverBond"""
3368 _IMP_atom.CoverBond_swiginit(self, _IMP_atom.new_CoverBond())
3370 def do_get_inputs(self, m, pis):
3371 r"""do_get_inputs(CoverBond self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3372 return _IMP_atom.CoverBond_do_get_inputs(self, m, pis)
3374 def do_get_outputs(self, m, pis):
3375 r"""do_get_outputs(CoverBond self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3376 return _IMP_atom.CoverBond_do_get_outputs(self, m, pis)
3378 def get_version_info(self):
3379 r"""get_version_info(CoverBond self) -> VersionInfo"""
3380 return _IMP_atom.CoverBond_get_version_info(self)
3381 __swig_destroy__ = _IMP_atom.delete_CoverBond
3384 r"""__str__(CoverBond self) -> std::string"""
3385 return _IMP_atom.CoverBond___str__(self)
3388 r"""__repr__(CoverBond self) -> std::string"""
3389 return _IMP_atom.CoverBond___repr__(self)
3393 return _object_cast_to_CoverBond(o)
3397 _IMP_atom.CoverBond_swigregister(CoverBond)
3399 r"""Proxy of C++ IMP::atom::Simulator class."""
3401 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3403 def __init__(self, *args):
3404 r"""__init__(Simulator self, Model m, std::string name="Simulator %1%", double wave_factor=1.0) -> Simulator"""
3405 if self.__class__ == Simulator:
3409 _IMP_atom.Simulator_swiginit(self, _IMP_atom.new_Simulator(_self, *args))
3411 if self.__class__ != Simulator:
3412 _director_objects.register(self)
3417 def simulate(self, time_in_fs):
3418 r"""simulate(Simulator self, double time_in_fs) -> double"""
3419 return _IMP_atom.Simulator_simulate(self, time_in_fs)
3421 def simulate_wave(self, time_in_fs, max_time_step_factor=10.0, base=1.5):
3422 r"""simulate_wave(Simulator self, double time_in_fs, double max_time_step_factor=10.0, double base=1.5) -> double"""
3423 return _IMP_atom.Simulator_simulate_wave(self, time_in_fs, max_time_step_factor, base)
3425 def get_temperature(self):
3426 r"""get_temperature(Simulator self) -> double"""
3427 return _IMP_atom.Simulator_get_temperature(self)
3429 def set_temperature(self, d):
3430 r"""set_temperature(Simulator self, double d)"""
3431 return _IMP_atom.Simulator_set_temperature(self, d)
3433 def set_maximum_time_step(self, ts):
3434 r"""set_maximum_time_step(Simulator self, double ts)"""
3435 return _IMP_atom.Simulator_set_maximum_time_step(self, ts)
3437 def get_maximum_time_step(self):
3438 r"""get_maximum_time_step(Simulator self) -> double"""
3439 return _IMP_atom.Simulator_get_maximum_time_step(self)
3441 def get_last_time_step(self):
3442 r"""get_last_time_step(Simulator self) -> double"""
3443 return _IMP_atom.Simulator_get_last_time_step(self)
3445 def set_time_step(self, ts):
3446 r"""set_time_step(Simulator self, double ts)"""
3447 return _IMP_atom.Simulator_set_time_step(self, ts)
3450 r"""get_kt(Simulator self) -> double"""
3451 return _IMP_atom.Simulator_get_kt(self)
3453 def get_current_time(self):
3454 r"""get_current_time(Simulator self) -> double"""
3455 return _IMP_atom.Simulator_get_current_time(self)
3457 def set_current_time(self, ct):
3458 r"""set_current_time(Simulator self, double ct)"""
3459 return _IMP_atom.Simulator_set_current_time(self, ct)
3461 def get_simulation_particles(self):
3462 r"""get_simulation_particles(Simulator self) -> IMP::ParticlesTemp"""
3463 return _IMP_atom.Simulator_get_simulation_particles(self)
3465 def get_simulation_particle_indexes(self):
3466 r"""get_simulation_particle_indexes(Simulator self) -> IMP::ParticleIndexes"""
3467 return _IMP_atom.Simulator_get_simulation_particle_indexes(self)
3468 def __get_particles(self):
return IMP._list_util.VarList(getdimfunc=self.get_number_of_particles, getfunc=self.get_particle, erasefunc=self.erase_particle, appendfunc=self.add_particle, extendfunc=self.add_particles, clearfunc=self.clear_particles, indexfunc=self._python_index_particle)
3469 def __set_particles(self, obj): IMP._list_util.set_varlist(self.particles, obj)
3470 def __del_particles(self): IMP._list_util.del_varlist(self.particles)
3471 particles = property(__get_particles, __set_particles, __del_particles, doc=
"List of ##ucnames")
3473 def remove_particle(self, d):
3474 r"""remove_particle(Simulator self, Particle d)"""
3475 return _IMP_atom.Simulator_remove_particle(self, d)
3477 def _python_index_particle(self, d, start, stop):
3478 r"""_python_index_particle(Simulator self, Particle d, unsigned int start, unsigned int stop) -> unsigned int"""
3479 return _IMP_atom.Simulator__python_index_particle(self, d, start, stop)
3481 def remove_particles(self, d):
3482 r"""remove_particles(Simulator self, IMP::Particles const & d)"""
3483 return _IMP_atom.Simulator_remove_particles(self, d)
3485 def set_particles(self, ps):
3486 r"""set_particles(Simulator self, IMP::Particles const & ps)"""
3487 return _IMP_atom.Simulator_set_particles(self, ps)
3489 def set_particles_order(self, objs):
3490 r"""set_particles_order(Simulator self, IMP::Particles const & objs)"""
3491 return _IMP_atom.Simulator_set_particles_order(self, objs)
3494 r"""add_particle(Simulator self, Particle obj) -> unsigned int"""
3495 return _IMP_atom.Simulator_add_particle(self, obj)
3498 r"""add_particles(Simulator self, IMP::Particles const & objs)"""
3499 return _IMP_atom.Simulator_add_particles(self, objs)
3501 def clear_particles(self):
3502 r"""clear_particles(Simulator self)"""
3503 return _IMP_atom.Simulator_clear_particles(self)
3505 def get_number_of_particles(self):
3506 r"""get_number_of_particles(Simulator self) -> unsigned int"""
3507 return _IMP_atom.Simulator_get_number_of_particles(self)
3509 def get_has_particles(self):
3510 r"""get_has_particles(Simulator self) -> bool"""
3511 return _IMP_atom.Simulator_get_has_particles(self)
3513 def get_particle(self, i):
3514 r"""get_particle(Simulator self, unsigned int i) -> Particle"""
3515 return _IMP_atom.Simulator_get_particle(self, i)
3518 r"""get_particles(Simulator self) -> IMP::Particles"""
3519 return _IMP_atom.Simulator_get_particles(self)
3521 def erase_particle(self, i):
3522 r"""erase_particle(Simulator self, unsigned int i)"""
3523 return _IMP_atom.Simulator_erase_particle(self, i)
3525 def reserve_particles(self, sz):
3526 r"""reserve_particles(Simulator self, unsigned int sz)"""
3527 return _IMP_atom.Simulator_reserve_particles(self, sz)
3529 def do_optimize(self, max_steps):
3530 r"""do_optimize(Simulator self, unsigned int max_steps) -> IMP::Float"""
3531 return _IMP_atom.Simulator_do_optimize(self, max_steps)
3533 def setup(self, arg0):
3534 r"""setup(Simulator self, IMP::ParticleIndexes const & arg0)"""
3535 return _IMP_atom.Simulator_setup(self, arg0)
3537 def do_step(self, sc, dt):
3538 r"""do_step(Simulator self, IMP::ParticleIndexes const & sc, double dt) -> double"""
3539 return _IMP_atom.Simulator_do_step(self, sc, dt)
3541 def get_is_simulation_particle(self, p):
3542 r"""get_is_simulation_particle(Simulator self, ParticleIndex p) -> bool"""
3543 return _IMP_atom.Simulator_get_is_simulation_particle(self, p)
3545 def do_simulate(self, time):
3546 r"""do_simulate(Simulator self, double time) -> double"""
3547 return _IMP_atom.Simulator_do_simulate(self, time)
3549 def do_simulate_wave(self, time_in_fs, max_time_step_factor=10.0, base=1.5):
3550 r"""do_simulate_wave(Simulator self, double time_in_fs, double max_time_step_factor=10.0, double base=1.5) -> double"""
3551 return _IMP_atom.Simulator_do_simulate_wave(self, time_in_fs, max_time_step_factor, base)
3554 r"""__str__(Simulator self) -> std::string"""
3555 return _IMP_atom.Simulator___str__(self)
3558 r"""__repr__(Simulator self) -> std::string"""
3559 return _IMP_atom.Simulator___repr__(self)
3563 return _object_cast_to_Simulator(o)
3566 def do_show(self, out):
3571 return _object_cast_to_Simulator(o)
3573 __swig_destroy__ = _IMP_atom.delete_Simulator
3574 def __disown__(self):
3576 _IMP_atom.disown_Simulator(self)
3577 return weakref.proxy(self)
3579 def do_destroy(self):
3580 r"""do_destroy(Simulator self)"""
3581 return _IMP_atom.Simulator_do_destroy(self)
3583 def handle_set_has_required_score_states(self, arg0):
3584 r"""handle_set_has_required_score_states(Simulator self, bool arg0)"""
3585 return _IMP_atom.Simulator_handle_set_has_required_score_states(self, arg0)
3587 def do_get_inputs(self):
3588 r"""do_get_inputs(Simulator self) -> IMP::ModelObjectsTemp"""
3589 return _IMP_atom.Simulator_do_get_inputs(self)
3591 def do_get_outputs(self):
3592 r"""do_get_outputs(Simulator self) -> IMP::ModelObjectsTemp"""
3593 return _IMP_atom.Simulator_do_get_outputs(self)
3595 def do_get_interactions(self):
3596 r"""do_get_interactions(Simulator self) -> IMP::ModelObjectsTemps"""
3597 return _IMP_atom.Simulator_do_get_interactions(self)
3600 _IMP_atom.Simulator_swigregister(Simulator)
3601 IMP_ATOM_DEFAULT_BD_RANDOM_POOL_SIZE = _IMP_atom.IMP_ATOM_DEFAULT_BD_RANDOM_POOL_SIZE
3603 class BrownianDynamics(Simulator):
3604 r"""Proxy of C++ IMP::atom::BrownianDynamics class."""
3606 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3608 def __init__(self, *args):
3609 r"""__init__(BrownianDynamics self, Model m, std::string name="BrownianDynamics%1%", double wave_factor=1.0, unsigned int random_pool_size=10000) -> BrownianDynamics"""
3610 _IMP_atom.BrownianDynamics_swiginit(self, _IMP_atom.new_BrownianDynamics(*args))
3612 def set_maximum_move(self, ms_in_A):
3613 r"""set_maximum_move(BrownianDynamics self, double ms_in_A)"""
3614 return _IMP_atom.BrownianDynamics_set_maximum_move(self, ms_in_A)
3616 def set_use_stochastic_runge_kutta(self, tf):
3617 r"""set_use_stochastic_runge_kutta(BrownianDynamics self, bool tf)"""
3618 return _IMP_atom.BrownianDynamics_set_use_stochastic_runge_kutta(self, tf)
3620 def get_version_info(self):
3621 r"""get_version_info(BrownianDynamics self) -> VersionInfo"""
3622 return _IMP_atom.BrownianDynamics_get_version_info(self)
3623 __swig_destroy__ = _IMP_atom.delete_BrownianDynamics
3626 r"""__str__(BrownianDynamics self) -> std::string"""
3627 return _IMP_atom.BrownianDynamics___str__(self)
3630 r"""__repr__(BrownianDynamics self) -> std::string"""
3631 return _IMP_atom.BrownianDynamics___repr__(self)
3635 return _object_cast_to_BrownianDynamics(o)
3639 _IMP_atom.BrownianDynamics_swigregister(BrownianDynamics)
3642 r"""get_maximum_time_step_estimate(BrownianDynamics bd) -> double"""
3643 return _IMP_atom.get_maximum_time_step_estimate(bd)
3645 def get_harmonic_sigma(D, f):
3646 r"""get_harmonic_sigma(double D, double f) -> double"""
3647 return _IMP_atom.get_harmonic_sigma(D, f)
3648 class BrownianDynamicsTAMD(BrownianDynamics):
3649 r"""Proxy of C++ IMP::atom::BrownianDynamicsTAMD class."""
3651 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3653 def __init__(self, *args):
3654 r"""__init__(BrownianDynamicsTAMD self, Model m, std::string name="BrownianDynamicsTAMD%1%", double wave_factor=1.0) -> BrownianDynamicsTAMD"""
3655 _IMP_atom.BrownianDynamicsTAMD_swiginit(self, _IMP_atom.new_BrownianDynamicsTAMD(*args))
3658 r"""__str__(BrownianDynamicsTAMD self) -> std::string"""
3659 return _IMP_atom.BrownianDynamicsTAMD___str__(self)
3662 r"""__repr__(BrownianDynamicsTAMD self) -> std::string"""
3663 return _IMP_atom.BrownianDynamicsTAMD___repr__(self)
3667 return _object_cast_to_BrownianDynamicsTAMD(o)
3669 __swig_destroy__ = _IMP_atom.delete_BrownianDynamicsTAMD
3672 _IMP_atom.BrownianDynamicsTAMD_swigregister(BrownianDynamicsTAMD)
3674 r"""Proxy of C++ IMP::atom::Diffusion class."""
3676 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3678 def __init__(self, *args):
3680 __init__(Diffusion self) -> Diffusion
3681 __init__(Diffusion self, Model m, ParticleIndex id) -> Diffusion
3682 __init__(Diffusion self, _ParticleAdaptor d) -> Diffusion
3684 _IMP_atom.Diffusion_swiginit(self, _IMP_atom.new_Diffusion(*args))
3686 def show(self, *args):
3687 r"""show(Diffusion self, _ostream out=std::cout)"""
3688 return _IMP_atom.Diffusion_show(self, *args)
3691 def setup_particle(*args):
3693 setup_particle(Model m, ParticleIndex pi, IMP::Float D) -> Diffusion
3694 setup_particle(_ParticleAdaptor pa, IMP::Float D) -> Diffusion
3695 setup_particle(Model m, ParticleIndex pi, Vector3D v, IMP::Float D) -> Diffusion
3696 setup_particle(_ParticleAdaptor pa, Vector3D v, IMP::Float D) -> Diffusion
3697 setup_particle(Model m, ParticleIndex pi) -> Diffusion
3698 setup_particle(_ParticleAdaptor pa) -> Diffusion
3700 return _IMP_atom.Diffusion_setup_particle(*args)
3703 def get_is_setup(*args):
3705 get_is_setup(_ParticleAdaptor p) -> bool
3706 get_is_setup(Model m, ParticleIndex p) -> bool
3708 return _IMP_atom.Diffusion_get_is_setup(*args)
3710 def set_diffusion_coefficient(self, d):
3711 r"""set_diffusion_coefficient(Diffusion self, double d)"""
3712 return _IMP_atom.Diffusion_set_diffusion_coefficient(self, d)
3715 r"""get_diffusion_coefficient(Diffusion self) -> double"""
3716 return _IMP_atom.Diffusion_get_diffusion_coefficient(self)
3719 def get_diffusion_coefficient_key():
3720 r"""get_diffusion_coefficient_key() -> FloatKey"""
3721 return _IMP_atom.Diffusion_get_diffusion_coefficient_key()
3723 def add_attribute(self, *args):
3725 add_attribute(Diffusion self, FloatKey k, IMP::Float v, bool opt)
3726 add_attribute(Diffusion self, FloatKey a0, IMP::Float a1)
3727 add_attribute(Diffusion self, IntKey a0, IMP::Int a1)
3728 add_attribute(Diffusion self, FloatsKey a0, IMP::Floats a1)
3729 add_attribute(Diffusion self, IntsKey a0, IMP::Ints a1)
3730 add_attribute(Diffusion self, StringKey a0, IMP::String a1)
3731 add_attribute(Diffusion self, ParticleIndexKey a0, Particle a1)
3732 add_attribute(Diffusion self, ObjectKey a0, Object a1)
3733 add_attribute(Diffusion self, SparseFloatKey a0, IMP::Float a1)
3734 add_attribute(Diffusion self, SparseIntKey a0, IMP::Int a1)
3735 add_attribute(Diffusion self, SparseStringKey a0, IMP::String a1)
3736 add_attribute(Diffusion self, SparseParticleIndexKey a0, ParticleIndex a1)
3738 return _IMP_atom.Diffusion_add_attribute(self, *args)
3740 def get_value(self, *args):
3742 get_value(Diffusion self, FloatKey a0) -> IMP::Float
3743 get_value(Diffusion self, IntKey a0) -> IMP::Int
3744 get_value(Diffusion self, FloatsKey a0) -> IMP::Floats
3745 get_value(Diffusion self, IntsKey a0) -> IMP::Ints
3746 get_value(Diffusion self, StringKey a0) -> IMP::String
3747 get_value(Diffusion self, ParticleIndexKey a0) -> Particle
3748 get_value(Diffusion self, ObjectKey a0) -> Object
3749 get_value(Diffusion self, SparseFloatKey a0) -> IMP::Float
3750 get_value(Diffusion self, SparseIntKey a0) -> IMP::Int
3751 get_value(Diffusion self, SparseStringKey a0) -> IMP::String
3752 get_value(Diffusion self, SparseParticleIndexKey a0) -> ParticleIndex
3754 return _IMP_atom.Diffusion_get_value(self, *args)
3756 def set_value(self, *args):
3758 set_value(Diffusion self, FloatKey a0, IMP::Float a1)
3759 set_value(Diffusion self, IntKey a0, IMP::Int a1)
3760 set_value(Diffusion self, FloatsKey a0, IMP::Floats a1)
3761 set_value(Diffusion self, IntsKey a0, IMP::Ints a1)
3762 set_value(Diffusion self, StringKey a0, IMP::String a1)
3763 set_value(Diffusion self, ParticleIndexKey a0, Particle a1)
3764 set_value(Diffusion self, ObjectKey a0, Object a1)
3765 set_value(Diffusion self, SparseFloatKey a0, IMP::Float a1)
3766 set_value(Diffusion self, SparseIntKey a0, IMP::Int a1)
3767 set_value(Diffusion self, SparseStringKey a0, IMP::String a1)
3768 set_value(Diffusion self, SparseParticleIndexKey a0, ParticleIndex a1)
3770 return _IMP_atom.Diffusion_set_value(self, *args)
3772 def remove_attribute(self, *args):
3774 remove_attribute(Diffusion self, FloatKey a0)
3775 remove_attribute(Diffusion self, IntKey a0)
3776 remove_attribute(Diffusion self, FloatsKey a0)
3777 remove_attribute(Diffusion self, IntsKey a0)
3778 remove_attribute(Diffusion self, StringKey a0)
3779 remove_attribute(Diffusion self, ParticleIndexKey a0)
3780 remove_attribute(Diffusion self, ObjectKey a0)
3781 remove_attribute(Diffusion self, SparseFloatKey a0)
3782 remove_attribute(Diffusion self, SparseIntKey a0)
3783 remove_attribute(Diffusion self, SparseStringKey a0)
3784 remove_attribute(Diffusion self, SparseParticleIndexKey a0)
3786 return _IMP_atom.Diffusion_remove_attribute(self, *args)
3788 def has_attribute(self, *args):
3790 has_attribute(Diffusion self, FloatKey a0) -> bool
3791 has_attribute(Diffusion self, IntKey a0) -> bool
3792 has_attribute(Diffusion self, FloatsKey a0) -> bool
3793 has_attribute(Diffusion self, IntsKey a0) -> bool
3794 has_attribute(Diffusion self, StringKey a0) -> bool
3795 has_attribute(Diffusion self, ParticleIndexKey a0) -> bool
3796 has_attribute(Diffusion self, ObjectKey a0) -> bool
3797 has_attribute(Diffusion self, SparseFloatKey a0) -> bool
3798 has_attribute(Diffusion self, SparseIntKey a0) -> bool
3799 has_attribute(Diffusion self, SparseStringKey a0) -> bool
3800 has_attribute(Diffusion self, SparseParticleIndexKey a0) -> bool
3802 return _IMP_atom.Diffusion_has_attribute(self, *args)
3804 def get_derivative(self, a0):
3805 r"""get_derivative(Diffusion self, FloatKey a0) -> double"""
3806 return _IMP_atom.Diffusion_get_derivative(self, a0)
3809 r"""get_name(Diffusion self) -> std::string"""
3810 return _IMP_atom.Diffusion_get_name(self)
3812 def clear_caches(self):
3813 r"""clear_caches(Diffusion self)"""
3814 return _IMP_atom.Diffusion_clear_caches(self)
3816 def set_name(self, a0):
3817 r"""set_name(Diffusion self, std::string a0)"""
3818 return _IMP_atom.Diffusion_set_name(self, a0)
3821 r"""set_check_level(Diffusion self, IMP::CheckLevel a0)"""
3822 return _IMP_atom.Diffusion_set_check_level(self, a0)
3824 def add_to_derivative(self, a0, a1, a2):
3825 r"""add_to_derivative(Diffusion self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
3826 return _IMP_atom.Diffusion_add_to_derivative(self, a0, a1, a2)
3828 def set_is_optimized(self, a0, a1):
3829 r"""set_is_optimized(Diffusion self, FloatKey a0, bool a1)"""
3830 return _IMP_atom.Diffusion_set_is_optimized(self, a0, a1)
3832 def get_is_optimized(self, a0):
3833 r"""get_is_optimized(Diffusion self, FloatKey a0) -> bool"""
3834 return _IMP_atom.Diffusion_get_is_optimized(self, a0)
3837 r"""get_check_level(Diffusion self) -> IMP::CheckLevel"""
3838 return _IMP_atom.Diffusion_get_check_level(self)
3840 def __eq__(self, *args):
3842 __eq__(Diffusion self, Diffusion o) -> bool
3843 __eq__(Diffusion self, Particle d) -> bool
3845 return _IMP_atom.Diffusion___eq__(self, *args)
3847 def __ne__(self, *args):
3849 __ne__(Diffusion self, Diffusion o) -> bool
3850 __ne__(Diffusion self, Particle d) -> bool
3852 return _IMP_atom.Diffusion___ne__(self, *args)
3854 def __le__(self, *args):
3856 __le__(Diffusion self, Diffusion o) -> bool
3857 __le__(Diffusion self, Particle d) -> bool
3859 return _IMP_atom.Diffusion___le__(self, *args)
3861 def __lt__(self, *args):
3863 __lt__(Diffusion self, Diffusion o) -> bool
3864 __lt__(Diffusion self, Particle d) -> bool
3866 return _IMP_atom.Diffusion___lt__(self, *args)
3868 def __ge__(self, *args):
3870 __ge__(Diffusion self, Diffusion o) -> bool
3871 __ge__(Diffusion self, Particle d) -> bool
3873 return _IMP_atom.Diffusion___ge__(self, *args)
3875 def __gt__(self, *args):
3877 __gt__(Diffusion self, Diffusion o) -> bool
3878 __gt__(Diffusion self, Particle d) -> bool
3880 return _IMP_atom.Diffusion___gt__(self, *args)
3883 r"""__hash__(Diffusion self) -> std::size_t"""
3884 return _IMP_atom.Diffusion___hash__(self)
3887 r"""__str__(Diffusion self) -> std::string"""
3888 return _IMP_atom.Diffusion___str__(self)
3891 r"""__repr__(Diffusion self) -> std::string"""
3892 return _IMP_atom.Diffusion___repr__(self)
3894 def _get_as_binary(self):
3895 r"""_get_as_binary(Diffusion self) -> PyObject *"""
3896 return _IMP_atom.Diffusion__get_as_binary(self)
3898 def _set_from_binary(self, p):
3899 r"""_set_from_binary(Diffusion self, PyObject * p)"""
3900 return _IMP_atom.Diffusion__set_from_binary(self, p)
3902 def __getstate__(self):
3903 p = self._get_as_binary()
3904 if len(self.__dict__) > 1:
3905 d = self.__dict__.copy()
3910 def __setstate__(self, p):
3911 if not hasattr(self,
'this'):
3913 if isinstance(p, tuple):
3915 self.__dict__.update(d)
3916 return self._set_from_binary(p)
3918 __swig_destroy__ = _IMP_atom.delete_Diffusion
3921 _IMP_atom.Diffusion_swigregister(Diffusion)
3923 def get_diffusion_coefficient_from_cm2_per_second(din):
3924 r"""get_diffusion_coefficient_from_cm2_per_second(double din) -> double"""
3925 return _IMP_atom.get_diffusion_coefficient_from_cm2_per_second(din)
3926 class RigidBodyDiffusion(Diffusion):
3927 r"""Proxy of C++ IMP::atom::RigidBodyDiffusion class."""
3929 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3931 def __init__(self, *args):
3933 __init__(RigidBodyDiffusion self) -> RigidBodyDiffusion
3934 __init__(RigidBodyDiffusion self, Model m, ParticleIndex id) -> RigidBodyDiffusion
3935 __init__(RigidBodyDiffusion self, _ParticleAdaptor d) -> RigidBodyDiffusion
3937 _IMP_atom.RigidBodyDiffusion_swiginit(self, _IMP_atom.new_RigidBodyDiffusion(*args))
3939 def show(self, *args):
3940 r"""show(RigidBodyDiffusion self, _ostream out=std::cout)"""
3941 return _IMP_atom.RigidBodyDiffusion_show(self, *args)
3944 def setup_particle(*args):
3946 setup_particle(Model m, ParticleIndex pi) -> RigidBodyDiffusion
3947 setup_particle(_ParticleAdaptor pa) -> RigidBodyDiffusion
3949 return _IMP_atom.RigidBodyDiffusion_setup_particle(*args)
3952 r"""get_rotational_diffusion_coefficient(RigidBodyDiffusion self) -> double"""
3953 return _IMP_atom.RigidBodyDiffusion_get_rotational_diffusion_coefficient(self)
3955 def set_rotational_diffusion_coefficient(self, d):
3956 r"""set_rotational_diffusion_coefficient(RigidBodyDiffusion self, double d)"""
3957 return _IMP_atom.RigidBodyDiffusion_set_rotational_diffusion_coefficient(self, d)
3960 def get_is_setup(*args):
3962 get_is_setup(_ParticleAdaptor p) -> bool
3963 get_is_setup(Model m, ParticleIndex p) -> bool
3965 return _IMP_atom.RigidBodyDiffusion_get_is_setup(*args)
3968 def get_rotational_diffusion_coefficient_key():
3969 r"""get_rotational_diffusion_coefficient_key() -> FloatKey"""
3970 return _IMP_atom.RigidBodyDiffusion_get_rotational_diffusion_coefficient_key()
3972 def add_attribute(self, *args):
3974 add_attribute(RigidBodyDiffusion self, FloatKey k, IMP::Float v, bool opt)
3975 add_attribute(RigidBodyDiffusion self, FloatKey a0, IMP::Float a1)
3976 add_attribute(RigidBodyDiffusion self, IntKey a0, IMP::Int a1)
3977 add_attribute(RigidBodyDiffusion self, FloatsKey a0, IMP::Floats a1)
3978 add_attribute(RigidBodyDiffusion self, IntsKey a0, IMP::Ints a1)
3979 add_attribute(RigidBodyDiffusion self, StringKey a0, IMP::String a1)
3980 add_attribute(RigidBodyDiffusion self, ParticleIndexKey a0, Particle a1)
3981 add_attribute(RigidBodyDiffusion self, ObjectKey a0, Object a1)
3982 add_attribute(RigidBodyDiffusion self, SparseFloatKey a0, IMP::Float a1)
3983 add_attribute(RigidBodyDiffusion self, SparseIntKey a0, IMP::Int a1)
3984 add_attribute(RigidBodyDiffusion self, SparseStringKey a0, IMP::String a1)
3985 add_attribute(RigidBodyDiffusion self, SparseParticleIndexKey a0, ParticleIndex a1)
3987 return _IMP_atom.RigidBodyDiffusion_add_attribute(self, *args)
3989 def get_value(self, *args):
3991 get_value(RigidBodyDiffusion self, FloatKey a0) -> IMP::Float
3992 get_value(RigidBodyDiffusion self, IntKey a0) -> IMP::Int
3993 get_value(RigidBodyDiffusion self, FloatsKey a0) -> IMP::Floats
3994 get_value(RigidBodyDiffusion self, IntsKey a0) -> IMP::Ints
3995 get_value(RigidBodyDiffusion self, StringKey a0) -> IMP::String
3996 get_value(RigidBodyDiffusion self, ParticleIndexKey a0) -> Particle
3997 get_value(RigidBodyDiffusion self, ObjectKey a0) -> Object
3998 get_value(RigidBodyDiffusion self, SparseFloatKey a0) -> IMP::Float
3999 get_value(RigidBodyDiffusion self, SparseIntKey a0) -> IMP::Int
4000 get_value(RigidBodyDiffusion self, SparseStringKey a0) -> IMP::String
4001 get_value(RigidBodyDiffusion self, SparseParticleIndexKey a0) -> ParticleIndex
4003 return _IMP_atom.RigidBodyDiffusion_get_value(self, *args)
4005 def set_value(self, *args):
4007 set_value(RigidBodyDiffusion self, FloatKey a0, IMP::Float a1)
4008 set_value(RigidBodyDiffusion self, IntKey a0, IMP::Int a1)
4009 set_value(RigidBodyDiffusion self, FloatsKey a0, IMP::Floats a1)
4010 set_value(RigidBodyDiffusion self, IntsKey a0, IMP::Ints a1)
4011 set_value(RigidBodyDiffusion self, StringKey a0, IMP::String a1)
4012 set_value(RigidBodyDiffusion self, ParticleIndexKey a0, Particle a1)
4013 set_value(RigidBodyDiffusion self, ObjectKey a0, Object a1)
4014 set_value(RigidBodyDiffusion self, SparseFloatKey a0, IMP::Float a1)
4015 set_value(RigidBodyDiffusion self, SparseIntKey a0, IMP::Int a1)
4016 set_value(RigidBodyDiffusion self, SparseStringKey a0, IMP::String a1)
4017 set_value(RigidBodyDiffusion self, SparseParticleIndexKey a0, ParticleIndex a1)
4019 return _IMP_atom.RigidBodyDiffusion_set_value(self, *args)
4021 def remove_attribute(self, *args):
4023 remove_attribute(RigidBodyDiffusion self, FloatKey a0)
4024 remove_attribute(RigidBodyDiffusion self, IntKey a0)
4025 remove_attribute(RigidBodyDiffusion self, FloatsKey a0)
4026 remove_attribute(RigidBodyDiffusion self, IntsKey a0)
4027 remove_attribute(RigidBodyDiffusion self, StringKey a0)
4028 remove_attribute(RigidBodyDiffusion self, ParticleIndexKey a0)
4029 remove_attribute(RigidBodyDiffusion self, ObjectKey a0)
4030 remove_attribute(RigidBodyDiffusion self, SparseFloatKey a0)
4031 remove_attribute(RigidBodyDiffusion self, SparseIntKey a0)
4032 remove_attribute(RigidBodyDiffusion self, SparseStringKey a0)
4033 remove_attribute(RigidBodyDiffusion self, SparseParticleIndexKey a0)
4035 return _IMP_atom.RigidBodyDiffusion_remove_attribute(self, *args)
4037 def has_attribute(self, *args):
4039 has_attribute(RigidBodyDiffusion self, FloatKey a0) -> bool
4040 has_attribute(RigidBodyDiffusion self, IntKey a0) -> bool
4041 has_attribute(RigidBodyDiffusion self, FloatsKey a0) -> bool
4042 has_attribute(RigidBodyDiffusion self, IntsKey a0) -> bool
4043 has_attribute(RigidBodyDiffusion self, StringKey a0) -> bool
4044 has_attribute(RigidBodyDiffusion self, ParticleIndexKey a0) -> bool
4045 has_attribute(RigidBodyDiffusion self, ObjectKey a0) -> bool
4046 has_attribute(RigidBodyDiffusion self, SparseFloatKey a0) -> bool
4047 has_attribute(RigidBodyDiffusion self, SparseIntKey a0) -> bool
4048 has_attribute(RigidBodyDiffusion self, SparseStringKey a0) -> bool
4049 has_attribute(RigidBodyDiffusion self, SparseParticleIndexKey a0) -> bool
4051 return _IMP_atom.RigidBodyDiffusion_has_attribute(self, *args)
4053 def get_derivative(self, a0):
4054 r"""get_derivative(RigidBodyDiffusion self, FloatKey a0) -> double"""
4055 return _IMP_atom.RigidBodyDiffusion_get_derivative(self, a0)
4058 r"""get_name(RigidBodyDiffusion self) -> std::string"""
4059 return _IMP_atom.RigidBodyDiffusion_get_name(self)
4061 def clear_caches(self):
4062 r"""clear_caches(RigidBodyDiffusion self)"""
4063 return _IMP_atom.RigidBodyDiffusion_clear_caches(self)
4065 def set_name(self, a0):
4066 r"""set_name(RigidBodyDiffusion self, std::string a0)"""
4067 return _IMP_atom.RigidBodyDiffusion_set_name(self, a0)
4070 r"""set_check_level(RigidBodyDiffusion self, IMP::CheckLevel a0)"""
4071 return _IMP_atom.RigidBodyDiffusion_set_check_level(self, a0)
4073 def add_to_derivative(self, a0, a1, a2):
4074 r"""add_to_derivative(RigidBodyDiffusion self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
4075 return _IMP_atom.RigidBodyDiffusion_add_to_derivative(self, a0, a1, a2)
4077 def set_is_optimized(self, a0, a1):
4078 r"""set_is_optimized(RigidBodyDiffusion self, FloatKey a0, bool a1)"""
4079 return _IMP_atom.RigidBodyDiffusion_set_is_optimized(self, a0, a1)
4081 def get_is_optimized(self, a0):
4082 r"""get_is_optimized(RigidBodyDiffusion self, FloatKey a0) -> bool"""
4083 return _IMP_atom.RigidBodyDiffusion_get_is_optimized(self, a0)
4086 r"""get_check_level(RigidBodyDiffusion self) -> IMP::CheckLevel"""
4087 return _IMP_atom.RigidBodyDiffusion_get_check_level(self)
4089 def __eq__(self, *args):
4091 __eq__(RigidBodyDiffusion self, RigidBodyDiffusion o) -> bool
4092 __eq__(RigidBodyDiffusion self, Particle d) -> bool
4094 return _IMP_atom.RigidBodyDiffusion___eq__(self, *args)
4096 def __ne__(self, *args):
4098 __ne__(RigidBodyDiffusion self, RigidBodyDiffusion o) -> bool
4099 __ne__(RigidBodyDiffusion self, Particle d) -> bool
4101 return _IMP_atom.RigidBodyDiffusion___ne__(self, *args)
4103 def __le__(self, *args):
4105 __le__(RigidBodyDiffusion self, RigidBodyDiffusion o) -> bool
4106 __le__(RigidBodyDiffusion self, Particle d) -> bool
4108 return _IMP_atom.RigidBodyDiffusion___le__(self, *args)
4110 def __lt__(self, *args):
4112 __lt__(RigidBodyDiffusion self, RigidBodyDiffusion o) -> bool
4113 __lt__(RigidBodyDiffusion self, Particle d) -> bool
4115 return _IMP_atom.RigidBodyDiffusion___lt__(self, *args)
4117 def __ge__(self, *args):
4119 __ge__(RigidBodyDiffusion self, RigidBodyDiffusion o) -> bool
4120 __ge__(RigidBodyDiffusion self, Particle d) -> bool
4122 return _IMP_atom.RigidBodyDiffusion___ge__(self, *args)
4124 def __gt__(self, *args):
4126 __gt__(RigidBodyDiffusion self, RigidBodyDiffusion o) -> bool
4127 __gt__(RigidBodyDiffusion self, Particle d) -> bool
4129 return _IMP_atom.RigidBodyDiffusion___gt__(self, *args)
4132 r"""__hash__(RigidBodyDiffusion self) -> std::size_t"""
4133 return _IMP_atom.RigidBodyDiffusion___hash__(self)
4136 r"""__str__(RigidBodyDiffusion self) -> std::string"""
4137 return _IMP_atom.RigidBodyDiffusion___str__(self)
4140 r"""__repr__(RigidBodyDiffusion self) -> std::string"""
4141 return _IMP_atom.RigidBodyDiffusion___repr__(self)
4143 def _get_as_binary(self):
4144 r"""_get_as_binary(RigidBodyDiffusion self) -> PyObject *"""
4145 return _IMP_atom.RigidBodyDiffusion__get_as_binary(self)
4147 def _set_from_binary(self, p):
4148 r"""_set_from_binary(RigidBodyDiffusion self, PyObject * p)"""
4149 return _IMP_atom.RigidBodyDiffusion__set_from_binary(self, p)
4151 def __getstate__(self):
4152 p = self._get_as_binary()
4153 if len(self.__dict__) > 1:
4154 d = self.__dict__.copy()
4159 def __setstate__(self, p):
4160 if not hasattr(self,
'this'):
4162 if isinstance(p, tuple):
4164 self.__dict__.update(d)
4165 return self._set_from_binary(p)
4167 __swig_destroy__ = _IMP_atom.delete_RigidBodyDiffusion
4170 _IMP_atom.RigidBodyDiffusion_swigregister(RigidBodyDiffusion)
4172 r"""Proxy of C++ IMP::atom::TAMDParticle class."""
4174 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4176 def __init__(self, *args):
4178 __init__(TAMDParticle self) -> TAMDParticle
4179 __init__(TAMDParticle self, Model m, ParticleIndex id) -> TAMDParticle
4180 __init__(TAMDParticle self, _ParticleAdaptor d) -> TAMDParticle
4182 _IMP_atom.TAMDParticle_swiginit(self, _IMP_atom.new_TAMDParticle(*args))
4184 def show(self, *args):
4185 r"""show(TAMDParticle self, _ostream out=std::cout)"""
4186 return _IMP_atom.TAMDParticle_show(self, *args)
4189 def setup_particle(*args):
4191 setup_particle(Model m, ParticleIndex pi, ParticleIndex pi_ref, IMP::Float tsf, IMP::Float fsf) -> TAMDParticle
4192 setup_particle(_ParticleAdaptor pa, ParticleIndex pi_ref, IMP::Float tsf, IMP::Float fsf) -> TAMDParticle
4193 setup_particle(Model m, ParticleIndex pi, Particle p_ref, IMP::Float tsf, IMP::Float fsf) -> TAMDParticle
4194 setup_particle(_ParticleAdaptor pa, Particle p_ref, IMP::Float tsf, IMP::Float fsf) -> TAMDParticle
4196 return _IMP_atom.TAMDParticle_setup_particle(*args)
4199 def get_is_setup(*args):
4201 get_is_setup(_ParticleAdaptor p) -> bool
4202 get_is_setup(Model m, ParticleIndex p) -> bool
4204 return _IMP_atom.TAMDParticle_get_is_setup(*args)
4206 def get_reference_particle_index(self):
4207 r"""get_reference_particle_index(TAMDParticle self) -> ParticleIndex"""
4208 return _IMP_atom.TAMDParticle_get_reference_particle_index(self)
4210 def set_temperature_scale_factor(self, tsf):
4211 r"""set_temperature_scale_factor(TAMDParticle self, float tsf)"""
4212 return _IMP_atom.TAMDParticle_set_temperature_scale_factor(self, tsf)
4214 def get_temperature_scale_factor(self):
4215 r"""get_temperature_scale_factor(TAMDParticle self) -> double"""
4216 return _IMP_atom.TAMDParticle_get_temperature_scale_factor(self)
4218 def set_friction_scale_factor(self, tsf):
4219 r"""set_friction_scale_factor(TAMDParticle self, float tsf)"""
4220 return _IMP_atom.TAMDParticle_set_friction_scale_factor(self, tsf)
4222 def get_friction_scale_factor(self):
4223 r"""get_friction_scale_factor(TAMDParticle self) -> double"""
4224 return _IMP_atom.TAMDParticle_get_friction_scale_factor(self)
4226 def update_coordinates_from_ref(self):
4227 r"""update_coordinates_from_ref(TAMDParticle self)"""
4228 return _IMP_atom.TAMDParticle_update_coordinates_from_ref(self)
4231 def get_temperature_scale_factor_key():
4232 r"""get_temperature_scale_factor_key() -> FloatKey"""
4233 return _IMP_atom.TAMDParticle_get_temperature_scale_factor_key()
4236 def get_friction_scale_factor_key():
4237 r"""get_friction_scale_factor_key() -> FloatKey"""
4238 return _IMP_atom.TAMDParticle_get_friction_scale_factor_key()
4241 def get_reference_particle_index_key():
4242 r"""get_reference_particle_index_key() -> ParticleIndexKey"""
4243 return _IMP_atom.TAMDParticle_get_reference_particle_index_key()
4245 def add_attribute(self, *args):
4247 add_attribute(TAMDParticle self, FloatKey k, IMP::Float v, bool opt)
4248 add_attribute(TAMDParticle self, FloatKey a0, IMP::Float a1)
4249 add_attribute(TAMDParticle self, IntKey a0, IMP::Int a1)
4250 add_attribute(TAMDParticle self, FloatsKey a0, IMP::Floats a1)
4251 add_attribute(TAMDParticle self, IntsKey a0, IMP::Ints a1)
4252 add_attribute(TAMDParticle self, StringKey a0, IMP::String a1)
4253 add_attribute(TAMDParticle self, ParticleIndexKey a0, Particle a1)
4254 add_attribute(TAMDParticle self, ObjectKey a0, Object a1)
4255 add_attribute(TAMDParticle self, SparseFloatKey a0, IMP::Float a1)
4256 add_attribute(TAMDParticle self, SparseIntKey a0, IMP::Int a1)
4257 add_attribute(TAMDParticle self, SparseStringKey a0, IMP::String a1)
4258 add_attribute(TAMDParticle self, SparseParticleIndexKey a0, ParticleIndex a1)
4260 return _IMP_atom.TAMDParticle_add_attribute(self, *args)
4262 def get_value(self, *args):
4264 get_value(TAMDParticle self, FloatKey a0) -> IMP::Float
4265 get_value(TAMDParticle self, IntKey a0) -> IMP::Int
4266 get_value(TAMDParticle self, FloatsKey a0) -> IMP::Floats
4267 get_value(TAMDParticle self, IntsKey a0) -> IMP::Ints
4268 get_value(TAMDParticle self, StringKey a0) -> IMP::String
4269 get_value(TAMDParticle self, ParticleIndexKey a0) -> Particle
4270 get_value(TAMDParticle self, ObjectKey a0) -> Object
4271 get_value(TAMDParticle self, SparseFloatKey a0) -> IMP::Float
4272 get_value(TAMDParticle self, SparseIntKey a0) -> IMP::Int
4273 get_value(TAMDParticle self, SparseStringKey a0) -> IMP::String
4274 get_value(TAMDParticle self, SparseParticleIndexKey a0) -> ParticleIndex
4276 return _IMP_atom.TAMDParticle_get_value(self, *args)
4278 def set_value(self, *args):
4280 set_value(TAMDParticle self, FloatKey a0, IMP::Float a1)
4281 set_value(TAMDParticle self, IntKey a0, IMP::Int a1)
4282 set_value(TAMDParticle self, FloatsKey a0, IMP::Floats a1)
4283 set_value(TAMDParticle self, IntsKey a0, IMP::Ints a1)
4284 set_value(TAMDParticle self, StringKey a0, IMP::String a1)
4285 set_value(TAMDParticle self, ParticleIndexKey a0, Particle a1)
4286 set_value(TAMDParticle self, ObjectKey a0, Object a1)
4287 set_value(TAMDParticle self, SparseFloatKey a0, IMP::Float a1)
4288 set_value(TAMDParticle self, SparseIntKey a0, IMP::Int a1)
4289 set_value(TAMDParticle self, SparseStringKey a0, IMP::String a1)
4290 set_value(TAMDParticle self, SparseParticleIndexKey a0, ParticleIndex a1)
4292 return _IMP_atom.TAMDParticle_set_value(self, *args)
4294 def remove_attribute(self, *args):
4296 remove_attribute(TAMDParticle self, FloatKey a0)
4297 remove_attribute(TAMDParticle self, IntKey a0)
4298 remove_attribute(TAMDParticle self, FloatsKey a0)
4299 remove_attribute(TAMDParticle self, IntsKey a0)
4300 remove_attribute(TAMDParticle self, StringKey a0)
4301 remove_attribute(TAMDParticle self, ParticleIndexKey a0)
4302 remove_attribute(TAMDParticle self, ObjectKey a0)
4303 remove_attribute(TAMDParticle self, SparseFloatKey a0)
4304 remove_attribute(TAMDParticle self, SparseIntKey a0)
4305 remove_attribute(TAMDParticle self, SparseStringKey a0)
4306 remove_attribute(TAMDParticle self, SparseParticleIndexKey a0)
4308 return _IMP_atom.TAMDParticle_remove_attribute(self, *args)
4310 def has_attribute(self, *args):
4312 has_attribute(TAMDParticle self, FloatKey a0) -> bool
4313 has_attribute(TAMDParticle self, IntKey a0) -> bool
4314 has_attribute(TAMDParticle self, FloatsKey a0) -> bool
4315 has_attribute(TAMDParticle self, IntsKey a0) -> bool
4316 has_attribute(TAMDParticle self, StringKey a0) -> bool
4317 has_attribute(TAMDParticle self, ParticleIndexKey a0) -> bool
4318 has_attribute(TAMDParticle self, ObjectKey a0) -> bool
4319 has_attribute(TAMDParticle self, SparseFloatKey a0) -> bool
4320 has_attribute(TAMDParticle self, SparseIntKey a0) -> bool
4321 has_attribute(TAMDParticle self, SparseStringKey a0) -> bool
4322 has_attribute(TAMDParticle self, SparseParticleIndexKey a0) -> bool
4324 return _IMP_atom.TAMDParticle_has_attribute(self, *args)
4326 def get_derivative(self, a0):
4327 r"""get_derivative(TAMDParticle self, FloatKey a0) -> double"""
4328 return _IMP_atom.TAMDParticle_get_derivative(self, a0)
4331 r"""get_name(TAMDParticle self) -> std::string"""
4332 return _IMP_atom.TAMDParticle_get_name(self)
4334 def clear_caches(self):
4335 r"""clear_caches(TAMDParticle self)"""
4336 return _IMP_atom.TAMDParticle_clear_caches(self)
4338 def set_name(self, a0):
4339 r"""set_name(TAMDParticle self, std::string a0)"""
4340 return _IMP_atom.TAMDParticle_set_name(self, a0)
4343 r"""set_check_level(TAMDParticle self, IMP::CheckLevel a0)"""
4344 return _IMP_atom.TAMDParticle_set_check_level(self, a0)
4346 def add_to_derivative(self, a0, a1, a2):
4347 r"""add_to_derivative(TAMDParticle self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
4348 return _IMP_atom.TAMDParticle_add_to_derivative(self, a0, a1, a2)
4350 def set_is_optimized(self, a0, a1):
4351 r"""set_is_optimized(TAMDParticle self, FloatKey a0, bool a1)"""
4352 return _IMP_atom.TAMDParticle_set_is_optimized(self, a0, a1)
4354 def get_is_optimized(self, a0):
4355 r"""get_is_optimized(TAMDParticle self, FloatKey a0) -> bool"""
4356 return _IMP_atom.TAMDParticle_get_is_optimized(self, a0)
4359 r"""get_check_level(TAMDParticle self) -> IMP::CheckLevel"""
4360 return _IMP_atom.TAMDParticle_get_check_level(self)
4362 def __eq__(self, *args):
4364 __eq__(TAMDParticle self, TAMDParticle o) -> bool
4365 __eq__(TAMDParticle self, Particle d) -> bool
4367 return _IMP_atom.TAMDParticle___eq__(self, *args)
4369 def __ne__(self, *args):
4371 __ne__(TAMDParticle self, TAMDParticle o) -> bool
4372 __ne__(TAMDParticle self, Particle d) -> bool
4374 return _IMP_atom.TAMDParticle___ne__(self, *args)
4376 def __le__(self, *args):
4378 __le__(TAMDParticle self, TAMDParticle o) -> bool
4379 __le__(TAMDParticle self, Particle d) -> bool
4381 return _IMP_atom.TAMDParticle___le__(self, *args)
4383 def __lt__(self, *args):
4385 __lt__(TAMDParticle self, TAMDParticle o) -> bool
4386 __lt__(TAMDParticle self, Particle d) -> bool
4388 return _IMP_atom.TAMDParticle___lt__(self, *args)
4390 def __ge__(self, *args):
4392 __ge__(TAMDParticle self, TAMDParticle o) -> bool
4393 __ge__(TAMDParticle self, Particle d) -> bool
4395 return _IMP_atom.TAMDParticle___ge__(self, *args)
4397 def __gt__(self, *args):
4399 __gt__(TAMDParticle self, TAMDParticle o) -> bool
4400 __gt__(TAMDParticle self, Particle d) -> bool
4402 return _IMP_atom.TAMDParticle___gt__(self, *args)
4405 r"""__hash__(TAMDParticle self) -> std::size_t"""
4406 return _IMP_atom.TAMDParticle___hash__(self)
4409 r"""__str__(TAMDParticle self) -> std::string"""
4410 return _IMP_atom.TAMDParticle___str__(self)
4413 r"""__repr__(TAMDParticle self) -> std::string"""
4414 return _IMP_atom.TAMDParticle___repr__(self)
4416 def _get_as_binary(self):
4417 r"""_get_as_binary(TAMDParticle self) -> PyObject *"""
4418 return _IMP_atom.TAMDParticle__get_as_binary(self)
4420 def _set_from_binary(self, p):
4421 r"""_set_from_binary(TAMDParticle self, PyObject * p)"""
4422 return _IMP_atom.TAMDParticle__set_from_binary(self, p)
4424 def __getstate__(self):
4425 p = self._get_as_binary()
4426 if len(self.__dict__) > 1:
4427 d = self.__dict__.copy()
4432 def __setstate__(self, p):
4433 if not hasattr(self,
'this'):
4435 if isinstance(p, tuple):
4437 self.__dict__.update(d)
4438 return self._set_from_binary(p)
4440 __swig_destroy__ = _IMP_atom.delete_TAMDParticle
4443 _IMP_atom.TAMDParticle_swigregister(TAMDParticle)
4445 r"""Proxy of C++ IMP::atom::Charged class."""
4447 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4449 def __init__(self, *args):
4451 __init__(Charged self) -> Charged
4452 __init__(Charged self, Model m, ParticleIndex id) -> Charged
4453 __init__(Charged self, _ParticleAdaptor d) -> Charged
4455 _IMP_atom.Charged_swiginit(self, _IMP_atom.new_Charged(*args))
4457 def show(self, *args):
4458 r"""show(Charged self, _ostream out=std::cout)"""
4459 return _IMP_atom.Charged_show(self, *args)
4462 def setup_particle(*args):
4464 setup_particle(Model m, ParticleIndex pi, IMP::Float charge) -> Charged
4465 setup_particle(_ParticleAdaptor pa, IMP::Float charge) -> Charged
4466 setup_particle(Model m, ParticleIndex pi, Vector3D v, IMP::Float charge) -> Charged
4467 setup_particle(_ParticleAdaptor pa, Vector3D v, IMP::Float charge) -> Charged
4469 return _IMP_atom.Charged_setup_particle(*args)
4471 def get_charge(self):
4472 r"""get_charge(Charged self) -> IMP::Float"""
4473 return _IMP_atom.Charged_get_charge(self)
4475 def set_charge(self, t):
4476 r"""set_charge(Charged self, IMP::Float t)"""
4477 return _IMP_atom.Charged_set_charge(self, t)
4480 def get_is_setup(*args):
4482 get_is_setup(_ParticleAdaptor p) -> bool
4483 get_is_setup(Model m, ParticleIndex pi) -> bool
4485 return _IMP_atom.Charged_get_is_setup(*args)
4488 def get_charge_key():
4489 r"""get_charge_key() -> FloatKey"""
4490 return _IMP_atom.Charged_get_charge_key()
4492 def add_attribute(self, *args):
4494 add_attribute(Charged self, FloatKey k, IMP::Float v, bool opt)
4495 add_attribute(Charged self, FloatKey a0, IMP::Float a1)
4496 add_attribute(Charged self, IntKey a0, IMP::Int a1)
4497 add_attribute(Charged self, FloatsKey a0, IMP::Floats a1)
4498 add_attribute(Charged self, IntsKey a0, IMP::Ints a1)
4499 add_attribute(Charged self, StringKey a0, IMP::String a1)
4500 add_attribute(Charged self, ParticleIndexKey a0, Particle a1)
4501 add_attribute(Charged self, ObjectKey a0, Object a1)
4502 add_attribute(Charged self, SparseFloatKey a0, IMP::Float a1)
4503 add_attribute(Charged self, SparseIntKey a0, IMP::Int a1)
4504 add_attribute(Charged self, SparseStringKey a0, IMP::String a1)
4505 add_attribute(Charged self, SparseParticleIndexKey a0, ParticleIndex a1)
4507 return _IMP_atom.Charged_add_attribute(self, *args)
4509 def get_value(self, *args):
4511 get_value(Charged self, FloatKey a0) -> IMP::Float
4512 get_value(Charged self, IntKey a0) -> IMP::Int
4513 get_value(Charged self, FloatsKey a0) -> IMP::Floats
4514 get_value(Charged self, IntsKey a0) -> IMP::Ints
4515 get_value(Charged self, StringKey a0) -> IMP::String
4516 get_value(Charged self, ParticleIndexKey a0) -> Particle
4517 get_value(Charged self, ObjectKey a0) -> Object
4518 get_value(Charged self, SparseFloatKey a0) -> IMP::Float
4519 get_value(Charged self, SparseIntKey a0) -> IMP::Int
4520 get_value(Charged self, SparseStringKey a0) -> IMP::String
4521 get_value(Charged self, SparseParticleIndexKey a0) -> ParticleIndex
4523 return _IMP_atom.Charged_get_value(self, *args)
4525 def set_value(self, *args):
4527 set_value(Charged self, FloatKey a0, IMP::Float a1)
4528 set_value(Charged self, IntKey a0, IMP::Int a1)
4529 set_value(Charged self, FloatsKey a0, IMP::Floats a1)
4530 set_value(Charged self, IntsKey a0, IMP::Ints a1)
4531 set_value(Charged self, StringKey a0, IMP::String a1)
4532 set_value(Charged self, ParticleIndexKey a0, Particle a1)
4533 set_value(Charged self, ObjectKey a0, Object a1)
4534 set_value(Charged self, SparseFloatKey a0, IMP::Float a1)
4535 set_value(Charged self, SparseIntKey a0, IMP::Int a1)
4536 set_value(Charged self, SparseStringKey a0, IMP::String a1)
4537 set_value(Charged self, SparseParticleIndexKey a0, ParticleIndex a1)
4539 return _IMP_atom.Charged_set_value(self, *args)
4541 def remove_attribute(self, *args):
4543 remove_attribute(Charged self, FloatKey a0)
4544 remove_attribute(Charged self, IntKey a0)
4545 remove_attribute(Charged self, FloatsKey a0)
4546 remove_attribute(Charged self, IntsKey a0)
4547 remove_attribute(Charged self, StringKey a0)
4548 remove_attribute(Charged self, ParticleIndexKey a0)
4549 remove_attribute(Charged self, ObjectKey a0)
4550 remove_attribute(Charged self, SparseFloatKey a0)
4551 remove_attribute(Charged self, SparseIntKey a0)
4552 remove_attribute(Charged self, SparseStringKey a0)
4553 remove_attribute(Charged self, SparseParticleIndexKey a0)
4555 return _IMP_atom.Charged_remove_attribute(self, *args)
4557 def has_attribute(self, *args):
4559 has_attribute(Charged self, FloatKey a0) -> bool
4560 has_attribute(Charged self, IntKey a0) -> bool
4561 has_attribute(Charged self, FloatsKey a0) -> bool
4562 has_attribute(Charged self, IntsKey a0) -> bool
4563 has_attribute(Charged self, StringKey a0) -> bool
4564 has_attribute(Charged self, ParticleIndexKey a0) -> bool
4565 has_attribute(Charged self, ObjectKey a0) -> bool
4566 has_attribute(Charged self, SparseFloatKey a0) -> bool
4567 has_attribute(Charged self, SparseIntKey a0) -> bool
4568 has_attribute(Charged self, SparseStringKey a0) -> bool
4569 has_attribute(Charged self, SparseParticleIndexKey a0) -> bool
4571 return _IMP_atom.Charged_has_attribute(self, *args)
4573 def get_derivative(self, a0):
4574 r"""get_derivative(Charged self, FloatKey a0) -> double"""
4575 return _IMP_atom.Charged_get_derivative(self, a0)
4578 r"""get_name(Charged self) -> std::string"""
4579 return _IMP_atom.Charged_get_name(self)
4581 def clear_caches(self):
4582 r"""clear_caches(Charged self)"""
4583 return _IMP_atom.Charged_clear_caches(self)
4585 def set_name(self, a0):
4586 r"""set_name(Charged self, std::string a0)"""
4587 return _IMP_atom.Charged_set_name(self, a0)
4590 r"""set_check_level(Charged self, IMP::CheckLevel a0)"""
4591 return _IMP_atom.Charged_set_check_level(self, a0)
4593 def add_to_derivative(self, a0, a1, a2):
4594 r"""add_to_derivative(Charged self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
4595 return _IMP_atom.Charged_add_to_derivative(self, a0, a1, a2)
4597 def set_is_optimized(self, a0, a1):
4598 r"""set_is_optimized(Charged self, FloatKey a0, bool a1)"""
4599 return _IMP_atom.Charged_set_is_optimized(self, a0, a1)
4601 def get_is_optimized(self, a0):
4602 r"""get_is_optimized(Charged self, FloatKey a0) -> bool"""
4603 return _IMP_atom.Charged_get_is_optimized(self, a0)
4606 r"""get_check_level(Charged self) -> IMP::CheckLevel"""
4607 return _IMP_atom.Charged_get_check_level(self)
4609 def __eq__(self, *args):
4611 __eq__(Charged self, Charged o) -> bool
4612 __eq__(Charged self, Particle d) -> bool
4614 return _IMP_atom.Charged___eq__(self, *args)
4616 def __ne__(self, *args):
4618 __ne__(Charged self, Charged o) -> bool
4619 __ne__(Charged self, Particle d) -> bool
4621 return _IMP_atom.Charged___ne__(self, *args)
4623 def __le__(self, *args):
4625 __le__(Charged self, Charged o) -> bool
4626 __le__(Charged self, Particle d) -> bool
4628 return _IMP_atom.Charged___le__(self, *args)
4630 def __lt__(self, *args):
4632 __lt__(Charged self, Charged o) -> bool
4633 __lt__(Charged self, Particle d) -> bool
4635 return _IMP_atom.Charged___lt__(self, *args)
4637 def __ge__(self, *args):
4639 __ge__(Charged self, Charged o) -> bool
4640 __ge__(Charged self, Particle d) -> bool
4642 return _IMP_atom.Charged___ge__(self, *args)
4644 def __gt__(self, *args):
4646 __gt__(Charged self, Charged o) -> bool
4647 __gt__(Charged self, Particle d) -> bool
4649 return _IMP_atom.Charged___gt__(self, *args)
4652 r"""__hash__(Charged self) -> std::size_t"""
4653 return _IMP_atom.Charged___hash__(self)
4656 r"""__str__(Charged self) -> std::string"""
4657 return _IMP_atom.Charged___str__(self)
4660 r"""__repr__(Charged self) -> std::string"""
4661 return _IMP_atom.Charged___repr__(self)
4663 def _get_as_binary(self):
4664 r"""_get_as_binary(Charged self) -> PyObject *"""
4665 return _IMP_atom.Charged__get_as_binary(self)
4667 def _set_from_binary(self, p):
4668 r"""_set_from_binary(Charged self, PyObject * p)"""
4669 return _IMP_atom.Charged__set_from_binary(self, p)
4671 def __getstate__(self):
4672 p = self._get_as_binary()
4673 if len(self.__dict__) > 1:
4674 d = self.__dict__.copy()
4679 def __setstate__(self, p):
4680 if not hasattr(self,
'this'):
4682 if isinstance(p, tuple):
4684 self.__dict__.update(d)
4685 return self._set_from_binary(p)
4687 __swig_destroy__ = _IMP_atom.delete_Charged
4690 _IMP_atom.Charged_swigregister(Charged)
4692 r"""Proxy of C++ IMP::atom::CoulombPairScore class."""
4694 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4696 def __init__(self, f):
4697 r"""__init__(CoulombPairScore self, SmoothingFunction f) -> CoulombPairScore"""
4698 _IMP_atom.CoulombPairScore_swiginit(self, _IMP_atom.new_CoulombPairScore(f))
4700 def set_relative_dielectric(self, relative_dielectric):
4701 r"""set_relative_dielectric(CoulombPairScore self, double relative_dielectric)"""
4702 return _IMP_atom.CoulombPairScore_set_relative_dielectric(self, relative_dielectric)
4704 def get_relative_dielectric(self):
4705 r"""get_relative_dielectric(CoulombPairScore self) -> double"""
4706 return _IMP_atom.CoulombPairScore_get_relative_dielectric(self)
4708 def do_get_inputs(self, m, pis):
4709 r"""do_get_inputs(CoulombPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4710 return _IMP_atom.CoulombPairScore_do_get_inputs(self, m, pis)
4712 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
4713 r"""evaluate_indexes(CoulombPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
4714 return _IMP_atom.CoulombPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
4716 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
4717 r"""evaluate_indexes_scores(CoulombPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
4718 return _IMP_atom.CoulombPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
4720 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
4721 r"""evaluate_indexes_delta(CoulombPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
4722 return _IMP_atom.CoulombPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
4724 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
4725 r"""evaluate_if_good_indexes(CoulombPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
4726 return _IMP_atom.CoulombPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
4728 def get_version_info(self):
4729 r"""get_version_info(CoulombPairScore self) -> VersionInfo"""
4730 return _IMP_atom.CoulombPairScore_get_version_info(self)
4731 __swig_destroy__ = _IMP_atom.delete_CoulombPairScore
4734 r"""__str__(CoulombPairScore self) -> std::string"""
4735 return _IMP_atom.CoulombPairScore___str__(self)
4738 r"""__repr__(CoulombPairScore self) -> std::string"""
4739 return _IMP_atom.CoulombPairScore___repr__(self)
4743 return _object_cast_to_CoulombPairScore(o)
4747 _IMP_atom.CoulombPairScore_swigregister(CoulombPairScore)
4748 class Domain(Hierarchy):
4749 r"""Proxy of C++ IMP::atom::Domain class."""
4751 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4753 def set_index_range(self, ir):
4754 r"""set_index_range(Domain self, IMP::IntRange ir)"""
4755 return _IMP_atom.Domain_set_index_range(self, ir)
4757 def get_index_range(self):
4758 r"""get_index_range(Domain self) -> IMP::IntRange"""
4759 return _IMP_atom.Domain_get_index_range(self)
4761 def __init__(self, *args):
4763 __init__(Domain self) -> Domain
4764 __init__(Domain self, Model m, ParticleIndex id) -> Domain
4765 __init__(Domain self, _ParticleAdaptor d) -> Domain
4767 _IMP_atom.Domain_swiginit(self, _IMP_atom.new_Domain(*args))
4770 def get_is_setup(*args):
4772 get_is_setup(Model m, ParticleIndex pi) -> bool
4773 get_is_setup(_ParticleAdaptor p) -> bool
4775 return _IMP_atom.Domain_get_is_setup(*args)
4777 def show(self, *args):
4778 r"""show(Domain self, _ostream out=std::cout)"""
4779 return _IMP_atom.Domain_show(self, *args)
4782 def setup_particle(*args):
4784 setup_particle(Model m, ParticleIndex pi, Domain other) -> Domain
4785 setup_particle(_ParticleAdaptor pa, Domain other) -> Domain
4786 setup_particle(Model m, ParticleIndex pi, IMP::IntRange residues) -> Domain
4787 setup_particle(_ParticleAdaptor pa, IMP::IntRange residues) -> Domain
4789 return _IMP_atom.Domain_setup_particle(*args)
4791 def add_attribute(self, *args):
4793 add_attribute(Domain self, FloatKey k, IMP::Float v, bool opt)
4794 add_attribute(Domain self, FloatKey a0, IMP::Float a1)
4795 add_attribute(Domain self, IntKey a0, IMP::Int a1)
4796 add_attribute(Domain self, FloatsKey a0, IMP::Floats a1)
4797 add_attribute(Domain self, IntsKey a0, IMP::Ints a1)
4798 add_attribute(Domain self, StringKey a0, IMP::String a1)
4799 add_attribute(Domain self, ParticleIndexKey a0, Particle a1)
4800 add_attribute(Domain self, ObjectKey a0, Object a1)
4801 add_attribute(Domain self, SparseFloatKey a0, IMP::Float a1)
4802 add_attribute(Domain self, SparseIntKey a0, IMP::Int a1)
4803 add_attribute(Domain self, SparseStringKey a0, IMP::String a1)
4804 add_attribute(Domain self, SparseParticleIndexKey a0, ParticleIndex a1)
4806 return _IMP_atom.Domain_add_attribute(self, *args)
4808 def get_value(self, *args):
4810 get_value(Domain self, FloatKey a0) -> IMP::Float
4811 get_value(Domain self, IntKey a0) -> IMP::Int
4812 get_value(Domain self, FloatsKey a0) -> IMP::Floats
4813 get_value(Domain self, IntsKey a0) -> IMP::Ints
4814 get_value(Domain self, StringKey a0) -> IMP::String
4815 get_value(Domain self, ParticleIndexKey a0) -> Particle
4816 get_value(Domain self, ObjectKey a0) -> Object
4817 get_value(Domain self, SparseFloatKey a0) -> IMP::Float
4818 get_value(Domain self, SparseIntKey a0) -> IMP::Int
4819 get_value(Domain self, SparseStringKey a0) -> IMP::String
4820 get_value(Domain self, SparseParticleIndexKey a0) -> ParticleIndex
4822 return _IMP_atom.Domain_get_value(self, *args)
4824 def set_value(self, *args):
4826 set_value(Domain self, FloatKey a0, IMP::Float a1)
4827 set_value(Domain self, IntKey a0, IMP::Int a1)
4828 set_value(Domain self, FloatsKey a0, IMP::Floats a1)
4829 set_value(Domain self, IntsKey a0, IMP::Ints a1)
4830 set_value(Domain self, StringKey a0, IMP::String a1)
4831 set_value(Domain self, ParticleIndexKey a0, Particle a1)
4832 set_value(Domain self, ObjectKey a0, Object a1)
4833 set_value(Domain self, SparseFloatKey a0, IMP::Float a1)
4834 set_value(Domain self, SparseIntKey a0, IMP::Int a1)
4835 set_value(Domain self, SparseStringKey a0, IMP::String a1)
4836 set_value(Domain self, SparseParticleIndexKey a0, ParticleIndex a1)
4838 return _IMP_atom.Domain_set_value(self, *args)
4840 def remove_attribute(self, *args):
4842 remove_attribute(Domain self, FloatKey a0)
4843 remove_attribute(Domain self, IntKey a0)
4844 remove_attribute(Domain self, FloatsKey a0)
4845 remove_attribute(Domain self, IntsKey a0)
4846 remove_attribute(Domain self, StringKey a0)
4847 remove_attribute(Domain self, ParticleIndexKey a0)
4848 remove_attribute(Domain self, ObjectKey a0)
4849 remove_attribute(Domain self, SparseFloatKey a0)
4850 remove_attribute(Domain self, SparseIntKey a0)
4851 remove_attribute(Domain self, SparseStringKey a0)
4852 remove_attribute(Domain self, SparseParticleIndexKey a0)
4854 return _IMP_atom.Domain_remove_attribute(self, *args)
4856 def has_attribute(self, *args):
4858 has_attribute(Domain self, FloatKey a0) -> bool
4859 has_attribute(Domain self, IntKey a0) -> bool
4860 has_attribute(Domain self, FloatsKey a0) -> bool
4861 has_attribute(Domain self, IntsKey a0) -> bool
4862 has_attribute(Domain self, StringKey a0) -> bool
4863 has_attribute(Domain self, ParticleIndexKey a0) -> bool
4864 has_attribute(Domain self, ObjectKey a0) -> bool
4865 has_attribute(Domain self, SparseFloatKey a0) -> bool
4866 has_attribute(Domain self, SparseIntKey a0) -> bool
4867 has_attribute(Domain self, SparseStringKey a0) -> bool
4868 has_attribute(Domain self, SparseParticleIndexKey a0) -> bool
4870 return _IMP_atom.Domain_has_attribute(self, *args)
4872 def get_derivative(self, a0):
4873 r"""get_derivative(Domain self, FloatKey a0) -> double"""
4874 return _IMP_atom.Domain_get_derivative(self, a0)
4877 r"""get_name(Domain self) -> std::string"""
4878 return _IMP_atom.Domain_get_name(self)
4880 def clear_caches(self):
4881 r"""clear_caches(Domain self)"""
4882 return _IMP_atom.Domain_clear_caches(self)
4884 def set_name(self, a0):
4885 r"""set_name(Domain self, std::string a0)"""
4886 return _IMP_atom.Domain_set_name(self, a0)
4889 r"""set_check_level(Domain self, IMP::CheckLevel a0)"""
4890 return _IMP_atom.Domain_set_check_level(self, a0)
4892 def add_to_derivative(self, a0, a1, a2):
4893 r"""add_to_derivative(Domain self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
4894 return _IMP_atom.Domain_add_to_derivative(self, a0, a1, a2)
4896 def set_is_optimized(self, a0, a1):
4897 r"""set_is_optimized(Domain self, FloatKey a0, bool a1)"""
4898 return _IMP_atom.Domain_set_is_optimized(self, a0, a1)
4900 def get_is_optimized(self, a0):
4901 r"""get_is_optimized(Domain self, FloatKey a0) -> bool"""
4902 return _IMP_atom.Domain_get_is_optimized(self, a0)
4905 r"""get_check_level(Domain self) -> IMP::CheckLevel"""
4906 return _IMP_atom.Domain_get_check_level(self)
4908 def __eq__(self, *args):
4910 __eq__(Domain self, Domain o) -> bool
4911 __eq__(Domain self, Particle d) -> bool
4913 return _IMP_atom.Domain___eq__(self, *args)
4915 def __ne__(self, *args):
4917 __ne__(Domain self, Domain o) -> bool
4918 __ne__(Domain self, Particle d) -> bool
4920 return _IMP_atom.Domain___ne__(self, *args)
4922 def __le__(self, *args):
4924 __le__(Domain self, Domain o) -> bool
4925 __le__(Domain self, Particle d) -> bool
4927 return _IMP_atom.Domain___le__(self, *args)
4929 def __lt__(self, *args):
4931 __lt__(Domain self, Domain o) -> bool
4932 __lt__(Domain self, Particle d) -> bool
4934 return _IMP_atom.Domain___lt__(self, *args)
4936 def __ge__(self, *args):
4938 __ge__(Domain self, Domain o) -> bool
4939 __ge__(Domain self, Particle d) -> bool
4941 return _IMP_atom.Domain___ge__(self, *args)
4943 def __gt__(self, *args):
4945 __gt__(Domain self, Domain o) -> bool
4946 __gt__(Domain self, Particle d) -> bool
4948 return _IMP_atom.Domain___gt__(self, *args)
4951 r"""__hash__(Domain self) -> std::size_t"""
4952 return _IMP_atom.Domain___hash__(self)
4955 r"""__str__(Domain self) -> std::string"""
4956 return _IMP_atom.Domain___str__(self)
4959 r"""__repr__(Domain self) -> std::string"""
4960 return _IMP_atom.Domain___repr__(self)
4962 def _get_as_binary(self):
4963 r"""_get_as_binary(Domain self) -> PyObject *"""
4964 return _IMP_atom.Domain__get_as_binary(self)
4966 def _set_from_binary(self, p):
4967 r"""_set_from_binary(Domain self, PyObject * p)"""
4968 return _IMP_atom.Domain__set_from_binary(self, p)
4970 def __getstate__(self):
4971 p = self._get_as_binary()
4972 if len(self.__dict__) > 1:
4973 d = self.__dict__.copy()
4978 def __setstate__(self, p):
4979 if not hasattr(self,
'this'):
4981 if isinstance(p, tuple):
4983 self.__dict__.update(d)
4984 return self._set_from_binary(p)
4986 __swig_destroy__ = _IMP_atom.delete_Domain
4989 _IMP_atom.Domain_swigregister(Domain)
4991 r"""Proxy of C++ IMP::atom::LennardJonesType class."""
4993 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4995 def __init__(self, *args):
4996 r"""__init__(LennardJonesType self, double well_depth, double radius, std::string name="LennardJonesType%1%") -> LennardJonesType"""
4997 _IMP_atom.LennardJonesType_swiginit(self, _IMP_atom.new_LennardJonesType(*args))
4999 def get_well_depth(self):
5000 r"""get_well_depth(LennardJonesType self) -> double"""
5001 return _IMP_atom.LennardJonesType_get_well_depth(self)
5003 def set_well_depth(self, d):
5004 r"""set_well_depth(LennardJonesType self, double d)"""
5005 return _IMP_atom.LennardJonesType_set_well_depth(self, d)
5007 def get_radius(self):
5008 r"""get_radius(LennardJonesType self) -> double"""
5009 return _IMP_atom.LennardJonesType_get_radius(self)
5011 def set_radius(self, r):
5012 r"""set_radius(LennardJonesType self, double r)"""
5013 return _IMP_atom.LennardJonesType_set_radius(self, r)
5016 r"""get_index(LennardJonesType self) -> int"""
5017 return _IMP_atom.LennardJonesType_get_index(self)
5019 def get_version_info(self):
5020 r"""get_version_info(LennardJonesType self) -> VersionInfo"""
5021 return _IMP_atom.LennardJonesType_get_version_info(self)
5022 __swig_destroy__ = _IMP_atom.delete_LennardJonesType
5025 r"""__str__(LennardJonesType self) -> std::string"""
5026 return _IMP_atom.LennardJonesType___str__(self)
5029 r"""__repr__(LennardJonesType self) -> std::string"""
5030 return _IMP_atom.LennardJonesType___repr__(self)
5034 return _object_cast_to_LennardJonesType(o)
5038 _IMP_atom.LennardJonesType_swigregister(LennardJonesType)
5040 r"""Proxy of C++ IMP::atom::LennardJonesTyped class."""
5042 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5044 def __init__(self, *args):
5046 __init__(LennardJonesTyped self) -> LennardJonesTyped
5047 __init__(LennardJonesTyped self, Model m, ParticleIndex id) -> LennardJonesTyped
5048 __init__(LennardJonesTyped self, _ParticleAdaptor d) -> LennardJonesTyped
5050 _IMP_atom.LennardJonesTyped_swiginit(self, _IMP_atom.new_LennardJonesTyped(*args))
5052 def show(self, *args):
5053 r"""show(LennardJonesTyped self, _ostream out=std::cout)"""
5054 return _IMP_atom.LennardJonesTyped_show(self, *args)
5057 def setup_particle(*args):
5059 setup_particle(Model m, ParticleIndex pi, LennardJonesType type) -> LennardJonesTyped
5060 setup_particle(_ParticleAdaptor pa, LennardJonesType type) -> LennardJonesTyped
5062 return _IMP_atom.LennardJonesTyped_setup_particle(*args)
5065 def get_is_setup(*args):
5067 get_is_setup(_ParticleAdaptor p) -> bool
5068 get_is_setup(Model m, ParticleIndex pi) -> bool
5070 return _IMP_atom.LennardJonesTyped_get_is_setup(*args)
5072 def set_type(self, type):
5073 r"""set_type(LennardJonesTyped self, LennardJonesType type)"""
5074 return _IMP_atom.LennardJonesTyped_set_type(self, type)
5077 r"""get_type(LennardJonesTyped self) -> LennardJonesType"""
5078 return _IMP_atom.LennardJonesTyped_get_type(self)
5081 r"""get_index(LennardJonesTyped self) -> int"""
5082 return _IMP_atom.LennardJonesTyped_get_index(self)
5084 def get_well_depth(self):
5085 r"""get_well_depth(LennardJonesTyped self) -> double"""
5086 return _IMP_atom.LennardJonesTyped_get_well_depth(self)
5088 def get_radius(self):
5089 r"""get_radius(LennardJonesTyped self) -> double"""
5090 return _IMP_atom.LennardJonesTyped_get_radius(self)
5094 r"""get_type_key() -> IntKey"""
5095 return _IMP_atom.LennardJonesTyped_get_type_key()
5097 def add_attribute(self, *args):
5099 add_attribute(LennardJonesTyped self, FloatKey k, IMP::Float v, bool opt)
5100 add_attribute(LennardJonesTyped self, FloatKey a0, IMP::Float a1)
5101 add_attribute(LennardJonesTyped self, IntKey a0, IMP::Int a1)
5102 add_attribute(LennardJonesTyped self, FloatsKey a0, IMP::Floats a1)
5103 add_attribute(LennardJonesTyped self, IntsKey a0, IMP::Ints a1)
5104 add_attribute(LennardJonesTyped self, StringKey a0, IMP::String a1)
5105 add_attribute(LennardJonesTyped self, ParticleIndexKey a0, Particle a1)
5106 add_attribute(LennardJonesTyped self, ObjectKey a0, Object a1)
5107 add_attribute(LennardJonesTyped self, SparseFloatKey a0, IMP::Float a1)
5108 add_attribute(LennardJonesTyped self, SparseIntKey a0, IMP::Int a1)
5109 add_attribute(LennardJonesTyped self, SparseStringKey a0, IMP::String a1)
5110 add_attribute(LennardJonesTyped self, SparseParticleIndexKey a0, ParticleIndex a1)
5112 return _IMP_atom.LennardJonesTyped_add_attribute(self, *args)
5114 def get_value(self, *args):
5116 get_value(LennardJonesTyped self, FloatKey a0) -> IMP::Float
5117 get_value(LennardJonesTyped self, IntKey a0) -> IMP::Int
5118 get_value(LennardJonesTyped self, FloatsKey a0) -> IMP::Floats
5119 get_value(LennardJonesTyped self, IntsKey a0) -> IMP::Ints
5120 get_value(LennardJonesTyped self, StringKey a0) -> IMP::String
5121 get_value(LennardJonesTyped self, ParticleIndexKey a0) -> Particle
5122 get_value(LennardJonesTyped self, ObjectKey a0) -> Object
5123 get_value(LennardJonesTyped self, SparseFloatKey a0) -> IMP::Float
5124 get_value(LennardJonesTyped self, SparseIntKey a0) -> IMP::Int
5125 get_value(LennardJonesTyped self, SparseStringKey a0) -> IMP::String
5126 get_value(LennardJonesTyped self, SparseParticleIndexKey a0) -> ParticleIndex
5128 return _IMP_atom.LennardJonesTyped_get_value(self, *args)
5130 def set_value(self, *args):
5132 set_value(LennardJonesTyped self, FloatKey a0, IMP::Float a1)
5133 set_value(LennardJonesTyped self, IntKey a0, IMP::Int a1)
5134 set_value(LennardJonesTyped self, FloatsKey a0, IMP::Floats a1)
5135 set_value(LennardJonesTyped self, IntsKey a0, IMP::Ints a1)
5136 set_value(LennardJonesTyped self, StringKey a0, IMP::String a1)
5137 set_value(LennardJonesTyped self, ParticleIndexKey a0, Particle a1)
5138 set_value(LennardJonesTyped self, ObjectKey a0, Object a1)
5139 set_value(LennardJonesTyped self, SparseFloatKey a0, IMP::Float a1)
5140 set_value(LennardJonesTyped self, SparseIntKey a0, IMP::Int a1)
5141 set_value(LennardJonesTyped self, SparseStringKey a0, IMP::String a1)
5142 set_value(LennardJonesTyped self, SparseParticleIndexKey a0, ParticleIndex a1)
5144 return _IMP_atom.LennardJonesTyped_set_value(self, *args)
5146 def remove_attribute(self, *args):
5148 remove_attribute(LennardJonesTyped self, FloatKey a0)
5149 remove_attribute(LennardJonesTyped self, IntKey a0)
5150 remove_attribute(LennardJonesTyped self, FloatsKey a0)
5151 remove_attribute(LennardJonesTyped self, IntsKey a0)
5152 remove_attribute(LennardJonesTyped self, StringKey a0)
5153 remove_attribute(LennardJonesTyped self, ParticleIndexKey a0)
5154 remove_attribute(LennardJonesTyped self, ObjectKey a0)
5155 remove_attribute(LennardJonesTyped self, SparseFloatKey a0)
5156 remove_attribute(LennardJonesTyped self, SparseIntKey a0)
5157 remove_attribute(LennardJonesTyped self, SparseStringKey a0)
5158 remove_attribute(LennardJonesTyped self, SparseParticleIndexKey a0)
5160 return _IMP_atom.LennardJonesTyped_remove_attribute(self, *args)
5162 def has_attribute(self, *args):
5164 has_attribute(LennardJonesTyped self, FloatKey a0) -> bool
5165 has_attribute(LennardJonesTyped self, IntKey a0) -> bool
5166 has_attribute(LennardJonesTyped self, FloatsKey a0) -> bool
5167 has_attribute(LennardJonesTyped self, IntsKey a0) -> bool
5168 has_attribute(LennardJonesTyped self, StringKey a0) -> bool
5169 has_attribute(LennardJonesTyped self, ParticleIndexKey a0) -> bool
5170 has_attribute(LennardJonesTyped self, ObjectKey a0) -> bool
5171 has_attribute(LennardJonesTyped self, SparseFloatKey a0) -> bool
5172 has_attribute(LennardJonesTyped self, SparseIntKey a0) -> bool
5173 has_attribute(LennardJonesTyped self, SparseStringKey a0) -> bool
5174 has_attribute(LennardJonesTyped self, SparseParticleIndexKey a0) -> bool
5176 return _IMP_atom.LennardJonesTyped_has_attribute(self, *args)
5178 def get_derivative(self, a0):
5179 r"""get_derivative(LennardJonesTyped self, FloatKey a0) -> double"""
5180 return _IMP_atom.LennardJonesTyped_get_derivative(self, a0)
5183 r"""get_name(LennardJonesTyped self) -> std::string"""
5184 return _IMP_atom.LennardJonesTyped_get_name(self)
5186 def clear_caches(self):
5187 r"""clear_caches(LennardJonesTyped self)"""
5188 return _IMP_atom.LennardJonesTyped_clear_caches(self)
5190 def set_name(self, a0):
5191 r"""set_name(LennardJonesTyped self, std::string a0)"""
5192 return _IMP_atom.LennardJonesTyped_set_name(self, a0)
5195 r"""set_check_level(LennardJonesTyped self, IMP::CheckLevel a0)"""
5196 return _IMP_atom.LennardJonesTyped_set_check_level(self, a0)
5198 def add_to_derivative(self, a0, a1, a2):
5199 r"""add_to_derivative(LennardJonesTyped self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
5200 return _IMP_atom.LennardJonesTyped_add_to_derivative(self, a0, a1, a2)
5202 def set_is_optimized(self, a0, a1):
5203 r"""set_is_optimized(LennardJonesTyped self, FloatKey a0, bool a1)"""
5204 return _IMP_atom.LennardJonesTyped_set_is_optimized(self, a0, a1)
5206 def get_is_optimized(self, a0):
5207 r"""get_is_optimized(LennardJonesTyped self, FloatKey a0) -> bool"""
5208 return _IMP_atom.LennardJonesTyped_get_is_optimized(self, a0)
5211 r"""get_check_level(LennardJonesTyped self) -> IMP::CheckLevel"""
5212 return _IMP_atom.LennardJonesTyped_get_check_level(self)
5214 def __eq__(self, *args):
5216 __eq__(LennardJonesTyped self, LennardJonesTyped o) -> bool
5217 __eq__(LennardJonesTyped self, Particle d) -> bool
5219 return _IMP_atom.LennardJonesTyped___eq__(self, *args)
5221 def __ne__(self, *args):
5223 __ne__(LennardJonesTyped self, LennardJonesTyped o) -> bool
5224 __ne__(LennardJonesTyped self, Particle d) -> bool
5226 return _IMP_atom.LennardJonesTyped___ne__(self, *args)
5228 def __le__(self, *args):
5230 __le__(LennardJonesTyped self, LennardJonesTyped o) -> bool
5231 __le__(LennardJonesTyped self, Particle d) -> bool
5233 return _IMP_atom.LennardJonesTyped___le__(self, *args)
5235 def __lt__(self, *args):
5237 __lt__(LennardJonesTyped self, LennardJonesTyped o) -> bool
5238 __lt__(LennardJonesTyped self, Particle d) -> bool
5240 return _IMP_atom.LennardJonesTyped___lt__(self, *args)
5242 def __ge__(self, *args):
5244 __ge__(LennardJonesTyped self, LennardJonesTyped o) -> bool
5245 __ge__(LennardJonesTyped self, Particle d) -> bool
5247 return _IMP_atom.LennardJonesTyped___ge__(self, *args)
5249 def __gt__(self, *args):
5251 __gt__(LennardJonesTyped self, LennardJonesTyped o) -> bool
5252 __gt__(LennardJonesTyped self, Particle d) -> bool
5254 return _IMP_atom.LennardJonesTyped___gt__(self, *args)
5257 r"""__hash__(LennardJonesTyped self) -> std::size_t"""
5258 return _IMP_atom.LennardJonesTyped___hash__(self)
5261 r"""__str__(LennardJonesTyped self) -> std::string"""
5262 return _IMP_atom.LennardJonesTyped___str__(self)
5265 r"""__repr__(LennardJonesTyped self) -> std::string"""
5266 return _IMP_atom.LennardJonesTyped___repr__(self)
5268 def _get_as_binary(self):
5269 r"""_get_as_binary(LennardJonesTyped self) -> PyObject *"""
5270 return _IMP_atom.LennardJonesTyped__get_as_binary(self)
5272 def _set_from_binary(self, p):
5273 r"""_set_from_binary(LennardJonesTyped self, PyObject * p)"""
5274 return _IMP_atom.LennardJonesTyped__set_from_binary(self, p)
5276 def __getstate__(self):
5277 p = self._get_as_binary()
5278 if len(self.__dict__) > 1:
5279 d = self.__dict__.copy()
5284 def __setstate__(self, p):
5285 if not hasattr(self,
'this'):
5287 if isinstance(p, tuple):
5289 self.__dict__.update(d)
5290 return self._set_from_binary(p)
5292 __swig_destroy__ = _IMP_atom.delete_LennardJonesTyped
5295 _IMP_atom.LennardJonesTyped_swigregister(LennardJonesTyped)
5297 r"""Proxy of C++ IMP::atom::LinearVelocity class."""
5299 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5301 def __init__(self, *args):
5303 __init__(LinearVelocity self) -> LinearVelocity
5304 __init__(LinearVelocity self, Model m, ParticleIndex id) -> LinearVelocity
5305 __init__(LinearVelocity self, _ParticleAdaptor d) -> LinearVelocity
5307 _IMP_atom.LinearVelocity_swiginit(self, _IMP_atom.new_LinearVelocity(*args))
5310 def get_is_setup(*args):
5312 get_is_setup(Model m, ParticleIndex pi) -> bool
5313 get_is_setup(_ParticleAdaptor p) -> bool
5315 return _IMP_atom.LinearVelocity_get_is_setup(*args)
5317 def show(self, *args):
5318 r"""show(LinearVelocity self, _ostream out=std::cout)"""
5319 return _IMP_atom.LinearVelocity_show(self, *args)
5322 def setup_particle(*args):
5324 setup_particle(Model m, ParticleIndex pi) -> LinearVelocity
5325 setup_particle(_ParticleAdaptor pa) -> LinearVelocity
5326 setup_particle(Model m, ParticleIndex pi, Vector3D v) -> LinearVelocity
5327 setup_particle(_ParticleAdaptor pa, Vector3D v) -> LinearVelocity
5329 return _IMP_atom.LinearVelocity_setup_particle(*args)
5331 def set_velocity(self, v):
5332 r"""set_velocity(LinearVelocity self, Vector3D v)"""
5333 return _IMP_atom.LinearVelocity_set_velocity(self, v)
5335 def get_velocity(self):
5336 r"""get_velocity(LinearVelocity self) -> Vector3D"""
5337 return _IMP_atom.LinearVelocity_get_velocity(self)
5339 def add_attribute(self, *args):
5341 add_attribute(LinearVelocity self, FloatKey k, IMP::Float v, bool opt)
5342 add_attribute(LinearVelocity self, FloatKey a0, IMP::Float a1)
5343 add_attribute(LinearVelocity self, IntKey a0, IMP::Int a1)
5344 add_attribute(LinearVelocity self, FloatsKey a0, IMP::Floats a1)
5345 add_attribute(LinearVelocity self, IntsKey a0, IMP::Ints a1)
5346 add_attribute(LinearVelocity self, StringKey a0, IMP::String a1)
5347 add_attribute(LinearVelocity self, ParticleIndexKey a0, Particle a1)
5348 add_attribute(LinearVelocity self, ObjectKey a0, Object a1)
5349 add_attribute(LinearVelocity self, SparseFloatKey a0, IMP::Float a1)
5350 add_attribute(LinearVelocity self, SparseIntKey a0, IMP::Int a1)
5351 add_attribute(LinearVelocity self, SparseStringKey a0, IMP::String a1)
5352 add_attribute(LinearVelocity self, SparseParticleIndexKey a0, ParticleIndex a1)
5354 return _IMP_atom.LinearVelocity_add_attribute(self, *args)
5356 def get_value(self, *args):
5358 get_value(LinearVelocity self, FloatKey a0) -> IMP::Float
5359 get_value(LinearVelocity self, IntKey a0) -> IMP::Int
5360 get_value(LinearVelocity self, FloatsKey a0) -> IMP::Floats
5361 get_value(LinearVelocity self, IntsKey a0) -> IMP::Ints
5362 get_value(LinearVelocity self, StringKey a0) -> IMP::String
5363 get_value(LinearVelocity self, ParticleIndexKey a0) -> Particle
5364 get_value(LinearVelocity self, ObjectKey a0) -> Object
5365 get_value(LinearVelocity self, SparseFloatKey a0) -> IMP::Float
5366 get_value(LinearVelocity self, SparseIntKey a0) -> IMP::Int
5367 get_value(LinearVelocity self, SparseStringKey a0) -> IMP::String
5368 get_value(LinearVelocity self, SparseParticleIndexKey a0) -> ParticleIndex
5370 return _IMP_atom.LinearVelocity_get_value(self, *args)
5372 def set_value(self, *args):
5374 set_value(LinearVelocity self, FloatKey a0, IMP::Float a1)
5375 set_value(LinearVelocity self, IntKey a0, IMP::Int a1)
5376 set_value(LinearVelocity self, FloatsKey a0, IMP::Floats a1)
5377 set_value(LinearVelocity self, IntsKey a0, IMP::Ints a1)
5378 set_value(LinearVelocity self, StringKey a0, IMP::String a1)
5379 set_value(LinearVelocity self, ParticleIndexKey a0, Particle a1)
5380 set_value(LinearVelocity self, ObjectKey a0, Object a1)
5381 set_value(LinearVelocity self, SparseFloatKey a0, IMP::Float a1)
5382 set_value(LinearVelocity self, SparseIntKey a0, IMP::Int a1)
5383 set_value(LinearVelocity self, SparseStringKey a0, IMP::String a1)
5384 set_value(LinearVelocity self, SparseParticleIndexKey a0, ParticleIndex a1)
5386 return _IMP_atom.LinearVelocity_set_value(self, *args)
5388 def remove_attribute(self, *args):
5390 remove_attribute(LinearVelocity self, FloatKey a0)
5391 remove_attribute(LinearVelocity self, IntKey a0)
5392 remove_attribute(LinearVelocity self, FloatsKey a0)
5393 remove_attribute(LinearVelocity self, IntsKey a0)
5394 remove_attribute(LinearVelocity self, StringKey a0)
5395 remove_attribute(LinearVelocity self, ParticleIndexKey a0)
5396 remove_attribute(LinearVelocity self, ObjectKey a0)
5397 remove_attribute(LinearVelocity self, SparseFloatKey a0)
5398 remove_attribute(LinearVelocity self, SparseIntKey a0)
5399 remove_attribute(LinearVelocity self, SparseStringKey a0)
5400 remove_attribute(LinearVelocity self, SparseParticleIndexKey a0)
5402 return _IMP_atom.LinearVelocity_remove_attribute(self, *args)
5404 def has_attribute(self, *args):
5406 has_attribute(LinearVelocity self, FloatKey a0) -> bool
5407 has_attribute(LinearVelocity self, IntKey a0) -> bool
5408 has_attribute(LinearVelocity self, FloatsKey a0) -> bool
5409 has_attribute(LinearVelocity self, IntsKey a0) -> bool
5410 has_attribute(LinearVelocity self, StringKey a0) -> bool
5411 has_attribute(LinearVelocity self, ParticleIndexKey a0) -> bool
5412 has_attribute(LinearVelocity self, ObjectKey a0) -> bool
5413 has_attribute(LinearVelocity self, SparseFloatKey a0) -> bool
5414 has_attribute(LinearVelocity self, SparseIntKey a0) -> bool
5415 has_attribute(LinearVelocity self, SparseStringKey a0) -> bool
5416 has_attribute(LinearVelocity self, SparseParticleIndexKey a0) -> bool
5418 return _IMP_atom.LinearVelocity_has_attribute(self, *args)
5420 def get_derivative(self, a0):
5421 r"""get_derivative(LinearVelocity self, FloatKey a0) -> double"""
5422 return _IMP_atom.LinearVelocity_get_derivative(self, a0)
5425 r"""get_name(LinearVelocity self) -> std::string"""
5426 return _IMP_atom.LinearVelocity_get_name(self)
5428 def clear_caches(self):
5429 r"""clear_caches(LinearVelocity self)"""
5430 return _IMP_atom.LinearVelocity_clear_caches(self)
5432 def set_name(self, a0):
5433 r"""set_name(LinearVelocity self, std::string a0)"""
5434 return _IMP_atom.LinearVelocity_set_name(self, a0)
5437 r"""set_check_level(LinearVelocity self, IMP::CheckLevel a0)"""
5438 return _IMP_atom.LinearVelocity_set_check_level(self, a0)
5440 def add_to_derivative(self, a0, a1, a2):
5441 r"""add_to_derivative(LinearVelocity self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
5442 return _IMP_atom.LinearVelocity_add_to_derivative(self, a0, a1, a2)
5444 def set_is_optimized(self, a0, a1):
5445 r"""set_is_optimized(LinearVelocity self, FloatKey a0, bool a1)"""
5446 return _IMP_atom.LinearVelocity_set_is_optimized(self, a0, a1)
5448 def get_is_optimized(self, a0):
5449 r"""get_is_optimized(LinearVelocity self, FloatKey a0) -> bool"""
5450 return _IMP_atom.LinearVelocity_get_is_optimized(self, a0)
5453 r"""get_check_level(LinearVelocity self) -> IMP::CheckLevel"""
5454 return _IMP_atom.LinearVelocity_get_check_level(self)
5456 def __eq__(self, *args):
5458 __eq__(LinearVelocity self, LinearVelocity o) -> bool
5459 __eq__(LinearVelocity self, Particle d) -> bool
5461 return _IMP_atom.LinearVelocity___eq__(self, *args)
5463 def __ne__(self, *args):
5465 __ne__(LinearVelocity self, LinearVelocity o) -> bool
5466 __ne__(LinearVelocity self, Particle d) -> bool
5468 return _IMP_atom.LinearVelocity___ne__(self, *args)
5470 def __le__(self, *args):
5472 __le__(LinearVelocity self, LinearVelocity o) -> bool
5473 __le__(LinearVelocity self, Particle d) -> bool
5475 return _IMP_atom.LinearVelocity___le__(self, *args)
5477 def __lt__(self, *args):
5479 __lt__(LinearVelocity self, LinearVelocity o) -> bool
5480 __lt__(LinearVelocity self, Particle d) -> bool
5482 return _IMP_atom.LinearVelocity___lt__(self, *args)
5484 def __ge__(self, *args):
5486 __ge__(LinearVelocity self, LinearVelocity o) -> bool
5487 __ge__(LinearVelocity self, Particle d) -> bool
5489 return _IMP_atom.LinearVelocity___ge__(self, *args)
5491 def __gt__(self, *args):
5493 __gt__(LinearVelocity self, LinearVelocity o) -> bool
5494 __gt__(LinearVelocity self, Particle d) -> bool
5496 return _IMP_atom.LinearVelocity___gt__(self, *args)
5499 r"""__hash__(LinearVelocity self) -> std::size_t"""
5500 return _IMP_atom.LinearVelocity___hash__(self)
5503 r"""__str__(LinearVelocity self) -> std::string"""
5504 return _IMP_atom.LinearVelocity___str__(self)
5507 r"""__repr__(LinearVelocity self) -> std::string"""
5508 return _IMP_atom.LinearVelocity___repr__(self)
5510 def _get_as_binary(self):
5511 r"""_get_as_binary(LinearVelocity self) -> PyObject *"""
5512 return _IMP_atom.LinearVelocity__get_as_binary(self)
5514 def _set_from_binary(self, p):
5515 r"""_set_from_binary(LinearVelocity self, PyObject * p)"""
5516 return _IMP_atom.LinearVelocity__set_from_binary(self, p)
5518 def __getstate__(self):
5519 p = self._get_as_binary()
5520 if len(self.__dict__) > 1:
5521 d = self.__dict__.copy()
5526 def __setstate__(self, p):
5527 if not hasattr(self,
'this'):
5529 if isinstance(p, tuple):
5531 self.__dict__.update(d)
5532 return self._set_from_binary(p)
5534 __swig_destroy__ = _IMP_atom.delete_LinearVelocity
5537 _IMP_atom.LinearVelocity_swigregister(LinearVelocity)
5539 r"""Proxy of C++ IMP::atom::AngularVelocity class."""
5541 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5543 def __init__(self, *args):
5545 __init__(AngularVelocity self) -> AngularVelocity
5546 __init__(AngularVelocity self, Model m, ParticleIndex id) -> AngularVelocity
5547 __init__(AngularVelocity self, _ParticleAdaptor d) -> AngularVelocity
5549 _IMP_atom.AngularVelocity_swiginit(self, _IMP_atom.new_AngularVelocity(*args))
5552 def get_is_setup(*args):
5554 get_is_setup(Model m, ParticleIndex pi) -> bool
5555 get_is_setup(_ParticleAdaptor p) -> bool
5557 return _IMP_atom.AngularVelocity_get_is_setup(*args)
5559 def show(self, *args):
5560 r"""show(AngularVelocity self, _ostream out=std::cout)"""
5561 return _IMP_atom.AngularVelocity_show(self, *args)
5564 def setup_particle(*args):
5566 setup_particle(Model m, ParticleIndex pi) -> AngularVelocity
5567 setup_particle(_ParticleAdaptor pa) -> AngularVelocity
5568 setup_particle(Model m, ParticleIndex pi, Vector4D v) -> AngularVelocity
5569 setup_particle(_ParticleAdaptor pa, Vector4D v) -> AngularVelocity
5571 return _IMP_atom.AngularVelocity_setup_particle(*args)
5573 def set_velocity(self, v):
5574 r"""set_velocity(AngularVelocity self, Vector4D v)"""
5575 return _IMP_atom.AngularVelocity_set_velocity(self, v)
5577 def get_velocity(self):
5578 r"""get_velocity(AngularVelocity self) -> Vector4D"""
5579 return _IMP_atom.AngularVelocity_get_velocity(self)
5581 def add_attribute(self, *args):
5583 add_attribute(AngularVelocity self, FloatKey k, IMP::Float v, bool opt)
5584 add_attribute(AngularVelocity self, FloatKey a0, IMP::Float a1)
5585 add_attribute(AngularVelocity self, IntKey a0, IMP::Int a1)
5586 add_attribute(AngularVelocity self, FloatsKey a0, IMP::Floats a1)
5587 add_attribute(AngularVelocity self, IntsKey a0, IMP::Ints a1)
5588 add_attribute(AngularVelocity self, StringKey a0, IMP::String a1)
5589 add_attribute(AngularVelocity self, ParticleIndexKey a0, Particle a1)
5590 add_attribute(AngularVelocity self, ObjectKey a0, Object a1)
5591 add_attribute(AngularVelocity self, SparseFloatKey a0, IMP::Float a1)
5592 add_attribute(AngularVelocity self, SparseIntKey a0, IMP::Int a1)
5593 add_attribute(AngularVelocity self, SparseStringKey a0, IMP::String a1)
5594 add_attribute(AngularVelocity self, SparseParticleIndexKey a0, ParticleIndex a1)
5596 return _IMP_atom.AngularVelocity_add_attribute(self, *args)
5598 def get_value(self, *args):
5600 get_value(AngularVelocity self, FloatKey a0) -> IMP::Float
5601 get_value(AngularVelocity self, IntKey a0) -> IMP::Int
5602 get_value(AngularVelocity self, FloatsKey a0) -> IMP::Floats
5603 get_value(AngularVelocity self, IntsKey a0) -> IMP::Ints
5604 get_value(AngularVelocity self, StringKey a0) -> IMP::String
5605 get_value(AngularVelocity self, ParticleIndexKey a0) -> Particle
5606 get_value(AngularVelocity self, ObjectKey a0) -> Object
5607 get_value(AngularVelocity self, SparseFloatKey a0) -> IMP::Float
5608 get_value(AngularVelocity self, SparseIntKey a0) -> IMP::Int
5609 get_value(AngularVelocity self, SparseStringKey a0) -> IMP::String
5610 get_value(AngularVelocity self, SparseParticleIndexKey a0) -> ParticleIndex
5612 return _IMP_atom.AngularVelocity_get_value(self, *args)
5614 def set_value(self, *args):
5616 set_value(AngularVelocity self, FloatKey a0, IMP::Float a1)
5617 set_value(AngularVelocity self, IntKey a0, IMP::Int a1)
5618 set_value(AngularVelocity self, FloatsKey a0, IMP::Floats a1)
5619 set_value(AngularVelocity self, IntsKey a0, IMP::Ints a1)
5620 set_value(AngularVelocity self, StringKey a0, IMP::String a1)
5621 set_value(AngularVelocity self, ParticleIndexKey a0, Particle a1)
5622 set_value(AngularVelocity self, ObjectKey a0, Object a1)
5623 set_value(AngularVelocity self, SparseFloatKey a0, IMP::Float a1)
5624 set_value(AngularVelocity self, SparseIntKey a0, IMP::Int a1)
5625 set_value(AngularVelocity self, SparseStringKey a0, IMP::String a1)
5626 set_value(AngularVelocity self, SparseParticleIndexKey a0, ParticleIndex a1)
5628 return _IMP_atom.AngularVelocity_set_value(self, *args)
5630 def remove_attribute(self, *args):
5632 remove_attribute(AngularVelocity self, FloatKey a0)
5633 remove_attribute(AngularVelocity self, IntKey a0)
5634 remove_attribute(AngularVelocity self, FloatsKey a0)
5635 remove_attribute(AngularVelocity self, IntsKey a0)
5636 remove_attribute(AngularVelocity self, StringKey a0)
5637 remove_attribute(AngularVelocity self, ParticleIndexKey a0)
5638 remove_attribute(AngularVelocity self, ObjectKey a0)
5639 remove_attribute(AngularVelocity self, SparseFloatKey a0)
5640 remove_attribute(AngularVelocity self, SparseIntKey a0)
5641 remove_attribute(AngularVelocity self, SparseStringKey a0)
5642 remove_attribute(AngularVelocity self, SparseParticleIndexKey a0)
5644 return _IMP_atom.AngularVelocity_remove_attribute(self, *args)
5646 def has_attribute(self, *args):
5648 has_attribute(AngularVelocity self, FloatKey a0) -> bool
5649 has_attribute(AngularVelocity self, IntKey a0) -> bool
5650 has_attribute(AngularVelocity self, FloatsKey a0) -> bool
5651 has_attribute(AngularVelocity self, IntsKey a0) -> bool
5652 has_attribute(AngularVelocity self, StringKey a0) -> bool
5653 has_attribute(AngularVelocity self, ParticleIndexKey a0) -> bool
5654 has_attribute(AngularVelocity self, ObjectKey a0) -> bool
5655 has_attribute(AngularVelocity self, SparseFloatKey a0) -> bool
5656 has_attribute(AngularVelocity self, SparseIntKey a0) -> bool
5657 has_attribute(AngularVelocity self, SparseStringKey a0) -> bool
5658 has_attribute(AngularVelocity self, SparseParticleIndexKey a0) -> bool
5660 return _IMP_atom.AngularVelocity_has_attribute(self, *args)
5662 def get_derivative(self, a0):
5663 r"""get_derivative(AngularVelocity self, FloatKey a0) -> double"""
5664 return _IMP_atom.AngularVelocity_get_derivative(self, a0)
5667 r"""get_name(AngularVelocity self) -> std::string"""
5668 return _IMP_atom.AngularVelocity_get_name(self)
5670 def clear_caches(self):
5671 r"""clear_caches(AngularVelocity self)"""
5672 return _IMP_atom.AngularVelocity_clear_caches(self)
5674 def set_name(self, a0):
5675 r"""set_name(AngularVelocity self, std::string a0)"""
5676 return _IMP_atom.AngularVelocity_set_name(self, a0)
5679 r"""set_check_level(AngularVelocity self, IMP::CheckLevel a0)"""
5680 return _IMP_atom.AngularVelocity_set_check_level(self, a0)
5682 def add_to_derivative(self, a0, a1, a2):
5683 r"""add_to_derivative(AngularVelocity self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
5684 return _IMP_atom.AngularVelocity_add_to_derivative(self, a0, a1, a2)
5686 def set_is_optimized(self, a0, a1):
5687 r"""set_is_optimized(AngularVelocity self, FloatKey a0, bool a1)"""
5688 return _IMP_atom.AngularVelocity_set_is_optimized(self, a0, a1)
5690 def get_is_optimized(self, a0):
5691 r"""get_is_optimized(AngularVelocity self, FloatKey a0) -> bool"""
5692 return _IMP_atom.AngularVelocity_get_is_optimized(self, a0)
5695 r"""get_check_level(AngularVelocity self) -> IMP::CheckLevel"""
5696 return _IMP_atom.AngularVelocity_get_check_level(self)
5698 def __eq__(self, *args):
5700 __eq__(AngularVelocity self, AngularVelocity o) -> bool
5701 __eq__(AngularVelocity self, Particle d) -> bool
5703 return _IMP_atom.AngularVelocity___eq__(self, *args)
5705 def __ne__(self, *args):
5707 __ne__(AngularVelocity self, AngularVelocity o) -> bool
5708 __ne__(AngularVelocity self, Particle d) -> bool
5710 return _IMP_atom.AngularVelocity___ne__(self, *args)
5712 def __le__(self, *args):
5714 __le__(AngularVelocity self, AngularVelocity o) -> bool
5715 __le__(AngularVelocity self, Particle d) -> bool
5717 return _IMP_atom.AngularVelocity___le__(self, *args)
5719 def __lt__(self, *args):
5721 __lt__(AngularVelocity self, AngularVelocity o) -> bool
5722 __lt__(AngularVelocity self, Particle d) -> bool
5724 return _IMP_atom.AngularVelocity___lt__(self, *args)
5726 def __ge__(self, *args):
5728 __ge__(AngularVelocity self, AngularVelocity o) -> bool
5729 __ge__(AngularVelocity self, Particle d) -> bool
5731 return _IMP_atom.AngularVelocity___ge__(self, *args)
5733 def __gt__(self, *args):
5735 __gt__(AngularVelocity self, AngularVelocity o) -> bool
5736 __gt__(AngularVelocity self, Particle d) -> bool
5738 return _IMP_atom.AngularVelocity___gt__(self, *args)
5741 r"""__hash__(AngularVelocity self) -> std::size_t"""
5742 return _IMP_atom.AngularVelocity___hash__(self)
5745 r"""__str__(AngularVelocity self) -> std::string"""
5746 return _IMP_atom.AngularVelocity___str__(self)
5749 r"""__repr__(AngularVelocity self) -> std::string"""
5750 return _IMP_atom.AngularVelocity___repr__(self)
5752 def _get_as_binary(self):
5753 r"""_get_as_binary(AngularVelocity self) -> PyObject *"""
5754 return _IMP_atom.AngularVelocity__get_as_binary(self)
5756 def _set_from_binary(self, p):
5757 r"""_set_from_binary(AngularVelocity self, PyObject * p)"""
5758 return _IMP_atom.AngularVelocity__set_from_binary(self, p)
5760 def __getstate__(self):
5761 p = self._get_as_binary()
5762 if len(self.__dict__) > 1:
5763 d = self.__dict__.copy()
5768 def __setstate__(self, p):
5769 if not hasattr(self,
'this'):
5771 if isinstance(p, tuple):
5773 self.__dict__.update(d)
5774 return self._set_from_binary(p)
5776 __swig_destroy__ = _IMP_atom.delete_AngularVelocity
5779 _IMP_atom.AngularVelocity_swigregister(AngularVelocity)
5780 class MolecularDynamics(Simulator):
5781 r"""Proxy of C++ IMP::atom::MolecularDynamics class."""
5783 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5785 def __init__(self, m):
5786 r"""__init__(MolecularDynamics self, Model m) -> MolecularDynamics"""
5787 _IMP_atom.MolecularDynamics_swiginit(self, _IMP_atom.new_MolecularDynamics(m))
5789 def get_kinetic_energy(self):
5790 r"""get_kinetic_energy(MolecularDynamics self) -> IMP::Float"""
5791 return _IMP_atom.MolecularDynamics_get_kinetic_energy(self)
5793 def get_kinetic_temperature(self, ekinetic):
5794 r"""get_kinetic_temperature(MolecularDynamics self, IMP::Float ekinetic) -> IMP::Float"""
5795 return _IMP_atom.MolecularDynamics_get_kinetic_temperature(self, ekinetic)
5797 def set_velocity_cap(self, velocity_cap):
5798 r"""set_velocity_cap(MolecularDynamics self, IMP::Float velocity_cap)"""
5799 return _IMP_atom.MolecularDynamics_set_velocity_cap(self, velocity_cap)
5801 def assign_velocities(self, temperature):
5802 r"""assign_velocities(MolecularDynamics self, IMP::Float temperature)"""
5803 return _IMP_atom.MolecularDynamics_assign_velocities(self, temperature)
5805 def setup(self, ps):
5806 r"""setup(MolecularDynamics self, IMP::ParticleIndexes const & ps)"""
5807 return _IMP_atom.MolecularDynamics_setup(self, ps)
5809 def do_step(self, sc, dt):
5810 r"""do_step(MolecularDynamics self, IMP::ParticleIndexes const & sc, double dt) -> double"""
5811 return _IMP_atom.MolecularDynamics_do_step(self, sc, dt)
5813 def get_is_simulation_particle(self, p):
5814 r"""get_is_simulation_particle(MolecularDynamics self, ParticleIndex p) -> bool"""
5815 return _IMP_atom.MolecularDynamics_get_is_simulation_particle(self, p)
5817 def get_version_info(self):
5818 r"""get_version_info(MolecularDynamics self) -> VersionInfo"""
5819 return _IMP_atom.MolecularDynamics_get_version_info(self)
5820 __swig_destroy__ = _IMP_atom.delete_MolecularDynamics
5823 r"""__str__(MolecularDynamics self) -> std::string"""
5824 return _IMP_atom.MolecularDynamics___str__(self)
5827 r"""__repr__(MolecularDynamics self) -> std::string"""
5828 return _IMP_atom.MolecularDynamics___repr__(self)
5832 return _object_cast_to_MolecularDynamics(o)
5836 _IMP_atom.MolecularDynamics_swigregister(MolecularDynamics)
5838 r"""Proxy of C++ IMP::atom::VelocityScalingOptimizerState class."""
5840 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5842 def __init__(self, m, pis, temperature):
5843 r"""__init__(VelocityScalingOptimizerState self, Model m, _ParticleIndexesAdaptor pis, double temperature) -> VelocityScalingOptimizerState"""
5844 _IMP_atom.VelocityScalingOptimizerState_swiginit(self, _IMP_atom.new_VelocityScalingOptimizerState(m, pis, temperature))
5846 def set_particles(self, pis):
5847 r"""set_particles(VelocityScalingOptimizerState self, IMP::Particles const & pis)"""
5848 return _IMP_atom.VelocityScalingOptimizerState_set_particles(self, pis)
5850 def set_temperature(self, temperature):
5851 r"""set_temperature(VelocityScalingOptimizerState self, IMP::Float temperature)"""
5852 return _IMP_atom.VelocityScalingOptimizerState_set_temperature(self, temperature)
5854 def rescale_velocities(self):
5855 r"""rescale_velocities(VelocityScalingOptimizerState self)"""
5856 return _IMP_atom.VelocityScalingOptimizerState_rescale_velocities(self)
5858 def get_version_info(self):
5859 r"""get_version_info(VelocityScalingOptimizerState self) -> VersionInfo"""
5860 return _IMP_atom.VelocityScalingOptimizerState_get_version_info(self)
5861 __swig_destroy__ = _IMP_atom.delete_VelocityScalingOptimizerState
5864 r"""__str__(VelocityScalingOptimizerState self) -> std::string"""
5865 return _IMP_atom.VelocityScalingOptimizerState___str__(self)
5868 r"""__repr__(VelocityScalingOptimizerState self) -> std::string"""
5869 return _IMP_atom.VelocityScalingOptimizerState___repr__(self)
5873 return _object_cast_to_VelocityScalingOptimizerState(o)
5877 _IMP_atom.VelocityScalingOptimizerState_swigregister(VelocityScalingOptimizerState)
5878 class Fragment(Hierarchy):
5879 r"""Proxy of C++ IMP::atom::Fragment class."""
5881 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5883 def set_residue_indexes(self, o):
5884 r"""set_residue_indexes(Fragment self, IMP::Ints o)"""
5885 return _IMP_atom.Fragment_set_residue_indexes(self, o)
5887 def get_residue_indexes(self):
5888 r"""get_residue_indexes(Fragment self) -> IMP::Ints"""
5889 return _IMP_atom.Fragment_get_residue_indexes(self)
5891 def get_contains_residue(self, rindex):
5892 r"""get_contains_residue(Fragment self, int rindex) -> bool"""
5893 return _IMP_atom.Fragment_get_contains_residue(self, rindex)
5895 def get_contains_any_sorted_residue(self, rinds):
5896 r"""get_contains_any_sorted_residue(Fragment self, IMP::Ints const & rinds) -> bool"""
5897 return _IMP_atom.Fragment_get_contains_any_sorted_residue(self, rinds)
5899 def __init__(self, *args):
5901 __init__(Fragment self) -> Fragment
5902 __init__(Fragment self, Model m, ParticleIndex id) -> Fragment
5903 __init__(Fragment self, _ParticleAdaptor d) -> Fragment
5905 _IMP_atom.Fragment_swiginit(self, _IMP_atom.new_Fragment(*args))
5908 def get_is_setup(*args):
5910 get_is_setup(Model m, ParticleIndex pi) -> bool
5911 get_is_setup(_ParticleAdaptor p) -> bool
5913 return _IMP_atom.Fragment_get_is_setup(*args)
5915 def show(self, *args):
5916 r"""show(Fragment self, _ostream out=std::cout)"""
5917 return _IMP_atom.Fragment_show(self, *args)
5920 def setup_particle(*args):
5922 setup_particle(Model m, ParticleIndex pi) -> Fragment
5923 setup_particle(_ParticleAdaptor pa) -> Fragment
5924 setup_particle(Model m, ParticleIndex pi, Fragment other) -> Fragment
5925 setup_particle(_ParticleAdaptor pa, Fragment other) -> Fragment
5926 setup_particle(Model m, ParticleIndex pi, IMP::Ints residue_indexes) -> Fragment
5927 setup_particle(_ParticleAdaptor pa, IMP::Ints residue_indexes) -> Fragment
5929 return _IMP_atom.Fragment_setup_particle(*args)
5931 def add_attribute(self, *args):
5933 add_attribute(Fragment self, FloatKey k, IMP::Float v, bool opt)
5934 add_attribute(Fragment self, FloatKey a0, IMP::Float a1)
5935 add_attribute(Fragment self, IntKey a0, IMP::Int a1)
5936 add_attribute(Fragment self, FloatsKey a0, IMP::Floats a1)
5937 add_attribute(Fragment self, IntsKey a0, IMP::Ints a1)
5938 add_attribute(Fragment self, StringKey a0, IMP::String a1)
5939 add_attribute(Fragment self, ParticleIndexKey a0, Particle a1)
5940 add_attribute(Fragment self, ObjectKey a0, Object a1)
5941 add_attribute(Fragment self, SparseFloatKey a0, IMP::Float a1)
5942 add_attribute(Fragment self, SparseIntKey a0, IMP::Int a1)
5943 add_attribute(Fragment self, SparseStringKey a0, IMP::String a1)
5944 add_attribute(Fragment self, SparseParticleIndexKey a0, ParticleIndex a1)
5946 return _IMP_atom.Fragment_add_attribute(self, *args)
5948 def get_value(self, *args):
5950 get_value(Fragment self, FloatKey a0) -> IMP::Float
5951 get_value(Fragment self, IntKey a0) -> IMP::Int
5952 get_value(Fragment self, FloatsKey a0) -> IMP::Floats
5953 get_value(Fragment self, IntsKey a0) -> IMP::Ints
5954 get_value(Fragment self, StringKey a0) -> IMP::String
5955 get_value(Fragment self, ParticleIndexKey a0) -> Particle
5956 get_value(Fragment self, ObjectKey a0) -> Object
5957 get_value(Fragment self, SparseFloatKey a0) -> IMP::Float
5958 get_value(Fragment self, SparseIntKey a0) -> IMP::Int
5959 get_value(Fragment self, SparseStringKey a0) -> IMP::String
5960 get_value(Fragment self, SparseParticleIndexKey a0) -> ParticleIndex
5962 return _IMP_atom.Fragment_get_value(self, *args)
5964 def set_value(self, *args):
5966 set_value(Fragment self, FloatKey a0, IMP::Float a1)
5967 set_value(Fragment self, IntKey a0, IMP::Int a1)
5968 set_value(Fragment self, FloatsKey a0, IMP::Floats a1)
5969 set_value(Fragment self, IntsKey a0, IMP::Ints a1)
5970 set_value(Fragment self, StringKey a0, IMP::String a1)
5971 set_value(Fragment self, ParticleIndexKey a0, Particle a1)
5972 set_value(Fragment self, ObjectKey a0, Object a1)
5973 set_value(Fragment self, SparseFloatKey a0, IMP::Float a1)
5974 set_value(Fragment self, SparseIntKey a0, IMP::Int a1)
5975 set_value(Fragment self, SparseStringKey a0, IMP::String a1)
5976 set_value(Fragment self, SparseParticleIndexKey a0, ParticleIndex a1)
5978 return _IMP_atom.Fragment_set_value(self, *args)
5980 def remove_attribute(self, *args):
5982 remove_attribute(Fragment self, FloatKey a0)
5983 remove_attribute(Fragment self, IntKey a0)
5984 remove_attribute(Fragment self, FloatsKey a0)
5985 remove_attribute(Fragment self, IntsKey a0)
5986 remove_attribute(Fragment self, StringKey a0)
5987 remove_attribute(Fragment self, ParticleIndexKey a0)
5988 remove_attribute(Fragment self, ObjectKey a0)
5989 remove_attribute(Fragment self, SparseFloatKey a0)
5990 remove_attribute(Fragment self, SparseIntKey a0)
5991 remove_attribute(Fragment self, SparseStringKey a0)
5992 remove_attribute(Fragment self, SparseParticleIndexKey a0)
5994 return _IMP_atom.Fragment_remove_attribute(self, *args)
5996 def has_attribute(self, *args):
5998 has_attribute(Fragment self, FloatKey a0) -> bool
5999 has_attribute(Fragment self, IntKey a0) -> bool
6000 has_attribute(Fragment self, FloatsKey a0) -> bool
6001 has_attribute(Fragment self, IntsKey a0) -> bool
6002 has_attribute(Fragment self, StringKey a0) -> bool
6003 has_attribute(Fragment self, ParticleIndexKey a0) -> bool
6004 has_attribute(Fragment self, ObjectKey a0) -> bool
6005 has_attribute(Fragment self, SparseFloatKey a0) -> bool
6006 has_attribute(Fragment self, SparseIntKey a0) -> bool
6007 has_attribute(Fragment self, SparseStringKey a0) -> bool
6008 has_attribute(Fragment self, SparseParticleIndexKey a0) -> bool
6010 return _IMP_atom.Fragment_has_attribute(self, *args)
6012 def get_derivative(self, a0):
6013 r"""get_derivative(Fragment self, FloatKey a0) -> double"""
6014 return _IMP_atom.Fragment_get_derivative(self, a0)
6017 r"""get_name(Fragment self) -> std::string"""
6018 return _IMP_atom.Fragment_get_name(self)
6020 def clear_caches(self):
6021 r"""clear_caches(Fragment self)"""
6022 return _IMP_atom.Fragment_clear_caches(self)
6024 def set_name(self, a0):
6025 r"""set_name(Fragment self, std::string a0)"""
6026 return _IMP_atom.Fragment_set_name(self, a0)
6029 r"""set_check_level(Fragment self, IMP::CheckLevel a0)"""
6030 return _IMP_atom.Fragment_set_check_level(self, a0)
6032 def add_to_derivative(self, a0, a1, a2):
6033 r"""add_to_derivative(Fragment self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
6034 return _IMP_atom.Fragment_add_to_derivative(self, a0, a1, a2)
6036 def set_is_optimized(self, a0, a1):
6037 r"""set_is_optimized(Fragment self, FloatKey a0, bool a1)"""
6038 return _IMP_atom.Fragment_set_is_optimized(self, a0, a1)
6040 def get_is_optimized(self, a0):
6041 r"""get_is_optimized(Fragment self, FloatKey a0) -> bool"""
6042 return _IMP_atom.Fragment_get_is_optimized(self, a0)
6045 r"""get_check_level(Fragment self) -> IMP::CheckLevel"""
6046 return _IMP_atom.Fragment_get_check_level(self)
6048 def __eq__(self, *args):
6050 __eq__(Fragment self, Fragment o) -> bool
6051 __eq__(Fragment self, Particle d) -> bool
6053 return _IMP_atom.Fragment___eq__(self, *args)
6055 def __ne__(self, *args):
6057 __ne__(Fragment self, Fragment o) -> bool
6058 __ne__(Fragment self, Particle d) -> bool
6060 return _IMP_atom.Fragment___ne__(self, *args)
6062 def __le__(self, *args):
6064 __le__(Fragment self, Fragment o) -> bool
6065 __le__(Fragment self, Particle d) -> bool
6067 return _IMP_atom.Fragment___le__(self, *args)
6069 def __lt__(self, *args):
6071 __lt__(Fragment self, Fragment o) -> bool
6072 __lt__(Fragment self, Particle d) -> bool
6074 return _IMP_atom.Fragment___lt__(self, *args)
6076 def __ge__(self, *args):
6078 __ge__(Fragment self, Fragment o) -> bool
6079 __ge__(Fragment self, Particle d) -> bool
6081 return _IMP_atom.Fragment___ge__(self, *args)
6083 def __gt__(self, *args):
6085 __gt__(Fragment self, Fragment o) -> bool
6086 __gt__(Fragment self, Particle d) -> bool
6088 return _IMP_atom.Fragment___gt__(self, *args)
6091 r"""__hash__(Fragment self) -> std::size_t"""
6092 return _IMP_atom.Fragment___hash__(self)
6095 r"""__str__(Fragment self) -> std::string"""
6096 return _IMP_atom.Fragment___str__(self)
6099 r"""__repr__(Fragment self) -> std::string"""
6100 return _IMP_atom.Fragment___repr__(self)
6102 def _get_as_binary(self):
6103 r"""_get_as_binary(Fragment self) -> PyObject *"""
6104 return _IMP_atom.Fragment__get_as_binary(self)
6106 def _set_from_binary(self, p):
6107 r"""_set_from_binary(Fragment self, PyObject * p)"""
6108 return _IMP_atom.Fragment__set_from_binary(self, p)
6110 def __getstate__(self):
6111 p = self._get_as_binary()
6112 if len(self.__dict__) > 1:
6113 d = self.__dict__.copy()
6118 def __setstate__(self, p):
6119 if not hasattr(self,
'this'):
6121 if isinstance(p, tuple):
6123 self.__dict__.update(d)
6124 return self._set_from_binary(p)
6126 __swig_destroy__ = _IMP_atom.delete_Fragment
6129 _IMP_atom.Fragment_swigregister(Fragment)
6131 r"""Proxy of C++ IMP::atom::StereochemistryPairFilter class."""
6133 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6136 r"""__init__(StereochemistryPairFilter self) -> StereochemistryPairFilter"""
6137 _IMP_atom.StereochemistryPairFilter_swiginit(self, _IMP_atom.new_StereochemistryPairFilter())
6139 def set_bonds(self, bonds):
6140 r"""set_bonds(StereochemistryPairFilter self, IMP::Particles const & bonds)"""
6141 return _IMP_atom.StereochemistryPairFilter_set_bonds(self, bonds)
6143 def set_angles(self, angles):
6144 r"""set_angles(StereochemistryPairFilter self, IMP::Particles const & angles)"""
6145 return _IMP_atom.StereochemistryPairFilter_set_angles(self, angles)
6147 def set_dihedrals(self, dihedrals):
6148 r"""set_dihedrals(StereochemistryPairFilter self, IMP::Particles const & dihedrals)"""
6149 return _IMP_atom.StereochemistryPairFilter_set_dihedrals(self, dihedrals)
6151 def do_get_inputs(self, m, pis):
6152 r"""do_get_inputs(StereochemistryPairFilter self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6153 return _IMP_atom.StereochemistryPairFilter_do_get_inputs(self, m, pis)
6155 def get_value(self, *args):
6157 get_value(StereochemistryPairFilter self, IMP::ParticlePair const & a) -> int
6158 get_value(StereochemistryPairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
6160 return _IMP_atom.StereochemistryPairFilter_get_value(self, *args)
6162 def get_value_index(self, *args):
6164 get_value_index(StereochemistryPairFilter self, Model m, IMP::ParticleIndexPair const & p) -> int
6165 get_value_index(StereochemistryPairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
6167 return _IMP_atom.StereochemistryPairFilter_get_value_index(self, *args)
6169 def get_version_info(self):
6170 r"""get_version_info(StereochemistryPairFilter self) -> VersionInfo"""
6171 return _IMP_atom.StereochemistryPairFilter_get_version_info(self)
6172 __swig_destroy__ = _IMP_atom.delete_StereochemistryPairFilter
6175 r"""__str__(StereochemistryPairFilter self) -> std::string"""
6176 return _IMP_atom.StereochemistryPairFilter___str__(self)
6179 r"""__repr__(StereochemistryPairFilter self) -> std::string"""
6180 return _IMP_atom.StereochemistryPairFilter___repr__(self)
6184 return _object_cast_to_StereochemistryPairFilter(o)
6188 _IMP_atom.StereochemistryPairFilter_swigregister(StereochemistryPairFilter)
6190 r"""Proxy of C++ IMP::atom::SoapPairFilter class."""
6192 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6194 def __init__(self, library):
6195 r"""__init__(SoapPairFilter self, std::string library) -> SoapPairFilter"""
6196 _IMP_atom.SoapPairFilter_swiginit(self, _IMP_atom.new_SoapPairFilter(library))
6198 def do_get_inputs(self, m, pis):
6199 r"""do_get_inputs(SoapPairFilter self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6200 return _IMP_atom.SoapPairFilter_do_get_inputs(self, m, pis)
6202 def get_value(self, *args):
6204 get_value(SoapPairFilter self, IMP::ParticlePair const & a) -> int
6205 get_value(SoapPairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
6207 return _IMP_atom.SoapPairFilter_get_value(self, *args)
6209 def get_value_index(self, *args):
6211 get_value_index(SoapPairFilter self, Model m, IMP::ParticleIndexPair const & p) -> int
6212 get_value_index(SoapPairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
6214 return _IMP_atom.SoapPairFilter_get_value_index(self, *args)
6216 def get_version_info(self):
6217 r"""get_version_info(SoapPairFilter self) -> VersionInfo"""
6218 return _IMP_atom.SoapPairFilter_get_version_info(self)
6219 __swig_destroy__ = _IMP_atom.delete_SoapPairFilter
6222 r"""__str__(SoapPairFilter self) -> std::string"""
6223 return _IMP_atom.SoapPairFilter___str__(self)
6226 r"""__repr__(SoapPairFilter self) -> std::string"""
6227 return _IMP_atom.SoapPairFilter___repr__(self)
6231 return _object_cast_to_SoapPairFilter(o)
6235 _IMP_atom.SoapPairFilter_swigregister(SoapPairFilter)
6237 r"""Proxy of C++ IMP::atom::Mass class."""
6239 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6242 r"""get_mass(Mass self) -> IMP::Float"""
6243 return _IMP_atom.Mass_get_mass(self)
6245 def set_mass(self, d):
6246 r"""set_mass(Mass self, IMP::Float d)"""
6247 return _IMP_atom.Mass_set_mass(self, d)
6249 def __init__(self, *args):
6251 __init__(Mass self) -> Mass
6252 __init__(Mass self, Model m, ParticleIndex id) -> Mass
6253 __init__(Mass self, _ParticleAdaptor d) -> Mass
6255 _IMP_atom.Mass_swiginit(self, _IMP_atom.new_Mass(*args))
6258 def get_is_setup(*args):
6260 get_is_setup(Model m, ParticleIndex pi) -> bool
6261 get_is_setup(_ParticleAdaptor p) -> bool
6263 return _IMP_atom.Mass_get_is_setup(*args)
6265 def show(self, *args):
6266 r"""show(Mass self, _ostream out=std::cout)"""
6267 return _IMP_atom.Mass_show(self, *args)
6270 def setup_particle(*args):
6272 setup_particle(Model m, ParticleIndex pi, IMP::Float mass) -> Mass
6273 setup_particle(_ParticleAdaptor pa, IMP::Float mass) -> Mass
6274 setup_particle(Model m, ParticleIndex pi, Mass other) -> Mass
6275 setup_particle(_ParticleAdaptor pa, Mass other) -> Mass
6277 return _IMP_atom.Mass_setup_particle(*args)
6281 r"""get_mass_key() -> FloatKey"""
6282 return _IMP_atom.Mass_get_mass_key()
6284 def add_attribute(self, *args):
6286 add_attribute(Mass self, FloatKey k, IMP::Float v, bool opt)
6287 add_attribute(Mass self, FloatKey a0, IMP::Float a1)
6288 add_attribute(Mass self, IntKey a0, IMP::Int a1)
6289 add_attribute(Mass self, FloatsKey a0, IMP::Floats a1)
6290 add_attribute(Mass self, IntsKey a0, IMP::Ints a1)
6291 add_attribute(Mass self, StringKey a0, IMP::String a1)
6292 add_attribute(Mass self, ParticleIndexKey a0, Particle a1)
6293 add_attribute(Mass self, ObjectKey a0, Object a1)
6294 add_attribute(Mass self, SparseFloatKey a0, IMP::Float a1)
6295 add_attribute(Mass self, SparseIntKey a0, IMP::Int a1)
6296 add_attribute(Mass self, SparseStringKey a0, IMP::String a1)
6297 add_attribute(Mass self, SparseParticleIndexKey a0, ParticleIndex a1)
6299 return _IMP_atom.Mass_add_attribute(self, *args)
6301 def get_value(self, *args):
6303 get_value(Mass self, FloatKey a0) -> IMP::Float
6304 get_value(Mass self, IntKey a0) -> IMP::Int
6305 get_value(Mass self, FloatsKey a0) -> IMP::Floats
6306 get_value(Mass self, IntsKey a0) -> IMP::Ints
6307 get_value(Mass self, StringKey a0) -> IMP::String
6308 get_value(Mass self, ParticleIndexKey a0) -> Particle
6309 get_value(Mass self, ObjectKey a0) -> Object
6310 get_value(Mass self, SparseFloatKey a0) -> IMP::Float
6311 get_value(Mass self, SparseIntKey a0) -> IMP::Int
6312 get_value(Mass self, SparseStringKey a0) -> IMP::String
6313 get_value(Mass self, SparseParticleIndexKey a0) -> ParticleIndex
6315 return _IMP_atom.Mass_get_value(self, *args)
6317 def set_value(self, *args):
6319 set_value(Mass self, FloatKey a0, IMP::Float a1)
6320 set_value(Mass self, IntKey a0, IMP::Int a1)
6321 set_value(Mass self, FloatsKey a0, IMP::Floats a1)
6322 set_value(Mass self, IntsKey a0, IMP::Ints a1)
6323 set_value(Mass self, StringKey a0, IMP::String a1)
6324 set_value(Mass self, ParticleIndexKey a0, Particle a1)
6325 set_value(Mass self, ObjectKey a0, Object a1)
6326 set_value(Mass self, SparseFloatKey a0, IMP::Float a1)
6327 set_value(Mass self, SparseIntKey a0, IMP::Int a1)
6328 set_value(Mass self, SparseStringKey a0, IMP::String a1)
6329 set_value(Mass self, SparseParticleIndexKey a0, ParticleIndex a1)
6331 return _IMP_atom.Mass_set_value(self, *args)
6333 def remove_attribute(self, *args):
6335 remove_attribute(Mass self, FloatKey a0)
6336 remove_attribute(Mass self, IntKey a0)
6337 remove_attribute(Mass self, FloatsKey a0)
6338 remove_attribute(Mass self, IntsKey a0)
6339 remove_attribute(Mass self, StringKey a0)
6340 remove_attribute(Mass self, ParticleIndexKey a0)
6341 remove_attribute(Mass self, ObjectKey a0)
6342 remove_attribute(Mass self, SparseFloatKey a0)
6343 remove_attribute(Mass self, SparseIntKey a0)
6344 remove_attribute(Mass self, SparseStringKey a0)
6345 remove_attribute(Mass self, SparseParticleIndexKey a0)
6347 return _IMP_atom.Mass_remove_attribute(self, *args)
6349 def has_attribute(self, *args):
6351 has_attribute(Mass self, FloatKey a0) -> bool
6352 has_attribute(Mass self, IntKey a0) -> bool
6353 has_attribute(Mass self, FloatsKey a0) -> bool
6354 has_attribute(Mass self, IntsKey a0) -> bool
6355 has_attribute(Mass self, StringKey a0) -> bool
6356 has_attribute(Mass self, ParticleIndexKey a0) -> bool
6357 has_attribute(Mass self, ObjectKey a0) -> bool
6358 has_attribute(Mass self, SparseFloatKey a0) -> bool
6359 has_attribute(Mass self, SparseIntKey a0) -> bool
6360 has_attribute(Mass self, SparseStringKey a0) -> bool
6361 has_attribute(Mass self, SparseParticleIndexKey a0) -> bool
6363 return _IMP_atom.Mass_has_attribute(self, *args)
6365 def get_derivative(self, a0):
6366 r"""get_derivative(Mass self, FloatKey a0) -> double"""
6367 return _IMP_atom.Mass_get_derivative(self, a0)
6370 r"""get_name(Mass self) -> std::string"""
6371 return _IMP_atom.Mass_get_name(self)
6373 def clear_caches(self):
6374 r"""clear_caches(Mass self)"""
6375 return _IMP_atom.Mass_clear_caches(self)
6377 def set_name(self, a0):
6378 r"""set_name(Mass self, std::string a0)"""
6379 return _IMP_atom.Mass_set_name(self, a0)
6382 r"""set_check_level(Mass self, IMP::CheckLevel a0)"""
6383 return _IMP_atom.Mass_set_check_level(self, a0)
6385 def add_to_derivative(self, a0, a1, a2):
6386 r"""add_to_derivative(Mass self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
6387 return _IMP_atom.Mass_add_to_derivative(self, a0, a1, a2)
6389 def set_is_optimized(self, a0, a1):
6390 r"""set_is_optimized(Mass self, FloatKey a0, bool a1)"""
6391 return _IMP_atom.Mass_set_is_optimized(self, a0, a1)
6393 def get_is_optimized(self, a0):
6394 r"""get_is_optimized(Mass self, FloatKey a0) -> bool"""
6395 return _IMP_atom.Mass_get_is_optimized(self, a0)
6398 r"""get_check_level(Mass self) -> IMP::CheckLevel"""
6399 return _IMP_atom.Mass_get_check_level(self)
6401 def __eq__(self, *args):
6403 __eq__(Mass self, Mass o) -> bool
6404 __eq__(Mass self, Particle d) -> bool
6406 return _IMP_atom.Mass___eq__(self, *args)
6408 def __ne__(self, *args):
6410 __ne__(Mass self, Mass o) -> bool
6411 __ne__(Mass self, Particle d) -> bool
6413 return _IMP_atom.Mass___ne__(self, *args)
6415 def __le__(self, *args):
6417 __le__(Mass self, Mass o) -> bool
6418 __le__(Mass self, Particle d) -> bool
6420 return _IMP_atom.Mass___le__(self, *args)
6422 def __lt__(self, *args):
6424 __lt__(Mass self, Mass o) -> bool
6425 __lt__(Mass self, Particle d) -> bool
6427 return _IMP_atom.Mass___lt__(self, *args)
6429 def __ge__(self, *args):
6431 __ge__(Mass self, Mass o) -> bool
6432 __ge__(Mass self, Particle d) -> bool
6434 return _IMP_atom.Mass___ge__(self, *args)
6436 def __gt__(self, *args):
6438 __gt__(Mass self, Mass o) -> bool
6439 __gt__(Mass self, Particle d) -> bool
6441 return _IMP_atom.Mass___gt__(self, *args)
6444 r"""__hash__(Mass self) -> std::size_t"""
6445 return _IMP_atom.Mass___hash__(self)
6448 r"""__str__(Mass self) -> std::string"""
6449 return _IMP_atom.Mass___str__(self)
6452 r"""__repr__(Mass self) -> std::string"""
6453 return _IMP_atom.Mass___repr__(self)
6455 def _get_as_binary(self):
6456 r"""_get_as_binary(Mass self) -> PyObject *"""
6457 return _IMP_atom.Mass__get_as_binary(self)
6459 def _set_from_binary(self, p):
6460 r"""_set_from_binary(Mass self, PyObject * p)"""
6461 return _IMP_atom.Mass__set_from_binary(self, p)
6463 def __getstate__(self):
6464 p = self._get_as_binary()
6465 if len(self.__dict__) > 1:
6466 d = self.__dict__.copy()
6471 def __setstate__(self, p):
6472 if not hasattr(self,
'this'):
6474 if isinstance(p, tuple):
6476 self.__dict__.update(d)
6477 return self._set_from_binary(p)
6479 __swig_destroy__ = _IMP_atom.delete_Mass
6482 _IMP_atom.Mass_swigregister(Mass)
6484 r"""Proxy of C++ IMP::atom::BondedPairFilter class."""
6486 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6489 r"""__init__(BondedPairFilter self) -> BondedPairFilter"""
6490 _IMP_atom.BondedPairFilter_swiginit(self, _IMP_atom.new_BondedPairFilter())
6492 def do_get_inputs(self, m, pis):
6493 r"""do_get_inputs(BondedPairFilter self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6494 return _IMP_atom.BondedPairFilter_do_get_inputs(self, m, pis)
6496 def get_value(self, *args):
6498 get_value(BondedPairFilter self, IMP::ParticlePair const & a) -> int
6499 get_value(BondedPairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
6501 return _IMP_atom.BondedPairFilter_get_value(self, *args)
6503 def get_value_index(self, *args):
6505 get_value_index(BondedPairFilter self, Model m, IMP::ParticleIndexPair const & p) -> int
6506 get_value_index(BondedPairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
6508 return _IMP_atom.BondedPairFilter_get_value_index(self, *args)
6510 def get_version_info(self):
6511 r"""get_version_info(BondedPairFilter self) -> VersionInfo"""
6512 return _IMP_atom.BondedPairFilter_get_version_info(self)
6513 __swig_destroy__ = _IMP_atom.delete_BondedPairFilter
6516 r"""__str__(BondedPairFilter self) -> std::string"""
6517 return _IMP_atom.BondedPairFilter___str__(self)
6520 r"""__repr__(BondedPairFilter self) -> std::string"""
6521 return _IMP_atom.BondedPairFilter___repr__(self)
6525 return _object_cast_to_BondedPairFilter(o)
6529 _IMP_atom.BondedPairFilter_swigregister(BondedPairFilter)
6531 r"""Proxy of C++ IMP::atom::Mol2Selector class."""
6533 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6535 def __init__(self, *args, **kwargs):
6536 raise AttributeError(
"No constructor defined - class is abstract")
6538 def get_is_selected(self, atom_line):
6539 r"""get_is_selected(Mol2Selector self, std::string const & atom_line) -> bool"""
6540 return _IMP_atom.Mol2Selector_get_is_selected(self, atom_line)
6541 __swig_destroy__ = _IMP_atom.delete_Mol2Selector
6544 r"""__str__(Mol2Selector self) -> std::string"""
6545 return _IMP_atom.Mol2Selector___str__(self)
6548 r"""__repr__(Mol2Selector self) -> std::string"""
6549 return _IMP_atom.Mol2Selector___repr__(self)
6553 return _object_cast_to_Mol2Selector(o)
6557 _IMP_atom.Mol2Selector_swigregister(Mol2Selector)
6558 class AllMol2Selector(Mol2Selector):
6559 r"""Proxy of C++ IMP::atom::AllMol2Selector class."""
6561 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6564 r"""__str__(AllMol2Selector self) -> std::string"""
6565 return _IMP_atom.AllMol2Selector___str__(self)
6568 r"""__repr__(AllMol2Selector self) -> std::string"""
6569 return _IMP_atom.AllMol2Selector___repr__(self)
6573 return _object_cast_to_AllMol2Selector(o)
6577 r"""__init__(AllMol2Selector self) -> AllMol2Selector"""
6578 _IMP_atom.AllMol2Selector_swiginit(self, _IMP_atom.new_AllMol2Selector())
6579 __swig_destroy__ = _IMP_atom.delete_AllMol2Selector
6582 _IMP_atom.AllMol2Selector_swigregister(AllMol2Selector)
6583 class NonHydrogenMol2Selector(Mol2Selector):
6584 r"""Proxy of C++ IMP::atom::NonHydrogenMol2Selector class."""
6586 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6589 r"""__str__(NonHydrogenMol2Selector self) -> std::string"""
6590 return _IMP_atom.NonHydrogenMol2Selector___str__(self)
6593 r"""__repr__(NonHydrogenMol2Selector self) -> std::string"""
6594 return _IMP_atom.NonHydrogenMol2Selector___repr__(self)
6598 return _object_cast_to_NonHydrogenMol2Selector(o)
6602 r"""__init__(NonHydrogenMol2Selector self) -> NonHydrogenMol2Selector"""
6603 _IMP_atom.NonHydrogenMol2Selector_swiginit(self, _IMP_atom.new_NonHydrogenMol2Selector())
6604 __swig_destroy__ = _IMP_atom.delete_NonHydrogenMol2Selector
6607 _IMP_atom.NonHydrogenMol2Selector_swigregister(NonHydrogenMol2Selector)
6609 def read_mol2(mol2_file, model, mol2sel=None):
6610 r"""read_mol2(TextInput mol2_file, Model model, Mol2Selector mol2sel=None) -> Hierarchy"""
6611 return _IMP_atom.read_mol2(mol2_file, model, mol2sel)
6614 r"""write_mol2(Hierarchy rhd, TextOutput file_name)"""
6615 return _IMP_atom.write_mol2(rhd, file_name)
6617 r"""Proxy of C++ IMP::atom::SecondaryStructureResidue class."""
6619 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6621 def __init__(self, *args):
6623 __init__(SecondaryStructureResidue self) -> SecondaryStructureResidue
6624 __init__(SecondaryStructureResidue self, Model m, ParticleIndex id) -> SecondaryStructureResidue
6625 __init__(SecondaryStructureResidue self, _ParticleAdaptor d) -> SecondaryStructureResidue
6627 _IMP_atom.SecondaryStructureResidue_swiginit(self, _IMP_atom.new_SecondaryStructureResidue(*args))
6629 def show(self, *args):
6630 r"""show(SecondaryStructureResidue self, _ostream out=std::cout)"""
6631 return _IMP_atom.SecondaryStructureResidue_show(self, *args)
6634 def setup_particle(*args):
6636 setup_particle(Model m, ParticleIndex pi, IMP::Float prob_helix, IMP::Float prob_strand, IMP::Float prob_coil) -> SecondaryStructureResidue
6637 setup_particle(_ParticleAdaptor pa, IMP::Float prob_helix, IMP::Float prob_strand, IMP::Float prob_coil) -> SecondaryStructureResidue
6638 setup_particle(Particle res_p) -> SecondaryStructureResidue
6640 return _IMP_atom.SecondaryStructureResidue_setup_particle(*args)
6643 def get_is_setup(*args):
6645 get_is_setup(_ParticleAdaptor p) -> bool
6646 get_is_setup(Model m, ParticleIndex pi) -> bool
6648 return _IMP_atom.SecondaryStructureResidue_get_is_setup(*args)
6650 def get_particle(self):
6651 r"""get_particle(SecondaryStructureResidue self) -> Particle"""
6652 return _IMP_atom.SecondaryStructureResidue_get_particle(self)
6654 def get_all_probabilities(self):
6655 r"""get_all_probabilities(SecondaryStructureResidue self) -> IMP::Floats"""
6656 return _IMP_atom.SecondaryStructureResidue_get_all_probabilities(self)
6658 def get_prob_helix(self):
6659 r"""get_prob_helix(SecondaryStructureResidue self) -> IMP::Float"""
6660 return _IMP_atom.SecondaryStructureResidue_get_prob_helix(self)
6662 def set_prob_helix(self, t):
6663 r"""set_prob_helix(SecondaryStructureResidue self, IMP::Float t)"""
6664 return _IMP_atom.SecondaryStructureResidue_set_prob_helix(self, t)
6666 def get_prob_strand(self):
6667 r"""get_prob_strand(SecondaryStructureResidue self) -> IMP::Float"""
6668 return _IMP_atom.SecondaryStructureResidue_get_prob_strand(self)
6670 def set_prob_strand(self, t):
6671 r"""set_prob_strand(SecondaryStructureResidue self, IMP::Float t)"""
6672 return _IMP_atom.SecondaryStructureResidue_set_prob_strand(self, t)
6674 def get_prob_coil(self):
6675 r"""get_prob_coil(SecondaryStructureResidue self) -> IMP::Float"""
6676 return _IMP_atom.SecondaryStructureResidue_get_prob_coil(self)
6678 def set_prob_coil(self, t):
6679 r"""set_prob_coil(SecondaryStructureResidue self, IMP::Float t)"""
6680 return _IMP_atom.SecondaryStructureResidue_set_prob_coil(self, t)
6683 def get_prob_helix_key():
6684 r"""get_prob_helix_key() -> FloatKey"""
6685 return _IMP_atom.SecondaryStructureResidue_get_prob_helix_key()
6688 def get_prob_strand_key():
6689 r"""get_prob_strand_key() -> FloatKey"""
6690 return _IMP_atom.SecondaryStructureResidue_get_prob_strand_key()
6693 def get_prob_coil_key():
6694 r"""get_prob_coil_key() -> FloatKey"""
6695 return _IMP_atom.SecondaryStructureResidue_get_prob_coil_key()
6697 def add_attribute(self, *args):
6699 add_attribute(SecondaryStructureResidue self, FloatKey k, IMP::Float v, bool opt)
6700 add_attribute(SecondaryStructureResidue self, FloatKey a0, IMP::Float a1)
6701 add_attribute(SecondaryStructureResidue self, IntKey a0, IMP::Int a1)
6702 add_attribute(SecondaryStructureResidue self, FloatsKey a0, IMP::Floats a1)
6703 add_attribute(SecondaryStructureResidue self, IntsKey a0, IMP::Ints a1)
6704 add_attribute(SecondaryStructureResidue self, StringKey a0, IMP::String a1)
6705 add_attribute(SecondaryStructureResidue self, ParticleIndexKey a0, Particle a1)
6706 add_attribute(SecondaryStructureResidue self, ObjectKey a0, Object a1)
6707 add_attribute(SecondaryStructureResidue self, SparseFloatKey a0, IMP::Float a1)
6708 add_attribute(SecondaryStructureResidue self, SparseIntKey a0, IMP::Int a1)
6709 add_attribute(SecondaryStructureResidue self, SparseStringKey a0, IMP::String a1)
6710 add_attribute(SecondaryStructureResidue self, SparseParticleIndexKey a0, ParticleIndex a1)
6712 return _IMP_atom.SecondaryStructureResidue_add_attribute(self, *args)
6714 def get_value(self, *args):
6716 get_value(SecondaryStructureResidue self, FloatKey a0) -> IMP::Float
6717 get_value(SecondaryStructureResidue self, IntKey a0) -> IMP::Int
6718 get_value(SecondaryStructureResidue self, FloatsKey a0) -> IMP::Floats
6719 get_value(SecondaryStructureResidue self, IntsKey a0) -> IMP::Ints
6720 get_value(SecondaryStructureResidue self, StringKey a0) -> IMP::String
6721 get_value(SecondaryStructureResidue self, ParticleIndexKey a0) -> Particle
6722 get_value(SecondaryStructureResidue self, ObjectKey a0) -> Object
6723 get_value(SecondaryStructureResidue self, SparseFloatKey a0) -> IMP::Float
6724 get_value(SecondaryStructureResidue self, SparseIntKey a0) -> IMP::Int
6725 get_value(SecondaryStructureResidue self, SparseStringKey a0) -> IMP::String
6726 get_value(SecondaryStructureResidue self, SparseParticleIndexKey a0) -> ParticleIndex
6728 return _IMP_atom.SecondaryStructureResidue_get_value(self, *args)
6730 def set_value(self, *args):
6732 set_value(SecondaryStructureResidue self, FloatKey a0, IMP::Float a1)
6733 set_value(SecondaryStructureResidue self, IntKey a0, IMP::Int a1)
6734 set_value(SecondaryStructureResidue self, FloatsKey a0, IMP::Floats a1)
6735 set_value(SecondaryStructureResidue self, IntsKey a0, IMP::Ints a1)
6736 set_value(SecondaryStructureResidue self, StringKey a0, IMP::String a1)
6737 set_value(SecondaryStructureResidue self, ParticleIndexKey a0, Particle a1)
6738 set_value(SecondaryStructureResidue self, ObjectKey a0, Object a1)
6739 set_value(SecondaryStructureResidue self, SparseFloatKey a0, IMP::Float a1)
6740 set_value(SecondaryStructureResidue self, SparseIntKey a0, IMP::Int a1)
6741 set_value(SecondaryStructureResidue self, SparseStringKey a0, IMP::String a1)
6742 set_value(SecondaryStructureResidue self, SparseParticleIndexKey a0, ParticleIndex a1)
6744 return _IMP_atom.SecondaryStructureResidue_set_value(self, *args)
6746 def remove_attribute(self, *args):
6748 remove_attribute(SecondaryStructureResidue self, FloatKey a0)
6749 remove_attribute(SecondaryStructureResidue self, IntKey a0)
6750 remove_attribute(SecondaryStructureResidue self, FloatsKey a0)
6751 remove_attribute(SecondaryStructureResidue self, IntsKey a0)
6752 remove_attribute(SecondaryStructureResidue self, StringKey a0)
6753 remove_attribute(SecondaryStructureResidue self, ParticleIndexKey a0)
6754 remove_attribute(SecondaryStructureResidue self, ObjectKey a0)
6755 remove_attribute(SecondaryStructureResidue self, SparseFloatKey a0)
6756 remove_attribute(SecondaryStructureResidue self, SparseIntKey a0)
6757 remove_attribute(SecondaryStructureResidue self, SparseStringKey a0)
6758 remove_attribute(SecondaryStructureResidue self, SparseParticleIndexKey a0)
6760 return _IMP_atom.SecondaryStructureResidue_remove_attribute(self, *args)
6762 def has_attribute(self, *args):
6764 has_attribute(SecondaryStructureResidue self, FloatKey a0) -> bool
6765 has_attribute(SecondaryStructureResidue self, IntKey a0) -> bool
6766 has_attribute(SecondaryStructureResidue self, FloatsKey a0) -> bool
6767 has_attribute(SecondaryStructureResidue self, IntsKey a0) -> bool
6768 has_attribute(SecondaryStructureResidue self, StringKey a0) -> bool
6769 has_attribute(SecondaryStructureResidue self, ParticleIndexKey a0) -> bool
6770 has_attribute(SecondaryStructureResidue self, ObjectKey a0) -> bool
6771 has_attribute(SecondaryStructureResidue self, SparseFloatKey a0) -> bool
6772 has_attribute(SecondaryStructureResidue self, SparseIntKey a0) -> bool
6773 has_attribute(SecondaryStructureResidue self, SparseStringKey a0) -> bool
6774 has_attribute(SecondaryStructureResidue self, SparseParticleIndexKey a0) -> bool
6776 return _IMP_atom.SecondaryStructureResidue_has_attribute(self, *args)
6778 def get_derivative(self, a0):
6779 r"""get_derivative(SecondaryStructureResidue self, FloatKey a0) -> double"""
6780 return _IMP_atom.SecondaryStructureResidue_get_derivative(self, a0)
6783 r"""get_name(SecondaryStructureResidue self) -> std::string"""
6784 return _IMP_atom.SecondaryStructureResidue_get_name(self)
6786 def clear_caches(self):
6787 r"""clear_caches(SecondaryStructureResidue self)"""
6788 return _IMP_atom.SecondaryStructureResidue_clear_caches(self)
6790 def set_name(self, a0):
6791 r"""set_name(SecondaryStructureResidue self, std::string a0)"""
6792 return _IMP_atom.SecondaryStructureResidue_set_name(self, a0)
6795 r"""set_check_level(SecondaryStructureResidue self, IMP::CheckLevel a0)"""
6796 return _IMP_atom.SecondaryStructureResidue_set_check_level(self, a0)
6798 def add_to_derivative(self, a0, a1, a2):
6799 r"""add_to_derivative(SecondaryStructureResidue self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
6800 return _IMP_atom.SecondaryStructureResidue_add_to_derivative(self, a0, a1, a2)
6802 def set_is_optimized(self, a0, a1):
6803 r"""set_is_optimized(SecondaryStructureResidue self, FloatKey a0, bool a1)"""
6804 return _IMP_atom.SecondaryStructureResidue_set_is_optimized(self, a0, a1)
6806 def get_is_optimized(self, a0):
6807 r"""get_is_optimized(SecondaryStructureResidue self, FloatKey a0) -> bool"""
6808 return _IMP_atom.SecondaryStructureResidue_get_is_optimized(self, a0)
6811 r"""get_check_level(SecondaryStructureResidue self) -> IMP::CheckLevel"""
6812 return _IMP_atom.SecondaryStructureResidue_get_check_level(self)
6814 def __eq__(self, *args):
6816 __eq__(SecondaryStructureResidue self, SecondaryStructureResidue o) -> bool
6817 __eq__(SecondaryStructureResidue self, Particle d) -> bool
6819 return _IMP_atom.SecondaryStructureResidue___eq__(self, *args)
6821 def __ne__(self, *args):
6823 __ne__(SecondaryStructureResidue self, SecondaryStructureResidue o) -> bool
6824 __ne__(SecondaryStructureResidue self, Particle d) -> bool
6826 return _IMP_atom.SecondaryStructureResidue___ne__(self, *args)
6828 def __le__(self, *args):
6830 __le__(SecondaryStructureResidue self, SecondaryStructureResidue o) -> bool
6831 __le__(SecondaryStructureResidue self, Particle d) -> bool
6833 return _IMP_atom.SecondaryStructureResidue___le__(self, *args)
6835 def __lt__(self, *args):
6837 __lt__(SecondaryStructureResidue self, SecondaryStructureResidue o) -> bool
6838 __lt__(SecondaryStructureResidue self, Particle d) -> bool
6840 return _IMP_atom.SecondaryStructureResidue___lt__(self, *args)
6842 def __ge__(self, *args):
6844 __ge__(SecondaryStructureResidue self, SecondaryStructureResidue o) -> bool
6845 __ge__(SecondaryStructureResidue self, Particle d) -> bool
6847 return _IMP_atom.SecondaryStructureResidue___ge__(self, *args)
6849 def __gt__(self, *args):
6851 __gt__(SecondaryStructureResidue self, SecondaryStructureResidue o) -> bool
6852 __gt__(SecondaryStructureResidue self, Particle d) -> bool
6854 return _IMP_atom.SecondaryStructureResidue___gt__(self, *args)
6857 r"""__hash__(SecondaryStructureResidue self) -> std::size_t"""
6858 return _IMP_atom.SecondaryStructureResidue___hash__(self)
6861 r"""__str__(SecondaryStructureResidue self) -> std::string"""
6862 return _IMP_atom.SecondaryStructureResidue___str__(self)
6865 r"""__repr__(SecondaryStructureResidue self) -> std::string"""
6866 return _IMP_atom.SecondaryStructureResidue___repr__(self)
6868 def _get_as_binary(self):
6869 r"""_get_as_binary(SecondaryStructureResidue self) -> PyObject *"""
6870 return _IMP_atom.SecondaryStructureResidue__get_as_binary(self)
6872 def _set_from_binary(self, p):
6873 r"""_set_from_binary(SecondaryStructureResidue self, PyObject * p)"""
6874 return _IMP_atom.SecondaryStructureResidue__set_from_binary(self, p)
6876 def __getstate__(self):
6877 p = self._get_as_binary()
6878 if len(self.__dict__) > 1:
6879 d = self.__dict__.copy()
6884 def __setstate__(self, p):
6885 if not hasattr(self,
'this'):
6887 if isinstance(p, tuple):
6889 self.__dict__.update(d)
6890 return self._set_from_binary(p)
6892 __swig_destroy__ = _IMP_atom.delete_SecondaryStructureResidue
6895 _IMP_atom.SecondaryStructureResidue_swigregister(SecondaryStructureResidue)
6898 r"""setup_coarse_secondary_structure_residue(IMP::Particles const & ssr_ps, Model mdl, bool winner_takes_all_per_res=False) -> SecondaryStructureResidue"""
6899 return _IMP_atom.setup_coarse_secondary_structure_residue(ssr_ps, mdl, winner_takes_all_per_res)
6902 r"""setup_coarse_secondary_structure_residues(IMP::Particles const & ssr_ps, Model mdl, int coarse_factor, int start_res_num, bool winner_takes_all_per_res=False) -> IMP::atom::SecondaryStructureResidues"""
6903 return _IMP_atom.setup_coarse_secondary_structure_residues(ssr_ps, mdl, coarse_factor, start_res_num, winner_takes_all_per_res)
6906 r"""get_secondary_structure_match_score(SecondaryStructureResidue ssr1, SecondaryStructureResidue ssr2) -> IMP::Float"""
6907 return _IMP_atom.get_secondary_structure_match_score(ssr1, ssr2)
6909 def read_psipred(*args):
6911 read_psipred(TextInput inf, Model mdl) -> IMP::atom::SecondaryStructureResidues
6912 read_psipred(TextInput inf, IMP::Particles ps) -> IMP::atom::SecondaryStructureResidues
6914 return _IMP_atom.read_psipred(*args)
6916 r"""Proxy of C++ IMP::score_functor::DistancePairScore< IMP::score_functor::Dope > class."""
6918 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6919 __repr__ = _swig_repr
6921 def __init__(self, *args):
6923 __init__(_ADopeBase self, Dope t0, std::string name="FunctorDistancePairScore %1%") -> _ADopeBase
6924 __init__(_ADopeBase self) -> _ADopeBase
6926 _IMP_atom._ADopeBase_swiginit(self, _IMP_atom.new__ADopeBase(*args))
6928 def do_get_inputs(self, m, pis):
6929 r"""do_get_inputs(_ADopeBase self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6930 return _IMP_atom._ADopeBase_do_get_inputs(self, m, pis)
6932 def get_score_functor(self):
6933 r"""get_score_functor(_ADopeBase self) -> Dope"""
6934 return _IMP_atom._ADopeBase_get_score_functor(self)
6936 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
6937 r"""evaluate_indexes(_ADopeBase self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
6938 return _IMP_atom._ADopeBase_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
6940 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
6941 r"""evaluate_indexes_scores(_ADopeBase self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
6942 return _IMP_atom._ADopeBase_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
6944 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
6945 r"""evaluate_indexes_delta(_ADopeBase self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
6946 return _IMP_atom._ADopeBase_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
6948 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
6949 r"""evaluate_if_good_indexes(_ADopeBase self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
6950 return _IMP_atom._ADopeBase_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
6952 def get_version_info(self):
6953 r"""get_version_info(_ADopeBase self) -> VersionInfo"""
6954 return _IMP_atom._ADopeBase_get_version_info(self)
6955 __swig_destroy__ = _IMP_atom.delete__ADopeBase
6958 _IMP_atom._ADopeBase_swigregister(_ADopeBase)
6960 r"""Proxy of C++ IMP::score_functor::DistancePairScore< IMP::score_functor::Statistical< IMP::atom::DopeType,false,true,false > > class."""
6962 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6963 __repr__ = _swig_repr
6965 def __init__(self, *args):
6967 __init__(_BDopeBase self, IMP::score_functor::DistancePairScore< IMP::score_functor::Statistical< IMP::atom::DopeType,false,true,false > >::DistanceScore const & t0, std::string name="FunctorDistancePairScore %1%") -> _BDopeBase
6968 __init__(_BDopeBase self) -> _BDopeBase
6970 _IMP_atom._BDopeBase_swiginit(self, _IMP_atom.new__BDopeBase(*args))
6972 def do_get_inputs(self, m, pis):
6973 r"""do_get_inputs(_BDopeBase self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6974 return _IMP_atom._BDopeBase_do_get_inputs(self, m, pis)
6976 def get_score_functor(self):
6977 r"""get_score_functor(_BDopeBase self) -> _DopeBase"""
6978 return _IMP_atom._BDopeBase_get_score_functor(self)
6980 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
6981 r"""evaluate_indexes(_BDopeBase self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
6982 return _IMP_atom._BDopeBase_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
6984 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
6985 r"""evaluate_indexes_scores(_BDopeBase self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
6986 return _IMP_atom._BDopeBase_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
6988 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
6989 r"""evaluate_indexes_delta(_BDopeBase self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
6990 return _IMP_atom._BDopeBase_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
6992 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
6993 r"""evaluate_if_good_indexes(_BDopeBase self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
6994 return _IMP_atom._BDopeBase_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
6996 def get_version_info(self):
6997 r"""get_version_info(_BDopeBase self) -> VersionInfo"""
6998 return _IMP_atom._BDopeBase_get_version_info(self)
6999 __swig_destroy__ = _IMP_atom.delete__BDopeBase
7002 _IMP_atom._BDopeBase_swigregister(_BDopeBase)
7004 r"""Proxy of C++ IMP::score_functor::DistancePairScore< IMP::score_functor::LoopStatistical > class."""
7006 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7007 __repr__ = _swig_repr
7009 def __init__(self, *args):
7011 __init__(_ALoopStatisticalBase self, LoopStatistical t0, std::string name="FunctorDistancePairScore %1%") -> _ALoopStatisticalBase
7012 __init__(_ALoopStatisticalBase self) -> _ALoopStatisticalBase
7014 _IMP_atom._ALoopStatisticalBase_swiginit(self, _IMP_atom.new__ALoopStatisticalBase(*args))
7016 def do_get_inputs(self, m, pis):
7017 r"""do_get_inputs(_ALoopStatisticalBase self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7018 return _IMP_atom._ALoopStatisticalBase_do_get_inputs(self, m, pis)
7020 def get_score_functor(self):
7021 r"""get_score_functor(_ALoopStatisticalBase self) -> LoopStatistical"""
7022 return _IMP_atom._ALoopStatisticalBase_get_score_functor(self)
7024 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
7025 r"""evaluate_indexes(_ALoopStatisticalBase self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
7026 return _IMP_atom._ALoopStatisticalBase_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
7028 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
7029 r"""evaluate_indexes_scores(_ALoopStatisticalBase self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
7030 return _IMP_atom._ALoopStatisticalBase_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
7032 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
7033 r"""evaluate_indexes_delta(_ALoopStatisticalBase self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
7034 return _IMP_atom._ALoopStatisticalBase_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
7036 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
7037 r"""evaluate_if_good_indexes(_ALoopStatisticalBase self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
7038 return _IMP_atom._ALoopStatisticalBase_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
7040 def get_version_info(self):
7041 r"""get_version_info(_ALoopStatisticalBase self) -> VersionInfo"""
7042 return _IMP_atom._ALoopStatisticalBase_get_version_info(self)
7043 __swig_destroy__ = _IMP_atom.delete__ALoopStatisticalBase
7046 _IMP_atom._ALoopStatisticalBase_swigregister(_ALoopStatisticalBase)
7048 r"""Proxy of C++ IMP::score_functor::DistancePairScore< IMP::score_functor::Statistical< IMP::atom::LoopStatisticalType,false,true,false > > class."""
7050 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7051 __repr__ = _swig_repr
7053 def __init__(self, *args):
7055 __init__(_BLoopStatisticalBase self, IMP::score_functor::DistancePairScore< IMP::score_functor::Statistical< IMP::atom::LoopStatisticalType,false,true,false > >::DistanceScore const & t0, std::string name="FunctorDistancePairScore %1%") -> _BLoopStatisticalBase
7056 __init__(_BLoopStatisticalBase self) -> _BLoopStatisticalBase
7058 _IMP_atom._BLoopStatisticalBase_swiginit(self, _IMP_atom.new__BLoopStatisticalBase(*args))
7060 def do_get_inputs(self, m, pis):
7061 r"""do_get_inputs(_BLoopStatisticalBase self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7062 return _IMP_atom._BLoopStatisticalBase_do_get_inputs(self, m, pis)
7064 def get_score_functor(self):
7065 r"""get_score_functor(_BLoopStatisticalBase self) -> _LoopStatisticalBase"""
7066 return _IMP_atom._BLoopStatisticalBase_get_score_functor(self)
7068 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
7069 r"""evaluate_indexes(_BLoopStatisticalBase self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
7070 return _IMP_atom._BLoopStatisticalBase_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
7072 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
7073 r"""evaluate_indexes_scores(_BLoopStatisticalBase self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
7074 return _IMP_atom._BLoopStatisticalBase_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
7076 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
7077 r"""evaluate_indexes_delta(_BLoopStatisticalBase self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
7078 return _IMP_atom._BLoopStatisticalBase_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
7080 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
7081 r"""evaluate_if_good_indexes(_BLoopStatisticalBase self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
7082 return _IMP_atom._BLoopStatisticalBase_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
7084 def get_version_info(self):
7085 r"""get_version_info(_BLoopStatisticalBase self) -> VersionInfo"""
7086 return _IMP_atom._BLoopStatisticalBase_get_version_info(self)
7087 __swig_destroy__ = _IMP_atom.delete__BLoopStatisticalBase
7090 _IMP_atom._BLoopStatisticalBase_swigregister(_BLoopStatisticalBase)
7092 r"""Proxy of C++ IMP::score_functor::DistancePairScoreWithCache< IMP::score_functor::OrientedSoap > class."""
7094 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7095 __repr__ = _swig_repr
7097 def __init__(self, *args):
7098 r"""__init__(_OrientedSoapBase self, IMP::score_functor::DistancePairScoreWithCache< IMP::score_functor::OrientedSoap >::DistanceScore const & t0, std::string name="FunctorDistancePairScoreWithCache %1%") -> _OrientedSoapBase"""
7099 _IMP_atom._OrientedSoapBase_swiginit(self, _IMP_atom.new__OrientedSoapBase(*args))
7101 def do_get_inputs(self, m, pis):
7102 r"""do_get_inputs(_OrientedSoapBase self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7103 return _IMP_atom._OrientedSoapBase_do_get_inputs(self, m, pis)
7105 def get_score_functor(self):
7106 r"""get_score_functor(_OrientedSoapBase self) -> IMP::score_functor::OrientedSoap &"""
7107 return _IMP_atom._OrientedSoapBase_get_score_functor(self)
7109 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
7110 r"""evaluate_indexes(_OrientedSoapBase self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
7111 return _IMP_atom._OrientedSoapBase_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
7113 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
7114 r"""evaluate_indexes_scores(_OrientedSoapBase self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
7115 return _IMP_atom._OrientedSoapBase_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
7117 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
7118 r"""evaluate_indexes_delta(_OrientedSoapBase self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
7119 return _IMP_atom._OrientedSoapBase_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
7121 def get_version_info(self):
7122 r"""get_version_info(_OrientedSoapBase self) -> VersionInfo"""
7123 return _IMP_atom._OrientedSoapBase_get_version_info(self)
7124 __swig_destroy__ = _IMP_atom.delete__OrientedSoapBase
7127 _IMP_atom._OrientedSoapBase_swigregister(_OrientedSoapBase)
7129 r"""Proxy of C++ IMP::score_functor::DistancePairScore< score_functor::Statistical< IMP::atom::ProteinLigandType,true,false > > class."""
7131 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7132 __repr__ = _swig_repr
7134 def __init__(self, *args):
7136 __init__(_SPSFTB self, IMP::score_functor::DistancePairScore< IMP::score_functor::Statistical< IMP::atom::ProteinLigandType,true,false > >::DistanceScore const & t0, std::string name="FunctorDistancePairScore %1%") -> _SPSFTB
7137 __init__(_SPSFTB self) -> _SPSFTB
7139 _IMP_atom._SPSFTB_swiginit(self, _IMP_atom.new__SPSFTB(*args))
7141 def do_get_inputs(self, m, pis):
7142 r"""do_get_inputs(_SPSFTB self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7143 return _IMP_atom._SPSFTB_do_get_inputs(self, m, pis)
7145 def get_score_functor(self):
7146 r"""get_score_functor(_SPSFTB self) -> IMP::score_functor::Statistical< IMP::atom::ProteinLigandType,true,false,false > &"""
7147 return _IMP_atom._SPSFTB_get_score_functor(self)
7149 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
7150 r"""evaluate_indexes(_SPSFTB self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
7151 return _IMP_atom._SPSFTB_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
7153 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
7154 r"""evaluate_indexes_scores(_SPSFTB self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
7155 return _IMP_atom._SPSFTB_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
7157 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
7158 r"""evaluate_indexes_delta(_SPSFTB self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
7159 return _IMP_atom._SPSFTB_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
7161 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
7162 r"""evaluate_if_good_indexes(_SPSFTB self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
7163 return _IMP_atom._SPSFTB_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
7165 def get_version_info(self):
7166 r"""get_version_info(_SPSFTB self) -> VersionInfo"""
7167 return _IMP_atom._SPSFTB_get_version_info(self)
7168 __swig_destroy__ = _IMP_atom.delete__SPSFTB
7171 _IMP_atom._SPSFTB_swigregister(_SPSFTB)
7172 class _SPSTF(_SPSFTB):
7173 r"""Proxy of C++ IMP::core::StatisticalPairScore< IMP::atom::ProteinLigandType,true,false > class."""
7175 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7176 __repr__ = _swig_repr
7178 def __init__(self, *args):
7180 __init__(_SPSTF self, IntKey k, double threshold, TextInput data_file) -> _SPSTF
7181 __init__(_SPSTF self, IntKey k, double threshold, TextInput data_file, unsigned int shift) -> _SPSTF
7183 _IMP_atom._SPSTF_swiginit(self, _IMP_atom.new__SPSTF(*args))
7184 __swig_destroy__ = _IMP_atom.delete__SPSTF
7187 _IMP_atom._SPSTF_swigregister(_SPSTF)
7188 class _SPSFT(_BDopeBase):
7189 r"""Proxy of C++ IMP::core::StatisticalPairScore< IMP::atom::DopeType,false,true > class."""
7191 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7192 __repr__ = _swig_repr
7194 def __init__(self, *args):
7196 __init__(_SPSFT self, IntKey k, double threshold, TextInput data_file) -> _SPSFT
7197 __init__(_SPSFT self, IntKey k, double threshold, TextInput data_file, unsigned int shift) -> _SPSFT
7199 _IMP_atom._SPSFT_swiginit(self, _IMP_atom.new__SPSFT(*args))
7200 __swig_destroy__ = _IMP_atom.delete__SPSFT
7203 _IMP_atom._SPSFT_swigregister(_SPSFT)
7204 class _SPSFTL(_BLoopStatisticalBase):
7205 r"""Proxy of C++ IMP::core::StatisticalPairScore< IMP::atom::LoopStatisticalType,false,true > class."""
7207 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7208 __repr__ = _swig_repr
7210 def __init__(self, *args):
7212 __init__(_SPSFTL self, IntKey k, double threshold, TextInput data_file) -> _SPSFTL
7213 __init__(_SPSFTL self, IntKey k, double threshold, TextInput data_file, unsigned int shift) -> _SPSFTL
7215 _IMP_atom._SPSFTL_swiginit(self, _IMP_atom.new__SPSFTL(*args))
7216 __swig_destroy__ = _IMP_atom.delete__SPSFTL
7219 _IMP_atom._SPSFTL_swigregister(_SPSFTL)
7220 class ProteinLigandAtomPairScore(_SPSTF):
7221 r"""Proxy of C++ IMP::atom::ProteinLigandAtomPairScore class."""
7223 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7225 def __init__(self, *args):
7227 __init__(ProteinLigandAtomPairScore self, double threshold=std::numeric_limits< double >::max()) -> ProteinLigandAtomPairScore
7228 __init__(ProteinLigandAtomPairScore self, double threshold, TextInput data_file) -> ProteinLigandAtomPairScore
7230 _IMP_atom.ProteinLigandAtomPairScore_swiginit(self, _IMP_atom.new_ProteinLigandAtomPairScore(*args))
7232 def get_maximum_distance(self):
7233 r"""get_maximum_distance(ProteinLigandAtomPairScore self) -> double"""
7234 return _IMP_atom.ProteinLigandAtomPairScore_get_maximum_distance(self)
7237 r"""__str__(ProteinLigandAtomPairScore self) -> std::string"""
7238 return _IMP_atom.ProteinLigandAtomPairScore___str__(self)
7241 r"""__repr__(ProteinLigandAtomPairScore self) -> std::string"""
7242 return _IMP_atom.ProteinLigandAtomPairScore___repr__(self)
7246 return _object_cast_to_ProteinLigandAtomPairScore(o)
7248 __swig_destroy__ = _IMP_atom.delete_ProteinLigandAtomPairScore
7251 _IMP_atom.ProteinLigandAtomPairScore_swigregister(ProteinLigandAtomPairScore)
7253 r"""Proxy of C++ IMP::atom::ProteinLigandRestraint class."""
7255 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7257 def __init__(self, *args):
7259 __init__(ProteinLigandRestraint self, Hierarchy protein, Hierarchy ligand, double threshold=std::numeric_limits< double >::max()) -> ProteinLigandRestraint
7260 __init__(ProteinLigandRestraint self, Hierarchy protein, Hierarchy ligand, double threshold, TextInput data_file) -> ProteinLigandRestraint
7262 _IMP_atom.ProteinLigandRestraint_swiginit(self, _IMP_atom.new_ProteinLigandRestraint(*args))
7265 r"""__str__(ProteinLigandRestraint self) -> std::string"""
7266 return _IMP_atom.ProteinLigandRestraint___str__(self)
7269 r"""__repr__(ProteinLigandRestraint self) -> std::string"""
7270 return _IMP_atom.ProteinLigandRestraint___repr__(self)
7274 return _object_cast_to_ProteinLigandRestraint(o)
7276 __swig_destroy__ = _IMP_atom.delete_ProteinLigandRestraint
7279 _IMP_atom.ProteinLigandRestraint_swigregister(ProteinLigandRestraint)
7282 r"""add_protein_ligand_score_data(Hierarchy h)"""
7283 return _IMP_atom.add_protein_ligand_score_data(h)
7284 class AtomType(IMP._Value):
7285 r"""Proxy of C++ IMP::Key< 8974343 > class."""
7287 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7289 def __init__(self, *args):
7291 __init__(AtomType self) -> AtomType
7292 __init__(AtomType self, std::string const & c, bool is_implicit_add_permitted=True) -> AtomType
7293 __init__(AtomType self, unsigned int i) -> AtomType
7295 _IMP_atom.AtomType_swiginit(self, _IMP_atom.new_AtomType(*args))
7299 r"""add_key(std::string sc) -> unsigned int"""
7300 return _IMP_atom.AtomType_add_key(sc)
7303 def get_key_exists(sc):
7304 r"""get_key_exists(std::string sc) -> bool"""
7305 return _IMP_atom.AtomType_get_key_exists(sc)
7307 def get_string(self):
7308 r"""get_string(AtomType self) -> std::string const"""
7309 return _IMP_atom.AtomType_get_string(self)
7311 def __cmp__(self, o):
7312 r"""__cmp__(AtomType self, AtomType o) -> int"""
7313 return _IMP_atom.AtomType___cmp__(self, o)
7315 def __eq__(self, o):
7316 r"""__eq__(AtomType self, AtomType o) -> bool"""
7317 return _IMP_atom.AtomType___eq__(self, o)
7319 def __ne__(self, o):
7320 r"""__ne__(AtomType self, AtomType o) -> bool"""
7321 return _IMP_atom.AtomType___ne__(self, o)
7323 def __lt__(self, o):
7324 r"""__lt__(AtomType self, AtomType o) -> bool"""
7325 return _IMP_atom.AtomType___lt__(self, o)
7327 def __gt__(self, o):
7328 r"""__gt__(AtomType self, AtomType o) -> bool"""
7329 return _IMP_atom.AtomType___gt__(self, o)
7331 def __ge__(self, o):
7332 r"""__ge__(AtomType self, AtomType o) -> bool"""
7333 return _IMP_atom.AtomType___ge__(self, o)
7335 def __le__(self, o):
7336 r"""__le__(AtomType self, AtomType o) -> bool"""
7337 return _IMP_atom.AtomType___le__(self, o)
7340 r"""__hash__(AtomType self) -> std::size_t"""
7341 return _IMP_atom.AtomType___hash__(self)
7343 def show(self, *args):
7344 r"""show(AtomType self, _ostream out=std::cout)"""
7345 return _IMP_atom.AtomType_show(self, *args)
7348 def add_alias(old_key, new_name):
7349 r"""add_alias(AtomType old_key, std::string new_name) -> AtomType"""
7350 return _IMP_atom.AtomType_add_alias(old_key, new_name)
7353 def get_number_of_keys():
7354 r"""get_number_of_keys() -> unsigned int"""
7355 return _IMP_atom.AtomType_get_number_of_keys()
7358 r"""get_index(AtomType self) -> unsigned int"""
7359 return _IMP_atom.AtomType_get_index(self)
7363 r"""show_all(_ostream out)"""
7364 return _IMP_atom.AtomType_show_all(out)
7367 def get_all_strings():
7368 r"""get_all_strings() -> IMP::Vector< std::string >"""
7369 return _IMP_atom.AtomType_get_all_strings()
7372 def get_number_unique():
7373 r"""get_number_unique() -> unsigned int"""
7374 return _IMP_atom.AtomType_get_number_unique()
7377 r"""__str__(AtomType self) -> std::string"""
7378 return _IMP_atom.AtomType___str__(self)
7381 r"""__repr__(AtomType self) -> std::string"""
7382 return _IMP_atom.AtomType___repr__(self)
7383 __swig_destroy__ = _IMP_atom.delete_AtomType
7386 _IMP_atom.AtomType_swigregister(AtomType)
7387 class ResidueType(IMP._Value):
7388 r"""Proxy of C++ IMP::Key< 90784334 > class."""
7390 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7392 def __init__(self, *args):
7394 __init__(ResidueType self) -> ResidueType
7395 __init__(ResidueType self, std::string const & c, bool is_implicit_add_permitted=True) -> ResidueType
7396 __init__(ResidueType self, unsigned int i) -> ResidueType
7398 _IMP_atom.ResidueType_swiginit(self, _IMP_atom.new_ResidueType(*args))
7402 r"""add_key(std::string sc) -> unsigned int"""
7403 return _IMP_atom.ResidueType_add_key(sc)
7406 def get_key_exists(sc):
7407 r"""get_key_exists(std::string sc) -> bool"""
7408 return _IMP_atom.ResidueType_get_key_exists(sc)
7410 def get_string(self):
7411 r"""get_string(ResidueType self) -> std::string const"""
7412 return _IMP_atom.ResidueType_get_string(self)
7414 def __cmp__(self, o):
7415 r"""__cmp__(ResidueType self, ResidueType o) -> int"""
7416 return _IMP_atom.ResidueType___cmp__(self, o)
7418 def __eq__(self, o):
7419 r"""__eq__(ResidueType self, ResidueType o) -> bool"""
7420 return _IMP_atom.ResidueType___eq__(self, o)
7422 def __ne__(self, o):
7423 r"""__ne__(ResidueType self, ResidueType o) -> bool"""
7424 return _IMP_atom.ResidueType___ne__(self, o)
7426 def __lt__(self, o):
7427 r"""__lt__(ResidueType self, ResidueType o) -> bool"""
7428 return _IMP_atom.ResidueType___lt__(self, o)
7430 def __gt__(self, o):
7431 r"""__gt__(ResidueType self, ResidueType o) -> bool"""
7432 return _IMP_atom.ResidueType___gt__(self, o)
7434 def __ge__(self, o):
7435 r"""__ge__(ResidueType self, ResidueType o) -> bool"""
7436 return _IMP_atom.ResidueType___ge__(self, o)
7438 def __le__(self, o):
7439 r"""__le__(ResidueType self, ResidueType o) -> bool"""
7440 return _IMP_atom.ResidueType___le__(self, o)
7443 r"""__hash__(ResidueType self) -> std::size_t"""
7444 return _IMP_atom.ResidueType___hash__(self)
7446 def show(self, *args):
7447 r"""show(ResidueType self, _ostream out=std::cout)"""
7448 return _IMP_atom.ResidueType_show(self, *args)
7451 def add_alias(old_key, new_name):
7452 r"""add_alias(ResidueType old_key, std::string new_name) -> ResidueType"""
7453 return _IMP_atom.ResidueType_add_alias(old_key, new_name)
7456 def get_number_of_keys():
7457 r"""get_number_of_keys() -> unsigned int"""
7458 return _IMP_atom.ResidueType_get_number_of_keys()
7461 r"""get_index(ResidueType self) -> unsigned int"""
7462 return _IMP_atom.ResidueType_get_index(self)
7466 r"""show_all(_ostream out)"""
7467 return _IMP_atom.ResidueType_show_all(out)
7470 def get_all_strings():
7471 r"""get_all_strings() -> IMP::Vector< std::string >"""
7472 return _IMP_atom.ResidueType_get_all_strings()
7475 def get_number_unique():
7476 r"""get_number_unique() -> unsigned int"""
7477 return _IMP_atom.ResidueType_get_number_unique()
7480 r"""__str__(ResidueType self) -> std::string"""
7481 return _IMP_atom.ResidueType___str__(self)
7484 r"""__repr__(ResidueType self) -> std::string"""
7485 return _IMP_atom.ResidueType___repr__(self)
7486 __swig_destroy__ = _IMP_atom.delete_ResidueType
7489 _IMP_atom.ResidueType_swigregister(ResidueType)
7490 class ChainType(IMP._Value):
7491 r"""Proxy of C++ IMP::Key< 90784336 > class."""
7493 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7495 def __init__(self, *args):
7497 __init__(ChainType self) -> ChainType
7498 __init__(ChainType self, std::string const & c, bool is_implicit_add_permitted=True) -> ChainType
7499 __init__(ChainType self, unsigned int i) -> ChainType
7501 _IMP_atom.ChainType_swiginit(self, _IMP_atom.new_ChainType(*args))
7505 r"""add_key(std::string sc) -> unsigned int"""
7506 return _IMP_atom.ChainType_add_key(sc)
7509 def get_key_exists(sc):
7510 r"""get_key_exists(std::string sc) -> bool"""
7511 return _IMP_atom.ChainType_get_key_exists(sc)
7513 def get_string(self):
7514 r"""get_string(ChainType self) -> std::string const"""
7515 return _IMP_atom.ChainType_get_string(self)
7517 def __cmp__(self, o):
7518 r"""__cmp__(ChainType self, ChainType o) -> int"""
7519 return _IMP_atom.ChainType___cmp__(self, o)
7521 def __eq__(self, o):
7522 r"""__eq__(ChainType self, ChainType o) -> bool"""
7523 return _IMP_atom.ChainType___eq__(self, o)
7525 def __ne__(self, o):
7526 r"""__ne__(ChainType self, ChainType o) -> bool"""
7527 return _IMP_atom.ChainType___ne__(self, o)
7529 def __lt__(self, o):
7530 r"""__lt__(ChainType self, ChainType o) -> bool"""
7531 return _IMP_atom.ChainType___lt__(self, o)
7533 def __gt__(self, o):
7534 r"""__gt__(ChainType self, ChainType o) -> bool"""
7535 return _IMP_atom.ChainType___gt__(self, o)
7537 def __ge__(self, o):
7538 r"""__ge__(ChainType self, ChainType o) -> bool"""
7539 return _IMP_atom.ChainType___ge__(self, o)
7541 def __le__(self, o):
7542 r"""__le__(ChainType self, ChainType o) -> bool"""
7543 return _IMP_atom.ChainType___le__(self, o)
7546 r"""__hash__(ChainType self) -> std::size_t"""
7547 return _IMP_atom.ChainType___hash__(self)
7549 def show(self, *args):
7550 r"""show(ChainType self, _ostream out=std::cout)"""
7551 return _IMP_atom.ChainType_show(self, *args)
7554 def add_alias(old_key, new_name):
7555 r"""add_alias(ChainType old_key, std::string new_name) -> ChainType"""
7556 return _IMP_atom.ChainType_add_alias(old_key, new_name)
7559 def get_number_of_keys():
7560 r"""get_number_of_keys() -> unsigned int"""
7561 return _IMP_atom.ChainType_get_number_of_keys()
7564 r"""get_index(ChainType self) -> unsigned int"""
7565 return _IMP_atom.ChainType_get_index(self)
7569 r"""show_all(_ostream out)"""
7570 return _IMP_atom.ChainType_show_all(out)
7573 def get_all_strings():
7574 r"""get_all_strings() -> IMP::Vector< std::string >"""
7575 return _IMP_atom.ChainType_get_all_strings()
7578 def get_number_unique():
7579 r"""get_number_unique() -> unsigned int"""
7580 return _IMP_atom.ChainType_get_number_unique()
7583 r"""__str__(ChainType self) -> std::string"""
7584 return _IMP_atom.ChainType___str__(self)
7587 r"""__repr__(ChainType self) -> std::string"""
7588 return _IMP_atom.ChainType___repr__(self)
7589 __swig_destroy__ = _IMP_atom.delete_ChainType
7592 _IMP_atom.ChainType_swigregister(ChainType)
7593 UNKNOWN_ELEMENT = _IMP_atom.UNKNOWN_ELEMENT
7811 NUMBER_OF_ELEMENTS = _IMP_atom.NUMBER_OF_ELEMENTS
7815 r"""hash_value(IMP::atom::Element e) -> size_t"""
7816 return _IMP_atom.hash_value(e)
7817 class ElementTable(object):
7818 r"""Proxy of C++ IMP::atom::ElementTable class."""
7820 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7821 __repr__ = _swig_repr
7824 r"""__init__(ElementTable self) -> ElementTable"""
7825 _IMP_atom.ElementTable_swiginit(self, _IMP_atom.new_ElementTable())
7827 def get_element(self, s):
7828 r"""get_element(ElementTable self, std::string const & s) -> IMP::atom::Element"""
7829 return _IMP_atom.ElementTable_get_element(self, s)
7831 def get_name(self, e):
7832 r"""get_name(ElementTable self, IMP::atom::Element e) -> std::string"""
7833 return _IMP_atom.ElementTable_get_name(self, e)
7836 r"""get_mass(ElementTable self, IMP::atom::Element e) -> IMP::Float"""
7837 return _IMP_atom.ElementTable_get_mass(self, e)
7838 __swig_destroy__ = _IMP_atom.delete_ElementTable
7841 _IMP_atom.ElementTable_swigregister(ElementTable)
7843 def get_element_table():
7844 r"""get_element_table() -> ElementTable"""
7845 return _IMP_atom.get_element_table()
7846 class Atom(Hierarchy):
7847 r"""Proxy of C++ IMP::atom::Atom class."""
7849 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7851 def __init__(self, *args):
7853 __init__(Atom self) -> Atom
7854 __init__(Atom self, Model m, ParticleIndex id) -> Atom
7855 __init__(Atom self, _ParticleAdaptor d) -> Atom
7857 _IMP_atom.Atom_swiginit(self, _IMP_atom.new_Atom(*args))
7859 def show(self, *args):
7860 r"""show(Atom self, _ostream out=std::cout)"""
7861 return _IMP_atom.Atom_show(self, *args)
7864 def setup_particle(*args):
7866 setup_particle(Model m, ParticleIndex pi, Atom other) -> Atom
7867 setup_particle(_ParticleAdaptor pa, Atom other) -> Atom
7868 setup_particle(Model m, ParticleIndex pi, AtomType atom_type) -> Atom
7869 setup_particle(_ParticleAdaptor pa, AtomType atom_type) -> Atom
7871 return _IMP_atom.Atom_setup_particle(*args)
7874 def get_is_setup(*args):
7876 get_is_setup(_ParticleAdaptor p) -> bool
7877 get_is_setup(Model m, ParticleIndex pi) -> bool
7879 return _IMP_atom.Atom_get_is_setup(*args)
7881 def get_atom_type(self):
7882 r"""get_atom_type(Atom self) -> AtomType"""
7883 return _IMP_atom.Atom_get_atom_type(self)
7885 def set_atom_type(self, t):
7886 r"""set_atom_type(Atom self, AtomType t)"""
7887 return _IMP_atom.Atom_set_atom_type(self, t)
7889 def get_element(self):
7890 r"""get_element(Atom self) -> IMP::atom::Element"""
7891 return _IMP_atom.Atom_get_element(self)
7893 def set_element(self, e):
7894 r"""set_element(Atom self, IMP::atom::Element e)"""
7895 return _IMP_atom.Atom_set_element(self, e)
7897 def get_occupancy(self):
7898 r"""get_occupancy(Atom self) -> double"""
7899 return _IMP_atom.Atom_get_occupancy(self)
7901 def set_occupancy(self, occupancy):
7902 r"""set_occupancy(Atom self, double occupancy)"""
7903 return _IMP_atom.Atom_set_occupancy(self, occupancy)
7905 def get_temperature_factor(self):
7906 r"""get_temperature_factor(Atom self) -> double"""
7907 return _IMP_atom.Atom_get_temperature_factor(self)
7909 def set_temperature_factor(self, tempFactor):
7910 r"""set_temperature_factor(Atom self, double tempFactor)"""
7911 return _IMP_atom.Atom_set_temperature_factor(self, tempFactor)
7913 def get_input_index(self):
7914 r"""get_input_index(Atom self) -> IMP::Int"""
7915 return _IMP_atom.Atom_get_input_index(self)
7917 def set_input_index(self, t):
7918 r"""set_input_index(Atom self, IMP::Int t)"""
7919 return _IMP_atom.Atom_set_input_index(self, t)
7922 def get_atom_type_key():
7923 r"""get_atom_type_key() -> IntKey"""
7924 return _IMP_atom.Atom_get_atom_type_key()
7927 def get_element_key():
7928 r"""get_element_key() -> IntKey"""
7929 return _IMP_atom.Atom_get_element_key()
7932 def get_input_index_key():
7933 r"""get_input_index_key() -> IntKey"""
7934 return _IMP_atom.Atom_get_input_index_key()
7937 def get_occupancy_key():
7938 r"""get_occupancy_key() -> FloatKey"""
7939 return _IMP_atom.Atom_get_occupancy_key()
7942 def get_temperature_factor_key():
7943 r"""get_temperature_factor_key() -> FloatKey"""
7944 return _IMP_atom.Atom_get_temperature_factor_key()
7946 def add_attribute(self, *args):
7948 add_attribute(Atom self, FloatKey k, IMP::Float v, bool opt)
7949 add_attribute(Atom self, FloatKey a0, IMP::Float a1)
7950 add_attribute(Atom self, IntKey a0, IMP::Int a1)
7951 add_attribute(Atom self, FloatsKey a0, IMP::Floats a1)
7952 add_attribute(Atom self, IntsKey a0, IMP::Ints a1)
7953 add_attribute(Atom self, StringKey a0, IMP::String a1)
7954 add_attribute(Atom self, ParticleIndexKey a0, Particle a1)
7955 add_attribute(Atom self, ObjectKey a0, Object a1)
7956 add_attribute(Atom self, SparseFloatKey a0, IMP::Float a1)
7957 add_attribute(Atom self, SparseIntKey a0, IMP::Int a1)
7958 add_attribute(Atom self, SparseStringKey a0, IMP::String a1)
7959 add_attribute(Atom self, SparseParticleIndexKey a0, ParticleIndex a1)
7961 return _IMP_atom.Atom_add_attribute(self, *args)
7963 def get_value(self, *args):
7965 get_value(Atom self, FloatKey a0) -> IMP::Float
7966 get_value(Atom self, IntKey a0) -> IMP::Int
7967 get_value(Atom self, FloatsKey a0) -> IMP::Floats
7968 get_value(Atom self, IntsKey a0) -> IMP::Ints
7969 get_value(Atom self, StringKey a0) -> IMP::String
7970 get_value(Atom self, ParticleIndexKey a0) -> Particle
7971 get_value(Atom self, ObjectKey a0) -> Object
7972 get_value(Atom self, SparseFloatKey a0) -> IMP::Float
7973 get_value(Atom self, SparseIntKey a0) -> IMP::Int
7974 get_value(Atom self, SparseStringKey a0) -> IMP::String
7975 get_value(Atom self, SparseParticleIndexKey a0) -> ParticleIndex
7977 return _IMP_atom.Atom_get_value(self, *args)
7979 def set_value(self, *args):
7981 set_value(Atom self, FloatKey a0, IMP::Float a1)
7982 set_value(Atom self, IntKey a0, IMP::Int a1)
7983 set_value(Atom self, FloatsKey a0, IMP::Floats a1)
7984 set_value(Atom self, IntsKey a0, IMP::Ints a1)
7985 set_value(Atom self, StringKey a0, IMP::String a1)
7986 set_value(Atom self, ParticleIndexKey a0, Particle a1)
7987 set_value(Atom self, ObjectKey a0, Object a1)
7988 set_value(Atom self, SparseFloatKey a0, IMP::Float a1)
7989 set_value(Atom self, SparseIntKey a0, IMP::Int a1)
7990 set_value(Atom self, SparseStringKey a0, IMP::String a1)
7991 set_value(Atom self, SparseParticleIndexKey a0, ParticleIndex a1)
7993 return _IMP_atom.Atom_set_value(self, *args)
7995 def remove_attribute(self, *args):
7997 remove_attribute(Atom self, FloatKey a0)
7998 remove_attribute(Atom self, IntKey a0)
7999 remove_attribute(Atom self, FloatsKey a0)
8000 remove_attribute(Atom self, IntsKey a0)
8001 remove_attribute(Atom self, StringKey a0)
8002 remove_attribute(Atom self, ParticleIndexKey a0)
8003 remove_attribute(Atom self, ObjectKey a0)
8004 remove_attribute(Atom self, SparseFloatKey a0)
8005 remove_attribute(Atom self, SparseIntKey a0)
8006 remove_attribute(Atom self, SparseStringKey a0)
8007 remove_attribute(Atom self, SparseParticleIndexKey a0)
8009 return _IMP_atom.Atom_remove_attribute(self, *args)
8011 def has_attribute(self, *args):
8013 has_attribute(Atom self, FloatKey a0) -> bool
8014 has_attribute(Atom self, IntKey a0) -> bool
8015 has_attribute(Atom self, FloatsKey a0) -> bool
8016 has_attribute(Atom self, IntsKey a0) -> bool
8017 has_attribute(Atom self, StringKey a0) -> bool
8018 has_attribute(Atom self, ParticleIndexKey a0) -> bool
8019 has_attribute(Atom self, ObjectKey a0) -> bool
8020 has_attribute(Atom self, SparseFloatKey a0) -> bool
8021 has_attribute(Atom self, SparseIntKey a0) -> bool
8022 has_attribute(Atom self, SparseStringKey a0) -> bool
8023 has_attribute(Atom self, SparseParticleIndexKey a0) -> bool
8025 return _IMP_atom.Atom_has_attribute(self, *args)
8027 def get_derivative(self, a0):
8028 r"""get_derivative(Atom self, FloatKey a0) -> double"""
8029 return _IMP_atom.Atom_get_derivative(self, a0)
8032 r"""get_name(Atom self) -> std::string"""
8033 return _IMP_atom.Atom_get_name(self)
8035 def clear_caches(self):
8036 r"""clear_caches(Atom self)"""
8037 return _IMP_atom.Atom_clear_caches(self)
8039 def set_name(self, a0):
8040 r"""set_name(Atom self, std::string a0)"""
8041 return _IMP_atom.Atom_set_name(self, a0)
8044 r"""set_check_level(Atom self, IMP::CheckLevel a0)"""
8045 return _IMP_atom.Atom_set_check_level(self, a0)
8047 def add_to_derivative(self, a0, a1, a2):
8048 r"""add_to_derivative(Atom self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8049 return _IMP_atom.Atom_add_to_derivative(self, a0, a1, a2)
8051 def set_is_optimized(self, a0, a1):
8052 r"""set_is_optimized(Atom self, FloatKey a0, bool a1)"""
8053 return _IMP_atom.Atom_set_is_optimized(self, a0, a1)
8055 def get_is_optimized(self, a0):
8056 r"""get_is_optimized(Atom self, FloatKey a0) -> bool"""
8057 return _IMP_atom.Atom_get_is_optimized(self, a0)
8060 r"""get_check_level(Atom self) -> IMP::CheckLevel"""
8061 return _IMP_atom.Atom_get_check_level(self)
8063 def __eq__(self, *args):
8065 __eq__(Atom self, Atom o) -> bool
8066 __eq__(Atom self, Particle d) -> bool
8068 return _IMP_atom.Atom___eq__(self, *args)
8070 def __ne__(self, *args):
8072 __ne__(Atom self, Atom o) -> bool
8073 __ne__(Atom self, Particle d) -> bool
8075 return _IMP_atom.Atom___ne__(self, *args)
8077 def __le__(self, *args):
8079 __le__(Atom self, Atom o) -> bool
8080 __le__(Atom self, Particle d) -> bool
8082 return _IMP_atom.Atom___le__(self, *args)
8084 def __lt__(self, *args):
8086 __lt__(Atom self, Atom o) -> bool
8087 __lt__(Atom self, Particle d) -> bool
8089 return _IMP_atom.Atom___lt__(self, *args)
8091 def __ge__(self, *args):
8093 __ge__(Atom self, Atom o) -> bool
8094 __ge__(Atom self, Particle d) -> bool
8096 return _IMP_atom.Atom___ge__(self, *args)
8098 def __gt__(self, *args):
8100 __gt__(Atom self, Atom o) -> bool
8101 __gt__(Atom self, Particle d) -> bool
8103 return _IMP_atom.Atom___gt__(self, *args)
8106 r"""__hash__(Atom self) -> std::size_t"""
8107 return _IMP_atom.Atom___hash__(self)
8110 r"""__str__(Atom self) -> std::string"""
8111 return _IMP_atom.Atom___str__(self)
8114 r"""__repr__(Atom self) -> std::string"""
8115 return _IMP_atom.Atom___repr__(self)
8117 def _get_as_binary(self):
8118 r"""_get_as_binary(Atom self) -> PyObject *"""
8119 return _IMP_atom.Atom__get_as_binary(self)
8121 def _set_from_binary(self, p):
8122 r"""_set_from_binary(Atom self, PyObject * p)"""
8123 return _IMP_atom.Atom__set_from_binary(self, p)
8125 def __getstate__(self):
8126 p = self._get_as_binary()
8127 if len(self.__dict__) > 1:
8128 d = self.__dict__.copy()
8133 def __setstate__(self, p):
8134 if not hasattr(self,
'this'):
8136 if isinstance(p, tuple):
8138 self.__dict__.update(d)
8139 return self._set_from_binary(p)
8141 __swig_destroy__ = _IMP_atom.delete_Atom
8144 _IMP_atom.Atom_swigregister(Atom)
8145 cvar = _IMP_atom.cvar
8146 AT_UNKNOWN = cvar.AT_UNKNOWN
8156 AT_HA1 = cvar.AT_HA1
8157 AT_HA2 = cvar.AT_HA2
8158 AT_HA3 = cvar.AT_HA3
8161 AT_HB1 = cvar.AT_HB1
8162 AT_HB2 = cvar.AT_HB2
8163 AT_HB3 = cvar.AT_HB3
8164 AT_OXT = cvar.AT_OXT
8165 AT_CH3 = cvar.AT_CH3
8168 AT_CG1 = cvar.AT_CG1
8169 AT_CG2 = cvar.AT_CG2
8171 AT_HG1 = cvar.AT_HG1
8172 AT_HG2 = cvar.AT_HG2
8173 AT_HG3 = cvar.AT_HG3
8174 AT_HG11 = cvar.AT_HG11
8175 AT_HG21 = cvar.AT_HG21
8176 AT_HG31 = cvar.AT_HG31
8177 AT_HG12 = cvar.AT_HG12
8178 AT_HG13 = cvar.AT_HG13
8179 AT_HG22 = cvar.AT_HG22
8180 AT_HG23 = cvar.AT_HG23
8181 AT_HG32 = cvar.AT_HG32
8183 AT_OG1 = cvar.AT_OG1
8186 AT_CD1 = cvar.AT_CD1
8187 AT_CD2 = cvar.AT_CD2
8189 AT_HD1 = cvar.AT_HD1
8190 AT_HD2 = cvar.AT_HD2
8191 AT_HD3 = cvar.AT_HD3
8192 AT_HD11 = cvar.AT_HD11
8193 AT_HD21 = cvar.AT_HD21
8194 AT_HD31 = cvar.AT_HD31
8195 AT_HD12 = cvar.AT_HD12
8196 AT_HD13 = cvar.AT_HD13
8197 AT_HD22 = cvar.AT_HD22
8198 AT_HD23 = cvar.AT_HD23
8199 AT_HD32 = cvar.AT_HD32
8201 AT_OD1 = cvar.AT_OD1
8202 AT_OD2 = cvar.AT_OD2
8203 AT_ND1 = cvar.AT_ND1
8204 AT_ND2 = cvar.AT_ND2
8206 AT_CE1 = cvar.AT_CE1
8207 AT_CE2 = cvar.AT_CE2
8208 AT_CE3 = cvar.AT_CE3
8210 AT_HE1 = cvar.AT_HE1
8211 AT_HE2 = cvar.AT_HE2
8212 AT_HE3 = cvar.AT_HE3
8213 AT_HE21 = cvar.AT_HE21
8214 AT_HE22 = cvar.AT_HE22
8215 AT_OE1 = cvar.AT_OE1
8216 AT_OE2 = cvar.AT_OE2
8218 AT_NE1 = cvar.AT_NE1
8219 AT_NE2 = cvar.AT_NE2
8221 AT_CZ2 = cvar.AT_CZ2
8222 AT_CZ3 = cvar.AT_CZ3
8225 AT_HZ1 = cvar.AT_HZ1
8226 AT_HZ2 = cvar.AT_HZ2
8227 AT_HZ3 = cvar.AT_HZ3
8228 AT_CH2 = cvar.AT_CH2
8229 AT_NH1 = cvar.AT_NH1
8230 AT_NH2 = cvar.AT_NH2
8233 AT_HH11 = cvar.AT_HH11
8234 AT_HH21 = cvar.AT_HH21
8235 AT_HH2 = cvar.AT_HH2
8236 AT_HH12 = cvar.AT_HH12
8237 AT_HH22 = cvar.AT_HH22
8238 AT_HH13 = cvar.AT_HH13
8239 AT_HH23 = cvar.AT_HH23
8240 AT_HH33 = cvar.AT_HH33
8242 AT_OP1 = cvar.AT_OP1
8243 AT_OP2 = cvar.AT_OP2
8244 AT_OP3 = cvar.AT_OP3
8245 AT_O5p = cvar.AT_O5p
8246 AT_C5p = cvar.AT_C5p
8247 AT_H5p = cvar.AT_H5p
8248 AT_H5pp = cvar.AT_H5pp
8249 AT_C4p = cvar.AT_C4p
8250 AT_H4p = cvar.AT_H4p
8251 AT_O4p = cvar.AT_O4p
8252 AT_C1p = cvar.AT_C1p
8253 AT_H1p = cvar.AT_H1p
8254 AT_C3p = cvar.AT_C3p
8255 AT_H3p = cvar.AT_H3p
8256 AT_O3p = cvar.AT_O3p
8257 AT_C2p = cvar.AT_C2p
8258 AT_H2p = cvar.AT_H2p
8259 AT_H2pp = cvar.AT_H2pp
8260 AT_O2p = cvar.AT_O2p
8261 AT_HO2p = cvar.AT_HO2p
8273 AT_H61 = cvar.AT_H61
8274 AT_H62 = cvar.AT_H62
8278 AT_H21 = cvar.AT_H21
8279 AT_H22 = cvar.AT_H22
8284 AT_H41 = cvar.AT_H41
8285 AT_H42 = cvar.AT_H42
8288 AT_H71 = cvar.AT_H71
8289 AT_H72 = cvar.AT_H72
8290 AT_H73 = cvar.AT_H73
8291 AT_O1A = cvar.AT_O1A
8292 AT_O2A = cvar.AT_O2A
8293 AT_O3A = cvar.AT_O3A
8294 AT_O1B = cvar.AT_O1B
8295 AT_O2B = cvar.AT_O2B
8296 AT_O3B = cvar.AT_O3B
8297 AT_CAY = cvar.AT_CAY
8300 AT_CAT = cvar.AT_CAT
8305 get_residue(Hierarchy mhd, unsigned int index) -> Hierarchy
8306 get_residue(Atom d, bool nothrow=False) -> Residue
8308 return _IMP_atom.get_residue(*args)
8311 r"""get_atom(Residue rd, AtomType at) -> Atom"""
8312 return _IMP_atom.get_atom(rd, at)
8315 r"""add_atom_type(std::string name, IMP::atom::Element e) -> AtomType"""
8316 return _IMP_atom.add_atom_type(name, e)
8318 def get_element_for_atom_type(at):
8319 r"""get_element_for_atom_type(AtomType at) -> IMP::atom::Element"""
8320 return _IMP_atom.get_element_for_atom_type(at)
8323 r"""get_atom_type_exists(std::string name) -> bool"""
8324 return _IMP_atom.get_atom_type_exists(name)
8325 class Residue(Hierarchy):
8326 r"""Proxy of C++ IMP::atom::Residue class."""
8328 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8330 def __init__(self, *args):
8332 __init__(Residue self) -> Residue
8333 __init__(Residue self, Model m, ParticleIndex id) -> Residue
8334 __init__(Residue self, _ParticleAdaptor d) -> Residue
8336 _IMP_atom.Residue_swiginit(self, _IMP_atom.new_Residue(*args))
8338 def show(self, *args):
8339 r"""show(Residue self, _ostream out=std::cout)"""
8340 return _IMP_atom.Residue_show(self, *args)
8343 def setup_particle(*args):
8345 setup_particle(Model m, ParticleIndex pi, ResidueType t, int index, int insertion_code) -> Residue
8346 setup_particle(_ParticleAdaptor pa, ResidueType t, int index, int insertion_code) -> Residue
8347 setup_particle(Model m, ParticleIndex pi, ResidueType t, int index) -> Residue
8348 setup_particle(_ParticleAdaptor pa, ResidueType t, int index) -> Residue
8349 setup_particle(Model m, ParticleIndex pi, ResidueType t) -> Residue
8350 setup_particle(_ParticleAdaptor pa, ResidueType t) -> Residue
8351 setup_particle(Model m, ParticleIndex pi, Residue other) -> Residue
8352 setup_particle(_ParticleAdaptor pa, Residue other) -> Residue
8354 return _IMP_atom.Residue_setup_particle(*args)
8357 def get_is_setup(*args):
8359 get_is_setup(_ParticleAdaptor p) -> bool
8360 get_is_setup(Model m, ParticleIndex pi) -> bool
8362 return _IMP_atom.Residue_get_is_setup(*args)
8364 def get_residue_type(self):
8365 r"""get_residue_type(Residue self) -> ResidueType"""
8366 return _IMP_atom.Residue_get_residue_type(self)
8368 def set_residue_type(self, t):
8369 r"""set_residue_type(Residue self, ResidueType t)"""
8370 return _IMP_atom.Residue_set_residue_type(self, t)
8372 def get_is_protein(self):
8373 r"""get_is_protein(Residue self) -> bool"""
8374 return _IMP_atom.Residue_get_is_protein(self)
8376 def get_is_dna(self):
8377 r"""get_is_dna(Residue self) -> bool"""
8378 return _IMP_atom.Residue_get_is_dna(self)
8380 def get_is_rna(self):
8381 r"""get_is_rna(Residue self) -> bool"""
8382 return _IMP_atom.Residue_get_is_rna(self)
8385 r"""get_index(Residue self) -> IMP::Int"""
8386 return _IMP_atom.Residue_get_index(self)
8388 def set_index(self, t):
8389 r"""set_index(Residue self, IMP::Int t)"""
8390 return _IMP_atom.Residue_set_index(self, t)
8392 def get_insertion_code(self):
8393 r"""get_insertion_code(Residue self) -> char"""
8394 return _IMP_atom.Residue_get_insertion_code(self)
8396 def set_insertion_code(self, insertion_code):
8397 r"""set_insertion_code(Residue self, char insertion_code)"""
8398 return _IMP_atom.Residue_set_insertion_code(self, insertion_code)
8401 def get_index_key():
8402 r"""get_index_key() -> IntKey"""
8403 return _IMP_atom.Residue_get_index_key()
8406 def get_residue_type_key():
8407 r"""get_residue_type_key() -> IntKey"""
8408 return _IMP_atom.Residue_get_residue_type_key()
8411 def get_insertion_code_key():
8412 r"""get_insertion_code_key() -> IntKey"""
8413 return _IMP_atom.Residue_get_insertion_code_key()
8416 def get_type_changed_key():
8417 r"""get_type_changed_key() -> TriggerKey"""
8418 return _IMP_atom.Residue_get_type_changed_key()
8420 def add_attribute(self, *args):
8422 add_attribute(Residue self, FloatKey k, IMP::Float v, bool opt)
8423 add_attribute(Residue self, FloatKey a0, IMP::Float a1)
8424 add_attribute(Residue self, IntKey a0, IMP::Int a1)
8425 add_attribute(Residue self, FloatsKey a0, IMP::Floats a1)
8426 add_attribute(Residue self, IntsKey a0, IMP::Ints a1)
8427 add_attribute(Residue self, StringKey a0, IMP::String a1)
8428 add_attribute(Residue self, ParticleIndexKey a0, Particle a1)
8429 add_attribute(Residue self, ObjectKey a0, Object a1)
8430 add_attribute(Residue self, SparseFloatKey a0, IMP::Float a1)
8431 add_attribute(Residue self, SparseIntKey a0, IMP::Int a1)
8432 add_attribute(Residue self, SparseStringKey a0, IMP::String a1)
8433 add_attribute(Residue self, SparseParticleIndexKey a0, ParticleIndex a1)
8435 return _IMP_atom.Residue_add_attribute(self, *args)
8437 def get_value(self, *args):
8439 get_value(Residue self, FloatKey a0) -> IMP::Float
8440 get_value(Residue self, IntKey a0) -> IMP::Int
8441 get_value(Residue self, FloatsKey a0) -> IMP::Floats
8442 get_value(Residue self, IntsKey a0) -> IMP::Ints
8443 get_value(Residue self, StringKey a0) -> IMP::String
8444 get_value(Residue self, ParticleIndexKey a0) -> Particle
8445 get_value(Residue self, ObjectKey a0) -> Object
8446 get_value(Residue self, SparseFloatKey a0) -> IMP::Float
8447 get_value(Residue self, SparseIntKey a0) -> IMP::Int
8448 get_value(Residue self, SparseStringKey a0) -> IMP::String
8449 get_value(Residue self, SparseParticleIndexKey a0) -> ParticleIndex
8451 return _IMP_atom.Residue_get_value(self, *args)
8453 def set_value(self, *args):
8455 set_value(Residue self, FloatKey a0, IMP::Float a1)
8456 set_value(Residue self, IntKey a0, IMP::Int a1)
8457 set_value(Residue self, FloatsKey a0, IMP::Floats a1)
8458 set_value(Residue self, IntsKey a0, IMP::Ints a1)
8459 set_value(Residue self, StringKey a0, IMP::String a1)
8460 set_value(Residue self, ParticleIndexKey a0, Particle a1)
8461 set_value(Residue self, ObjectKey a0, Object a1)
8462 set_value(Residue self, SparseFloatKey a0, IMP::Float a1)
8463 set_value(Residue self, SparseIntKey a0, IMP::Int a1)
8464 set_value(Residue self, SparseStringKey a0, IMP::String a1)
8465 set_value(Residue self, SparseParticleIndexKey a0, ParticleIndex a1)
8467 return _IMP_atom.Residue_set_value(self, *args)
8469 def remove_attribute(self, *args):
8471 remove_attribute(Residue self, FloatKey a0)
8472 remove_attribute(Residue self, IntKey a0)
8473 remove_attribute(Residue self, FloatsKey a0)
8474 remove_attribute(Residue self, IntsKey a0)
8475 remove_attribute(Residue self, StringKey a0)
8476 remove_attribute(Residue self, ParticleIndexKey a0)
8477 remove_attribute(Residue self, ObjectKey a0)
8478 remove_attribute(Residue self, SparseFloatKey a0)
8479 remove_attribute(Residue self, SparseIntKey a0)
8480 remove_attribute(Residue self, SparseStringKey a0)
8481 remove_attribute(Residue self, SparseParticleIndexKey a0)
8483 return _IMP_atom.Residue_remove_attribute(self, *args)
8485 def has_attribute(self, *args):
8487 has_attribute(Residue self, FloatKey a0) -> bool
8488 has_attribute(Residue self, IntKey a0) -> bool
8489 has_attribute(Residue self, FloatsKey a0) -> bool
8490 has_attribute(Residue self, IntsKey a0) -> bool
8491 has_attribute(Residue self, StringKey a0) -> bool
8492 has_attribute(Residue self, ParticleIndexKey a0) -> bool
8493 has_attribute(Residue self, ObjectKey a0) -> bool
8494 has_attribute(Residue self, SparseFloatKey a0) -> bool
8495 has_attribute(Residue self, SparseIntKey a0) -> bool
8496 has_attribute(Residue self, SparseStringKey a0) -> bool
8497 has_attribute(Residue self, SparseParticleIndexKey a0) -> bool
8499 return _IMP_atom.Residue_has_attribute(self, *args)
8501 def get_derivative(self, a0):
8502 r"""get_derivative(Residue self, FloatKey a0) -> double"""
8503 return _IMP_atom.Residue_get_derivative(self, a0)
8506 r"""get_name(Residue self) -> std::string"""
8507 return _IMP_atom.Residue_get_name(self)
8509 def clear_caches(self):
8510 r"""clear_caches(Residue self)"""
8511 return _IMP_atom.Residue_clear_caches(self)
8513 def set_name(self, a0):
8514 r"""set_name(Residue self, std::string a0)"""
8515 return _IMP_atom.Residue_set_name(self, a0)
8518 r"""set_check_level(Residue self, IMP::CheckLevel a0)"""
8519 return _IMP_atom.Residue_set_check_level(self, a0)
8521 def add_to_derivative(self, a0, a1, a2):
8522 r"""add_to_derivative(Residue self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8523 return _IMP_atom.Residue_add_to_derivative(self, a0, a1, a2)
8525 def set_is_optimized(self, a0, a1):
8526 r"""set_is_optimized(Residue self, FloatKey a0, bool a1)"""
8527 return _IMP_atom.Residue_set_is_optimized(self, a0, a1)
8529 def get_is_optimized(self, a0):
8530 r"""get_is_optimized(Residue self, FloatKey a0) -> bool"""
8531 return _IMP_atom.Residue_get_is_optimized(self, a0)
8534 r"""get_check_level(Residue self) -> IMP::CheckLevel"""
8535 return _IMP_atom.Residue_get_check_level(self)
8537 def __eq__(self, *args):
8539 __eq__(Residue self, Residue o) -> bool
8540 __eq__(Residue self, Particle d) -> bool
8542 return _IMP_atom.Residue___eq__(self, *args)
8544 def __ne__(self, *args):
8546 __ne__(Residue self, Residue o) -> bool
8547 __ne__(Residue self, Particle d) -> bool
8549 return _IMP_atom.Residue___ne__(self, *args)
8551 def __le__(self, *args):
8553 __le__(Residue self, Residue o) -> bool
8554 __le__(Residue self, Particle d) -> bool
8556 return _IMP_atom.Residue___le__(self, *args)
8558 def __lt__(self, *args):
8560 __lt__(Residue self, Residue o) -> bool
8561 __lt__(Residue self, Particle d) -> bool
8563 return _IMP_atom.Residue___lt__(self, *args)
8565 def __ge__(self, *args):
8567 __ge__(Residue self, Residue o) -> bool
8568 __ge__(Residue self, Particle d) -> bool
8570 return _IMP_atom.Residue___ge__(self, *args)
8572 def __gt__(self, *args):
8574 __gt__(Residue self, Residue o) -> bool
8575 __gt__(Residue self, Particle d) -> bool
8577 return _IMP_atom.Residue___gt__(self, *args)
8580 r"""__hash__(Residue self) -> std::size_t"""
8581 return _IMP_atom.Residue___hash__(self)
8584 r"""__str__(Residue self) -> std::string"""
8585 return _IMP_atom.Residue___str__(self)
8588 r"""__repr__(Residue self) -> std::string"""
8589 return _IMP_atom.Residue___repr__(self)
8591 def _get_as_binary(self):
8592 r"""_get_as_binary(Residue self) -> PyObject *"""
8593 return _IMP_atom.Residue__get_as_binary(self)
8595 def _set_from_binary(self, p):
8596 r"""_set_from_binary(Residue self, PyObject * p)"""
8597 return _IMP_atom.Residue__set_from_binary(self, p)
8599 def __getstate__(self):
8600 p = self._get_as_binary()
8601 if len(self.__dict__) > 1:
8602 d = self.__dict__.copy()
8607 def __setstate__(self, p):
8608 if not hasattr(self,
'this'):
8610 if isinstance(p, tuple):
8612 self.__dict__.update(d)
8613 return self._set_from_binary(p)
8615 __swig_destroy__ = _IMP_atom.delete_Residue
8618 _IMP_atom.Residue_swigregister(Residue)
8659 r"""get_next_residue(Residue rd) -> Hierarchy"""
8660 return _IMP_atom.get_next_residue(rd)
8663 r"""get_previous_residue(Residue rd) -> Hierarchy"""
8664 return _IMP_atom.get_previous_residue(rd)
8667 r"""get_one_letter_code(ResidueType c) -> char"""
8668 return _IMP_atom.get_one_letter_code(c)
8669 BALLS = _IMP_atom.BALLS
8671 DENSITIES = _IMP_atom.DENSITIES
8673 class Representation(Hierarchy):
8674 r"""Proxy of C++ IMP::atom::Representation class."""
8676 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8679 def setup_particle(*args):
8681 setup_particle(Model m, ParticleIndex pi) -> Representation
8682 setup_particle(_ParticleAdaptor pa) -> Representation
8683 setup_particle(Model m, ParticleIndex pi, double resolution) -> Representation
8684 setup_particle(_ParticleAdaptor pa, double resolution) -> Representation
8685 setup_particle(Model m, ParticleIndex pi, Representation other) -> Representation
8686 setup_particle(_ParticleAdaptor pa, Representation other) -> Representation
8688 return _IMP_atom.Representation_setup_particle(*args)
8690 def __init__(self, *args):
8692 __init__(Representation self) -> Representation
8693 __init__(Representation self, Model m, ParticleIndex id) -> Representation
8694 __init__(Representation self, _ParticleAdaptor d) -> Representation
8696 _IMP_atom.Representation_swiginit(self, _IMP_atom.new_Representation(*args))
8698 def show(self, *args):
8699 r"""show(Representation self, _ostream out=std::cout)"""
8700 return _IMP_atom.Representation_show(self, *args)
8703 def get_is_setup(*args):
8705 get_is_setup(_ParticleAdaptor p) -> bool
8706 get_is_setup(Model m, ParticleIndex pi) -> bool
8708 return _IMP_atom.Representation_get_is_setup(*args)
8711 r"""get_representation(Representation self, double resolution, IMP::atom::RepresentationType type=BALLS) -> Hierarchy"""
8712 return _IMP_atom.Representation_get_representation(self, *args)
8714 def get_representations(self, *args):
8715 r"""get_representations(Representation self, IMP::atom::RepresentationType type=BALLS) -> IMP::atom::Hierarchies"""
8716 return _IMP_atom.Representation_get_representations(self, *args)
8718 def add_representation(self, *args):
8719 r"""add_representation(Representation self, _ParticleIndexAdaptor rep, IMP::atom::RepresentationType type=BALLS, double resolution=-1)"""
8720 return _IMP_atom.Representation_add_representation(self, *args)
8722 def get_resolutions(self, *args):
8723 r"""get_resolutions(Representation self, IMP::atom::RepresentationType type=BALLS) -> IMP::Floats"""
8724 return _IMP_atom.Representation_get_resolutions(self, *args)
8726 def remove_representation(self, rep):
8727 r"""remove_representation(Representation self, _ParticleIndexAdaptor rep)"""
8728 return _IMP_atom.Representation_remove_representation(self, rep)
8730 def update_parents(self):
8731 r"""update_parents(Representation self)"""
8732 return _IMP_atom.Representation_update_parents(self)
8734 def add_attribute(self, *args):
8736 add_attribute(Representation self, FloatKey k, IMP::Float v, bool opt)
8737 add_attribute(Representation self, FloatKey a0, IMP::Float a1)
8738 add_attribute(Representation self, IntKey a0, IMP::Int a1)
8739 add_attribute(Representation self, FloatsKey a0, IMP::Floats a1)
8740 add_attribute(Representation self, IntsKey a0, IMP::Ints a1)
8741 add_attribute(Representation self, StringKey a0, IMP::String a1)
8742 add_attribute(Representation self, ParticleIndexKey a0, Particle a1)
8743 add_attribute(Representation self, ObjectKey a0, Object a1)
8744 add_attribute(Representation self, SparseFloatKey a0, IMP::Float a1)
8745 add_attribute(Representation self, SparseIntKey a0, IMP::Int a1)
8746 add_attribute(Representation self, SparseStringKey a0, IMP::String a1)
8747 add_attribute(Representation self, SparseParticleIndexKey a0, ParticleIndex a1)
8749 return _IMP_atom.Representation_add_attribute(self, *args)
8751 def get_value(self, *args):
8753 get_value(Representation self, FloatKey a0) -> IMP::Float
8754 get_value(Representation self, IntKey a0) -> IMP::Int
8755 get_value(Representation self, FloatsKey a0) -> IMP::Floats
8756 get_value(Representation self, IntsKey a0) -> IMP::Ints
8757 get_value(Representation self, StringKey a0) -> IMP::String
8758 get_value(Representation self, ParticleIndexKey a0) -> Particle
8759 get_value(Representation self, ObjectKey a0) -> Object
8760 get_value(Representation self, SparseFloatKey a0) -> IMP::Float
8761 get_value(Representation self, SparseIntKey a0) -> IMP::Int
8762 get_value(Representation self, SparseStringKey a0) -> IMP::String
8763 get_value(Representation self, SparseParticleIndexKey a0) -> ParticleIndex
8765 return _IMP_atom.Representation_get_value(self, *args)
8767 def set_value(self, *args):
8769 set_value(Representation self, FloatKey a0, IMP::Float a1)
8770 set_value(Representation self, IntKey a0, IMP::Int a1)
8771 set_value(Representation self, FloatsKey a0, IMP::Floats a1)
8772 set_value(Representation self, IntsKey a0, IMP::Ints a1)
8773 set_value(Representation self, StringKey a0, IMP::String a1)
8774 set_value(Representation self, ParticleIndexKey a0, Particle a1)
8775 set_value(Representation self, ObjectKey a0, Object a1)
8776 set_value(Representation self, SparseFloatKey a0, IMP::Float a1)
8777 set_value(Representation self, SparseIntKey a0, IMP::Int a1)
8778 set_value(Representation self, SparseStringKey a0, IMP::String a1)
8779 set_value(Representation self, SparseParticleIndexKey a0, ParticleIndex a1)
8781 return _IMP_atom.Representation_set_value(self, *args)
8783 def remove_attribute(self, *args):
8785 remove_attribute(Representation self, FloatKey a0)
8786 remove_attribute(Representation self, IntKey a0)
8787 remove_attribute(Representation self, FloatsKey a0)
8788 remove_attribute(Representation self, IntsKey a0)
8789 remove_attribute(Representation self, StringKey a0)
8790 remove_attribute(Representation self, ParticleIndexKey a0)
8791 remove_attribute(Representation self, ObjectKey a0)
8792 remove_attribute(Representation self, SparseFloatKey a0)
8793 remove_attribute(Representation self, SparseIntKey a0)
8794 remove_attribute(Representation self, SparseStringKey a0)
8795 remove_attribute(Representation self, SparseParticleIndexKey a0)
8797 return _IMP_atom.Representation_remove_attribute(self, *args)
8799 def has_attribute(self, *args):
8801 has_attribute(Representation self, FloatKey a0) -> bool
8802 has_attribute(Representation self, IntKey a0) -> bool
8803 has_attribute(Representation self, FloatsKey a0) -> bool
8804 has_attribute(Representation self, IntsKey a0) -> bool
8805 has_attribute(Representation self, StringKey a0) -> bool
8806 has_attribute(Representation self, ParticleIndexKey a0) -> bool
8807 has_attribute(Representation self, ObjectKey a0) -> bool
8808 has_attribute(Representation self, SparseFloatKey a0) -> bool
8809 has_attribute(Representation self, SparseIntKey a0) -> bool
8810 has_attribute(Representation self, SparseStringKey a0) -> bool
8811 has_attribute(Representation self, SparseParticleIndexKey a0) -> bool
8813 return _IMP_atom.Representation_has_attribute(self, *args)
8815 def get_derivative(self, a0):
8816 r"""get_derivative(Representation self, FloatKey a0) -> double"""
8817 return _IMP_atom.Representation_get_derivative(self, a0)
8820 r"""get_name(Representation self) -> std::string"""
8821 return _IMP_atom.Representation_get_name(self)
8823 def clear_caches(self):
8824 r"""clear_caches(Representation self)"""
8825 return _IMP_atom.Representation_clear_caches(self)
8827 def set_name(self, a0):
8828 r"""set_name(Representation self, std::string a0)"""
8829 return _IMP_atom.Representation_set_name(self, a0)
8832 r"""set_check_level(Representation self, IMP::CheckLevel a0)"""
8833 return _IMP_atom.Representation_set_check_level(self, a0)
8835 def add_to_derivative(self, a0, a1, a2):
8836 r"""add_to_derivative(Representation self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8837 return _IMP_atom.Representation_add_to_derivative(self, a0, a1, a2)
8839 def set_is_optimized(self, a0, a1):
8840 r"""set_is_optimized(Representation self, FloatKey a0, bool a1)"""
8841 return _IMP_atom.Representation_set_is_optimized(self, a0, a1)
8843 def get_is_optimized(self, a0):
8844 r"""get_is_optimized(Representation self, FloatKey a0) -> bool"""
8845 return _IMP_atom.Representation_get_is_optimized(self, a0)
8848 r"""get_check_level(Representation self) -> IMP::CheckLevel"""
8849 return _IMP_atom.Representation_get_check_level(self)
8851 def __eq__(self, *args):
8853 __eq__(Representation self, Representation o) -> bool
8854 __eq__(Representation self, Particle d) -> bool
8856 return _IMP_atom.Representation___eq__(self, *args)
8858 def __ne__(self, *args):
8860 __ne__(Representation self, Representation o) -> bool
8861 __ne__(Representation self, Particle d) -> bool
8863 return _IMP_atom.Representation___ne__(self, *args)
8865 def __le__(self, *args):
8867 __le__(Representation self, Representation o) -> bool
8868 __le__(Representation self, Particle d) -> bool
8870 return _IMP_atom.Representation___le__(self, *args)
8872 def __lt__(self, *args):
8874 __lt__(Representation self, Representation o) -> bool
8875 __lt__(Representation self, Particle d) -> bool
8877 return _IMP_atom.Representation___lt__(self, *args)
8879 def __ge__(self, *args):
8881 __ge__(Representation self, Representation o) -> bool
8882 __ge__(Representation self, Particle d) -> bool
8884 return _IMP_atom.Representation___ge__(self, *args)
8886 def __gt__(self, *args):
8888 __gt__(Representation self, Representation o) -> bool
8889 __gt__(Representation self, Particle d) -> bool
8891 return _IMP_atom.Representation___gt__(self, *args)
8894 r"""__hash__(Representation self) -> std::size_t"""
8895 return _IMP_atom.Representation___hash__(self)
8898 r"""__str__(Representation self) -> std::string"""
8899 return _IMP_atom.Representation___str__(self)
8902 r"""__repr__(Representation self) -> std::string"""
8903 return _IMP_atom.Representation___repr__(self)
8905 def _get_as_binary(self):
8906 r"""_get_as_binary(Representation self) -> PyObject *"""
8907 return _IMP_atom.Representation__get_as_binary(self)
8909 def _set_from_binary(self, p):
8910 r"""_set_from_binary(Representation self, PyObject * p)"""
8911 return _IMP_atom.Representation__set_from_binary(self, p)
8913 def __getstate__(self):
8914 p = self._get_as_binary()
8915 if len(self.__dict__) > 1:
8916 d = self.__dict__.copy()
8921 def __setstate__(self, p):
8922 if not hasattr(self,
'this'):
8924 if isinstance(p, tuple):
8926 self.__dict__.update(d)
8927 return self._set_from_binary(p)
8929 __swig_destroy__ = _IMP_atom.delete_Representation
8932 _IMP_atom.Representation_swigregister(Representation)
8933 ALL_RESOLUTIONS = cvar.ALL_RESOLUTIONS
8938 get_resolution(Model m, ParticleIndex pi) -> double
8939 get_resolution(Hierarchy h) -> double
8941 return _IMP_atom.get_resolution(*args)
8944 r"""get_representation(Hierarchy h, bool nothrow=False) -> Representation"""
8945 return _IMP_atom.get_representation(h, nothrow)
8948 r"""show_with_representations(Hierarchy h, _ostream out=std::cout)"""
8949 return _IMP_atom.show_with_representations(*args)
8950 class State(Hierarchy):
8951 r"""Proxy of C++ IMP::atom::State class."""
8953 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8956 def setup_particle(*args):
8958 setup_particle(Model m, ParticleIndex pi, unsigned int index) -> State
8959 setup_particle(_ParticleAdaptor pa, unsigned int index) -> State
8960 setup_particle(Model m, ParticleIndex pi, State other) -> State
8961 setup_particle(_ParticleAdaptor pa, State other) -> State
8963 return _IMP_atom.State_setup_particle(*args)
8965 def __init__(self, *args):
8967 __init__(State self) -> State
8968 __init__(State self, Model m, ParticleIndex id) -> State
8969 __init__(State self, _ParticleAdaptor d) -> State
8971 _IMP_atom.State_swiginit(self, _IMP_atom.new_State(*args))
8973 def show(self, *args):
8974 r"""show(State self, _ostream out=std::cout)"""
8975 return _IMP_atom.State_show(self, *args)
8978 def get_is_setup(*args):
8980 get_is_setup(_ParticleAdaptor p) -> bool
8981 get_is_setup(Model m, ParticleIndex pi) -> bool
8983 return _IMP_atom.State_get_is_setup(*args)
8986 r"""get_state_index(State self) -> unsigned int"""
8987 return _IMP_atom.State_get_state_index(self)
8989 def add_attribute(self, *args):
8991 add_attribute(State self, FloatKey k, IMP::Float v, bool opt)
8992 add_attribute(State self, FloatKey a0, IMP::Float a1)
8993 add_attribute(State self, IntKey a0, IMP::Int a1)
8994 add_attribute(State self, FloatsKey a0, IMP::Floats a1)
8995 add_attribute(State self, IntsKey a0, IMP::Ints a1)
8996 add_attribute(State self, StringKey a0, IMP::String a1)
8997 add_attribute(State self, ParticleIndexKey a0, Particle a1)
8998 add_attribute(State self, ObjectKey a0, Object a1)
8999 add_attribute(State self, SparseFloatKey a0, IMP::Float a1)
9000 add_attribute(State self, SparseIntKey a0, IMP::Int a1)
9001 add_attribute(State self, SparseStringKey a0, IMP::String a1)
9002 add_attribute(State self, SparseParticleIndexKey a0, ParticleIndex a1)
9004 return _IMP_atom.State_add_attribute(self, *args)
9006 def get_value(self, *args):
9008 get_value(State self, FloatKey a0) -> IMP::Float
9009 get_value(State self, IntKey a0) -> IMP::Int
9010 get_value(State self, FloatsKey a0) -> IMP::Floats
9011 get_value(State self, IntsKey a0) -> IMP::Ints
9012 get_value(State self, StringKey a0) -> IMP::String
9013 get_value(State self, ParticleIndexKey a0) -> Particle
9014 get_value(State self, ObjectKey a0) -> Object
9015 get_value(State self, SparseFloatKey a0) -> IMP::Float
9016 get_value(State self, SparseIntKey a0) -> IMP::Int
9017 get_value(State self, SparseStringKey a0) -> IMP::String
9018 get_value(State self, SparseParticleIndexKey a0) -> ParticleIndex
9020 return _IMP_atom.State_get_value(self, *args)
9022 def set_value(self, *args):
9024 set_value(State self, FloatKey a0, IMP::Float a1)
9025 set_value(State self, IntKey a0, IMP::Int a1)
9026 set_value(State self, FloatsKey a0, IMP::Floats a1)
9027 set_value(State self, IntsKey a0, IMP::Ints a1)
9028 set_value(State self, StringKey a0, IMP::String a1)
9029 set_value(State self, ParticleIndexKey a0, Particle a1)
9030 set_value(State self, ObjectKey a0, Object a1)
9031 set_value(State self, SparseFloatKey a0, IMP::Float a1)
9032 set_value(State self, SparseIntKey a0, IMP::Int a1)
9033 set_value(State self, SparseStringKey a0, IMP::String a1)
9034 set_value(State self, SparseParticleIndexKey a0, ParticleIndex a1)
9036 return _IMP_atom.State_set_value(self, *args)
9038 def remove_attribute(self, *args):
9040 remove_attribute(State self, FloatKey a0)
9041 remove_attribute(State self, IntKey a0)
9042 remove_attribute(State self, FloatsKey a0)
9043 remove_attribute(State self, IntsKey a0)
9044 remove_attribute(State self, StringKey a0)
9045 remove_attribute(State self, ParticleIndexKey a0)
9046 remove_attribute(State self, ObjectKey a0)
9047 remove_attribute(State self, SparseFloatKey a0)
9048 remove_attribute(State self, SparseIntKey a0)
9049 remove_attribute(State self, SparseStringKey a0)
9050 remove_attribute(State self, SparseParticleIndexKey a0)
9052 return _IMP_atom.State_remove_attribute(self, *args)
9054 def has_attribute(self, *args):
9056 has_attribute(State self, FloatKey a0) -> bool
9057 has_attribute(State self, IntKey a0) -> bool
9058 has_attribute(State self, FloatsKey a0) -> bool
9059 has_attribute(State self, IntsKey a0) -> bool
9060 has_attribute(State self, StringKey a0) -> bool
9061 has_attribute(State self, ParticleIndexKey a0) -> bool
9062 has_attribute(State self, ObjectKey a0) -> bool
9063 has_attribute(State self, SparseFloatKey a0) -> bool
9064 has_attribute(State self, SparseIntKey a0) -> bool
9065 has_attribute(State self, SparseStringKey a0) -> bool
9066 has_attribute(State self, SparseParticleIndexKey a0) -> bool
9068 return _IMP_atom.State_has_attribute(self, *args)
9070 def get_derivative(self, a0):
9071 r"""get_derivative(State self, FloatKey a0) -> double"""
9072 return _IMP_atom.State_get_derivative(self, a0)
9075 r"""get_name(State self) -> std::string"""
9076 return _IMP_atom.State_get_name(self)
9078 def clear_caches(self):
9079 r"""clear_caches(State self)"""
9080 return _IMP_atom.State_clear_caches(self)
9082 def set_name(self, a0):
9083 r"""set_name(State self, std::string a0)"""
9084 return _IMP_atom.State_set_name(self, a0)
9087 r"""set_check_level(State self, IMP::CheckLevel a0)"""
9088 return _IMP_atom.State_set_check_level(self, a0)
9090 def add_to_derivative(self, a0, a1, a2):
9091 r"""add_to_derivative(State self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
9092 return _IMP_atom.State_add_to_derivative(self, a0, a1, a2)
9094 def set_is_optimized(self, a0, a1):
9095 r"""set_is_optimized(State self, FloatKey a0, bool a1)"""
9096 return _IMP_atom.State_set_is_optimized(self, a0, a1)
9098 def get_is_optimized(self, a0):
9099 r"""get_is_optimized(State self, FloatKey a0) -> bool"""
9100 return _IMP_atom.State_get_is_optimized(self, a0)
9103 r"""get_check_level(State self) -> IMP::CheckLevel"""
9104 return _IMP_atom.State_get_check_level(self)
9106 def __eq__(self, *args):
9108 __eq__(State self, State o) -> bool
9109 __eq__(State self, Particle d) -> bool
9111 return _IMP_atom.State___eq__(self, *args)
9113 def __ne__(self, *args):
9115 __ne__(State self, State o) -> bool
9116 __ne__(State self, Particle d) -> bool
9118 return _IMP_atom.State___ne__(self, *args)
9120 def __le__(self, *args):
9122 __le__(State self, State o) -> bool
9123 __le__(State self, Particle d) -> bool
9125 return _IMP_atom.State___le__(self, *args)
9127 def __lt__(self, *args):
9129 __lt__(State self, State o) -> bool
9130 __lt__(State self, Particle d) -> bool
9132 return _IMP_atom.State___lt__(self, *args)
9134 def __ge__(self, *args):
9136 __ge__(State self, State o) -> bool
9137 __ge__(State self, Particle d) -> bool
9139 return _IMP_atom.State___ge__(self, *args)
9141 def __gt__(self, *args):
9143 __gt__(State self, State o) -> bool
9144 __gt__(State self, Particle d) -> bool
9146 return _IMP_atom.State___gt__(self, *args)
9149 r"""__hash__(State self) -> std::size_t"""
9150 return _IMP_atom.State___hash__(self)
9153 r"""__str__(State self) -> std::string"""
9154 return _IMP_atom.State___str__(self)
9157 r"""__repr__(State self) -> std::string"""
9158 return _IMP_atom.State___repr__(self)
9160 def _get_as_binary(self):
9161 r"""_get_as_binary(State self) -> PyObject *"""
9162 return _IMP_atom.State__get_as_binary(self)
9164 def _set_from_binary(self, p):
9165 r"""_set_from_binary(State self, PyObject * p)"""
9166 return _IMP_atom.State__set_from_binary(self, p)
9168 def __getstate__(self):
9169 p = self._get_as_binary()
9170 if len(self.__dict__) > 1:
9171 d = self.__dict__.copy()
9176 def __setstate__(self, p):
9177 if not hasattr(self,
'this'):
9179 if isinstance(p, tuple):
9181 self.__dict__.update(d)
9182 return self._set_from_binary(p)
9184 __swig_destroy__ = _IMP_atom.delete_State
9187 _IMP_atom.State_swigregister(State)
9190 r"""get_state_index(Hierarchy h) -> int"""
9191 return _IMP_atom.get_state_index(h)
9194 r"""get_phi_dihedral_atoms(Residue rd) -> IMP::atom::Atoms"""
9195 return _IMP_atom.get_phi_dihedral_atoms(rd)
9198 r"""get_psi_dihedral_atoms(Residue rd) -> IMP::atom::Atoms"""
9199 return _IMP_atom.get_psi_dihedral_atoms(rd)
9202 r"""get_omega_dihedral_atoms(Residue rd) -> IMP::atom::Atoms"""
9203 return _IMP_atom.get_omega_dihedral_atoms(rd)
9206 r"""get_chi_dihedral_atom_types(ResidueType rt) -> IMP::Vector< IMP::atom::AtomTypes >"""
9207 return _IMP_atom.get_chi_dihedral_atom_types(rt)
9210 r"""get_chi_dihedral_atoms(Residue rd) -> IMP::Vector< IMP::atom::Atoms >"""
9211 return _IMP_atom.get_chi_dihedral_atoms(rd)
9214 r"""get_chi_dihedral_particle_indexes(Residue rd) -> IMP::ParticleIndexQuads"""
9215 return _IMP_atom.get_chi_dihedral_particle_indexes(rd)
9216 class Molecule(Hierarchy):
9217 r"""Proxy of C++ IMP::atom::Molecule class."""
9219 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9221 def __init__(self, *args):
9223 __init__(Molecule self) -> Molecule
9224 __init__(Molecule self, Model m, ParticleIndex id) -> Molecule
9225 __init__(Molecule self, _ParticleAdaptor d) -> Molecule
9227 _IMP_atom.Molecule_swiginit(self, _IMP_atom.new_Molecule(*args))
9229 def show(self, *args):
9230 r"""show(Molecule self, _ostream out=std::cout)"""
9231 return _IMP_atom.Molecule_show(self, *args)
9234 def setup_particle(*args):
9236 setup_particle(Model m, ParticleIndex pi) -> Molecule
9237 setup_particle(_ParticleAdaptor pa) -> Molecule
9238 setup_particle(Model m, ParticleIndex pi, Molecule other) -> Molecule
9239 setup_particle(_ParticleAdaptor pa, Molecule other) -> Molecule
9241 return _IMP_atom.Molecule_setup_particle(*args)
9244 def get_is_setup(*args):
9246 get_is_setup(_ParticleAdaptor p) -> bool
9247 get_is_setup(Model m, ParticleIndex pi) -> bool
9249 return _IMP_atom.Molecule_get_is_setup(*args)
9251 def add_attribute(self, *args):
9253 add_attribute(Molecule self, FloatKey k, IMP::Float v, bool opt)
9254 add_attribute(Molecule self, FloatKey a0, IMP::Float a1)
9255 add_attribute(Molecule self, IntKey a0, IMP::Int a1)
9256 add_attribute(Molecule self, FloatsKey a0, IMP::Floats a1)
9257 add_attribute(Molecule self, IntsKey a0, IMP::Ints a1)
9258 add_attribute(Molecule self, StringKey a0, IMP::String a1)
9259 add_attribute(Molecule self, ParticleIndexKey a0, Particle a1)
9260 add_attribute(Molecule self, ObjectKey a0, Object a1)
9261 add_attribute(Molecule self, SparseFloatKey a0, IMP::Float a1)
9262 add_attribute(Molecule self, SparseIntKey a0, IMP::Int a1)
9263 add_attribute(Molecule self, SparseStringKey a0, IMP::String a1)
9264 add_attribute(Molecule self, SparseParticleIndexKey a0, ParticleIndex a1)
9266 return _IMP_atom.Molecule_add_attribute(self, *args)
9268 def get_value(self, *args):
9270 get_value(Molecule self, FloatKey a0) -> IMP::Float
9271 get_value(Molecule self, IntKey a0) -> IMP::Int
9272 get_value(Molecule self, FloatsKey a0) -> IMP::Floats
9273 get_value(Molecule self, IntsKey a0) -> IMP::Ints
9274 get_value(Molecule self, StringKey a0) -> IMP::String
9275 get_value(Molecule self, ParticleIndexKey a0) -> Particle
9276 get_value(Molecule self, ObjectKey a0) -> Object
9277 get_value(Molecule self, SparseFloatKey a0) -> IMP::Float
9278 get_value(Molecule self, SparseIntKey a0) -> IMP::Int
9279 get_value(Molecule self, SparseStringKey a0) -> IMP::String
9280 get_value(Molecule self, SparseParticleIndexKey a0) -> ParticleIndex
9282 return _IMP_atom.Molecule_get_value(self, *args)
9284 def set_value(self, *args):
9286 set_value(Molecule self, FloatKey a0, IMP::Float a1)
9287 set_value(Molecule self, IntKey a0, IMP::Int a1)
9288 set_value(Molecule self, FloatsKey a0, IMP::Floats a1)
9289 set_value(Molecule self, IntsKey a0, IMP::Ints a1)
9290 set_value(Molecule self, StringKey a0, IMP::String a1)
9291 set_value(Molecule self, ParticleIndexKey a0, Particle a1)
9292 set_value(Molecule self, ObjectKey a0, Object a1)
9293 set_value(Molecule self, SparseFloatKey a0, IMP::Float a1)
9294 set_value(Molecule self, SparseIntKey a0, IMP::Int a1)
9295 set_value(Molecule self, SparseStringKey a0, IMP::String a1)
9296 set_value(Molecule self, SparseParticleIndexKey a0, ParticleIndex a1)
9298 return _IMP_atom.Molecule_set_value(self, *args)
9300 def remove_attribute(self, *args):
9302 remove_attribute(Molecule self, FloatKey a0)
9303 remove_attribute(Molecule self, IntKey a0)
9304 remove_attribute(Molecule self, FloatsKey a0)
9305 remove_attribute(Molecule self, IntsKey a0)
9306 remove_attribute(Molecule self, StringKey a0)
9307 remove_attribute(Molecule self, ParticleIndexKey a0)
9308 remove_attribute(Molecule self, ObjectKey a0)
9309 remove_attribute(Molecule self, SparseFloatKey a0)
9310 remove_attribute(Molecule self, SparseIntKey a0)
9311 remove_attribute(Molecule self, SparseStringKey a0)
9312 remove_attribute(Molecule self, SparseParticleIndexKey a0)
9314 return _IMP_atom.Molecule_remove_attribute(self, *args)
9316 def has_attribute(self, *args):
9318 has_attribute(Molecule self, FloatKey a0) -> bool
9319 has_attribute(Molecule self, IntKey a0) -> bool
9320 has_attribute(Molecule self, FloatsKey a0) -> bool
9321 has_attribute(Molecule self, IntsKey a0) -> bool
9322 has_attribute(Molecule self, StringKey a0) -> bool
9323 has_attribute(Molecule self, ParticleIndexKey a0) -> bool
9324 has_attribute(Molecule self, ObjectKey a0) -> bool
9325 has_attribute(Molecule self, SparseFloatKey a0) -> bool
9326 has_attribute(Molecule self, SparseIntKey a0) -> bool
9327 has_attribute(Molecule self, SparseStringKey a0) -> bool
9328 has_attribute(Molecule self, SparseParticleIndexKey a0) -> bool
9330 return _IMP_atom.Molecule_has_attribute(self, *args)
9332 def get_derivative(self, a0):
9333 r"""get_derivative(Molecule self, FloatKey a0) -> double"""
9334 return _IMP_atom.Molecule_get_derivative(self, a0)
9337 r"""get_name(Molecule self) -> std::string"""
9338 return _IMP_atom.Molecule_get_name(self)
9340 def clear_caches(self):
9341 r"""clear_caches(Molecule self)"""
9342 return _IMP_atom.Molecule_clear_caches(self)
9344 def set_name(self, a0):
9345 r"""set_name(Molecule self, std::string a0)"""
9346 return _IMP_atom.Molecule_set_name(self, a0)
9349 r"""set_check_level(Molecule self, IMP::CheckLevel a0)"""
9350 return _IMP_atom.Molecule_set_check_level(self, a0)
9352 def add_to_derivative(self, a0, a1, a2):
9353 r"""add_to_derivative(Molecule self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
9354 return _IMP_atom.Molecule_add_to_derivative(self, a0, a1, a2)
9356 def set_is_optimized(self, a0, a1):
9357 r"""set_is_optimized(Molecule self, FloatKey a0, bool a1)"""
9358 return _IMP_atom.Molecule_set_is_optimized(self, a0, a1)
9360 def get_is_optimized(self, a0):
9361 r"""get_is_optimized(Molecule self, FloatKey a0) -> bool"""
9362 return _IMP_atom.Molecule_get_is_optimized(self, a0)
9365 r"""get_check_level(Molecule self) -> IMP::CheckLevel"""
9366 return _IMP_atom.Molecule_get_check_level(self)
9368 def __eq__(self, *args):
9370 __eq__(Molecule self, Molecule o) -> bool
9371 __eq__(Molecule self, Particle d) -> bool
9373 return _IMP_atom.Molecule___eq__(self, *args)
9375 def __ne__(self, *args):
9377 __ne__(Molecule self, Molecule o) -> bool
9378 __ne__(Molecule self, Particle d) -> bool
9380 return _IMP_atom.Molecule___ne__(self, *args)
9382 def __le__(self, *args):
9384 __le__(Molecule self, Molecule o) -> bool
9385 __le__(Molecule self, Particle d) -> bool
9387 return _IMP_atom.Molecule___le__(self, *args)
9389 def __lt__(self, *args):
9391 __lt__(Molecule self, Molecule o) -> bool
9392 __lt__(Molecule self, Particle d) -> bool
9394 return _IMP_atom.Molecule___lt__(self, *args)
9396 def __ge__(self, *args):
9398 __ge__(Molecule self, Molecule o) -> bool
9399 __ge__(Molecule self, Particle d) -> bool
9401 return _IMP_atom.Molecule___ge__(self, *args)
9403 def __gt__(self, *args):
9405 __gt__(Molecule self, Molecule o) -> bool
9406 __gt__(Molecule self, Particle d) -> bool
9408 return _IMP_atom.Molecule___gt__(self, *args)
9411 r"""__hash__(Molecule self) -> std::size_t"""
9412 return _IMP_atom.Molecule___hash__(self)
9415 r"""__str__(Molecule self) -> std::string"""
9416 return _IMP_atom.Molecule___str__(self)
9419 r"""__repr__(Molecule self) -> std::string"""
9420 return _IMP_atom.Molecule___repr__(self)
9422 def _get_as_binary(self):
9423 r"""_get_as_binary(Molecule self) -> PyObject *"""
9424 return _IMP_atom.Molecule__get_as_binary(self)
9426 def _set_from_binary(self, p):
9427 r"""_set_from_binary(Molecule self, PyObject * p)"""
9428 return _IMP_atom.Molecule__set_from_binary(self, p)
9430 def __getstate__(self):
9431 p = self._get_as_binary()
9432 if len(self.__dict__) > 1:
9433 d = self.__dict__.copy()
9438 def __setstate__(self, p):
9439 if not hasattr(self,
'this'):
9441 if isinstance(p, tuple):
9443 self.__dict__.update(d)
9444 return self._set_from_binary(p)
9446 __swig_destroy__ = _IMP_atom.delete_Molecule
9449 _IMP_atom.Molecule_swigregister(Molecule)
9452 r"""get_molecule_name(Hierarchy h) -> std::string"""
9453 return _IMP_atom.get_molecule_name(h)
9454 class Copy(Molecule):
9455 r"""Proxy of C++ IMP::atom::Copy class."""
9457 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9460 def get_copy_index_key():
9461 r"""get_copy_index_key() -> IntKey"""
9462 return _IMP_atom.Copy_get_copy_index_key()
9464 def __init__(self, *args):
9466 __init__(Copy self) -> Copy
9467 __init__(Copy self, Model m, ParticleIndex id) -> Copy
9468 __init__(Copy self, _ParticleAdaptor d) -> Copy
9470 _IMP_atom.Copy_swiginit(self, _IMP_atom.new_Copy(*args))
9472 def show(self, *args):
9473 r"""show(Copy self, _ostream out=std::cout)"""
9474 return _IMP_atom.Copy_show(self, *args)
9477 def setup_particle(*args):
9479 setup_particle(Model m, ParticleIndex pi, IMP::Int number) -> Copy
9480 setup_particle(_ParticleAdaptor pa, IMP::Int number) -> Copy
9482 return _IMP_atom.Copy_setup_particle(*args)
9485 def get_is_setup(*args):
9487 get_is_setup(_ParticleAdaptor p) -> bool
9488 get_is_setup(Model m, ParticleIndex pi) -> bool
9490 return _IMP_atom.Copy_get_is_setup(*args)
9493 r"""get_copy_index(Copy self) -> int"""
9494 return _IMP_atom.Copy_get_copy_index(self)
9496 def add_attribute(self, *args):
9498 add_attribute(Copy self, FloatKey k, IMP::Float v, bool opt)
9499 add_attribute(Copy self, FloatKey a0, IMP::Float a1)
9500 add_attribute(Copy self, IntKey a0, IMP::Int a1)
9501 add_attribute(Copy self, FloatsKey a0, IMP::Floats a1)
9502 add_attribute(Copy self, IntsKey a0, IMP::Ints a1)
9503 add_attribute(Copy self, StringKey a0, IMP::String a1)
9504 add_attribute(Copy self, ParticleIndexKey a0, Particle a1)
9505 add_attribute(Copy self, ObjectKey a0, Object a1)
9506 add_attribute(Copy self, SparseFloatKey a0, IMP::Float a1)
9507 add_attribute(Copy self, SparseIntKey a0, IMP::Int a1)
9508 add_attribute(Copy self, SparseStringKey a0, IMP::String a1)
9509 add_attribute(Copy self, SparseParticleIndexKey a0, ParticleIndex a1)
9511 return _IMP_atom.Copy_add_attribute(self, *args)
9513 def get_value(self, *args):
9515 get_value(Copy self, FloatKey a0) -> IMP::Float
9516 get_value(Copy self, IntKey a0) -> IMP::Int
9517 get_value(Copy self, FloatsKey a0) -> IMP::Floats
9518 get_value(Copy self, IntsKey a0) -> IMP::Ints
9519 get_value(Copy self, StringKey a0) -> IMP::String
9520 get_value(Copy self, ParticleIndexKey a0) -> Particle
9521 get_value(Copy self, ObjectKey a0) -> Object
9522 get_value(Copy self, SparseFloatKey a0) -> IMP::Float
9523 get_value(Copy self, SparseIntKey a0) -> IMP::Int
9524 get_value(Copy self, SparseStringKey a0) -> IMP::String
9525 get_value(Copy self, SparseParticleIndexKey a0) -> ParticleIndex
9527 return _IMP_atom.Copy_get_value(self, *args)
9529 def set_value(self, *args):
9531 set_value(Copy self, FloatKey a0, IMP::Float a1)
9532 set_value(Copy self, IntKey a0, IMP::Int a1)
9533 set_value(Copy self, FloatsKey a0, IMP::Floats a1)
9534 set_value(Copy self, IntsKey a0, IMP::Ints a1)
9535 set_value(Copy self, StringKey a0, IMP::String a1)
9536 set_value(Copy self, ParticleIndexKey a0, Particle a1)
9537 set_value(Copy self, ObjectKey a0, Object a1)
9538 set_value(Copy self, SparseFloatKey a0, IMP::Float a1)
9539 set_value(Copy self, SparseIntKey a0, IMP::Int a1)
9540 set_value(Copy self, SparseStringKey a0, IMP::String a1)
9541 set_value(Copy self, SparseParticleIndexKey a0, ParticleIndex a1)
9543 return _IMP_atom.Copy_set_value(self, *args)
9545 def remove_attribute(self, *args):
9547 remove_attribute(Copy self, FloatKey a0)
9548 remove_attribute(Copy self, IntKey a0)
9549 remove_attribute(Copy self, FloatsKey a0)
9550 remove_attribute(Copy self, IntsKey a0)
9551 remove_attribute(Copy self, StringKey a0)
9552 remove_attribute(Copy self, ParticleIndexKey a0)
9553 remove_attribute(Copy self, ObjectKey a0)
9554 remove_attribute(Copy self, SparseFloatKey a0)
9555 remove_attribute(Copy self, SparseIntKey a0)
9556 remove_attribute(Copy self, SparseStringKey a0)
9557 remove_attribute(Copy self, SparseParticleIndexKey a0)
9559 return _IMP_atom.Copy_remove_attribute(self, *args)
9561 def has_attribute(self, *args):
9563 has_attribute(Copy self, FloatKey a0) -> bool
9564 has_attribute(Copy self, IntKey a0) -> bool
9565 has_attribute(Copy self, FloatsKey a0) -> bool
9566 has_attribute(Copy self, IntsKey a0) -> bool
9567 has_attribute(Copy self, StringKey a0) -> bool
9568 has_attribute(Copy self, ParticleIndexKey a0) -> bool
9569 has_attribute(Copy self, ObjectKey a0) -> bool
9570 has_attribute(Copy self, SparseFloatKey a0) -> bool
9571 has_attribute(Copy self, SparseIntKey a0) -> bool
9572 has_attribute(Copy self, SparseStringKey a0) -> bool
9573 has_attribute(Copy self, SparseParticleIndexKey a0) -> bool
9575 return _IMP_atom.Copy_has_attribute(self, *args)
9577 def get_derivative(self, a0):
9578 r"""get_derivative(Copy self, FloatKey a0) -> double"""
9579 return _IMP_atom.Copy_get_derivative(self, a0)
9582 r"""get_name(Copy self) -> std::string"""
9583 return _IMP_atom.Copy_get_name(self)
9585 def clear_caches(self):
9586 r"""clear_caches(Copy self)"""
9587 return _IMP_atom.Copy_clear_caches(self)
9589 def set_name(self, a0):
9590 r"""set_name(Copy self, std::string a0)"""
9591 return _IMP_atom.Copy_set_name(self, a0)
9594 r"""set_check_level(Copy self, IMP::CheckLevel a0)"""
9595 return _IMP_atom.Copy_set_check_level(self, a0)
9597 def add_to_derivative(self, a0, a1, a2):
9598 r"""add_to_derivative(Copy self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
9599 return _IMP_atom.Copy_add_to_derivative(self, a0, a1, a2)
9601 def set_is_optimized(self, a0, a1):
9602 r"""set_is_optimized(Copy self, FloatKey a0, bool a1)"""
9603 return _IMP_atom.Copy_set_is_optimized(self, a0, a1)
9605 def get_is_optimized(self, a0):
9606 r"""get_is_optimized(Copy self, FloatKey a0) -> bool"""
9607 return _IMP_atom.Copy_get_is_optimized(self, a0)
9610 r"""get_check_level(Copy self) -> IMP::CheckLevel"""
9611 return _IMP_atom.Copy_get_check_level(self)
9613 def __eq__(self, *args):
9615 __eq__(Copy self, Copy o) -> bool
9616 __eq__(Copy self, Particle d) -> bool
9618 return _IMP_atom.Copy___eq__(self, *args)
9620 def __ne__(self, *args):
9622 __ne__(Copy self, Copy o) -> bool
9623 __ne__(Copy self, Particle d) -> bool
9625 return _IMP_atom.Copy___ne__(self, *args)
9627 def __le__(self, *args):
9629 __le__(Copy self, Copy o) -> bool
9630 __le__(Copy self, Particle d) -> bool
9632 return _IMP_atom.Copy___le__(self, *args)
9634 def __lt__(self, *args):
9636 __lt__(Copy self, Copy o) -> bool
9637 __lt__(Copy self, Particle d) -> bool
9639 return _IMP_atom.Copy___lt__(self, *args)
9641 def __ge__(self, *args):
9643 __ge__(Copy self, Copy o) -> bool
9644 __ge__(Copy self, Particle d) -> bool
9646 return _IMP_atom.Copy___ge__(self, *args)
9648 def __gt__(self, *args):
9650 __gt__(Copy self, Copy o) -> bool
9651 __gt__(Copy self, Particle d) -> bool
9653 return _IMP_atom.Copy___gt__(self, *args)
9656 r"""__hash__(Copy self) -> std::size_t"""
9657 return _IMP_atom.Copy___hash__(self)
9660 r"""__str__(Copy self) -> std::string"""
9661 return _IMP_atom.Copy___str__(self)
9664 r"""__repr__(Copy self) -> std::string"""
9665 return _IMP_atom.Copy___repr__(self)
9667 def _get_as_binary(self):
9668 r"""_get_as_binary(Copy self) -> PyObject *"""
9669 return _IMP_atom.Copy__get_as_binary(self)
9671 def _set_from_binary(self, p):
9672 r"""_set_from_binary(Copy self, PyObject * p)"""
9673 return _IMP_atom.Copy__set_from_binary(self, p)
9675 def __getstate__(self):
9676 p = self._get_as_binary()
9677 if len(self.__dict__) > 1:
9678 d = self.__dict__.copy()
9683 def __setstate__(self, p):
9684 if not hasattr(self,
'this'):
9686 if isinstance(p, tuple):
9688 self.__dict__.update(d)
9689 return self._set_from_binary(p)
9691 __swig_destroy__ = _IMP_atom.delete_Copy
9694 _IMP_atom.Copy_swigregister(Copy)
9697 r"""get_copy_index(Hierarchy h) -> int"""
9698 return _IMP_atom.get_copy_index(h)
9699 class Chain(Hierarchy):
9700 r"""Proxy of C++ IMP::atom::Chain class."""
9702 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9704 def __init__(self, *args):
9706 __init__(Chain self) -> Chain
9707 __init__(Chain self, Model m, ParticleIndex id) -> Chain
9708 __init__(Chain self, _ParticleAdaptor d) -> Chain
9710 _IMP_atom.Chain_swiginit(self, _IMP_atom.new_Chain(*args))
9712 def show(self, *args):
9713 r"""show(Chain self, _ostream out=std::cout)"""
9714 return _IMP_atom.Chain_show(self, *args)
9717 def setup_particle(*args):
9719 setup_particle(Model m, ParticleIndex pi, std::string id) -> Chain
9720 setup_particle(_ParticleAdaptor pa, std::string id) -> Chain
9721 setup_particle(Model m, ParticleIndex pi, char id) -> Chain
9722 setup_particle(_ParticleAdaptor pa, char id) -> Chain
9723 setup_particle(Model m, ParticleIndex pi, Chain other) -> Chain
9724 setup_particle(_ParticleAdaptor pa, Chain other) -> Chain
9726 return _IMP_atom.Chain_setup_particle(*args)
9729 def get_is_setup(*args):
9731 get_is_setup(_ParticleAdaptor p) -> bool
9732 get_is_setup(Model m, ParticleIndex pi) -> bool
9734 return _IMP_atom.Chain_get_is_setup(*args)
9737 r"""get_id(Chain self) -> std::string"""
9738 return _IMP_atom.Chain_get_id(self)
9740 def set_id(self, c):
9741 r"""set_id(Chain self, std::string c)"""
9742 return _IMP_atom.Chain_set_id(self, c)
9744 def get_label_asym_id(self):
9745 r"""get_label_asym_id(Chain self) -> std::string"""
9746 return _IMP_atom.Chain_get_label_asym_id(self)
9748 def set_label_asym_id(self, c):
9749 r"""set_label_asym_id(Chain self, std::string c)"""
9750 return _IMP_atom.Chain_set_label_asym_id(self, c)
9752 def get_sequence(self):
9753 r"""get_sequence(Chain self) -> std::string"""
9754 return _IMP_atom.Chain_get_sequence(self)
9756 def set_sequence(self, sequence):
9757 r"""set_sequence(Chain self, std::string sequence)"""
9758 return _IMP_atom.Chain_set_sequence(self, sequence)
9760 def get_sequence_offset(self):
9761 r"""get_sequence_offset(Chain self) -> int"""
9762 return _IMP_atom.Chain_get_sequence_offset(self)
9764 def set_sequence_offset(self, offset):
9765 r"""set_sequence_offset(Chain self, int offset)"""
9766 return _IMP_atom.Chain_set_sequence_offset(self, offset)
9768 def get_uniprot_accession(self):
9769 r"""get_uniprot_accession(Chain self) -> std::string"""
9770 return _IMP_atom.Chain_get_uniprot_accession(self)
9772 def set_uniprot_accession(self, accession):
9773 r"""set_uniprot_accession(Chain self, std::string accession)"""
9774 return _IMP_atom.Chain_set_uniprot_accession(self, accession)
9776 def get_chain_type(self):
9777 r"""get_chain_type(Chain self) -> ChainType"""
9778 return _IMP_atom.Chain_get_chain_type(self)
9780 def set_chain_type(self, t):
9781 r"""set_chain_type(Chain self, ChainType t)"""
9782 return _IMP_atom.Chain_set_chain_type(self, t)
9786 r"""get_id_key() -> SparseStringKey"""
9787 return _IMP_atom.Chain_get_id_key()
9790 def get_label_asym_id_key():
9791 r"""get_label_asym_id_key() -> SparseStringKey"""
9792 return _IMP_atom.Chain_get_label_asym_id_key()
9795 def get_sequence_key():
9796 r"""get_sequence_key() -> SparseStringKey"""
9797 return _IMP_atom.Chain_get_sequence_key()
9800 def get_sequence_offset_key():
9801 r"""get_sequence_offset_key() -> SparseIntKey"""
9802 return _IMP_atom.Chain_get_sequence_offset_key()
9805 def get_uniprot_accession_key():
9806 r"""get_uniprot_accession_key() -> SparseStringKey"""
9807 return _IMP_atom.Chain_get_uniprot_accession_key()
9810 def get_chain_type_key():
9811 r"""get_chain_type_key() -> SparseIntKey"""
9812 return _IMP_atom.Chain_get_chain_type_key()
9814 def add_attribute(self, *args):
9816 add_attribute(Chain self, FloatKey k, IMP::Float v, bool opt)
9817 add_attribute(Chain self, FloatKey a0, IMP::Float a1)
9818 add_attribute(Chain self, IntKey a0, IMP::Int a1)
9819 add_attribute(Chain self, FloatsKey a0, IMP::Floats a1)
9820 add_attribute(Chain self, IntsKey a0, IMP::Ints a1)
9821 add_attribute(Chain self, StringKey a0, IMP::String a1)
9822 add_attribute(Chain self, ParticleIndexKey a0, Particle a1)
9823 add_attribute(Chain self, ObjectKey a0, Object a1)
9824 add_attribute(Chain self, SparseFloatKey a0, IMP::Float a1)
9825 add_attribute(Chain self, SparseIntKey a0, IMP::Int a1)
9826 add_attribute(Chain self, SparseStringKey a0, IMP::String a1)
9827 add_attribute(Chain self, SparseParticleIndexKey a0, ParticleIndex a1)
9829 return _IMP_atom.Chain_add_attribute(self, *args)
9831 def get_value(self, *args):
9833 get_value(Chain self, FloatKey a0) -> IMP::Float
9834 get_value(Chain self, IntKey a0) -> IMP::Int
9835 get_value(Chain self, FloatsKey a0) -> IMP::Floats
9836 get_value(Chain self, IntsKey a0) -> IMP::Ints
9837 get_value(Chain self, StringKey a0) -> IMP::String
9838 get_value(Chain self, ParticleIndexKey a0) -> Particle
9839 get_value(Chain self, ObjectKey a0) -> Object
9840 get_value(Chain self, SparseFloatKey a0) -> IMP::Float
9841 get_value(Chain self, SparseIntKey a0) -> IMP::Int
9842 get_value(Chain self, SparseStringKey a0) -> IMP::String
9843 get_value(Chain self, SparseParticleIndexKey a0) -> ParticleIndex
9845 return _IMP_atom.Chain_get_value(self, *args)
9847 def set_value(self, *args):
9849 set_value(Chain self, FloatKey a0, IMP::Float a1)
9850 set_value(Chain self, IntKey a0, IMP::Int a1)
9851 set_value(Chain self, FloatsKey a0, IMP::Floats a1)
9852 set_value(Chain self, IntsKey a0, IMP::Ints a1)
9853 set_value(Chain self, StringKey a0, IMP::String a1)
9854 set_value(Chain self, ParticleIndexKey a0, Particle a1)
9855 set_value(Chain self, ObjectKey a0, Object a1)
9856 set_value(Chain self, SparseFloatKey a0, IMP::Float a1)
9857 set_value(Chain self, SparseIntKey a0, IMP::Int a1)
9858 set_value(Chain self, SparseStringKey a0, IMP::String a1)
9859 set_value(Chain self, SparseParticleIndexKey a0, ParticleIndex a1)
9861 return _IMP_atom.Chain_set_value(self, *args)
9863 def remove_attribute(self, *args):
9865 remove_attribute(Chain self, FloatKey a0)
9866 remove_attribute(Chain self, IntKey a0)
9867 remove_attribute(Chain self, FloatsKey a0)
9868 remove_attribute(Chain self, IntsKey a0)
9869 remove_attribute(Chain self, StringKey a0)
9870 remove_attribute(Chain self, ParticleIndexKey a0)
9871 remove_attribute(Chain self, ObjectKey a0)
9872 remove_attribute(Chain self, SparseFloatKey a0)
9873 remove_attribute(Chain self, SparseIntKey a0)
9874 remove_attribute(Chain self, SparseStringKey a0)
9875 remove_attribute(Chain self, SparseParticleIndexKey a0)
9877 return _IMP_atom.Chain_remove_attribute(self, *args)
9879 def has_attribute(self, *args):
9881 has_attribute(Chain self, FloatKey a0) -> bool
9882 has_attribute(Chain self, IntKey a0) -> bool
9883 has_attribute(Chain self, FloatsKey a0) -> bool
9884 has_attribute(Chain self, IntsKey a0) -> bool
9885 has_attribute(Chain self, StringKey a0) -> bool
9886 has_attribute(Chain self, ParticleIndexKey a0) -> bool
9887 has_attribute(Chain self, ObjectKey a0) -> bool
9888 has_attribute(Chain self, SparseFloatKey a0) -> bool
9889 has_attribute(Chain self, SparseIntKey a0) -> bool
9890 has_attribute(Chain self, SparseStringKey a0) -> bool
9891 has_attribute(Chain self, SparseParticleIndexKey a0) -> bool
9893 return _IMP_atom.Chain_has_attribute(self, *args)
9895 def get_derivative(self, a0):
9896 r"""get_derivative(Chain self, FloatKey a0) -> double"""
9897 return _IMP_atom.Chain_get_derivative(self, a0)
9900 r"""get_name(Chain self) -> std::string"""
9901 return _IMP_atom.Chain_get_name(self)
9903 def clear_caches(self):
9904 r"""clear_caches(Chain self)"""
9905 return _IMP_atom.Chain_clear_caches(self)
9907 def set_name(self, a0):
9908 r"""set_name(Chain self, std::string a0)"""
9909 return _IMP_atom.Chain_set_name(self, a0)
9912 r"""set_check_level(Chain self, IMP::CheckLevel a0)"""
9913 return _IMP_atom.Chain_set_check_level(self, a0)
9915 def add_to_derivative(self, a0, a1, a2):
9916 r"""add_to_derivative(Chain self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
9917 return _IMP_atom.Chain_add_to_derivative(self, a0, a1, a2)
9919 def set_is_optimized(self, a0, a1):
9920 r"""set_is_optimized(Chain self, FloatKey a0, bool a1)"""
9921 return _IMP_atom.Chain_set_is_optimized(self, a0, a1)
9923 def get_is_optimized(self, a0):
9924 r"""get_is_optimized(Chain self, FloatKey a0) -> bool"""
9925 return _IMP_atom.Chain_get_is_optimized(self, a0)
9928 r"""get_check_level(Chain self) -> IMP::CheckLevel"""
9929 return _IMP_atom.Chain_get_check_level(self)
9931 def __eq__(self, *args):
9933 __eq__(Chain self, Chain o) -> bool
9934 __eq__(Chain self, Particle d) -> bool
9936 return _IMP_atom.Chain___eq__(self, *args)
9938 def __ne__(self, *args):
9940 __ne__(Chain self, Chain o) -> bool
9941 __ne__(Chain self, Particle d) -> bool
9943 return _IMP_atom.Chain___ne__(self, *args)
9945 def __le__(self, *args):
9947 __le__(Chain self, Chain o) -> bool
9948 __le__(Chain self, Particle d) -> bool
9950 return _IMP_atom.Chain___le__(self, *args)
9952 def __lt__(self, *args):
9954 __lt__(Chain self, Chain o) -> bool
9955 __lt__(Chain self, Particle d) -> bool
9957 return _IMP_atom.Chain___lt__(self, *args)
9959 def __ge__(self, *args):
9961 __ge__(Chain self, Chain o) -> bool
9962 __ge__(Chain self, Particle d) -> bool
9964 return _IMP_atom.Chain___ge__(self, *args)
9966 def __gt__(self, *args):
9968 __gt__(Chain self, Chain o) -> bool
9969 __gt__(Chain self, Particle d) -> bool
9971 return _IMP_atom.Chain___gt__(self, *args)
9974 r"""__hash__(Chain self) -> std::size_t"""
9975 return _IMP_atom.Chain___hash__(self)
9978 r"""__str__(Chain self) -> std::string"""
9979 return _IMP_atom.Chain___str__(self)
9982 r"""__repr__(Chain self) -> std::string"""
9983 return _IMP_atom.Chain___repr__(self)
9985 def _get_as_binary(self):
9986 r"""_get_as_binary(Chain self) -> PyObject *"""
9987 return _IMP_atom.Chain__get_as_binary(self)
9989 def _set_from_binary(self, p):
9990 r"""_set_from_binary(Chain self, PyObject * p)"""
9991 return _IMP_atom.Chain__set_from_binary(self, p)
9993 def __getstate__(self):
9994 p = self._get_as_binary()
9995 if len(self.__dict__) > 1:
9996 d = self.__dict__.copy()
10001 def __setstate__(self, p):
10002 if not hasattr(self,
'this'):
10004 if isinstance(p, tuple):
10006 self.__dict__.update(d)
10007 return self._set_from_binary(p)
10009 __swig_destroy__ = _IMP_atom.delete_Chain
10012 _IMP_atom.Chain_swigregister(Chain)
10013 UnknownChainType = cvar.UnknownChainType
10014 DPolypeptide = cvar.DPolypeptide
10015 LPolypeptide = cvar.LPolypeptide
10016 Polydeoxyribonucleotide = cvar.Polydeoxyribonucleotide
10017 Polyribonucleotide = cvar.Polyribonucleotide
10018 DPolysaccharide = cvar.DPolysaccharide
10019 LPolysaccharide = cvar.LPolysaccharide
10020 Protein = cvar.Protein
10026 r"""get_chain(Hierarchy h) -> Chain"""
10027 return _IMP_atom.get_chain(h)
10030 r"""get_chain_id(Hierarchy h) -> std::string"""
10031 return _IMP_atom.get_chain_id(h)
10032 class Selection(IMP._ParticleIndexesAdaptor):
10033 r"""Proxy of C++ IMP::atom::Selection class."""
10035 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10036 NONE = _IMP_atom.Selection_NONE
10038 C = _IMP_atom.Selection_C
10040 N = _IMP_atom.Selection_N
10043 def __init__(self, *args):
10045 __init__(Selection self) -> Selection
10046 __init__(Selection self, Hierarchy h) -> Selection
10047 __init__(Selection self, Particle h) -> Selection
10048 __init__(Selection self, Model m, IMP::ParticleIndexes const & pis) -> Selection
10049 __init__(Selection self, IMP::ParticlesTemp const & h) -> Selection
10051 _IMP_atom.Selection_swiginit(self, _IMP_atom.new_Selection(*args))
10054 r"""create_clone(Selection self) -> Selection"""
10055 return _IMP_atom.Selection_create_clone(self)
10057 def get_hierarchies(self):
10058 r"""get_hierarchies(Selection self) -> IMP::atom::Hierarchies"""
10059 return _IMP_atom.Selection_get_hierarchies(self)
10061 def set_molecules(self, mols):
10062 r"""set_molecules(Selection self, IMP::Strings mols)"""
10063 return _IMP_atom.Selection_set_molecules(self, mols)
10065 def set_resolution(self, r):
10066 r"""set_resolution(Selection self, double r)"""
10067 return _IMP_atom.Selection_set_resolution(self, r)
10069 def set_representation_type(self, t):
10070 r"""set_representation_type(Selection self, IMP::atom::RepresentationType t)"""
10071 return _IMP_atom.Selection_set_representation_type(self, t)
10073 def set_state_index(self, state):
10074 r"""set_state_index(Selection self, int state)"""
10075 return _IMP_atom.Selection_set_state_index(self, state)
10077 def set_state_indexes(self, states):
10078 r"""set_state_indexes(Selection self, IMP::Ints states)"""
10079 return _IMP_atom.Selection_set_state_indexes(self, states)
10081 def set_terminus(self, t):
10082 r"""set_terminus(Selection self, IMP::atom::Selection::Terminus t)"""
10083 return _IMP_atom.Selection_set_terminus(self, t)
10085 def set_element(self, e):
10086 r"""set_element(Selection self, IMP::atom::Element e)"""
10087 return _IMP_atom.Selection_set_element(self, e)
10089 def set_chain_ids(self, chains):
10090 r"""set_chain_ids(Selection self, IMP::Strings chains)"""
10091 return _IMP_atom.Selection_set_chain_ids(self, chains)
10093 def set_chains(self, chains):
10094 r"""set_chains(Selection self, IMP::Strings chains)"""
10095 return _IMP_atom.Selection_set_chains(self, chains)
10097 def set_residue_indexes(self, indexes):
10098 r"""set_residue_indexes(Selection self, IMP::Ints indexes)"""
10099 return _IMP_atom.Selection_set_residue_indexes(self, indexes)
10101 def set_atom_types(self, types):
10102 r"""set_atom_types(Selection self, IMP::atom::AtomTypes types)"""
10103 return _IMP_atom.Selection_set_atom_types(self, types)
10105 def set_residue_types(self, types):
10106 r"""set_residue_types(Selection self, IMP::atom::ResidueTypes types)"""
10107 return _IMP_atom.Selection_set_residue_types(self, types)
10109 def set_domains(self, names):
10110 r"""set_domains(Selection self, IMP::Strings names)"""
10111 return _IMP_atom.Selection_set_domains(self, names)
10113 def set_molecule(self, mol):
10114 r"""set_molecule(Selection self, std::string mol)"""
10115 return _IMP_atom.Selection_set_molecule(self, mol)
10117 def set_chain_id(self, c):
10118 r"""set_chain_id(Selection self, std::string c)"""
10119 return _IMP_atom.Selection_set_chain_id(self, c)
10121 def set_chain(self, c):
10122 r"""set_chain(Selection self, std::string c)"""
10123 return _IMP_atom.Selection_set_chain(self, c)
10125 def set_residue_index(self, i):
10126 r"""set_residue_index(Selection self, int i)"""
10127 return _IMP_atom.Selection_set_residue_index(self, i)
10129 def set_atom_type(self, types):
10130 r"""set_atom_type(Selection self, AtomType types)"""
10131 return _IMP_atom.Selection_set_atom_type(self, types)
10133 def set_residue_type(self, type):
10134 r"""set_residue_type(Selection self, ResidueType type)"""
10135 return _IMP_atom.Selection_set_residue_type(self, type)
10137 def set_domain(self, name):
10138 r"""set_domain(Selection self, std::string name)"""
10139 return _IMP_atom.Selection_set_domain(self, name)
10141 def set_copy_index(self, copy):
10142 r"""set_copy_index(Selection self, unsigned int copy)"""
10143 return _IMP_atom.Selection_set_copy_index(self, copy)
10145 def set_copy_indexes(self, copies):
10146 r"""set_copy_indexes(Selection self, IMP::Ints copies)"""
10147 return _IMP_atom.Selection_set_copy_indexes(self, copies)
10149 def set_particle_type(self, t):
10150 r"""set_particle_type(Selection self, ParticleType t)"""
10151 return _IMP_atom.Selection_set_particle_type(self, t)
10153 def set_particle_types(self, t):
10154 r"""set_particle_types(Selection self, IMP::core::ParticleTypes t)"""
10155 return _IMP_atom.Selection_set_particle_types(self, t)
10157 def set_hierarchy_types(self, types):
10158 r"""set_hierarchy_types(Selection self, IMP::Ints types)"""
10159 return _IMP_atom.Selection_set_hierarchy_types(self, types)
10161 def set_intersection(self, s):
10162 r"""set_intersection(Selection self, Selection s)"""
10163 return _IMP_atom.Selection_set_intersection(self, s)
10165 def set_union(self, s):
10166 r"""set_union(Selection self, Selection s)"""
10167 return _IMP_atom.Selection_set_union(self, s)
10169 def set_symmetric_difference(self, s):
10170 r"""set_symmetric_difference(Selection self, Selection s)"""
10171 return _IMP_atom.Selection_set_symmetric_difference(self, s)
10173 def set_difference(self, s):
10174 r"""set_difference(Selection self, Selection s)"""
10175 return _IMP_atom.Selection_set_difference(self, s)
10177 def get_selected_particles(self, with_representation=True):
10178 r"""get_selected_particles(Selection self, bool with_representation=True) -> IMP::ParticlesTemp"""
10179 return _IMP_atom.Selection_get_selected_particles(self, with_representation)
10181 def get_selected_particle_indexes(self, with_representation=True):
10182 r"""get_selected_particle_indexes(Selection self, bool with_representation=True) -> IMP::ParticleIndexes"""
10183 return _IMP_atom.Selection_get_selected_particle_indexes(self, with_representation)
10185 def show(self, *args):
10186 r"""show(Selection self, _ostream out=std::cout)"""
10187 return _IMP_atom.Selection_show(self, *args)
10190 r"""__str__(Selection self) -> std::string"""
10191 return _IMP_atom.Selection___str__(self)
10193 def __repr__(self):
10194 r"""__repr__(Selection self) -> std::string"""
10195 return _IMP_atom.Selection___repr__(self)
10197 def __init__(self, hierarchy=None,
10198 hierarchies=
None, **params):
10199 if hierarchy
and hierarchies:
10200 raise RuntimeError(
"You can't pass both hierarchy and hierarchies to Selection")
10202 this = _IMP_atom.new_Selection(hierarchy)
10203 try: self.this.append(this)
10204 except: self.this = this
10206 this = _IMP_atom.new_Selection(hierarchies)
10207 try: self.this.append(this)
10208 except: self.this = this
10210 raise ValueError(
"Either hierarchy or hierarchies must be provided.")
10211 for k
in params.keys():
10212 eval(
"self.set_%s(params[k])"%k)
10214 def union(self, s):
10215 news = self.create_clone()
10216 news.union_update(s)
10218 def intersection(self, s):
10219 news = self.create_clone()
10220 news.intersection_update(s)
10222 def symmetric_difference(self, s):
10223 news = self.create_clone()
10224 news.symmetric_difference_update(s)
10226 def difference(self, s):
10227 news = self.create_clone()
10228 news.difference_update(s)
10230 def union_update(self, s):
10233 def intersection_update(self, s):
10234 self.set_intersection(s)
10236 def symmetric_difference_update(self, s):
10237 self.set_symmetric_difference(s)
10239 def difference_update(self, s):
10240 self.set_difference(s)
10243 __and__ = intersection
10244 __xor__ = symmetric_difference
10245 __sub__ = difference
10246 __ior__ = union_update
10247 __iand__ = intersection_update
10248 __ixor__ = symmetric_difference_update
10249 __isub__ = difference_update
10251 __swig_destroy__ = _IMP_atom.delete_Selection
10254 _IMP_atom.Selection_swigregister(Selection)
10257 r"""create_distance_restraint(Selection n0, Selection n1, double x0, double k, std::string name="Distance%1%") -> Restraint"""
10258 return _IMP_atom.create_distance_restraint(*args)
10262 create_connectivity_restraint(IMP::atom::Selections const & s, double k, std::string name="Connectivity%1%") -> Restraint
10263 create_connectivity_restraint(IMP::atom::Selections const & s, double x0, double k, std::string name="Connectivity%1%") -> Restraint
10265 return _IMP_atom.create_connectivity_restraint(*args)
10269 create_internal_connectivity_restraint(Selection s, double k, std::string name="Connectivity%1%") -> Restraint
10270 create_internal_connectivity_restraint(Selection s, double x0, double k, std::string name="Connectivity%1%") -> Restraint
10272 return _IMP_atom.create_internal_connectivity_restraint(*args)
10275 r"""create_cover(Selection s, std::string name=std::string()) -> XYZR"""
10276 return _IMP_atom.create_cover(*args)
10280 get_mass(ResidueType c) -> double
10281 get_mass(Selection s) -> double
10283 return _IMP_atom.get_mass(*args)
10286 r"""get_volume(Selection s) -> double"""
10287 return _IMP_atom.get_volume(s)
10290 r"""get_surface_area(Selection s) -> double"""
10291 return _IMP_atom.get_surface_area(s)
10295 get_leaves(Hierarchy h) -> IMP::atom::Hierarchies
10296 get_leaves(IMP::atom::Hierarchies const & h) -> IMP::atom::Hierarchies
10297 get_leaves(Selection h) -> IMP::atom::Hierarchies
10299 return _IMP_atom.get_leaves(*args)
10301 r"""Proxy of C++ IMP::atom::SelectionGeometry class."""
10303 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10305 def __init__(self, *args):
10306 r"""__init__(SelectionGeometry self, Selection d, std::string name="Selection") -> SelectionGeometry"""
10307 _IMP_atom.SelectionGeometry_swiginit(self, _IMP_atom.new_SelectionGeometry(*args))
10309 def get_version_info(self):
10310 r"""get_version_info(SelectionGeometry self) -> VersionInfo"""
10311 return _IMP_atom.SelectionGeometry_get_version_info(self)
10312 __swig_destroy__ = _IMP_atom.delete_SelectionGeometry
10315 r"""__str__(SelectionGeometry self) -> std::string"""
10316 return _IMP_atom.SelectionGeometry___str__(self)
10318 def __repr__(self):
10319 r"""__repr__(SelectionGeometry self) -> std::string"""
10320 return _IMP_atom.SelectionGeometry___repr__(self)
10324 return _object_cast_to_SelectionGeometry(o)
10328 _IMP_atom.SelectionGeometry_swigregister(SelectionGeometry)
10332 get_rmsd(IMP::core::XYZs const & s0, IMP::core::XYZs const & s1) -> double
10333 get_rmsd(Selection s0, Selection s1) -> double
10335 return _IMP_atom.get_rmsd(*args)
10339 get_rmsd_transforming_first(Transformation3D tr, IMP::core::XYZs const & s0, IMP::core::XYZs const & s1) -> double
10340 get_rmsd_transforming_first(Transformation3D tr, Selection s0, Selection s1) -> double
10342 return _IMP_atom.get_rmsd_transforming_first(*args)
10345 r"""get_placement_score(IMP::core::XYZs const & source, IMP::core::XYZs const & target) -> IMP::FloatPair"""
10346 return _IMP_atom.get_placement_score(source, target)
10349 r"""get_component_placement_score(IMP::core::XYZs const & ref1, IMP::core::XYZs const & ref2, IMP::core::XYZs const & mdl1, IMP::core::XYZs const & mdl2) -> IMP::FloatPair"""
10350 return _IMP_atom.get_component_placement_score(ref1, ref2, mdl1, mdl2)
10353 r"""get_pairwise_rmsd_score(IMP::core::XYZs const & ref1, IMP::core::XYZs const & ref2, IMP::core::XYZs const & mdl1, IMP::core::XYZs const & mdl2) -> double"""
10354 return _IMP_atom.get_pairwise_rmsd_score(ref1, ref2, mdl1, mdl2)
10358 get_radius_of_gyration(Selection s) -> double
10359 get_radius_of_gyration(IMP::ParticlesTemp const & ps, bool weighted=True) -> double
10361 return _IMP_atom.get_radius_of_gyration(*args)
10363 r"""Proxy of C++ IMP::atom::ForceFieldParameters class."""
10365 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10367 def __init__(self):
10368 r"""__init__(ForceFieldParameters self) -> ForceFieldParameters"""
10369 _IMP_atom.ForceFieldParameters_swiginit(self, _IMP_atom.new_ForceFieldParameters())
10371 def get_radius(self, atom):
10372 r"""get_radius(ForceFieldParameters self, Atom atom) -> IMP::Float"""
10373 return _IMP_atom.ForceFieldParameters_get_radius(self, atom)
10375 def get_epsilon(self, atom):
10376 r"""get_epsilon(ForceFieldParameters self, Atom atom) -> IMP::Float"""
10377 return _IMP_atom.ForceFieldParameters_get_epsilon(self, atom)
10380 r"""add_radii(ForceFieldParameters self, Hierarchy mhd, double scale=1.0, FloatKey radius_key=IMP::FloatKey("radius"))"""
10381 return _IMP_atom.ForceFieldParameters_add_radii(self, *args)
10383 def add_lennard_jones_types(self, mhd):
10384 r"""add_lennard_jones_types(ForceFieldParameters self, Hierarchy mhd)"""
10385 return _IMP_atom.ForceFieldParameters_add_lennard_jones_types(self, mhd)
10388 r"""add_bonds(ForceFieldParameters self, Hierarchy mhd)"""
10389 return _IMP_atom.ForceFieldParameters_add_bonds(self, mhd)
10390 __swig_destroy__ = _IMP_atom.delete_ForceFieldParameters
10393 r"""__str__(ForceFieldParameters self) -> std::string"""
10394 return _IMP_atom.ForceFieldParameters___str__(self)
10396 def __repr__(self):
10397 r"""__repr__(ForceFieldParameters self) -> std::string"""
10398 return _IMP_atom.ForceFieldParameters___repr__(self)
10402 return _object_cast_to_ForceFieldParameters(o)
10406 _IMP_atom.ForceFieldParameters_swigregister(ForceFieldParameters)
10407 class CHARMMAtomTopology(object):
10408 r"""Proxy of C++ IMP::atom::CHARMMAtomTopology class."""
10410 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10412 def __init__(self, *args):
10414 __init__(CHARMMAtomTopology self) -> CHARMMAtomTopology
10415 __init__(CHARMMAtomTopology self, std::string name) -> CHARMMAtomTopology
10416 __init__(CHARMMAtomTopology self, std::string name, CHARMMAtomTopology other) -> CHARMMAtomTopology
10418 _IMP_atom.CHARMMAtomTopology_swiginit(self, _IMP_atom.new_CHARMMAtomTopology(*args))
10420 def get_name(self):
10421 r"""get_name(CHARMMAtomTopology self) -> std::string"""
10422 return _IMP_atom.CHARMMAtomTopology_get_name(self)
10424 def get_charmm_type(self):
10425 r"""get_charmm_type(CHARMMAtomTopology self) -> std::string"""
10426 return _IMP_atom.CHARMMAtomTopology_get_charmm_type(self)
10428 def get_charge(self):
10429 r"""get_charge(CHARMMAtomTopology self) -> double"""
10430 return _IMP_atom.CHARMMAtomTopology_get_charge(self)
10432 def set_charmm_type(self, charmm_type):
10433 r"""set_charmm_type(CHARMMAtomTopology self, std::string charmm_type)"""
10434 return _IMP_atom.CHARMMAtomTopology_set_charmm_type(self, charmm_type)
10436 def set_charge(self, charge):
10437 r"""set_charge(CHARMMAtomTopology self, double charge)"""
10438 return _IMP_atom.CHARMMAtomTopology_set_charge(self, charge)
10440 def show(self, *args):
10441 r"""show(CHARMMAtomTopology self, _ostream out=std::cout)"""
10442 return _IMP_atom.CHARMMAtomTopology_show(self, *args)
10445 r"""__str__(CHARMMAtomTopology self) -> std::string"""
10446 return _IMP_atom.CHARMMAtomTopology___str__(self)
10448 def __repr__(self):
10449 r"""__repr__(CHARMMAtomTopology self) -> std::string"""
10450 return _IMP_atom.CHARMMAtomTopology___repr__(self)
10452 def _get_as_binary(self):
10453 r"""_get_as_binary(CHARMMAtomTopology self) -> PyObject *"""
10454 return _IMP_atom.CHARMMAtomTopology__get_as_binary(self)
10456 def _set_from_binary(self, p):
10457 r"""_set_from_binary(CHARMMAtomTopology self, PyObject * p)"""
10458 return _IMP_atom.CHARMMAtomTopology__set_from_binary(self, p)
10460 def __getstate__(self):
10461 p = self._get_as_binary()
10462 if len(self.__dict__) > 1:
10463 d = self.__dict__.copy()
10468 def __setstate__(self, p):
10469 if not hasattr(self,
'this'):
10471 if isinstance(p, tuple):
10473 self.__dict__.update(d)
10474 return self._set_from_binary(p)
10476 __swig_destroy__ = _IMP_atom.delete_CHARMMAtomTopology
10479 _IMP_atom.CHARMMAtomTopology_swigregister(CHARMMAtomTopology)
10480 class CHARMMBondEndpoint(object):
10481 r"""Proxy of C++ IMP::atom::CHARMMBondEndpoint class."""
10483 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10485 def __init__(self, atom_name, residue=None):
10486 r"""__init__(CHARMMBondEndpoint self, std::string atom_name, CHARMMResidueTopology residue=None) -> CHARMMBondEndpoint"""
10487 _IMP_atom.CHARMMBondEndpoint_swiginit(self, _IMP_atom.new_CHARMMBondEndpoint(atom_name, residue))
10489 def get_atom_name(self):
10490 r"""get_atom_name(CHARMMBondEndpoint self) -> std::string"""
10491 return _IMP_atom.CHARMMBondEndpoint_get_atom_name(self)
10493 def get_atom(self, current_residue, previous_residue, next_residue, resmap):
10494 r"""get_atom(CHARMMBondEndpoint self, CHARMMResidueTopology current_residue, CHARMMResidueTopology previous_residue, CHARMMResidueTopology next_residue, std::map< IMP::atom::CHARMMResidueTopology const *,IMP::atom::Hierarchy > const & resmap) -> Atom"""
10495 return _IMP_atom.CHARMMBondEndpoint_get_atom(self, current_residue, previous_residue, next_residue, resmap)
10497 def show(self, *args):
10498 r"""show(CHARMMBondEndpoint self, _ostream out=std::cout)"""
10499 return _IMP_atom.CHARMMBondEndpoint_show(self, *args)
10502 r"""__str__(CHARMMBondEndpoint self) -> std::string"""
10503 return _IMP_atom.CHARMMBondEndpoint___str__(self)
10505 def __repr__(self):
10506 r"""__repr__(CHARMMBondEndpoint self) -> std::string"""
10507 return _IMP_atom.CHARMMBondEndpoint___repr__(self)
10508 __swig_destroy__ = _IMP_atom.delete_CHARMMBondEndpoint
10511 _IMP_atom.CHARMMBondEndpoint_swigregister(CHARMMBondEndpoint)
10512 class CHARMMDihedral(object):
10513 r"""Proxy of C++ IMP::atom::CHARMMConnection< 4 > class."""
10515 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10516 __repr__ = _swig_repr
10518 def __init__(self, atoms):
10519 r"""__init__(CHARMMDihedral self, IMP::Strings const & atoms) -> CHARMMDihedral"""
10520 _IMP_atom.CHARMMDihedral_swiginit(self, _IMP_atom.new_CHARMMDihedral(atoms))
10522 def get_endpoint(self, i):
10523 r"""get_endpoint(CHARMMDihedral self, unsigned int i) -> CHARMMBondEndpoint"""
10524 return _IMP_atom.CHARMMDihedral_get_endpoint(self, i)
10526 def get_contains_atom(self, name):
10527 r"""get_contains_atom(CHARMMDihedral self, std::string name) -> bool"""
10528 return _IMP_atom.CHARMMDihedral_get_contains_atom(self, name)
10530 def show(self, *args):
10531 r"""show(CHARMMDihedral self, _ostream out=std::cout)"""
10532 return _IMP_atom.CHARMMDihedral_show(self, *args)
10533 __swig_destroy__ = _IMP_atom.delete_CHARMMDihedral
10536 _IMP_atom.CHARMMDihedral_swigregister(CHARMMDihedral)
10537 class CHARMMInternalCoordinate(CHARMMDihedral):
10538 r"""Proxy of C++ IMP::atom::CHARMMInternalCoordinate class."""
10540 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10542 def __init__(self, *args):
10544 __init__(CHARMMInternalCoordinate self, IMP::Strings const & atoms, float first_distance, float first_angle, float dihedral, float second_angle, float second_distance, bool improper) -> CHARMMInternalCoordinate
10545 __init__(CHARMMInternalCoordinate self, IMP::Vector< IMP::atom::CHARMMBondEndpoint > const endpoints, float first_distance, float first_angle, float dihedral, float second_angle, float second_distance, bool improper) -> CHARMMInternalCoordinate
10547 _IMP_atom.CHARMMInternalCoordinate_swiginit(self, _IMP_atom.new_CHARMMInternalCoordinate(*args))
10549 def get_first_distance(self):
10550 r"""get_first_distance(CHARMMInternalCoordinate self) -> float"""
10551 return _IMP_atom.CHARMMInternalCoordinate_get_first_distance(self)
10553 def get_second_distance(self):
10554 r"""get_second_distance(CHARMMInternalCoordinate self) -> float"""
10555 return _IMP_atom.CHARMMInternalCoordinate_get_second_distance(self)
10557 def get_first_angle(self):
10558 r"""get_first_angle(CHARMMInternalCoordinate self) -> float"""
10559 return _IMP_atom.CHARMMInternalCoordinate_get_first_angle(self)
10561 def get_second_angle(self):
10562 r"""get_second_angle(CHARMMInternalCoordinate self) -> float"""
10563 return _IMP_atom.CHARMMInternalCoordinate_get_second_angle(self)
10566 r"""get_dihedral(CHARMMInternalCoordinate self) -> float"""
10567 return _IMP_atom.CHARMMInternalCoordinate_get_dihedral(self)
10569 def get_improper(self):
10570 r"""get_improper(CHARMMInternalCoordinate self) -> bool"""
10571 return _IMP_atom.CHARMMInternalCoordinate_get_improper(self)
10573 def show(self, *args):
10574 r"""show(CHARMMInternalCoordinate self, _ostream out=std::cout)"""
10575 return _IMP_atom.CHARMMInternalCoordinate_show(self, *args)
10578 r"""__str__(CHARMMInternalCoordinate self) -> std::string"""
10579 return _IMP_atom.CHARMMInternalCoordinate___str__(self)
10581 def __repr__(self):
10582 r"""__repr__(CHARMMInternalCoordinate self) -> std::string"""
10583 return _IMP_atom.CHARMMInternalCoordinate___repr__(self)
10584 __swig_destroy__ = _IMP_atom.delete_CHARMMInternalCoordinate
10587 _IMP_atom.CHARMMInternalCoordinate_swigregister(CHARMMInternalCoordinate)
10588 class CHARMMResidueTopologyBase(
IMP.Object):
10589 r"""Proxy of C++ IMP::atom::CHARMMResidueTopologyBase class."""
10591 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10593 def __init__(self, *args, **kwargs):
10594 raise AttributeError(
"No constructor defined")
10596 def get_type(self):
10597 r"""get_type(CHARMMResidueTopologyBase self) -> std::string"""
10598 return _IMP_atom.CHARMMResidueTopologyBase_get_type(self)
10600 def get_number_of_atoms(self):
10601 r"""get_number_of_atoms(CHARMMResidueTopologyBase self) -> unsigned int"""
10602 return _IMP_atom.CHARMMResidueTopologyBase_get_number_of_atoms(self)
10604 def add_atom(self, atom):
10605 r"""add_atom(CHARMMResidueTopologyBase self, CHARMMAtomTopology atom)"""
10606 return _IMP_atom.CHARMMResidueTopologyBase_add_atom(self, atom)
10610 get_atom(CHARMMResidueTopologyBase self, unsigned int i) -> CHARMMAtomTopology
10611 get_atom(CHARMMResidueTopologyBase self, AtomType type) -> CHARMMAtomTopology
10612 get_atom(CHARMMResidueTopologyBase self, std::string name) -> CHARMMAtomTopology
10614 return _IMP_atom.CHARMMResidueTopologyBase_get_atom(self, *args)
10616 def get_number_of_bonds(self):
10617 r"""get_number_of_bonds(CHARMMResidueTopologyBase self) -> unsigned int"""
10618 return _IMP_atom.CHARMMResidueTopologyBase_get_number_of_bonds(self)
10620 def add_bond(self, bond):
10621 r"""add_bond(CHARMMResidueTopologyBase self, CHARMMBond bond)"""
10622 return _IMP_atom.CHARMMResidueTopologyBase_add_bond(self, bond)
10624 def get_number_of_angles(self):
10625 r"""get_number_of_angles(CHARMMResidueTopologyBase self) -> unsigned int"""
10626 return _IMP_atom.CHARMMResidueTopologyBase_get_number_of_angles(self)
10628 def add_angle(self, bond):
10629 r"""add_angle(CHARMMResidueTopologyBase self, CHARMMAngle bond)"""
10630 return _IMP_atom.CHARMMResidueTopologyBase_add_angle(self, bond)
10632 def get_number_of_dihedrals(self):
10633 r"""get_number_of_dihedrals(CHARMMResidueTopologyBase self) -> unsigned int"""
10634 return _IMP_atom.CHARMMResidueTopologyBase_get_number_of_dihedrals(self)
10636 def add_dihedral(self, bond):
10637 r"""add_dihedral(CHARMMResidueTopologyBase self, CHARMMDihedral bond)"""
10638 return _IMP_atom.CHARMMResidueTopologyBase_add_dihedral(self, bond)
10640 def get_number_of_impropers(self):
10641 r"""get_number_of_impropers(CHARMMResidueTopologyBase self) -> unsigned int"""
10642 return _IMP_atom.CHARMMResidueTopologyBase_get_number_of_impropers(self)
10644 def add_improper(self, bond):
10645 r"""add_improper(CHARMMResidueTopologyBase self, CHARMMDihedral bond)"""
10646 return _IMP_atom.CHARMMResidueTopologyBase_add_improper(self, bond)
10648 def get_number_of_internal_coordinates(self):
10649 r"""get_number_of_internal_coordinates(CHARMMResidueTopologyBase self) -> unsigned int"""
10650 return _IMP_atom.CHARMMResidueTopologyBase_get_number_of_internal_coordinates(self)
10652 def add_internal_coordinate(self, ic):
10653 r"""add_internal_coordinate(CHARMMResidueTopologyBase self, CHARMMInternalCoordinate ic)"""
10654 return _IMP_atom.CHARMMResidueTopologyBase_add_internal_coordinate(self, ic)
10656 def get_internal_coordinate(self, index):
10657 r"""get_internal_coordinate(CHARMMResidueTopologyBase self, unsigned int index) -> CHARMMInternalCoordinate"""
10658 return _IMP_atom.CHARMMResidueTopologyBase_get_internal_coordinate(self, index)
10661 r"""get_bond(CHARMMResidueTopologyBase self, unsigned int index) -> CHARMMBond"""
10662 return _IMP_atom.CHARMMResidueTopologyBase_get_bond(self, index)
10665 r"""get_angle(CHARMMResidueTopologyBase self, unsigned int index) -> CHARMMAngle"""
10666 return _IMP_atom.CHARMMResidueTopologyBase_get_angle(self, index)
10669 r"""get_dihedral(CHARMMResidueTopologyBase self, unsigned int index) -> CHARMMDihedral"""
10670 return _IMP_atom.CHARMMResidueTopologyBase_get_dihedral(self, index)
10672 def get_improper(self, index):
10673 r"""get_improper(CHARMMResidueTopologyBase self, unsigned int index) -> CHARMMDihedral"""
10674 return _IMP_atom.CHARMMResidueTopologyBase_get_improper(self, index)
10676 def get_version_info(self):
10677 r"""get_version_info(CHARMMResidueTopologyBase self) -> VersionInfo"""
10678 return _IMP_atom.CHARMMResidueTopologyBase_get_version_info(self)
10679 __swig_destroy__ = _IMP_atom.delete_CHARMMResidueTopologyBase
10682 r"""__str__(CHARMMResidueTopologyBase self) -> std::string"""
10683 return _IMP_atom.CHARMMResidueTopologyBase___str__(self)
10685 def __repr__(self):
10686 r"""__repr__(CHARMMResidueTopologyBase self) -> std::string"""
10687 return _IMP_atom.CHARMMResidueTopologyBase___repr__(self)
10691 return _object_cast_to_CHARMMResidueTopologyBase(o)
10695 _IMP_atom.CHARMMResidueTopologyBase_swigregister(CHARMMResidueTopologyBase)
10696 class CHARMMIdealResidueTopology(CHARMMResidueTopologyBase):
10697 r"""Proxy of C++ IMP::atom::CHARMMIdealResidueTopology class."""
10699 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10701 def __init__(self, *args):
10703 __init__(CHARMMIdealResidueTopology self, std::string type) -> CHARMMIdealResidueTopology
10704 __init__(CHARMMIdealResidueTopology self, ResidueType type) -> CHARMMIdealResidueTopology
10706 _IMP_atom.CHARMMIdealResidueTopology_swiginit(self, _IMP_atom.new_CHARMMIdealResidueTopology(*args))
10708 def remove_atom(self, name):
10709 r"""remove_atom(CHARMMIdealResidueTopology self, std::string name)"""
10710 return _IMP_atom.CHARMMIdealResidueTopology_remove_atom(self, name)
10712 def set_default_first_patch(self, patch):
10713 r"""set_default_first_patch(CHARMMIdealResidueTopology self, std::string patch)"""
10714 return _IMP_atom.CHARMMIdealResidueTopology_set_default_first_patch(self, patch)
10716 def set_default_last_patch(self, patch):
10717 r"""set_default_last_patch(CHARMMIdealResidueTopology self, std::string patch)"""
10718 return _IMP_atom.CHARMMIdealResidueTopology_set_default_last_patch(self, patch)
10720 def get_default_first_patch(self):
10721 r"""get_default_first_patch(CHARMMIdealResidueTopology self) -> std::string"""
10722 return _IMP_atom.CHARMMIdealResidueTopology_get_default_first_patch(self)
10724 def get_default_last_patch(self):
10725 r"""get_default_last_patch(CHARMMIdealResidueTopology self) -> std::string"""
10726 return _IMP_atom.CHARMMIdealResidueTopology_get_default_last_patch(self)
10727 __swig_destroy__ = _IMP_atom.delete_CHARMMIdealResidueTopology
10730 r"""__str__(CHARMMIdealResidueTopology self) -> std::string"""
10731 return _IMP_atom.CHARMMIdealResidueTopology___str__(self)
10733 def __repr__(self):
10734 r"""__repr__(CHARMMIdealResidueTopology self) -> std::string"""
10735 return _IMP_atom.CHARMMIdealResidueTopology___repr__(self)
10739 return _object_cast_to_CHARMMIdealResidueTopology(o)
10743 _IMP_atom.CHARMMIdealResidueTopology_swigregister(CHARMMIdealResidueTopology)
10744 class CHARMMPatch(CHARMMResidueTopologyBase):
10745 r"""Proxy of C++ IMP::atom::CHARMMPatch class."""
10747 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10749 def __init__(self, type):
10750 r"""__init__(CHARMMPatch self, std::string type) -> CHARMMPatch"""
10751 _IMP_atom.CHARMMPatch_swiginit(self, _IMP_atom.new_CHARMMPatch(type))
10753 def add_removed_atom(self, name):
10754 r"""add_removed_atom(CHARMMPatch self, std::string name)"""
10755 return _IMP_atom.CHARMMPatch_add_removed_atom(self, name)
10757 def get_number_of_removed_atoms(self):
10758 r"""get_number_of_removed_atoms(CHARMMPatch self) -> unsigned int"""
10759 return _IMP_atom.CHARMMPatch_get_number_of_removed_atoms(self)
10761 def get_removed_atom(self, i):
10762 r"""get_removed_atom(CHARMMPatch self, unsigned int i) -> std::string"""
10763 return _IMP_atom.CHARMMPatch_get_removed_atom(self, i)
10765 def apply(self, *args):
10767 apply(CHARMMPatch self, CHARMMResidueTopology res)
10768 apply(CHARMMPatch self, CHARMMResidueTopology res1, CHARMMResidueTopology res2)
10770 return _IMP_atom.CHARMMPatch_apply(self, *args)
10771 __swig_destroy__ = _IMP_atom.delete_CHARMMPatch
10774 r"""__str__(CHARMMPatch self) -> std::string"""
10775 return _IMP_atom.CHARMMPatch___str__(self)
10777 def __repr__(self):
10778 r"""__repr__(CHARMMPatch self) -> std::string"""
10779 return _IMP_atom.CHARMMPatch___repr__(self)
10783 return _object_cast_to_CHARMMPatch(o)
10787 _IMP_atom.CHARMMPatch_swigregister(CHARMMPatch)
10788 class CHARMMResidueTopology(CHARMMIdealResidueTopology):
10789 r"""Proxy of C++ IMP::atom::CHARMMResidueTopology class."""
10791 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10793 def __init__(self, *args):
10795 __init__(CHARMMResidueTopology self, ResidueType type) -> CHARMMResidueTopology
10796 __init__(CHARMMResidueTopology self, CHARMMIdealResidueTopology ideal) -> CHARMMResidueTopology
10798 _IMP_atom.CHARMMResidueTopology_swiginit(self, _IMP_atom.new_CHARMMResidueTopology(*args))
10800 def get_patched(self):
10801 r"""get_patched(CHARMMResidueTopology self) -> bool"""
10802 return _IMP_atom.CHARMMResidueTopology_get_patched(self)
10804 def set_patched(self, patched):
10805 r"""set_patched(CHARMMResidueTopology self, bool patched)"""
10806 return _IMP_atom.CHARMMResidueTopology_set_patched(self, patched)
10807 __swig_destroy__ = _IMP_atom.delete_CHARMMResidueTopology
10810 r"""__str__(CHARMMResidueTopology self) -> std::string"""
10811 return _IMP_atom.CHARMMResidueTopology___str__(self)
10813 def __repr__(self):
10814 r"""__repr__(CHARMMResidueTopology self) -> std::string"""
10815 return _IMP_atom.CHARMMResidueTopology___repr__(self)
10819 return _object_cast_to_CHARMMResidueTopology(o)
10823 _IMP_atom.CHARMMResidueTopology_swigregister(CHARMMResidueTopology)
10824 class CHARMMAtom(Atom):
10825 r"""Proxy of C++ IMP::atom::CHARMMAtom class."""
10827 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10829 def __init__(self, *args):
10831 __init__(CHARMMAtom self) -> CHARMMAtom
10832 __init__(CHARMMAtom self, Model m, ParticleIndex id) -> CHARMMAtom
10833 __init__(CHARMMAtom self, _ParticleAdaptor d) -> CHARMMAtom
10835 _IMP_atom.CHARMMAtom_swiginit(self, _IMP_atom.new_CHARMMAtom(*args))
10837 def show(self, *args):
10838 r"""show(CHARMMAtom self, _ostream out=std::cout)"""
10839 return _IMP_atom.CHARMMAtom_show(self, *args)
10842 def setup_particle(*args):
10844 setup_particle(Model m, ParticleIndex pi, IMP::String charmm_type) -> CHARMMAtom
10845 setup_particle(_ParticleAdaptor pa, IMP::String charmm_type) -> CHARMMAtom
10847 return _IMP_atom.CHARMMAtom_setup_particle(*args)
10849 def get_charmm_type(self):
10850 r"""get_charmm_type(CHARMMAtom self) -> IMP::String"""
10851 return _IMP_atom.CHARMMAtom_get_charmm_type(self)
10853 def set_charmm_type(self, t):
10854 r"""set_charmm_type(CHARMMAtom self, IMP::String t)"""
10855 return _IMP_atom.CHARMMAtom_set_charmm_type(self, t)
10858 def get_is_setup(*args):
10860 get_is_setup(_ParticleAdaptor p) -> bool
10861 get_is_setup(Model m, ParticleIndex pi) -> bool
10863 return _IMP_atom.CHARMMAtom_get_is_setup(*args)
10866 def get_charmm_type_key():
10867 r"""get_charmm_type_key() -> StringKey"""
10868 return _IMP_atom.CHARMMAtom_get_charmm_type_key()
10870 def add_attribute(self, *args):
10872 add_attribute(CHARMMAtom self, FloatKey k, IMP::Float v, bool opt)
10873 add_attribute(CHARMMAtom self, FloatKey a0, IMP::Float a1)
10874 add_attribute(CHARMMAtom self, IntKey a0, IMP::Int a1)
10875 add_attribute(CHARMMAtom self, FloatsKey a0, IMP::Floats a1)
10876 add_attribute(CHARMMAtom self, IntsKey a0, IMP::Ints a1)
10877 add_attribute(CHARMMAtom self, StringKey a0, IMP::String a1)
10878 add_attribute(CHARMMAtom self, ParticleIndexKey a0, Particle a1)
10879 add_attribute(CHARMMAtom self, ObjectKey a0, Object a1)
10880 add_attribute(CHARMMAtom self, SparseFloatKey a0, IMP::Float a1)
10881 add_attribute(CHARMMAtom self, SparseIntKey a0, IMP::Int a1)
10882 add_attribute(CHARMMAtom self, SparseStringKey a0, IMP::String a1)
10883 add_attribute(CHARMMAtom self, SparseParticleIndexKey a0, ParticleIndex a1)
10885 return _IMP_atom.CHARMMAtom_add_attribute(self, *args)
10887 def get_value(self, *args):
10889 get_value(CHARMMAtom self, FloatKey a0) -> IMP::Float
10890 get_value(CHARMMAtom self, IntKey a0) -> IMP::Int
10891 get_value(CHARMMAtom self, FloatsKey a0) -> IMP::Floats
10892 get_value(CHARMMAtom self, IntsKey a0) -> IMP::Ints
10893 get_value(CHARMMAtom self, StringKey a0) -> IMP::String
10894 get_value(CHARMMAtom self, ParticleIndexKey a0) -> Particle
10895 get_value(CHARMMAtom self, ObjectKey a0) -> Object
10896 get_value(CHARMMAtom self, SparseFloatKey a0) -> IMP::Float
10897 get_value(CHARMMAtom self, SparseIntKey a0) -> IMP::Int
10898 get_value(CHARMMAtom self, SparseStringKey a0) -> IMP::String
10899 get_value(CHARMMAtom self, SparseParticleIndexKey a0) -> ParticleIndex
10901 return _IMP_atom.CHARMMAtom_get_value(self, *args)
10903 def set_value(self, *args):
10905 set_value(CHARMMAtom self, FloatKey a0, IMP::Float a1)
10906 set_value(CHARMMAtom self, IntKey a0, IMP::Int a1)
10907 set_value(CHARMMAtom self, FloatsKey a0, IMP::Floats a1)
10908 set_value(CHARMMAtom self, IntsKey a0, IMP::Ints a1)
10909 set_value(CHARMMAtom self, StringKey a0, IMP::String a1)
10910 set_value(CHARMMAtom self, ParticleIndexKey a0, Particle a1)
10911 set_value(CHARMMAtom self, ObjectKey a0, Object a1)
10912 set_value(CHARMMAtom self, SparseFloatKey a0, IMP::Float a1)
10913 set_value(CHARMMAtom self, SparseIntKey a0, IMP::Int a1)
10914 set_value(CHARMMAtom self, SparseStringKey a0, IMP::String a1)
10915 set_value(CHARMMAtom self, SparseParticleIndexKey a0, ParticleIndex a1)
10917 return _IMP_atom.CHARMMAtom_set_value(self, *args)
10919 def remove_attribute(self, *args):
10921 remove_attribute(CHARMMAtom self, FloatKey a0)
10922 remove_attribute(CHARMMAtom self, IntKey a0)
10923 remove_attribute(CHARMMAtom self, FloatsKey a0)
10924 remove_attribute(CHARMMAtom self, IntsKey a0)
10925 remove_attribute(CHARMMAtom self, StringKey a0)
10926 remove_attribute(CHARMMAtom self, ParticleIndexKey a0)
10927 remove_attribute(CHARMMAtom self, ObjectKey a0)
10928 remove_attribute(CHARMMAtom self, SparseFloatKey a0)
10929 remove_attribute(CHARMMAtom self, SparseIntKey a0)
10930 remove_attribute(CHARMMAtom self, SparseStringKey a0)
10931 remove_attribute(CHARMMAtom self, SparseParticleIndexKey a0)
10933 return _IMP_atom.CHARMMAtom_remove_attribute(self, *args)
10935 def has_attribute(self, *args):
10937 has_attribute(CHARMMAtom self, FloatKey a0) -> bool
10938 has_attribute(CHARMMAtom self, IntKey a0) -> bool
10939 has_attribute(CHARMMAtom self, FloatsKey a0) -> bool
10940 has_attribute(CHARMMAtom self, IntsKey a0) -> bool
10941 has_attribute(CHARMMAtom self, StringKey a0) -> bool
10942 has_attribute(CHARMMAtom self, ParticleIndexKey a0) -> bool
10943 has_attribute(CHARMMAtom self, ObjectKey a0) -> bool
10944 has_attribute(CHARMMAtom self, SparseFloatKey a0) -> bool
10945 has_attribute(CHARMMAtom self, SparseIntKey a0) -> bool
10946 has_attribute(CHARMMAtom self, SparseStringKey a0) -> bool
10947 has_attribute(CHARMMAtom self, SparseParticleIndexKey a0) -> bool
10949 return _IMP_atom.CHARMMAtom_has_attribute(self, *args)
10951 def get_derivative(self, a0):
10952 r"""get_derivative(CHARMMAtom self, FloatKey a0) -> double"""
10953 return _IMP_atom.CHARMMAtom_get_derivative(self, a0)
10955 def get_name(self):
10956 r"""get_name(CHARMMAtom self) -> std::string"""
10957 return _IMP_atom.CHARMMAtom_get_name(self)
10959 def clear_caches(self):
10960 r"""clear_caches(CHARMMAtom self)"""
10961 return _IMP_atom.CHARMMAtom_clear_caches(self)
10963 def set_name(self, a0):
10964 r"""set_name(CHARMMAtom self, std::string a0)"""
10965 return _IMP_atom.CHARMMAtom_set_name(self, a0)
10968 r"""set_check_level(CHARMMAtom self, IMP::CheckLevel a0)"""
10969 return _IMP_atom.CHARMMAtom_set_check_level(self, a0)
10971 def add_to_derivative(self, a0, a1, a2):
10972 r"""add_to_derivative(CHARMMAtom self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
10973 return _IMP_atom.CHARMMAtom_add_to_derivative(self, a0, a1, a2)
10975 def set_is_optimized(self, a0, a1):
10976 r"""set_is_optimized(CHARMMAtom self, FloatKey a0, bool a1)"""
10977 return _IMP_atom.CHARMMAtom_set_is_optimized(self, a0, a1)
10979 def get_is_optimized(self, a0):
10980 r"""get_is_optimized(CHARMMAtom self, FloatKey a0) -> bool"""
10981 return _IMP_atom.CHARMMAtom_get_is_optimized(self, a0)
10984 r"""get_check_level(CHARMMAtom self) -> IMP::CheckLevel"""
10985 return _IMP_atom.CHARMMAtom_get_check_level(self)
10987 def __eq__(self, *args):
10989 __eq__(CHARMMAtom self, CHARMMAtom o) -> bool
10990 __eq__(CHARMMAtom self, Particle d) -> bool
10992 return _IMP_atom.CHARMMAtom___eq__(self, *args)
10994 def __ne__(self, *args):
10996 __ne__(CHARMMAtom self, CHARMMAtom o) -> bool
10997 __ne__(CHARMMAtom self, Particle d) -> bool
10999 return _IMP_atom.CHARMMAtom___ne__(self, *args)
11001 def __le__(self, *args):
11003 __le__(CHARMMAtom self, CHARMMAtom o) -> bool
11004 __le__(CHARMMAtom self, Particle d) -> bool
11006 return _IMP_atom.CHARMMAtom___le__(self, *args)
11008 def __lt__(self, *args):
11010 __lt__(CHARMMAtom self, CHARMMAtom o) -> bool
11011 __lt__(CHARMMAtom self, Particle d) -> bool
11013 return _IMP_atom.CHARMMAtom___lt__(self, *args)
11015 def __ge__(self, *args):
11017 __ge__(CHARMMAtom self, CHARMMAtom o) -> bool
11018 __ge__(CHARMMAtom self, Particle d) -> bool
11020 return _IMP_atom.CHARMMAtom___ge__(self, *args)
11022 def __gt__(self, *args):
11024 __gt__(CHARMMAtom self, CHARMMAtom o) -> bool
11025 __gt__(CHARMMAtom self, Particle d) -> bool
11027 return _IMP_atom.CHARMMAtom___gt__(self, *args)
11029 def __hash__(self):
11030 r"""__hash__(CHARMMAtom self) -> std::size_t"""
11031 return _IMP_atom.CHARMMAtom___hash__(self)
11034 r"""__str__(CHARMMAtom self) -> std::string"""
11035 return _IMP_atom.CHARMMAtom___str__(self)
11037 def __repr__(self):
11038 r"""__repr__(CHARMMAtom self) -> std::string"""
11039 return _IMP_atom.CHARMMAtom___repr__(self)
11041 def _get_as_binary(self):
11042 r"""_get_as_binary(CHARMMAtom self) -> PyObject *"""
11043 return _IMP_atom.CHARMMAtom__get_as_binary(self)
11045 def _set_from_binary(self, p):
11046 r"""_set_from_binary(CHARMMAtom self, PyObject * p)"""
11047 return _IMP_atom.CHARMMAtom__set_from_binary(self, p)
11049 def __getstate__(self):
11050 p = self._get_as_binary()
11051 if len(self.__dict__) > 1:
11052 d = self.__dict__.copy()
11057 def __setstate__(self, p):
11058 if not hasattr(self,
'this'):
11060 if isinstance(p, tuple):
11062 self.__dict__.update(d)
11063 return self._set_from_binary(p)
11065 __swig_destroy__ = _IMP_atom.delete_CHARMMAtom
11068 _IMP_atom.CHARMMAtom_swigregister(CHARMMAtom)
11071 r"""get_charmm_untyped_atoms(Hierarchy hierarchy) -> IMP::atom::Atoms"""
11072 return _IMP_atom.get_charmm_untyped_atoms(hierarchy)
11075 r"""remove_charmm_untyped_atoms(Hierarchy hierarchy)"""
11076 return _IMP_atom.remove_charmm_untyped_atoms(hierarchy)
11077 class CHARMMBondParameters(object):
11078 r"""Proxy of C++ IMP::atom::CHARMMBondParameters class."""
11080 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11081 force_constant = property(_IMP_atom.CHARMMBondParameters_force_constant_get, _IMP_atom.CHARMMBondParameters_force_constant_set, doc=
r"""force_constant : double""")
11082 ideal = property(_IMP_atom.CHARMMBondParameters_ideal_get, _IMP_atom.CHARMMBondParameters_ideal_set, doc=
r"""ideal : double""")
11084 def __init__(self):
11085 r"""__init__(CHARMMBondParameters self) -> CHARMMBondParameters"""
11086 _IMP_atom.CHARMMBondParameters_swiginit(self, _IMP_atom.new_CHARMMBondParameters())
11088 def show(self, *args):
11089 r"""show(CHARMMBondParameters self, _ostream out=std::cout)"""
11090 return _IMP_atom.CHARMMBondParameters_show(self, *args)
11093 r"""__str__(CHARMMBondParameters self) -> std::string"""
11094 return _IMP_atom.CHARMMBondParameters___str__(self)
11096 def __repr__(self):
11097 r"""__repr__(CHARMMBondParameters self) -> std::string"""
11098 return _IMP_atom.CHARMMBondParameters___repr__(self)
11100 def _get_as_binary(self):
11101 r"""_get_as_binary(CHARMMBondParameters self) -> PyObject *"""
11102 return _IMP_atom.CHARMMBondParameters__get_as_binary(self)
11104 def _set_from_binary(self, p):
11105 r"""_set_from_binary(CHARMMBondParameters self, PyObject * p)"""
11106 return _IMP_atom.CHARMMBondParameters__set_from_binary(self, p)
11108 def __getstate__(self):
11109 p = self._get_as_binary()
11110 if len(self.__dict__) > 1:
11111 d = self.__dict__.copy()
11116 def __setstate__(self, p):
11117 if not hasattr(self,
'this'):
11119 if isinstance(p, tuple):
11121 self.__dict__.update(d)
11122 return self._set_from_binary(p)
11124 __swig_destroy__ = _IMP_atom.delete_CHARMMBondParameters
11127 _IMP_atom.CHARMMBondParameters_swigregister(CHARMMBondParameters)
11128 class CHARMMDihedralParameters(object):
11129 r"""Proxy of C++ IMP::atom::CHARMMDihedralParameters class."""
11131 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11132 force_constant = property(_IMP_atom.CHARMMDihedralParameters_force_constant_get, _IMP_atom.CHARMMDihedralParameters_force_constant_set, doc=
r"""force_constant : double""")
11133 multiplicity = property(_IMP_atom.CHARMMDihedralParameters_multiplicity_get, _IMP_atom.CHARMMDihedralParameters_multiplicity_set, doc=
r"""multiplicity : int""")
11134 ideal = property(_IMP_atom.CHARMMDihedralParameters_ideal_get, _IMP_atom.CHARMMDihedralParameters_ideal_set, doc=
r"""ideal : double""")
11136 def __init__(self):
11137 r"""__init__(CHARMMDihedralParameters self) -> CHARMMDihedralParameters"""
11138 _IMP_atom.CHARMMDihedralParameters_swiginit(self, _IMP_atom.new_CHARMMDihedralParameters())
11140 def show(self, *args):
11141 r"""show(CHARMMDihedralParameters self, _ostream out=std::cout)"""
11142 return _IMP_atom.CHARMMDihedralParameters_show(self, *args)
11145 r"""__str__(CHARMMDihedralParameters self) -> std::string"""
11146 return _IMP_atom.CHARMMDihedralParameters___str__(self)
11148 def __repr__(self):
11149 r"""__repr__(CHARMMDihedralParameters self) -> std::string"""
11150 return _IMP_atom.CHARMMDihedralParameters___repr__(self)
11152 def _get_as_binary(self):
11153 r"""_get_as_binary(CHARMMDihedralParameters self) -> PyObject *"""
11154 return _IMP_atom.CHARMMDihedralParameters__get_as_binary(self)
11156 def _set_from_binary(self, p):
11157 r"""_set_from_binary(CHARMMDihedralParameters self, PyObject * p)"""
11158 return _IMP_atom.CHARMMDihedralParameters__set_from_binary(self, p)
11160 def __getstate__(self):
11161 p = self._get_as_binary()
11162 if len(self.__dict__) > 1:
11163 d = self.__dict__.copy()
11168 def __setstate__(self, p):
11169 if not hasattr(self,
'this'):
11171 if isinstance(p, tuple):
11173 self.__dict__.update(d)
11174 return self._set_from_binary(p)
11176 __swig_destroy__ = _IMP_atom.delete_CHARMMDihedralParameters
11179 _IMP_atom.CHARMMDihedralParameters_swigregister(CHARMMDihedralParameters)
11180 class CHARMMParameters(ForceFieldParameters):
11181 r"""Proxy of C++ IMP::atom::CHARMMParameters class."""
11183 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11185 def __init__(self, *args):
11186 r"""__init__(CHARMMParameters self, TextInput topology_file_name, TextInput par_file_name=IMP::TextInput(), bool translate_names_to_pdb=False) -> CHARMMParameters"""
11187 _IMP_atom.CHARMMParameters_swiginit(self, _IMP_atom.new_CHARMMParameters(*args))
11189 def add_residue_topology(self, res):
11190 r"""add_residue_topology(CHARMMParameters self, CHARMMIdealResidueTopology res)"""
11191 return _IMP_atom.CHARMMParameters_add_residue_topology(self, res)
11193 def get_residue_topology(self, type):
11194 r"""get_residue_topology(CHARMMParameters self, ResidueType type) -> CHARMMIdealResidueTopology"""
11195 return _IMP_atom.CHARMMParameters_get_residue_topology(self, type)
11197 def add_patch(self, patch):
11198 r"""add_patch(CHARMMParameters self, CHARMMPatch patch)"""
11199 return _IMP_atom.CHARMMParameters_add_patch(self, patch)
11201 def get_patch(self, name):
11202 r"""get_patch(CHARMMParameters self, std::string name) -> CHARMMPatch"""
11203 return _IMP_atom.CHARMMParameters_get_patch(self, name)
11205 def create_topology(self, hierarchy):
11206 r"""create_topology(CHARMMParameters self, Hierarchy hierarchy) -> CHARMMTopology"""
11207 return _IMP_atom.CHARMMParameters_create_topology(self, hierarchy)
11209 def get_bond_parameters(self, type1, type2):
11210 r"""get_bond_parameters(CHARMMParameters self, std::string type1, std::string type2) -> CHARMMBondParameters"""
11211 return _IMP_atom.CHARMMParameters_get_bond_parameters(self, type1, type2)
11213 def get_angle_parameters(self, type1, type2, type3):
11214 r"""get_angle_parameters(CHARMMParameters self, std::string type1, std::string type2, std::string type3) -> CHARMMBondParameters"""
11215 return _IMP_atom.CHARMMParameters_get_angle_parameters(self, type1, type2, type3)
11217 def get_dihedral_parameters(self, type1, type2, type3, type4):
11218 r"""get_dihedral_parameters(CHARMMParameters self, std::string type1, std::string type2, std::string type3, std::string type4) -> IMP::atom::CHARMMDihedralParametersList"""
11219 return _IMP_atom.CHARMMParameters_get_dihedral_parameters(self, type1, type2, type3, type4)
11221 def get_improper_parameters(self, type1, type2, type3, type4):
11222 r"""get_improper_parameters(CHARMMParameters self, std::string type1, std::string type2, std::string type3, std::string type4) -> CHARMMDihedralParameters"""
11223 return _IMP_atom.CHARMMParameters_get_improper_parameters(self, type1, type2, type3, type4)
11225 def create_angles(self, bonds):
11226 r"""create_angles(CHARMMParameters self, IMP::Particles bonds) -> IMP::Particles"""
11227 return _IMP_atom.CHARMMParameters_create_angles(self, bonds)
11229 def create_dihedrals(self, bonds):
11230 r"""create_dihedrals(CHARMMParameters self, IMP::Particles bonds) -> IMP::Particles"""
11231 return _IMP_atom.CHARMMParameters_create_dihedrals(self, bonds)
11233 def get_version_info(self):
11234 r"""get_version_info(CHARMMParameters self) -> VersionInfo"""
11235 return _IMP_atom.CHARMMParameters_get_version_info(self)
11236 __swig_destroy__ = _IMP_atom.delete_CHARMMParameters
11239 r"""__str__(CHARMMParameters self) -> std::string"""
11240 return _IMP_atom.CHARMMParameters___str__(self)
11242 def __repr__(self):
11243 r"""__repr__(CHARMMParameters self) -> std::string"""
11244 return _IMP_atom.CHARMMParameters___repr__(self)
11248 return _object_cast_to_CHARMMParameters(o)
11252 _IMP_atom.CHARMMParameters_swigregister(CHARMMParameters)
11255 r"""get_heavy_atom_CHARMM_parameters() -> CHARMMParameters"""
11256 return _IMP_atom.get_heavy_atom_CHARMM_parameters()
11259 r"""get_all_atom_CHARMM_parameters() -> CHARMMParameters"""
11260 return _IMP_atom.get_all_atom_CHARMM_parameters()
11262 r"""Proxy of C++ IMP::atom::CHARMMSegmentTopology class."""
11264 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11265 def __get_residues(self):
return IMP._list_util.VarList(getdimfunc=self.get_number_of_residues, getfunc=self.get_residue, erasefunc=self.erase_residue, appendfunc=self.add_residue, extendfunc=self.add_residues, clearfunc=self.clear_residues, indexfunc=self._python_index_residue)
11266 def __set_residues(self, obj): IMP._list_util.set_varlist(self.residues, obj)
11267 def __del_residues(self): IMP._list_util.del_varlist(self.residues)
11268 residues = property(__get_residues, __set_residues, __del_residues, doc=
"List of ##ucnames")
11270 def remove_residue(self, d):
11271 r"""remove_residue(CHARMMSegmentTopology self, CHARMMResidueTopology d)"""
11272 return _IMP_atom.CHARMMSegmentTopology_remove_residue(self, d)
11274 def _python_index_residue(self, d, start, stop):
11275 r"""_python_index_residue(CHARMMSegmentTopology self, CHARMMResidueTopology d, unsigned int start, unsigned int stop) -> unsigned int"""
11276 return _IMP_atom.CHARMMSegmentTopology__python_index_residue(self, d, start, stop)
11278 def remove_residues(self, d):
11279 r"""remove_residues(CHARMMSegmentTopology self, IMP::atom::CHARMMResidueTopologies const & d)"""
11280 return _IMP_atom.CHARMMSegmentTopology_remove_residues(self, d)
11282 def set_residues(self, ps):
11283 r"""set_residues(CHARMMSegmentTopology self, IMP::atom::CHARMMResidueTopologies const & ps)"""
11284 return _IMP_atom.CHARMMSegmentTopology_set_residues(self, ps)
11286 def set_residues_order(self, objs):
11287 r"""set_residues_order(CHARMMSegmentTopology self, IMP::atom::CHARMMResidueTopologies const & objs)"""
11288 return _IMP_atom.CHARMMSegmentTopology_set_residues_order(self, objs)
11290 def add_residue(self, obj):
11291 r"""add_residue(CHARMMSegmentTopology self, CHARMMResidueTopology obj) -> unsigned int"""
11292 return _IMP_atom.CHARMMSegmentTopology_add_residue(self, obj)
11294 def add_residues(self, objs):
11295 r"""add_residues(CHARMMSegmentTopology self, IMP::atom::CHARMMResidueTopologies const & objs)"""
11296 return _IMP_atom.CHARMMSegmentTopology_add_residues(self, objs)
11298 def clear_residues(self):
11299 r"""clear_residues(CHARMMSegmentTopology self)"""
11300 return _IMP_atom.CHARMMSegmentTopology_clear_residues(self)
11302 def get_number_of_residues(self):
11303 r"""get_number_of_residues(CHARMMSegmentTopology self) -> unsigned int"""
11304 return _IMP_atom.CHARMMSegmentTopology_get_number_of_residues(self)
11306 def get_has_residues(self):
11307 r"""get_has_residues(CHARMMSegmentTopology self) -> bool"""
11308 return _IMP_atom.CHARMMSegmentTopology_get_has_residues(self)
11311 r"""get_residue(CHARMMSegmentTopology self, unsigned int i) -> CHARMMResidueTopology"""
11312 return _IMP_atom.CHARMMSegmentTopology_get_residue(self, i)
11314 def get_residues(self):
11315 r"""get_residues(CHARMMSegmentTopology self) -> IMP::atom::CHARMMResidueTopologies"""
11316 return _IMP_atom.CHARMMSegmentTopology_get_residues(self)
11318 def erase_residue(self, i):
11319 r"""erase_residue(CHARMMSegmentTopology self, unsigned int i)"""
11320 return _IMP_atom.CHARMMSegmentTopology_erase_residue(self, i)
11322 def reserve_residues(self, sz):
11323 r"""reserve_residues(CHARMMSegmentTopology self, unsigned int sz)"""
11324 return _IMP_atom.CHARMMSegmentTopology_reserve_residues(self, sz)
11326 def get_version_info(self):
11327 r"""get_version_info(CHARMMSegmentTopology self) -> VersionInfo"""
11328 return _IMP_atom.CHARMMSegmentTopology_get_version_info(self)
11329 __swig_destroy__ = _IMP_atom.delete_CHARMMSegmentTopology
11331 def __init__(self, *args):
11332 r"""__init__(CHARMMSegmentTopology self, std::string name="CHARMM segment topology %1%") -> CHARMMSegmentTopology"""
11333 _IMP_atom.CHARMMSegmentTopology_swiginit(self, _IMP_atom.new_CHARMMSegmentTopology(*args))
11335 def apply_default_patches(self, ff):
11336 r"""apply_default_patches(CHARMMSegmentTopology self, CHARMMParameters ff)"""
11337 return _IMP_atom.CHARMMSegmentTopology_apply_default_patches(self, ff)
11340 r"""__str__(CHARMMSegmentTopology self) -> std::string"""
11341 return _IMP_atom.CHARMMSegmentTopology___str__(self)
11343 def __repr__(self):
11344 r"""__repr__(CHARMMSegmentTopology self) -> std::string"""
11345 return _IMP_atom.CHARMMSegmentTopology___repr__(self)
11349 return _object_cast_to_CHARMMSegmentTopology(o)
11353 _IMP_atom.CHARMMSegmentTopology_swigregister(CHARMMSegmentTopology)
11355 r"""Proxy of C++ IMP::atom::CHARMMTopology class."""
11357 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11359 def __init__(self, *args):
11360 r"""__init__(CHARMMTopology self, CHARMMParameters force_field, std::string name="CHARMM topology %1%") -> CHARMMTopology"""
11361 _IMP_atom.CHARMMTopology_swiginit(self, _IMP_atom.new_CHARMMTopology(*args))
11363 def get_parameters(self):
11364 r"""get_parameters(CHARMMTopology self) -> CHARMMParameters"""
11365 return _IMP_atom.CHARMMTopology_get_parameters(self)
11367 def add_sequence(self, sequence):
11368 r"""add_sequence(CHARMMTopology self, std::string sequence)"""
11369 return _IMP_atom.CHARMMTopology_add_sequence(self, sequence)
11371 def apply_default_patches(self):
11372 r"""apply_default_patches(CHARMMTopology self)"""
11373 return _IMP_atom.CHARMMTopology_apply_default_patches(self)
11375 def create_hierarchy(self, model):
11376 r"""create_hierarchy(CHARMMTopology self, Model model) -> Hierarchy"""
11377 return _IMP_atom.CHARMMTopology_create_hierarchy(self, model)
11379 def add_atom_types(self, hierarchy):
11380 r"""add_atom_types(CHARMMTopology self, Hierarchy hierarchy)"""
11381 return _IMP_atom.CHARMMTopology_add_atom_types(self, hierarchy)
11383 def add_coordinates(self, hierarchy):
11384 r"""add_coordinates(CHARMMTopology self, Hierarchy hierarchy)"""
11385 return _IMP_atom.CHARMMTopology_add_coordinates(self, hierarchy)
11387 def add_missing_atoms(self, hierarchy):
11388 r"""add_missing_atoms(CHARMMTopology self, Hierarchy hierarchy)"""
11389 return _IMP_atom.CHARMMTopology_add_missing_atoms(self, hierarchy)
11391 def setup_hierarchy(self, hierarchy):
11392 r"""setup_hierarchy(CHARMMTopology self, Hierarchy hierarchy)"""
11393 return _IMP_atom.CHARMMTopology_setup_hierarchy(self, hierarchy)
11395 def add_charges(self, hierarchy):
11396 r"""add_charges(CHARMMTopology self, Hierarchy hierarchy)"""
11397 return _IMP_atom.CHARMMTopology_add_charges(self, hierarchy)
11400 r"""add_bonds(CHARMMTopology self, Hierarchy hierarchy) -> IMP::Particles"""
11401 return _IMP_atom.CHARMMTopology_add_bonds(self, hierarchy)
11403 def add_dihedrals(self, hierarchy):
11404 r"""add_dihedrals(CHARMMTopology self, Hierarchy hierarchy) -> IMP::Particles"""
11405 return _IMP_atom.CHARMMTopology_add_dihedrals(self, hierarchy)
11407 def add_impropers(self, hierarchy):
11408 r"""add_impropers(CHARMMTopology self, Hierarchy hierarchy) -> IMP::Particles"""
11409 return _IMP_atom.CHARMMTopology_add_impropers(self, hierarchy)
11410 def __get_segments(self):
return IMP._list_util.VarList(getdimfunc=self.get_number_of_segments, getfunc=self.get_segment, erasefunc=self.erase_segment, appendfunc=self.add_segment, extendfunc=self.add_segments, clearfunc=self.clear_segments, indexfunc=self._python_index_segment)
11411 def __set_segments(self, obj): IMP._list_util.set_varlist(self.segments, obj)
11412 def __del_segments(self): IMP._list_util.del_varlist(self.segments)
11413 segments = property(__get_segments, __set_segments, __del_segments, doc=
"List of ##ucnames")
11415 def remove_segment(self, d):
11416 r"""remove_segment(CHARMMTopology self, CHARMMSegmentTopology d)"""
11417 return _IMP_atom.CHARMMTopology_remove_segment(self, d)
11419 def _python_index_segment(self, d, start, stop):
11420 r"""_python_index_segment(CHARMMTopology self, CHARMMSegmentTopology d, unsigned int start, unsigned int stop) -> unsigned int"""
11421 return _IMP_atom.CHARMMTopology__python_index_segment(self, d, start, stop)
11423 def remove_segments(self, d):
11424 r"""remove_segments(CHARMMTopology self, IMP::atom::CHARMMSegmentTopologies const & d)"""
11425 return _IMP_atom.CHARMMTopology_remove_segments(self, d)
11427 def set_segments(self, ps):
11428 r"""set_segments(CHARMMTopology self, IMP::atom::CHARMMSegmentTopologies const & ps)"""
11429 return _IMP_atom.CHARMMTopology_set_segments(self, ps)
11431 def set_segments_order(self, objs):
11432 r"""set_segments_order(CHARMMTopology self, IMP::atom::CHARMMSegmentTopologies const & objs)"""
11433 return _IMP_atom.CHARMMTopology_set_segments_order(self, objs)
11435 def add_segment(self, obj):
11436 r"""add_segment(CHARMMTopology self, CHARMMSegmentTopology obj) -> unsigned int"""
11437 return _IMP_atom.CHARMMTopology_add_segment(self, obj)
11439 def add_segments(self, objs):
11440 r"""add_segments(CHARMMTopology self, IMP::atom::CHARMMSegmentTopologies const & objs)"""
11441 return _IMP_atom.CHARMMTopology_add_segments(self, objs)
11443 def clear_segments(self):
11444 r"""clear_segments(CHARMMTopology self)"""
11445 return _IMP_atom.CHARMMTopology_clear_segments(self)
11447 def get_number_of_segments(self):
11448 r"""get_number_of_segments(CHARMMTopology self) -> unsigned int"""
11449 return _IMP_atom.CHARMMTopology_get_number_of_segments(self)
11451 def get_has_segments(self):
11452 r"""get_has_segments(CHARMMTopology self) -> bool"""
11453 return _IMP_atom.CHARMMTopology_get_has_segments(self)
11456 r"""get_segment(CHARMMTopology self, unsigned int i) -> CHARMMSegmentTopology"""
11457 return _IMP_atom.CHARMMTopology_get_segment(self, i)
11459 def get_segments(self):
11460 r"""get_segments(CHARMMTopology self) -> IMP::atom::CHARMMSegmentTopologies"""
11461 return _IMP_atom.CHARMMTopology_get_segments(self)
11463 def erase_segment(self, i):
11464 r"""erase_segment(CHARMMTopology self, unsigned int i)"""
11465 return _IMP_atom.CHARMMTopology_erase_segment(self, i)
11467 def reserve_segments(self, sz):
11468 r"""reserve_segments(CHARMMTopology self, unsigned int sz)"""
11469 return _IMP_atom.CHARMMTopology_reserve_segments(self, sz)
11471 def get_version_info(self):
11472 r"""get_version_info(CHARMMTopology self) -> VersionInfo"""
11473 return _IMP_atom.CHARMMTopology_get_version_info(self)
11474 __swig_destroy__ = _IMP_atom.delete_CHARMMTopology
11477 r"""__str__(CHARMMTopology self) -> std::string"""
11478 return _IMP_atom.CHARMMTopology___str__(self)
11480 def __repr__(self):
11481 r"""__repr__(CHARMMTopology self) -> std::string"""
11482 return _IMP_atom.CHARMMTopology___repr__(self)
11486 return _object_cast_to_CHARMMTopology(o)
11490 _IMP_atom.CHARMMTopology_swigregister(CHARMMTopology)
11492 r"""Proxy of C++ IMP::atom::CHARMMStereochemistryRestraint class."""
11494 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11496 def __init__(self, *args):
11498 __init__(CHARMMStereochemistryRestraint self, Hierarchy h, CHARMMTopology topology) -> CHARMMStereochemistryRestraint
11499 __init__(CHARMMStereochemistryRestraint self, Hierarchy h, CHARMMTopology topology, IMP::ParticlesTemp limit_to_these_particles) -> CHARMMStereochemistryRestraint
11501 _IMP_atom.CHARMMStereochemistryRestraint_swiginit(self, _IMP_atom.new_CHARMMStereochemistryRestraint(*args))
11503 def get_pair_filter(self):
11504 r"""get_pair_filter(CHARMMStereochemistryRestraint self) -> StereochemistryPairFilter"""
11505 return _IMP_atom.CHARMMStereochemistryRestraint_get_pair_filter(self)
11507 def get_full_pair_filter(self):
11508 r"""get_full_pair_filter(CHARMMStereochemistryRestraint self) -> StereochemistryPairFilter"""
11509 return _IMP_atom.CHARMMStereochemistryRestraint_get_full_pair_filter(self)
11511 def do_get_inputs(self):
11512 r"""do_get_inputs(CHARMMStereochemistryRestraint self) -> IMP::ModelObjectsTemp"""
11513 return _IMP_atom.CHARMMStereochemistryRestraint_do_get_inputs(self)
11515 def get_version_info(self):
11516 r"""get_version_info(CHARMMStereochemistryRestraint self) -> VersionInfo"""
11517 return _IMP_atom.CHARMMStereochemistryRestraint_get_version_info(self)
11518 __swig_destroy__ = _IMP_atom.delete_CHARMMStereochemistryRestraint
11521 r"""__str__(CHARMMStereochemistryRestraint self) -> std::string"""
11522 return _IMP_atom.CHARMMStereochemistryRestraint___str__(self)
11524 def __repr__(self):
11525 r"""__repr__(CHARMMStereochemistryRestraint self) -> std::string"""
11526 return _IMP_atom.CHARMMStereochemistryRestraint___repr__(self)
11530 return _object_cast_to_CHARMMStereochemistryRestraint(o)
11534 _IMP_atom.CHARMMStereochemistryRestraint_swigregister(CHARMMStereochemistryRestraint)
11537 r"""add_bonds(Hierarchy d, ForceFieldParameters ffp=IMP::atom::get_all_atom_CHARMM_parameters())"""
11538 return _IMP_atom.add_bonds(*args)
11541 r"""add_radii(Hierarchy d, ForceFieldParameters ffp=IMP::atom::get_all_atom_CHARMM_parameters(), FloatKey radius_key=IMP::FloatKey("radius"))"""
11542 return _IMP_atom.add_radii(*args)
11543 ALBER = _IMP_atom.ALBER
11545 HARPAZ = _IMP_atom.HARPAZ
11547 ANDERSSON = _IMP_atom.ANDERSSON
11549 TSAI = _IMP_atom.TSAI
11551 QUILLIN = _IMP_atom.QUILLIN
11553 SQUIRE = _IMP_atom.SQUIRE
11557 r"""get_protein_density_from_reference(IMP::atom::ProteinDensityReference densityReference) -> double"""
11558 return _IMP_atom.get_protein_density_from_reference(densityReference)
11561 r"""get_volume_from_mass(double m, IMP::atom::ProteinDensityReference ref=ALBER) -> double"""
11562 return _IMP_atom.get_volume_from_mass(*args)
11565 r"""get_mass_from_volume(double v, IMP::atom::ProteinDensityReference ref=ALBER) -> double"""
11566 return _IMP_atom.get_mass_from_volume(*args)
11569 r"""get_mass_from_number_of_residues(unsigned int num_aa) -> double"""
11570 return _IMP_atom.get_mass_from_number_of_residues(num_aa)
11573 r"""get_volume_from_residue_type(ResidueType rt) -> double"""
11574 return _IMP_atom.get_volume_from_residue_type(rt)
11577 r"""get_molarity(double n, double volume) -> double"""
11578 return _IMP_atom.get_molarity(n, volume)
11580 def get_kd(na, nb, nab, volume):
11581 r"""get_kd(double na, double nb, double nab, double volume) -> double"""
11582 return _IMP_atom.get_kd(na, nb, nab, volume)
11585 r"""get_einstein_diffusion_coefficient(double r, double temp=-1) -> double"""
11586 return _IMP_atom.get_einstein_diffusion_coefficient(r, temp)
11589 r"""get_einstein_rotational_diffusion_coefficient(double r, double temp=-1) -> double"""
11590 return _IMP_atom.get_einstein_rotational_diffusion_coefficient(r, temp)
11594 get_diffusion_length(double D, double t) -> double
11595 get_diffusion_length(double D, double force, double t, double temp=-1) -> double
11597 return _IMP_atom.get_diffusion_length(*args)
11600 r"""get_diffusion_angle(double D, double dtfs) -> double"""
11601 return _IMP_atom.get_diffusion_angle(D, dtfs)
11605 get_diffusion_coefficient(IMP::algebra::Vector3Ds const & displacements, double dt) -> double
11606 get_diffusion_coefficient(IMP::algebra::Vector3Ds const & displacements, IMP::Floats const & dts) -> double
11608 return _IMP_atom.get_diffusion_coefficient(*args)
11611 r"""get_rotational_diffusion_coefficient(IMP::algebra::Rotation3Ds const & orientations, double dt) -> double"""
11612 return _IMP_atom.get_rotational_diffusion_coefficient(orientations, dt)
11614 def get_energy_in_femto_joules(energy_in_kcal_per_mol):
11615 r"""get_energy_in_femto_joules(double energy_in_kcal_per_mol) -> double"""
11616 return _IMP_atom.get_energy_in_femto_joules(energy_in_kcal_per_mol)
11619 r"""get_force_in_femto_newtons(double force_in_kcal_per_mol_per_angstrom) -> double"""
11620 return _IMP_atom.get_force_in_femto_newtons(force_in_kcal_per_mol_per_angstrom)
11623 r"""get_spring_constant_in_femto_newtons_per_angstrom(double k_in_kcal_per_mol_per_angstrom_square) -> double"""
11624 return _IMP_atom.get_spring_constant_in_femto_newtons_per_angstrom(k_in_kcal_per_mol_per_angstrom_square)
11626 r"""Proxy of C++ IMP::atom::EzRestraint class."""
11628 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11630 def __init__(self, m, ps):
11631 r"""__init__(EzRestraint self, Model m, _ParticleIndexesAdaptor ps) -> EzRestraint"""
11632 _IMP_atom.EzRestraint_swiginit(self, _IMP_atom.new_EzRestraint(m, ps))
11634 def get_version_info(self):
11635 r"""get_version_info(EzRestraint self) -> VersionInfo"""
11636 return _IMP_atom.EzRestraint_get_version_info(self)
11637 __swig_destroy__ = _IMP_atom.delete_EzRestraint
11640 r"""__str__(EzRestraint self) -> std::string"""
11641 return _IMP_atom.EzRestraint___str__(self)
11643 def __repr__(self):
11644 r"""__repr__(EzRestraint self) -> std::string"""
11645 return _IMP_atom.EzRestraint___repr__(self)
11649 return _object_cast_to_EzRestraint(o)
11653 _IMP_atom.EzRestraint_swigregister(EzRestraint)
11657 create_protein(Model m, std::string name, double target_radius, int number_of_residues, int first_residue_index=0, double volume=-1, bool ismol=True) -> Hierarchy
11658 create_protein(Model m, std::string name, double target_radius, IMP::Ints const domain_boundaries) -> Hierarchy
11660 return _IMP_atom.create_protein(*args)
11664 create_simplified_along_backbone(Hierarchy input, int num_res, bool keep_detailed=False) -> Hierarchy
11665 create_simplified_along_backbone(Chain input, IMP::IntRanges const & residue_segments, bool keep_detailed=False) -> Hierarchy
11667 return _IMP_atom.create_simplified_along_backbone(*args)
11670 r"""create_simplified_from_volume(Hierarchy h, double resolution) -> Hierarchy"""
11671 return _IMP_atom.create_simplified_from_volume(h, resolution)
11674 r"""create_simplified_assembly_from_volume(Hierarchy h, double resolution) -> Hierarchy"""
11675 return _IMP_atom.create_simplified_assembly_from_volume(h, resolution)
11677 def get_residue_indexes(h):
11678 r"""get_residue_indexes(Hierarchy h) -> IMP::Ints"""
11679 return _IMP_atom.get_residue_indexes(h)
11681 def get_residue_type(*args):
11683 get_residue_type(char c) -> ResidueType
11684 get_residue_type(Hierarchy h) -> ResidueType
11686 return _IMP_atom.get_residue_type(*args)
11688 def get_atom_type(h):
11689 r"""get_atom_type(Hierarchy h) -> AtomType"""
11690 return _IMP_atom.get_atom_type(h)
11692 def get_domain_name(h):
11693 r"""get_domain_name(Hierarchy h) -> std::string"""
11694 return _IMP_atom.get_domain_name(h)
11698 create_excluded_volume_restraint(IMP::atom::Selections const & s) -> Restraint
11699 create_excluded_volume_restraint(IMP::atom::Hierarchies const & hs, double resolution=-1) -> Restraint
11701 return _IMP_atom.create_excluded_volume_restraint(*args)
11705 setup_as_approximation(Particle h, IMP::ParticlesTemp const & other, double resolution=-1)
11706 setup_as_approximation(Hierarchy h, double resolution=-1)
11708 return _IMP_atom.setup_as_approximation(*args)
11709 class _HierarchyTreeVertexIndex(object):
11710 r"""Proxy of C++ IMP::atom::HierarchyTreeVertexIndex class."""
11712 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11713 __repr__ = _swig_repr
11715 def __init__(self):
11716 r"""__init__(_HierarchyTreeVertexIndex self) -> _HierarchyTreeVertexIndex"""
11717 _IMP_atom._HierarchyTreeVertexIndex_swiginit(self, _IMP_atom.new__HierarchyTreeVertexIndex())
11718 __swig_destroy__ = _IMP_atom.delete__HierarchyTreeVertexIndex
11721 _IMP_atom._HierarchyTreeVertexIndex_swigregister(_HierarchyTreeVertexIndex)
11723 def show_as_graphviz(name, out):
11724 r"""show_as_graphviz(IMP::atom::HierarchyTree const & name, TextOutput out)"""
11725 return _IMP_atom.show_as_graphviz(name, out)
11727 def get_vertex_index(g):
11728 r"""get_vertex_index(IMP::atom::HierarchyTree const & g) -> _HierarchyTreeVertexIndex"""
11729 return _IMP_atom.get_vertex_index(g)
11732 r"""get_hierarchy_tree(Hierarchy h) -> IMP::atom::HierarchyTree"""
11733 return _IMP_atom.get_hierarchy_tree(h)
11735 r"""Proxy of C++ IMP::atom::HierarchyGeometry class."""
11737 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11739 def __init__(self, d, resolution=0):
11740 r"""__init__(HierarchyGeometry self, Hierarchy d, double resolution=0) -> HierarchyGeometry"""
11741 _IMP_atom.HierarchyGeometry_swiginit(self, _IMP_atom.new_HierarchyGeometry(d, resolution))
11743 def get_version_info(self):
11744 r"""get_version_info(HierarchyGeometry self) -> VersionInfo"""
11745 return _IMP_atom.HierarchyGeometry_get_version_info(self)
11746 __swig_destroy__ = _IMP_atom.delete_HierarchyGeometry
11749 r"""__str__(HierarchyGeometry self) -> std::string"""
11750 return _IMP_atom.HierarchyGeometry___str__(self)
11752 def __repr__(self):
11753 r"""__repr__(HierarchyGeometry self) -> std::string"""
11754 return _IMP_atom.HierarchyGeometry___repr__(self)
11758 return _object_cast_to_HierarchyGeometry(o)
11762 _IMP_atom.HierarchyGeometry_swigregister(HierarchyGeometry)
11764 r"""Proxy of C++ IMP::atom::HierarchiesGeometry class."""
11766 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11768 def __init__(self, sc, resolution=-1):
11769 r"""__init__(HierarchiesGeometry self, SingletonContainer sc, double resolution=-1) -> HierarchiesGeometry"""
11770 _IMP_atom.HierarchiesGeometry_swiginit(self, _IMP_atom.new_HierarchiesGeometry(sc, resolution))
11772 def get_version_info(self):
11773 r"""get_version_info(HierarchiesGeometry self) -> VersionInfo"""
11774 return _IMP_atom.HierarchiesGeometry_get_version_info(self)
11775 __swig_destroy__ = _IMP_atom.delete_HierarchiesGeometry
11778 r"""__str__(HierarchiesGeometry self) -> std::string"""
11779 return _IMP_atom.HierarchiesGeometry___str__(self)
11781 def __repr__(self):
11782 r"""__repr__(HierarchiesGeometry self) -> std::string"""
11783 return _IMP_atom.HierarchiesGeometry___repr__(self)
11787 return _object_cast_to_HierarchiesGeometry(o)
11791 _IMP_atom.HierarchiesGeometry_swigregister(HierarchiesGeometry)
11795 transform(Hierarchy h, Transformation3D tr)
11796 transform(Hierarchy h, Transformation3D tr)
11798 return _IMP_atom.transform(*args)
11799 class DopePairScore(_ADopeBase):
11800 r"""Proxy of C++ IMP::atom::DopePairScore class."""
11802 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11804 def __init__(self, *args):
11806 __init__(DopePairScore self, double threshold=std::numeric_limits< double >::max()) -> DopePairScore
11807 __init__(DopePairScore self, double threshold, TextInput data_file) -> DopePairScore
11809 _IMP_atom.DopePairScore_swiginit(self, _IMP_atom.new_DopePairScore(*args))
11812 r"""__str__(DopePairScore self) -> std::string"""
11813 return _IMP_atom.DopePairScore___str__(self)
11815 def __repr__(self):
11816 r"""__repr__(DopePairScore self) -> std::string"""
11817 return _IMP_atom.DopePairScore___repr__(self)
11821 return _object_cast_to_DopePairScore(o)
11823 __swig_destroy__ = _IMP_atom.delete_DopePairScore
11826 _IMP_atom.DopePairScore_swigregister(DopePairScore)
11829 r"""add_dope_score_data(Hierarchy h)"""
11830 return _IMP_atom.add_dope_score_data(h)
11831 class LoopStatisticalPairScore(_ALoopStatisticalBase):
11832 r"""Proxy of C++ IMP::atom::LoopStatisticalPairScore class."""
11834 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11836 def __init__(self, *args):
11838 __init__(LoopStatisticalPairScore self, double threshold=std::numeric_limits< double >::max()) -> LoopStatisticalPairScore
11839 __init__(LoopStatisticalPairScore self, double threshold, TextInput data_file) -> LoopStatisticalPairScore
11841 _IMP_atom.LoopStatisticalPairScore_swiginit(self, _IMP_atom.new_LoopStatisticalPairScore(*args))
11844 r"""__str__(LoopStatisticalPairScore self) -> std::string"""
11845 return _IMP_atom.LoopStatisticalPairScore___str__(self)
11847 def __repr__(self):
11848 r"""__repr__(LoopStatisticalPairScore self) -> std::string"""
11849 return _IMP_atom.LoopStatisticalPairScore___repr__(self)
11853 return _object_cast_to_LoopStatisticalPairScore(o)
11855 __swig_destroy__ = _IMP_atom.delete_LoopStatisticalPairScore
11858 _IMP_atom.LoopStatisticalPairScore_swigregister(LoopStatisticalPairScore)
11861 r"""add_loop_statistical_score_data(Hierarchy h)"""
11862 return _IMP_atom.add_loop_statistical_score_data(h)
11863 class OrientedSoapPairScore(_OrientedSoapBase):
11864 r"""Proxy of C++ IMP::atom::OrientedSoapPairScore class."""
11866 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11868 def __init__(self, library):
11869 r"""__init__(OrientedSoapPairScore self, std::string library) -> OrientedSoapPairScore"""
11870 _IMP_atom.OrientedSoapPairScore_swiginit(self, _IMP_atom.new_OrientedSoapPairScore(library))
11872 def get_pair_filter(self):
11873 r"""get_pair_filter(OrientedSoapPairScore self) -> SoapPairFilter"""
11874 return _IMP_atom.OrientedSoapPairScore_get_pair_filter(self)
11877 r"""__str__(OrientedSoapPairScore self) -> std::string"""
11878 return _IMP_atom.OrientedSoapPairScore___str__(self)
11880 def __repr__(self):
11881 r"""__repr__(OrientedSoapPairScore self) -> std::string"""
11882 return _IMP_atom.OrientedSoapPairScore___repr__(self)
11886 return _object_cast_to_OrientedSoapPairScore(o)
11888 __swig_destroy__ = _IMP_atom.delete_OrientedSoapPairScore
11891 _IMP_atom.OrientedSoapPairScore_swigregister(OrientedSoapPairScore)
11893 r"""Proxy of C++ IMP::atom::SameResiduePairFilter class."""
11895 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11897 def __init__(self):
11898 r"""__init__(SameResiduePairFilter self) -> SameResiduePairFilter"""
11899 _IMP_atom.SameResiduePairFilter_swiginit(self, _IMP_atom.new_SameResiduePairFilter())
11901 def do_get_inputs(self, m, pis):
11902 r"""do_get_inputs(SameResiduePairFilter self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11903 return _IMP_atom.SameResiduePairFilter_do_get_inputs(self, m, pis)
11905 def get_value(self, *args):
11907 get_value(SameResiduePairFilter self, IMP::ParticlePair const & a) -> int
11908 get_value(SameResiduePairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11910 return _IMP_atom.SameResiduePairFilter_get_value(self, *args)
11912 def get_value_index(self, *args):
11914 get_value_index(SameResiduePairFilter self, Model m, IMP::ParticleIndexPair const & p) -> int
11915 get_value_index(SameResiduePairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11917 return _IMP_atom.SameResiduePairFilter_get_value_index(self, *args)
11919 def get_version_info(self):
11920 r"""get_version_info(SameResiduePairFilter self) -> VersionInfo"""
11921 return _IMP_atom.SameResiduePairFilter_get_version_info(self)
11922 __swig_destroy__ = _IMP_atom.delete_SameResiduePairFilter
11925 r"""__str__(SameResiduePairFilter self) -> std::string"""
11926 return _IMP_atom.SameResiduePairFilter___str__(self)
11928 def __repr__(self):
11929 r"""__repr__(SameResiduePairFilter self) -> std::string"""
11930 return _IMP_atom.SameResiduePairFilter___repr__(self)
11934 return _object_cast_to_SameResiduePairFilter(o)
11938 _IMP_atom.SameResiduePairFilter_swigregister(SameResiduePairFilter)
11940 r"""Proxy of C++ IMP::atom::RemoveRigidMotionOptimizerState class."""
11942 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11944 def __init__(self, m, pis):
11945 r"""__init__(RemoveRigidMotionOptimizerState self, Model m, _ParticleIndexesAdaptor pis) -> RemoveRigidMotionOptimizerState"""
11946 _IMP_atom.RemoveRigidMotionOptimizerState_swiginit(self, _IMP_atom.new_RemoveRigidMotionOptimizerState(m, pis))
11948 def set_particles(self, pis):
11949 r"""set_particles(RemoveRigidMotionOptimizerState self, IMP::Particles const & pis)"""
11950 return _IMP_atom.RemoveRigidMotionOptimizerState_set_particles(self, pis)
11952 def remove_rigid_motion(self):
11953 r"""remove_rigid_motion(RemoveRigidMotionOptimizerState self)"""
11954 return _IMP_atom.RemoveRigidMotionOptimizerState_remove_rigid_motion(self)
11956 def get_version_info(self):
11957 r"""get_version_info(RemoveRigidMotionOptimizerState self) -> VersionInfo"""
11958 return _IMP_atom.RemoveRigidMotionOptimizerState_get_version_info(self)
11959 __swig_destroy__ = _IMP_atom.delete_RemoveRigidMotionOptimizerState
11962 r"""__str__(RemoveRigidMotionOptimizerState self) -> std::string"""
11963 return _IMP_atom.RemoveRigidMotionOptimizerState___str__(self)
11965 def __repr__(self):
11966 r"""__repr__(RemoveRigidMotionOptimizerState self) -> std::string"""
11967 return _IMP_atom.RemoveRigidMotionOptimizerState___repr__(self)
11971 return _object_cast_to_RemoveRigidMotionOptimizerState(o)
11975 _IMP_atom.RemoveRigidMotionOptimizerState_swigregister(RemoveRigidMotionOptimizerState)
11977 r"""Proxy of C++ IMP::atom::BerendsenThermostatOptimizerState class."""
11979 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11981 def __init__(self, pis, temperature, tau):
11982 r"""__init__(BerendsenThermostatOptimizerState self, IMP::Particles const & pis, double temperature, double tau) -> BerendsenThermostatOptimizerState"""
11983 _IMP_atom.BerendsenThermostatOptimizerState_swiginit(self, _IMP_atom.new_BerendsenThermostatOptimizerState(pis, temperature, tau))
11985 def set_particles(self, pis):
11986 r"""set_particles(BerendsenThermostatOptimizerState self, IMP::Particles const & pis)"""
11987 return _IMP_atom.BerendsenThermostatOptimizerState_set_particles(self, pis)
11989 def get_temperature(self):
11990 r"""get_temperature(BerendsenThermostatOptimizerState self) -> double"""
11991 return _IMP_atom.BerendsenThermostatOptimizerState_get_temperature(self)
11994 r"""get_tau(BerendsenThermostatOptimizerState self) -> double"""
11995 return _IMP_atom.BerendsenThermostatOptimizerState_get_tau(self)
11997 def set_temperature(self, temperature):
11998 r"""set_temperature(BerendsenThermostatOptimizerState self, double temperature)"""
11999 return _IMP_atom.BerendsenThermostatOptimizerState_set_temperature(self, temperature)
12001 def set_tau(self, tau):
12002 r"""set_tau(BerendsenThermostatOptimizerState self, double tau)"""
12003 return _IMP_atom.BerendsenThermostatOptimizerState_set_tau(self, tau)
12005 def rescale_velocities(self):
12006 r"""rescale_velocities(BerendsenThermostatOptimizerState self)"""
12007 return _IMP_atom.BerendsenThermostatOptimizerState_rescale_velocities(self)
12009 def get_version_info(self):
12010 r"""get_version_info(BerendsenThermostatOptimizerState self) -> VersionInfo"""
12011 return _IMP_atom.BerendsenThermostatOptimizerState_get_version_info(self)
12012 __swig_destroy__ = _IMP_atom.delete_BerendsenThermostatOptimizerState
12015 r"""__str__(BerendsenThermostatOptimizerState self) -> std::string"""
12016 return _IMP_atom.BerendsenThermostatOptimizerState___str__(self)
12018 def __repr__(self):
12019 r"""__repr__(BerendsenThermostatOptimizerState self) -> std::string"""
12020 return _IMP_atom.BerendsenThermostatOptimizerState___repr__(self)
12024 return _object_cast_to_BerendsenThermostatOptimizerState(o)
12028 _IMP_atom.BerendsenThermostatOptimizerState_swigregister(BerendsenThermostatOptimizerState)
12030 r"""Proxy of C++ IMP::atom::LangevinThermostatOptimizerState class."""
12032 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12034 def __init__(self, m, pis, temperature, gamma):
12035 r"""__init__(LangevinThermostatOptimizerState self, Model m, _ParticleIndexesAdaptor pis, double temperature, double gamma) -> LangevinThermostatOptimizerState"""
12036 _IMP_atom.LangevinThermostatOptimizerState_swiginit(self, _IMP_atom.new_LangevinThermostatOptimizerState(m, pis, temperature, gamma))
12038 def set_particles(self, pis):
12039 r"""set_particles(LangevinThermostatOptimizerState self, IMP::Particles const & pis)"""
12040 return _IMP_atom.LangevinThermostatOptimizerState_set_particles(self, pis)
12042 def get_temperature(self):
12043 r"""get_temperature(LangevinThermostatOptimizerState self) -> double"""
12044 return _IMP_atom.LangevinThermostatOptimizerState_get_temperature(self)
12046 def get_gamma(self):
12047 r"""get_gamma(LangevinThermostatOptimizerState self) -> double"""
12048 return _IMP_atom.LangevinThermostatOptimizerState_get_gamma(self)
12050 def set_temperature(self, temperature):
12051 r"""set_temperature(LangevinThermostatOptimizerState self, double temperature)"""
12052 return _IMP_atom.LangevinThermostatOptimizerState_set_temperature(self, temperature)
12054 def set_gamma(self, gamma):
12055 r"""set_gamma(LangevinThermostatOptimizerState self, double gamma)"""
12056 return _IMP_atom.LangevinThermostatOptimizerState_set_gamma(self, gamma)
12058 def rescale_velocities(self):
12059 r"""rescale_velocities(LangevinThermostatOptimizerState self)"""
12060 return _IMP_atom.LangevinThermostatOptimizerState_rescale_velocities(self)
12062 def get_version_info(self):
12063 r"""get_version_info(LangevinThermostatOptimizerState self) -> VersionInfo"""
12064 return _IMP_atom.LangevinThermostatOptimizerState_get_version_info(self)
12065 __swig_destroy__ = _IMP_atom.delete_LangevinThermostatOptimizerState
12068 r"""__str__(LangevinThermostatOptimizerState self) -> std::string"""
12069 return _IMP_atom.LangevinThermostatOptimizerState___str__(self)
12071 def __repr__(self):
12072 r"""__repr__(LangevinThermostatOptimizerState self) -> std::string"""
12073 return _IMP_atom.LangevinThermostatOptimizerState___repr__(self)
12077 return _object_cast_to_LangevinThermostatOptimizerState(o)
12081 _IMP_atom.LangevinThermostatOptimizerState_swigregister(LangevinThermostatOptimizerState)
12082 class PDBRecord(IMP._Value):
12083 r"""Proxy of C++ IMP::atom::PDBRecord class."""
12085 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12087 def __init__(self):
12088 r"""__init__(PDBRecord self) -> PDBRecord"""
12089 _IMP_atom.PDBRecord_swiginit(self, _IMP_atom.new_PDBRecord())
12091 def get_alt_loc_indicator(self):
12092 r"""get_alt_loc_indicator(PDBRecord self) -> std::string"""
12093 return _IMP_atom.PDBRecord_get_alt_loc_indicator(self)
12095 def get_is_atom(self):
12096 r"""get_is_atom(PDBRecord self) -> bool"""
12097 return _IMP_atom.PDBRecord_get_is_atom(self)
12099 def get_trimmed_atom_name(self):
12100 r"""get_trimmed_atom_name(PDBRecord self) -> std::string"""
12101 return _IMP_atom.PDBRecord_get_trimmed_atom_name(self)
12103 def get_padded_atom_name(self):
12104 r"""get_padded_atom_name(PDBRecord self) -> std::string"""
12105 return _IMP_atom.PDBRecord_get_padded_atom_name(self)
12107 def get_residue_name(self):
12108 r"""get_residue_name(PDBRecord self) -> std::string"""
12109 return _IMP_atom.PDBRecord_get_residue_name(self)
12112 r"""get_chain_id(PDBRecord self) -> std::string"""
12113 return _IMP_atom.PDBRecord_get_chain_id(self)
12115 def get_element(self):
12116 r"""get_element(PDBRecord self) -> std::string"""
12117 return _IMP_atom.PDBRecord_get_element(self)
12119 def show(self, *args):
12120 r"""show(PDBRecord self, _ostream out=std::cout)"""
12121 return _IMP_atom.PDBRecord_show(self, *args)
12124 r"""__str__(PDBRecord self) -> std::string"""
12125 return _IMP_atom.PDBRecord___str__(self)
12127 def __repr__(self):
12128 r"""__repr__(PDBRecord self) -> std::string"""
12129 return _IMP_atom.PDBRecord___repr__(self)
12130 __swig_destroy__ = _IMP_atom.delete_PDBRecord
12133 _IMP_atom.PDBRecord_swigregister(PDBRecord)
12135 r"""Proxy of C++ IMP::atom::PDBSelector class."""
12137 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12139 def __init__(self, name):
12140 r"""__init__(PDBSelector self, std::string name) -> PDBSelector"""
12141 if self.__class__ == PDBSelector:
12145 _IMP_atom.PDBSelector_swiginit(self, _IMP_atom.new_PDBSelector(_self, name))
12147 if self.__class__ != PDBSelector:
12148 _director_objects.register(self)
12153 def get_is_selected(self, record):
12154 r"""get_is_selected(PDBSelector self, PDBRecord record) -> bool"""
12155 return _IMP_atom.PDBSelector_get_is_selected(self, record)
12156 __swig_destroy__ = _IMP_atom.delete_PDBSelector
12159 r"""__str__(PDBSelector self) -> std::string"""
12160 return _IMP_atom.PDBSelector___str__(self)
12162 def __repr__(self):
12163 r"""__repr__(PDBSelector self) -> std::string"""
12164 return _IMP_atom.PDBSelector___repr__(self)
12168 return _object_cast_to_PDBSelector(o)
12171 def do_show(self, out):
12176 return _object_cast_to_PDBSelector(o)
12179 def __and__(self, s):
12180 return AndPDBSelector(self, s)
12181 def __or__(self, s):
12182 return OrPDBSelector(self, s)
12183 def __xor__(self, s):
12184 return XorPDBSelector(self, s)
12185 def __invert__(self):
12186 return NotPDBSelector(self)
12187 def __sub__(self, s):
12188 return AndPDBSelector(self, NotPDBSelector(s))
12190 def __disown__(self):
12192 _IMP_atom.disown_PDBSelector(self)
12193 return weakref.proxy(self)
12195 def do_destroy(self):
12196 r"""do_destroy(PDBSelector self)"""
12197 return _IMP_atom.PDBSelector_do_destroy(self)
12200 _IMP_atom.PDBSelector_swigregister(PDBSelector)
12201 class NonAlternativePDBSelector(PDBSelector):
12202 r"""Proxy of C++ IMP::atom::NonAlternativePDBSelector class."""
12204 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12206 def __init__(self, *args):
12207 r"""__init__(NonAlternativePDBSelector self, std::string name="NonAlternativePDBSelector%1%") -> NonAlternativePDBSelector"""
12208 _IMP_atom.NonAlternativePDBSelector_swiginit(self, _IMP_atom.new_NonAlternativePDBSelector(*args))
12210 def get_version_info(self):
12211 r"""get_version_info(NonAlternativePDBSelector self) -> VersionInfo"""
12212 return _IMP_atom.NonAlternativePDBSelector_get_version_info(self)
12213 __swig_destroy__ = _IMP_atom.delete_NonAlternativePDBSelector
12216 r"""__str__(NonAlternativePDBSelector self) -> std::string"""
12217 return _IMP_atom.NonAlternativePDBSelector___str__(self)
12219 def __repr__(self):
12220 r"""__repr__(NonAlternativePDBSelector self) -> std::string"""
12221 return _IMP_atom.NonAlternativePDBSelector___repr__(self)
12225 return _object_cast_to_NonAlternativePDBSelector(o)
12229 _IMP_atom.NonAlternativePDBSelector_swigregister(NonAlternativePDBSelector)
12230 class ATOMPDBSelector(NonAlternativePDBSelector):
12231 r"""Proxy of C++ IMP::atom::ATOMPDBSelector class."""
12233 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12235 def __init__(self, *args):
12236 r"""__init__(ATOMPDBSelector self, std::string name="ATOMPDBSelector%1%") -> ATOMPDBSelector"""
12237 _IMP_atom.ATOMPDBSelector_swiginit(self, _IMP_atom.new_ATOMPDBSelector(*args))
12238 __swig_destroy__ = _IMP_atom.delete_ATOMPDBSelector
12241 r"""__str__(ATOMPDBSelector self) -> std::string"""
12242 return _IMP_atom.ATOMPDBSelector___str__(self)
12244 def __repr__(self):
12245 r"""__repr__(ATOMPDBSelector self) -> std::string"""
12246 return _IMP_atom.ATOMPDBSelector___repr__(self)
12250 return _object_cast_to_ATOMPDBSelector(o)
12254 _IMP_atom.ATOMPDBSelector_swigregister(ATOMPDBSelector)
12255 class CAlphaPDBSelector(NonAlternativePDBSelector):
12256 r"""Proxy of C++ IMP::atom::CAlphaPDBSelector class."""
12258 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12260 def __init__(self, *args):
12261 r"""__init__(CAlphaPDBSelector self, std::string name="CAlphaPDBSelector%1%") -> CAlphaPDBSelector"""
12262 _IMP_atom.CAlphaPDBSelector_swiginit(self, _IMP_atom.new_CAlphaPDBSelector(*args))
12263 __swig_destroy__ = _IMP_atom.delete_CAlphaPDBSelector
12266 r"""__str__(CAlphaPDBSelector self) -> std::string"""
12267 return _IMP_atom.CAlphaPDBSelector___str__(self)
12269 def __repr__(self):
12270 r"""__repr__(CAlphaPDBSelector self) -> std::string"""
12271 return _IMP_atom.CAlphaPDBSelector___repr__(self)
12275 return _object_cast_to_CAlphaPDBSelector(o)
12279 _IMP_atom.CAlphaPDBSelector_swigregister(CAlphaPDBSelector)
12280 class CBetaPDBSelector(NonAlternativePDBSelector):
12281 r"""Proxy of C++ IMP::atom::CBetaPDBSelector class."""
12283 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12285 def __init__(self, *args):
12286 r"""__init__(CBetaPDBSelector self, std::string name="CBetaPDBSelector%1%") -> CBetaPDBSelector"""
12287 _IMP_atom.CBetaPDBSelector_swiginit(self, _IMP_atom.new_CBetaPDBSelector(*args))
12288 __swig_destroy__ = _IMP_atom.delete_CBetaPDBSelector
12291 r"""__str__(CBetaPDBSelector self) -> std::string"""
12292 return _IMP_atom.CBetaPDBSelector___str__(self)
12294 def __repr__(self):
12295 r"""__repr__(CBetaPDBSelector self) -> std::string"""
12296 return _IMP_atom.CBetaPDBSelector___repr__(self)
12300 return _object_cast_to_CBetaPDBSelector(o)
12304 _IMP_atom.CBetaPDBSelector_swigregister(CBetaPDBSelector)
12305 class AtomTypePDBSelector(PDBSelector):
12306 r"""Proxy of C++ IMP::atom::AtomTypePDBSelector class."""
12308 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12310 def __init__(self, *args):
12311 r"""__init__(AtomTypePDBSelector self, IMP::Strings atom_types, std::string name="AtomTypePDBSelector%1%") -> AtomTypePDBSelector"""
12312 _IMP_atom.AtomTypePDBSelector_swiginit(self, _IMP_atom.new_AtomTypePDBSelector(*args))
12314 def get_version_info(self):
12315 r"""get_version_info(AtomTypePDBSelector self) -> VersionInfo"""
12316 return _IMP_atom.AtomTypePDBSelector_get_version_info(self)
12317 __swig_destroy__ = _IMP_atom.delete_AtomTypePDBSelector
12320 r"""__str__(AtomTypePDBSelector self) -> std::string"""
12321 return _IMP_atom.AtomTypePDBSelector___str__(self)
12323 def __repr__(self):
12324 r"""__repr__(AtomTypePDBSelector self) -> std::string"""
12325 return _IMP_atom.AtomTypePDBSelector___repr__(self)
12329 return _object_cast_to_AtomTypePDBSelector(o)
12333 _IMP_atom.AtomTypePDBSelector_swigregister(AtomTypePDBSelector)
12334 class ResidueTypePDBSelector(PDBSelector):
12335 r"""Proxy of C++ IMP::atom::ResidueTypePDBSelector class."""
12337 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12339 def __init__(self, *args):
12340 r"""__init__(ResidueTypePDBSelector self, IMP::Strings residue_types, std::string name="ResidueTypePDBSelector%1%") -> ResidueTypePDBSelector"""
12341 _IMP_atom.ResidueTypePDBSelector_swiginit(self, _IMP_atom.new_ResidueTypePDBSelector(*args))
12343 def get_version_info(self):
12344 r"""get_version_info(ResidueTypePDBSelector self) -> VersionInfo"""
12345 return _IMP_atom.ResidueTypePDBSelector_get_version_info(self)
12346 __swig_destroy__ = _IMP_atom.delete_ResidueTypePDBSelector
12349 r"""__str__(ResidueTypePDBSelector self) -> std::string"""
12350 return _IMP_atom.ResidueTypePDBSelector___str__(self)
12352 def __repr__(self):
12353 r"""__repr__(ResidueTypePDBSelector self) -> std::string"""
12354 return _IMP_atom.ResidueTypePDBSelector___repr__(self)
12358 return _object_cast_to_ResidueTypePDBSelector(o)
12362 _IMP_atom.ResidueTypePDBSelector_swigregister(ResidueTypePDBSelector)
12363 class CPDBSelector(NonAlternativePDBSelector):
12364 r"""Proxy of C++ IMP::atom::CPDBSelector class."""
12366 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12368 def __init__(self, *args):
12369 r"""__init__(CPDBSelector self, std::string name="CPDBSelector%1%") -> CPDBSelector"""
12370 _IMP_atom.CPDBSelector_swiginit(self, _IMP_atom.new_CPDBSelector(*args))
12371 __swig_destroy__ = _IMP_atom.delete_CPDBSelector
12374 r"""__str__(CPDBSelector self) -> std::string"""
12375 return _IMP_atom.CPDBSelector___str__(self)
12377 def __repr__(self):
12378 r"""__repr__(CPDBSelector self) -> std::string"""
12379 return _IMP_atom.CPDBSelector___repr__(self)
12383 return _object_cast_to_CPDBSelector(o)
12387 _IMP_atom.CPDBSelector_swigregister(CPDBSelector)
12388 class NPDBSelector(NonAlternativePDBSelector):
12389 r"""Proxy of C++ IMP::atom::NPDBSelector class."""
12391 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12393 def __init__(self, *args):
12394 r"""__init__(NPDBSelector self, std::string name="NPDBSelector%1%") -> NPDBSelector"""
12395 _IMP_atom.NPDBSelector_swiginit(self, _IMP_atom.new_NPDBSelector(*args))
12396 __swig_destroy__ = _IMP_atom.delete_NPDBSelector
12399 r"""__str__(NPDBSelector self) -> std::string"""
12400 return _IMP_atom.NPDBSelector___str__(self)
12402 def __repr__(self):
12403 r"""__repr__(NPDBSelector self) -> std::string"""
12404 return _IMP_atom.NPDBSelector___repr__(self)
12408 return _object_cast_to_NPDBSelector(o)
12412 _IMP_atom.NPDBSelector_swigregister(NPDBSelector)
12413 class AllPDBSelector(PDBSelector):
12414 r"""Proxy of C++ IMP::atom::AllPDBSelector class."""
12416 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12418 def __init__(self, *args):
12419 r"""__init__(AllPDBSelector self, std::string name="AllPDBSelector%1%") -> AllPDBSelector"""
12420 _IMP_atom.AllPDBSelector_swiginit(self, _IMP_atom.new_AllPDBSelector(*args))
12422 def get_version_info(self):
12423 r"""get_version_info(AllPDBSelector self) -> VersionInfo"""
12424 return _IMP_atom.AllPDBSelector_get_version_info(self)
12425 __swig_destroy__ = _IMP_atom.delete_AllPDBSelector
12428 r"""__str__(AllPDBSelector self) -> std::string"""
12429 return _IMP_atom.AllPDBSelector___str__(self)
12431 def __repr__(self):
12432 r"""__repr__(AllPDBSelector self) -> std::string"""
12433 return _IMP_atom.AllPDBSelector___repr__(self)
12437 return _object_cast_to_AllPDBSelector(o)
12441 _IMP_atom.AllPDBSelector_swigregister(AllPDBSelector)
12442 class ChainPDBSelector(NonAlternativePDBSelector):
12443 r"""Proxy of C++ IMP::atom::ChainPDBSelector class."""
12445 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12446 __swig_destroy__ = _IMP_atom.delete_ChainPDBSelector
12448 def __init__(self, *args):
12449 r"""__init__(ChainPDBSelector self, IMP::Strings chains, std::string name="ChainPDBSelector%1%") -> ChainPDBSelector"""
12450 _IMP_atom.ChainPDBSelector_swiginit(self, _IMP_atom.new_ChainPDBSelector(*args))
12453 r"""__str__(ChainPDBSelector self) -> std::string"""
12454 return _IMP_atom.ChainPDBSelector___str__(self)
12456 def __repr__(self):
12457 r"""__repr__(ChainPDBSelector self) -> std::string"""
12458 return _IMP_atom.ChainPDBSelector___repr__(self)
12462 return _object_cast_to_ChainPDBSelector(o)
12466 _IMP_atom.ChainPDBSelector_swigregister(ChainPDBSelector)
12467 class WaterPDBSelector(NonAlternativePDBSelector):
12468 r"""Proxy of C++ IMP::atom::WaterPDBSelector class."""
12470 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12472 def __init__(self, *args):
12473 r"""__init__(WaterPDBSelector self, std::string name="WaterPDBSelector%1%") -> WaterPDBSelector"""
12474 _IMP_atom.WaterPDBSelector_swiginit(self, _IMP_atom.new_WaterPDBSelector(*args))
12475 __swig_destroy__ = _IMP_atom.delete_WaterPDBSelector
12478 r"""__str__(WaterPDBSelector self) -> std::string"""
12479 return _IMP_atom.WaterPDBSelector___str__(self)
12481 def __repr__(self):
12482 r"""__repr__(WaterPDBSelector self) -> std::string"""
12483 return _IMP_atom.WaterPDBSelector___repr__(self)
12487 return _object_cast_to_WaterPDBSelector(o)
12491 _IMP_atom.WaterPDBSelector_swigregister(WaterPDBSelector)
12492 class HydrogenPDBSelector(NonAlternativePDBSelector):
12493 r"""Proxy of C++ IMP::atom::HydrogenPDBSelector class."""
12495 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12497 def __init__(self, *args):
12498 r"""__init__(HydrogenPDBSelector self, std::string name="HydrogenPDBSelector%1%") -> HydrogenPDBSelector"""
12499 _IMP_atom.HydrogenPDBSelector_swiginit(self, _IMP_atom.new_HydrogenPDBSelector(*args))
12500 __swig_destroy__ = _IMP_atom.delete_HydrogenPDBSelector
12503 r"""__str__(HydrogenPDBSelector self) -> std::string"""
12504 return _IMP_atom.HydrogenPDBSelector___str__(self)
12506 def __repr__(self):
12507 r"""__repr__(HydrogenPDBSelector self) -> std::string"""
12508 return _IMP_atom.HydrogenPDBSelector___repr__(self)
12512 return _object_cast_to_HydrogenPDBSelector(o)
12516 _IMP_atom.HydrogenPDBSelector_swigregister(HydrogenPDBSelector)
12517 class NonWaterNonHydrogenPDBSelector(NonAlternativePDBSelector):
12518 r"""Proxy of C++ IMP::atom::NonWaterNonHydrogenPDBSelector class."""
12520 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12521 __swig_destroy__ = _IMP_atom.delete_NonWaterNonHydrogenPDBSelector
12523 def __init__(self, *args):
12525 __init__(NonWaterNonHydrogenPDBSelector self, std::string name) -> NonWaterNonHydrogenPDBSelector
12526 __init__(NonWaterNonHydrogenPDBSelector self) -> NonWaterNonHydrogenPDBSelector
12528 _IMP_atom.NonWaterNonHydrogenPDBSelector_swiginit(self, _IMP_atom.new_NonWaterNonHydrogenPDBSelector(*args))
12531 r"""__str__(NonWaterNonHydrogenPDBSelector self) -> std::string"""
12532 return _IMP_atom.NonWaterNonHydrogenPDBSelector___str__(self)
12534 def __repr__(self):
12535 r"""__repr__(NonWaterNonHydrogenPDBSelector self) -> std::string"""
12536 return _IMP_atom.NonWaterNonHydrogenPDBSelector___repr__(self)
12540 return _object_cast_to_NonWaterNonHydrogenPDBSelector(o)
12544 _IMP_atom.NonWaterNonHydrogenPDBSelector_swigregister(NonWaterNonHydrogenPDBSelector)
12545 class NonHydrogenPDBSelector(NonAlternativePDBSelector):
12546 r"""Proxy of C++ IMP::atom::NonHydrogenPDBSelector class."""
12548 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12549 __swig_destroy__ = _IMP_atom.delete_NonHydrogenPDBSelector
12551 def __init__(self, *args):
12553 __init__(NonHydrogenPDBSelector self, std::string name) -> NonHydrogenPDBSelector
12554 __init__(NonHydrogenPDBSelector self) -> NonHydrogenPDBSelector
12556 _IMP_atom.NonHydrogenPDBSelector_swiginit(self, _IMP_atom.new_NonHydrogenPDBSelector(*args))
12559 r"""__str__(NonHydrogenPDBSelector self) -> std::string"""
12560 return _IMP_atom.NonHydrogenPDBSelector___str__(self)
12562 def __repr__(self):
12563 r"""__repr__(NonHydrogenPDBSelector self) -> std::string"""
12564 return _IMP_atom.NonHydrogenPDBSelector___repr__(self)
12568 return _object_cast_to_NonHydrogenPDBSelector(o)
12572 _IMP_atom.NonHydrogenPDBSelector_swigregister(NonHydrogenPDBSelector)
12573 class NonWaterPDBSelector(NonAlternativePDBSelector):
12574 r"""Proxy of C++ IMP::atom::NonWaterPDBSelector class."""
12576 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12577 __swig_destroy__ = _IMP_atom.delete_NonWaterPDBSelector
12579 def __init__(self, *args):
12581 __init__(NonWaterPDBSelector self, std::string name) -> NonWaterPDBSelector
12582 __init__(NonWaterPDBSelector self) -> NonWaterPDBSelector
12584 _IMP_atom.NonWaterPDBSelector_swiginit(self, _IMP_atom.new_NonWaterPDBSelector(*args))
12587 r"""__str__(NonWaterPDBSelector self) -> std::string"""
12588 return _IMP_atom.NonWaterPDBSelector___str__(self)
12590 def __repr__(self):
12591 r"""__repr__(NonWaterPDBSelector self) -> std::string"""
12592 return _IMP_atom.NonWaterPDBSelector___repr__(self)
12596 return _object_cast_to_NonWaterPDBSelector(o)
12600 _IMP_atom.NonWaterPDBSelector_swigregister(NonWaterPDBSelector)
12601 class BackbonePDBSelector(NonWaterNonHydrogenPDBSelector):
12602 r"""Proxy of C++ IMP::atom::BackbonePDBSelector class."""
12604 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12606 def __init__(self, *args):
12607 r"""__init__(BackbonePDBSelector self, std::string name="BackbonePDBSelector%1%") -> BackbonePDBSelector"""
12608 _IMP_atom.BackbonePDBSelector_swiginit(self, _IMP_atom.new_BackbonePDBSelector(*args))
12609 __swig_destroy__ = _IMP_atom.delete_BackbonePDBSelector
12612 r"""__str__(BackbonePDBSelector self) -> std::string"""
12613 return _IMP_atom.BackbonePDBSelector___str__(self)
12615 def __repr__(self):
12616 r"""__repr__(BackbonePDBSelector self) -> std::string"""
12617 return _IMP_atom.BackbonePDBSelector___repr__(self)
12621 return _object_cast_to_BackbonePDBSelector(o)
12625 _IMP_atom.BackbonePDBSelector_swigregister(BackbonePDBSelector)
12626 class PPDBSelector(NonAlternativePDBSelector):
12627 r"""Proxy of C++ IMP::atom::PPDBSelector class."""
12629 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12631 def __init__(self, *args):
12632 r"""__init__(PPDBSelector self, std::string name="PPDBSelector%1%") -> PPDBSelector"""
12633 _IMP_atom.PPDBSelector_swiginit(self, _IMP_atom.new_PPDBSelector(*args))
12634 __swig_destroy__ = _IMP_atom.delete_PPDBSelector
12637 r"""__str__(PPDBSelector self) -> std::string"""
12638 return _IMP_atom.PPDBSelector___str__(self)
12640 def __repr__(self):
12641 r"""__repr__(PPDBSelector self) -> std::string"""
12642 return _IMP_atom.PPDBSelector___repr__(self)
12646 return _object_cast_to_PPDBSelector(o)
12650 _IMP_atom.PPDBSelector_swigregister(PPDBSelector)
12651 class AndPDBSelector(PDBSelector):
12652 r"""Proxy of C++ IMP::atom::AndPDBSelector class."""
12654 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12656 def get_version_info(self):
12657 r"""get_version_info(AndPDBSelector self) -> VersionInfo"""
12658 return _IMP_atom.AndPDBSelector_get_version_info(self)
12659 __swig_destroy__ = _IMP_atom.delete_AndPDBSelector
12661 def __init__(self, a, b):
12662 r"""__init__(AndPDBSelector self, PDBSelector a, PDBSelector b) -> AndPDBSelector"""
12663 _IMP_atom.AndPDBSelector_swiginit(self, _IMP_atom.new_AndPDBSelector(a, b))
12666 r"""__str__(AndPDBSelector self) -> std::string"""
12667 return _IMP_atom.AndPDBSelector___str__(self)
12669 def __repr__(self):
12670 r"""__repr__(AndPDBSelector self) -> std::string"""
12671 return _IMP_atom.AndPDBSelector___repr__(self)
12675 return _object_cast_to_AndPDBSelector(o)
12679 _IMP_atom.AndPDBSelector_swigregister(AndPDBSelector)
12680 class OrPDBSelector(PDBSelector):
12681 r"""Proxy of C++ IMP::atom::OrPDBSelector class."""
12683 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12685 def get_version_info(self):
12686 r"""get_version_info(OrPDBSelector self) -> VersionInfo"""
12687 return _IMP_atom.OrPDBSelector_get_version_info(self)
12688 __swig_destroy__ = _IMP_atom.delete_OrPDBSelector
12690 def __init__(self, a, b):
12691 r"""__init__(OrPDBSelector self, PDBSelector a, PDBSelector b) -> OrPDBSelector"""
12692 _IMP_atom.OrPDBSelector_swiginit(self, _IMP_atom.new_OrPDBSelector(a, b))
12695 r"""__str__(OrPDBSelector self) -> std::string"""
12696 return _IMP_atom.OrPDBSelector___str__(self)
12698 def __repr__(self):
12699 r"""__repr__(OrPDBSelector self) -> std::string"""
12700 return _IMP_atom.OrPDBSelector___repr__(self)
12704 return _object_cast_to_OrPDBSelector(o)
12708 _IMP_atom.OrPDBSelector_swigregister(OrPDBSelector)
12709 class XorPDBSelector(PDBSelector):
12710 r"""Proxy of C++ IMP::atom::XorPDBSelector class."""
12712 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12714 def get_version_info(self):
12715 r"""get_version_info(XorPDBSelector self) -> VersionInfo"""
12716 return _IMP_atom.XorPDBSelector_get_version_info(self)
12717 __swig_destroy__ = _IMP_atom.delete_XorPDBSelector
12719 def __init__(self, a, b):
12720 r"""__init__(XorPDBSelector self, PDBSelector a, PDBSelector b) -> XorPDBSelector"""
12721 _IMP_atom.XorPDBSelector_swiginit(self, _IMP_atom.new_XorPDBSelector(a, b))
12724 r"""__str__(XorPDBSelector self) -> std::string"""
12725 return _IMP_atom.XorPDBSelector___str__(self)
12727 def __repr__(self):
12728 r"""__repr__(XorPDBSelector self) -> std::string"""
12729 return _IMP_atom.XorPDBSelector___repr__(self)
12733 return _object_cast_to_XorPDBSelector(o)
12737 _IMP_atom.XorPDBSelector_swigregister(XorPDBSelector)
12738 class NotPDBSelector(PDBSelector):
12739 r"""Proxy of C++ IMP::atom::NotPDBSelector class."""
12741 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12743 def get_version_info(self):
12744 r"""get_version_info(NotPDBSelector self) -> VersionInfo"""
12745 return _IMP_atom.NotPDBSelector_get_version_info(self)
12746 __swig_destroy__ = _IMP_atom.delete_NotPDBSelector
12748 def __init__(self, a):
12749 r"""__init__(NotPDBSelector self, PDBSelector a) -> NotPDBSelector"""
12750 _IMP_atom.NotPDBSelector_swiginit(self, _IMP_atom.new_NotPDBSelector(a))
12753 r"""__str__(NotPDBSelector self) -> std::string"""
12754 return _IMP_atom.NotPDBSelector___str__(self)
12756 def __repr__(self):
12757 r"""__repr__(NotPDBSelector self) -> std::string"""
12758 return _IMP_atom.NotPDBSelector___repr__(self)
12762 return _object_cast_to_NotPDBSelector(o)
12766 _IMP_atom.NotPDBSelector_swigregister(NotPDBSelector)
12768 def get_default_pdb_selector():
12769 r"""get_default_pdb_selector() -> PDBSelector"""
12770 return _IMP_atom.get_default_pdb_selector()
12774 read_pdb(TextInput input, Model model, PDBSelector selector=IMP::atom::get_default_pdb_selector(), bool select_first_model=True, bool no_radii=False) -> Hierarchy
12775 read_pdb(TextInput input, int model, Hierarchy h)
12777 return _IMP_atom.read_pdb(*args)
12780 r"""read_multimodel_pdb(TextInput input, Model model, PDBSelector selector=IMP::atom::get_default_pdb_selector(), bool noradii=False) -> IMP::atom::Hierarchies"""
12781 return _IMP_atom.read_multimodel_pdb(*args)
12784 r"""write_pdb(Selection mhd, TextOutput out, unsigned int model=1)"""
12785 return _IMP_atom.write_pdb(mhd, out, model)
12788 r"""write_pdb_of_c_alphas(Selection mhd, TextOutput out, unsigned int model=1)"""
12789 return _IMP_atom.write_pdb_of_c_alphas(mhd, out, model)
12792 r"""write_multimodel_pdb(IMP::atom::Hierarchies const & mhd, TextOutput out)"""
12793 return _IMP_atom.write_multimodel_pdb(mhd, out)
12795 def get_pdb_string(*args):
12796 r"""get_pdb_string(Vector3D v, int index=-1, AtomType at=AT_CA, ResidueType rt=ALA, char chain=' ', int res_index=1, char res_icode=' ', double occupancy=1.00, double tempFactor=0.00, IMP::atom::Element e=C) -> std::string"""
12797 return _IMP_atom.get_pdb_string(*args)
12799 def get_pdb_conect_record_string(arg1, arg2):
12800 r"""get_pdb_conect_record_string(int arg1, int arg2) -> std::string"""
12801 return _IMP_atom.get_pdb_conect_record_string(arg1, arg2)
12803 r"""Proxy of C++ IMP::atom::WritePDBOptimizerState class."""
12805 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12807 def __init__(self, *args):
12809 __init__(WritePDBOptimizerState self, Model m, _ParticleIndexesAdaptor pis, std::string filename) -> WritePDBOptimizerState
12810 __init__(WritePDBOptimizerState self, IMP::atom::Hierarchies const mh, std::string filename) -> WritePDBOptimizerState
12811 __init__(WritePDBOptimizerState self) -> WritePDBOptimizerState
12813 _IMP_atom.WritePDBOptimizerState_swiginit(self, _IMP_atom.new_WritePDBOptimizerState(*args))
12815 def get_version_info(self):
12816 r"""get_version_info(WritePDBOptimizerState self) -> VersionInfo"""
12817 return _IMP_atom.WritePDBOptimizerState_get_version_info(self)
12818 __swig_destroy__ = _IMP_atom.delete_WritePDBOptimizerState
12821 r"""__str__(WritePDBOptimizerState self) -> std::string"""
12822 return _IMP_atom.WritePDBOptimizerState___str__(self)
12824 def __repr__(self):
12825 r"""__repr__(WritePDBOptimizerState self) -> std::string"""
12826 return _IMP_atom.WritePDBOptimizerState___repr__(self)
12830 return _object_cast_to_WritePDBOptimizerState(o)
12833 def _get_as_binary(self):
12834 r"""_get_as_binary(WritePDBOptimizerState self) -> PyObject *"""
12835 return _IMP_atom.WritePDBOptimizerState__get_as_binary(self)
12837 def _set_from_binary(self, p):
12838 r"""_set_from_binary(WritePDBOptimizerState self, PyObject * p)"""
12839 return _IMP_atom.WritePDBOptimizerState__set_from_binary(self, p)
12841 def __getstate__(self):
12842 p = self._get_as_binary()
12843 if len(self.__dict__) > 1:
12844 d = self.__dict__.copy()
12849 def __setstate__(self, p):
12850 if not hasattr(self,
'this'):
12852 if isinstance(p, tuple):
12854 self.__dict__.update(d)
12855 return self._set_from_binary(p)
12859 _IMP_atom.WritePDBOptimizerState_swigregister(WritePDBOptimizerState)
12862 r"""read_multimodel_mmcif(TextInput input, Model model, PDBSelector selector=IMP::atom::get_default_pdb_selector(), bool noradii=False) -> IMP::atom::Hierarchies"""
12863 return _IMP_atom.read_multimodel_mmcif(*args)
12866 r"""read_mmcif(TextInput input, Model model, PDBSelector selector=IMP::atom::get_default_pdb_selector(), bool select_first_model=True, bool noradii=False) -> Hierarchy"""
12867 return _IMP_atom.read_mmcif(*args)
12870 r"""read_multimodel_bcif(TextInput input, Model model, PDBSelector selector=IMP::atom::get_default_pdb_selector(), bool noradii=False) -> IMP::atom::Hierarchies"""
12871 return _IMP_atom.read_multimodel_bcif(*args)
12874 r"""read_bcif(TextInput input, Model model, PDBSelector selector=IMP::atom::get_default_pdb_selector(), bool select_first_model=True, bool noradii=False) -> Hierarchy"""
12875 return _IMP_atom.read_bcif(*args)
12878 r"""read_pdb_any(TextInput input, Model model, PDBSelector selector=IMP::atom::get_default_pdb_selector(), bool select_first_model=True, bool noradii=False) -> Hierarchy"""
12879 return _IMP_atom.read_pdb_any(*args)
12882 r"""read_multimodel_pdb_any(TextInput input, Model model, PDBSelector selector=IMP::atom::get_default_pdb_selector(), bool noradii=False) -> IMP::atom::Hierarchies"""
12883 return _IMP_atom.read_multimodel_pdb_any(*args)
12886 r"""get_kt(double T) -> double"""
12887 return _IMP_atom.get_kt(T)
12889 r"""Proxy of C++ IMP::atom::CAAngleRestraint class."""
12891 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12893 def __init__(self, m, p1, p2, p3, phi0, score):
12894 r"""__init__(CAAngleRestraint self, Model m, _ParticleIndexAdaptor p1, _ParticleIndexAdaptor p2, _ParticleIndexAdaptor p3, IMP::Floats phi0, IMP::Floats score) -> CAAngleRestraint"""
12895 _IMP_atom.CAAngleRestraint_swiginit(self, _IMP_atom.new_CAAngleRestraint(m, p1, p2, p3, phi0, score))
12897 def do_get_inputs(self):
12898 r"""do_get_inputs(CAAngleRestraint self) -> IMP::ModelObjectsTemp"""
12899 return _IMP_atom.CAAngleRestraint_do_get_inputs(self)
12901 def get_version_info(self):
12902 r"""get_version_info(CAAngleRestraint self) -> VersionInfo"""
12903 return _IMP_atom.CAAngleRestraint_get_version_info(self)
12904 __swig_destroy__ = _IMP_atom.delete_CAAngleRestraint
12907 r"""__str__(CAAngleRestraint self) -> std::string"""
12908 return _IMP_atom.CAAngleRestraint___str__(self)
12910 def __repr__(self):
12911 r"""__repr__(CAAngleRestraint self) -> std::string"""
12912 return _IMP_atom.CAAngleRestraint___repr__(self)
12916 return _object_cast_to_CAAngleRestraint(o)
12920 _IMP_atom.CAAngleRestraint_swigregister(CAAngleRestraint)
12922 r"""Proxy of C++ IMP::atom::CADihedralRestraint class."""
12924 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12926 def __init__(self, m, p1, p2, p3, p4, p5, phi0, phi1, score):
12927 r"""__init__(CADihedralRestraint self, Model m, _ParticleIndexAdaptor p1, _ParticleIndexAdaptor p2, _ParticleIndexAdaptor p3, _ParticleIndexAdaptor p4, _ParticleIndexAdaptor p5, IMP::Floats phi0, IMP::Floats phi1, IMP::Floats score) -> CADihedralRestraint"""
12928 _IMP_atom.CADihedralRestraint_swiginit(self, _IMP_atom.new_CADihedralRestraint(m, p1, p2, p3, p4, p5, phi0, phi1, score))
12930 def do_get_inputs(self):
12931 r"""do_get_inputs(CADihedralRestraint self) -> IMP::ModelObjectsTemp"""
12932 return _IMP_atom.CADihedralRestraint_do_get_inputs(self)
12934 def get_version_info(self):
12935 r"""get_version_info(CADihedralRestraint self) -> VersionInfo"""
12936 return _IMP_atom.CADihedralRestraint_get_version_info(self)
12937 __swig_destroy__ = _IMP_atom.delete_CADihedralRestraint
12940 r"""__str__(CADihedralRestraint self) -> std::string"""
12941 return _IMP_atom.CADihedralRestraint___str__(self)
12943 def __repr__(self):
12944 r"""__repr__(CADihedralRestraint self) -> std::string"""
12945 return _IMP_atom.CADihedralRestraint___repr__(self)
12949 return _object_cast_to_CADihedralRestraint(o)
12953 _IMP_atom.CADihedralRestraint_swigregister(CADihedralRestraint)
12955 r"""Proxy of C++ IMP::atom::StructureSource class."""
12957 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12959 def get_source_id(self):
12960 r"""get_source_id(StructureSource self) -> std::string"""
12961 return _IMP_atom.StructureSource_get_source_id(self)
12963 def get_source_chain_id(self):
12964 r"""get_source_chain_id(StructureSource self) -> std::string"""
12965 return _IMP_atom.StructureSource_get_source_chain_id(self)
12967 def set_source_id(self, source_id):
12968 r"""set_source_id(StructureSource self, std::string source_id)"""
12969 return _IMP_atom.StructureSource_set_source_id(self, source_id)
12971 def set_source_chain_id(self, source_chain_id):
12972 r"""set_source_chain_id(StructureSource self, std::string source_chain_id)"""
12973 return _IMP_atom.StructureSource_set_source_chain_id(self, source_chain_id)
12975 def __init__(self, *args):
12977 __init__(StructureSource self) -> StructureSource
12978 __init__(StructureSource self, Model m, ParticleIndex id) -> StructureSource
12979 __init__(StructureSource self, _ParticleAdaptor d) -> StructureSource
12981 _IMP_atom.StructureSource_swiginit(self, _IMP_atom.new_StructureSource(*args))
12984 def get_is_setup(*args):
12986 get_is_setup(Model m, ParticleIndex pi) -> bool
12987 get_is_setup(_ParticleAdaptor p) -> bool
12989 return _IMP_atom.StructureSource_get_is_setup(*args)
12991 def show(self, *args):
12992 r"""show(StructureSource self, _ostream out=std::cout)"""
12993 return _IMP_atom.StructureSource_show(self, *args)
12996 def setup_particle(*args):
12998 setup_particle(Model m, ParticleIndex pi, std::string source_id, std::string source_chain_id) -> StructureSource
12999 setup_particle(_ParticleAdaptor pa, std::string source_id, std::string source_chain_id) -> StructureSource
13001 return _IMP_atom.StructureSource_setup_particle(*args)
13003 def add_attribute(self, *args):
13005 add_attribute(StructureSource self, FloatKey k, IMP::Float v, bool opt)
13006 add_attribute(StructureSource self, FloatKey a0, IMP::Float a1)
13007 add_attribute(StructureSource self, IntKey a0, IMP::Int a1)
13008 add_attribute(StructureSource self, FloatsKey a0, IMP::Floats a1)
13009 add_attribute(StructureSource self, IntsKey a0, IMP::Ints a1)
13010 add_attribute(StructureSource self, StringKey a0, IMP::String a1)
13011 add_attribute(StructureSource self, ParticleIndexKey a0, Particle a1)
13012 add_attribute(StructureSource self, ObjectKey a0, Object a1)
13013 add_attribute(StructureSource self, SparseFloatKey a0, IMP::Float a1)
13014 add_attribute(StructureSource self, SparseIntKey a0, IMP::Int a1)
13015 add_attribute(StructureSource self, SparseStringKey a0, IMP::String a1)
13016 add_attribute(StructureSource self, SparseParticleIndexKey a0, ParticleIndex a1)
13018 return _IMP_atom.StructureSource_add_attribute(self, *args)
13020 def get_value(self, *args):
13022 get_value(StructureSource self, FloatKey a0) -> IMP::Float
13023 get_value(StructureSource self, IntKey a0) -> IMP::Int
13024 get_value(StructureSource self, FloatsKey a0) -> IMP::Floats
13025 get_value(StructureSource self, IntsKey a0) -> IMP::Ints
13026 get_value(StructureSource self, StringKey a0) -> IMP::String
13027 get_value(StructureSource self, ParticleIndexKey a0) -> Particle
13028 get_value(StructureSource self, ObjectKey a0) -> Object
13029 get_value(StructureSource self, SparseFloatKey a0) -> IMP::Float
13030 get_value(StructureSource self, SparseIntKey a0) -> IMP::Int
13031 get_value(StructureSource self, SparseStringKey a0) -> IMP::String
13032 get_value(StructureSource self, SparseParticleIndexKey a0) -> ParticleIndex
13034 return _IMP_atom.StructureSource_get_value(self, *args)
13036 def set_value(self, *args):
13038 set_value(StructureSource self, FloatKey a0, IMP::Float a1)
13039 set_value(StructureSource self, IntKey a0, IMP::Int a1)
13040 set_value(StructureSource self, FloatsKey a0, IMP::Floats a1)
13041 set_value(StructureSource self, IntsKey a0, IMP::Ints a1)
13042 set_value(StructureSource self, StringKey a0, IMP::String a1)
13043 set_value(StructureSource self, ParticleIndexKey a0, Particle a1)
13044 set_value(StructureSource self, ObjectKey a0, Object a1)
13045 set_value(StructureSource self, SparseFloatKey a0, IMP::Float a1)
13046 set_value(StructureSource self, SparseIntKey a0, IMP::Int a1)
13047 set_value(StructureSource self, SparseStringKey a0, IMP::String a1)
13048 set_value(StructureSource self, SparseParticleIndexKey a0, ParticleIndex a1)
13050 return _IMP_atom.StructureSource_set_value(self, *args)
13052 def remove_attribute(self, *args):
13054 remove_attribute(StructureSource self, FloatKey a0)
13055 remove_attribute(StructureSource self, IntKey a0)
13056 remove_attribute(StructureSource self, FloatsKey a0)
13057 remove_attribute(StructureSource self, IntsKey a0)
13058 remove_attribute(StructureSource self, StringKey a0)
13059 remove_attribute(StructureSource self, ParticleIndexKey a0)
13060 remove_attribute(StructureSource self, ObjectKey a0)
13061 remove_attribute(StructureSource self, SparseFloatKey a0)
13062 remove_attribute(StructureSource self, SparseIntKey a0)
13063 remove_attribute(StructureSource self, SparseStringKey a0)
13064 remove_attribute(StructureSource self, SparseParticleIndexKey a0)
13066 return _IMP_atom.StructureSource_remove_attribute(self, *args)
13068 def has_attribute(self, *args):
13070 has_attribute(StructureSource self, FloatKey a0) -> bool
13071 has_attribute(StructureSource self, IntKey a0) -> bool
13072 has_attribute(StructureSource self, FloatsKey a0) -> bool
13073 has_attribute(StructureSource self, IntsKey a0) -> bool
13074 has_attribute(StructureSource self, StringKey a0) -> bool
13075 has_attribute(StructureSource self, ParticleIndexKey a0) -> bool
13076 has_attribute(StructureSource self, ObjectKey a0) -> bool
13077 has_attribute(StructureSource self, SparseFloatKey a0) -> bool
13078 has_attribute(StructureSource self, SparseIntKey a0) -> bool
13079 has_attribute(StructureSource self, SparseStringKey a0) -> bool
13080 has_attribute(StructureSource self, SparseParticleIndexKey a0) -> bool
13082 return _IMP_atom.StructureSource_has_attribute(self, *args)
13084 def get_derivative(self, a0):
13085 r"""get_derivative(StructureSource self, FloatKey a0) -> double"""
13086 return _IMP_atom.StructureSource_get_derivative(self, a0)
13088 def get_name(self):
13089 r"""get_name(StructureSource self) -> std::string"""
13090 return _IMP_atom.StructureSource_get_name(self)
13092 def clear_caches(self):
13093 r"""clear_caches(StructureSource self)"""
13094 return _IMP_atom.StructureSource_clear_caches(self)
13096 def set_name(self, a0):
13097 r"""set_name(StructureSource self, std::string a0)"""
13098 return _IMP_atom.StructureSource_set_name(self, a0)
13101 r"""set_check_level(StructureSource self, IMP::CheckLevel a0)"""
13102 return _IMP_atom.StructureSource_set_check_level(self, a0)
13104 def add_to_derivative(self, a0, a1, a2):
13105 r"""add_to_derivative(StructureSource self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13106 return _IMP_atom.StructureSource_add_to_derivative(self, a0, a1, a2)
13108 def set_is_optimized(self, a0, a1):
13109 r"""set_is_optimized(StructureSource self, FloatKey a0, bool a1)"""
13110 return _IMP_atom.StructureSource_set_is_optimized(self, a0, a1)
13112 def get_is_optimized(self, a0):
13113 r"""get_is_optimized(StructureSource self, FloatKey a0) -> bool"""
13114 return _IMP_atom.StructureSource_get_is_optimized(self, a0)
13117 r"""get_check_level(StructureSource self) -> IMP::CheckLevel"""
13118 return _IMP_atom.StructureSource_get_check_level(self)
13120 def __eq__(self, *args):
13122 __eq__(StructureSource self, StructureSource o) -> bool
13123 __eq__(StructureSource self, Particle d) -> bool
13125 return _IMP_atom.StructureSource___eq__(self, *args)
13127 def __ne__(self, *args):
13129 __ne__(StructureSource self, StructureSource o) -> bool
13130 __ne__(StructureSource self, Particle d) -> bool
13132 return _IMP_atom.StructureSource___ne__(self, *args)
13134 def __le__(self, *args):
13136 __le__(StructureSource self, StructureSource o) -> bool
13137 __le__(StructureSource self, Particle d) -> bool
13139 return _IMP_atom.StructureSource___le__(self, *args)
13141 def __lt__(self, *args):
13143 __lt__(StructureSource self, StructureSource o) -> bool
13144 __lt__(StructureSource self, Particle d) -> bool
13146 return _IMP_atom.StructureSource___lt__(self, *args)
13148 def __ge__(self, *args):
13150 __ge__(StructureSource self, StructureSource o) -> bool
13151 __ge__(StructureSource self, Particle d) -> bool
13153 return _IMP_atom.StructureSource___ge__(self, *args)
13155 def __gt__(self, *args):
13157 __gt__(StructureSource self, StructureSource o) -> bool
13158 __gt__(StructureSource self, Particle d) -> bool
13160 return _IMP_atom.StructureSource___gt__(self, *args)
13162 def __hash__(self):
13163 r"""__hash__(StructureSource self) -> std::size_t"""
13164 return _IMP_atom.StructureSource___hash__(self)
13167 r"""__str__(StructureSource self) -> std::string"""
13168 return _IMP_atom.StructureSource___str__(self)
13170 def __repr__(self):
13171 r"""__repr__(StructureSource self) -> std::string"""
13172 return _IMP_atom.StructureSource___repr__(self)
13174 def _get_as_binary(self):
13175 r"""_get_as_binary(StructureSource self) -> PyObject *"""
13176 return _IMP_atom.StructureSource__get_as_binary(self)
13178 def _set_from_binary(self, p):
13179 r"""_set_from_binary(StructureSource self, PyObject * p)"""
13180 return _IMP_atom.StructureSource__set_from_binary(self, p)
13182 def __getstate__(self):
13183 p = self._get_as_binary()
13184 if len(self.__dict__) > 1:
13185 d = self.__dict__.copy()
13190 def __setstate__(self, p):
13191 if not hasattr(self,
'this'):
13193 if isinstance(p, tuple):
13195 self.__dict__.update(d)
13196 return self._set_from_binary(p)
13198 __swig_destroy__ = _IMP_atom.delete_StructureSource
13201 _IMP_atom.StructureSource_swigregister(StructureSource)
13203 def __lshift__(*args):
13205 __lshift__(_ostream out, Bonded n) -> _ostream
13206 __lshift__(_ostream out, Bond n) -> _ostream
13207 __lshift__(_ostream out, Hierarchy n) -> _ostream
13208 __lshift__(_ostream out, Angle n) -> _ostream
13209 __lshift__(_ostream out, Dihedral n) -> _ostream
13210 __lshift__(_ostream out, CenterOfMass n) -> _ostream
13211 __lshift__(_ostream out, Diffusion n) -> _ostream
13212 __lshift__(_ostream out, RigidBodyDiffusion n) -> _ostream
13213 __lshift__(_ostream out, TAMDParticle n) -> _ostream
13214 __lshift__(_ostream out, Charged n) -> _ostream
13215 __lshift__(_ostream out, Domain n) -> _ostream
13216 __lshift__(_ostream out, LennardJonesTyped n) -> _ostream
13217 __lshift__(_ostream out, Fragment n) -> _ostream
13218 __lshift__(_ostream out, SecondaryStructureResidue n) -> _ostream
13219 __lshift__(_ostream out, Atom n) -> _ostream
13220 __lshift__(_ostream out, Residue n) -> _ostream
13221 __lshift__(_ostream out, Representation n) -> _ostream
13222 __lshift__(_ostream out, State n) -> _ostream
13223 __lshift__(_ostream out, Molecule n) -> _ostream
13224 __lshift__(_ostream out, Copy n) -> _ostream
13225 __lshift__(_ostream out, Chain n) -> _ostream
13226 __lshift__(_ostream out, StructureSource n) -> _ostream
13228 return _IMP_atom.__lshift__(*args)
13230 r"""Proxy of C++ IMP::atom::HelixRestraint class."""
13232 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13234 def __init__(self, rs, ideal=True):
13235 r"""__init__(HelixRestraint self, IMP::atom::Residues rs, bool ideal=True) -> HelixRestraint"""
13236 _IMP_atom.HelixRestraint_swiginit(self, _IMP_atom.new_HelixRestraint(rs, ideal))
13238 def get_number_of_bonds(self):
13239 r"""get_number_of_bonds(HelixRestraint self) -> int"""
13240 return _IMP_atom.HelixRestraint_get_number_of_bonds(self)
13242 def get_number_of_dihedrals(self):
13243 r"""get_number_of_dihedrals(HelixRestraint self) -> int"""
13244 return _IMP_atom.HelixRestraint_get_number_of_dihedrals(self)
13246 def do_get_inputs(self):
13247 r"""do_get_inputs(HelixRestraint self) -> IMP::ModelObjectsTemp"""
13248 return _IMP_atom.HelixRestraint_do_get_inputs(self)
13250 def get_version_info(self):
13251 r"""get_version_info(HelixRestraint self) -> VersionInfo"""
13252 return _IMP_atom.HelixRestraint_get_version_info(self)
13253 __swig_destroy__ = _IMP_atom.delete_HelixRestraint
13256 r"""__str__(HelixRestraint self) -> std::string"""
13257 return _IMP_atom.HelixRestraint___str__(self)
13259 def __repr__(self):
13260 r"""__repr__(HelixRestraint self) -> std::string"""
13261 return _IMP_atom.HelixRestraint___repr__(self)
13265 return _object_cast_to_HelixRestraint(o)
13269 _IMP_atom.HelixRestraint_swigregister(HelixRestraint)
13272 r"""get_transformation_aligning_first_to_second(Selection s1, Selection s2) -> Transformation3D"""
13273 return _IMP_atom.get_transformation_aligning_first_to_second(s1, s2)
13276 r"""show_molecular_hierarchy(Hierarchy h, _ostream out=std::cout) -> _ostream"""
13277 return _IMP_atom.show_molecular_hierarchy(*args)
13278 class CHARMMBond(object):
13279 r"""Proxy of C++ IMP::atom::CHARMMConnection< 2 > class."""
13281 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13282 __repr__ = _swig_repr
13284 def __init__(self, atoms):
13285 r"""__init__(CHARMMBond self, IMP::Strings const & atoms) -> CHARMMBond"""
13286 _IMP_atom.CHARMMBond_swiginit(self, _IMP_atom.new_CHARMMBond(atoms))
13288 def get_endpoint(self, i):
13289 r"""get_endpoint(CHARMMBond self, unsigned int i) -> CHARMMBondEndpoint"""
13290 return _IMP_atom.CHARMMBond_get_endpoint(self, i)
13292 def get_contains_atom(self, name):
13293 r"""get_contains_atom(CHARMMBond self, std::string name) -> bool"""
13294 return _IMP_atom.CHARMMBond_get_contains_atom(self, name)
13296 def show(self, *args):
13297 r"""show(CHARMMBond self, _ostream out=std::cout)"""
13298 return _IMP_atom.CHARMMBond_show(self, *args)
13299 __swig_destroy__ = _IMP_atom.delete_CHARMMBond
13302 _IMP_atom.CHARMMBond_swigregister(CHARMMBond)
13303 class CHARMMAngle(object):
13304 r"""Proxy of C++ IMP::atom::CHARMMConnection< 3 > class."""
13306 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13307 __repr__ = _swig_repr
13309 def __init__(self, atoms):
13310 r"""__init__(CHARMMAngle self, IMP::Strings const & atoms) -> CHARMMAngle"""
13311 _IMP_atom.CHARMMAngle_swiginit(self, _IMP_atom.new_CHARMMAngle(atoms))
13313 def get_endpoint(self, i):
13314 r"""get_endpoint(CHARMMAngle self, unsigned int i) -> CHARMMBondEndpoint"""
13315 return _IMP_atom.CHARMMAngle_get_endpoint(self, i)
13317 def get_contains_atom(self, name):
13318 r"""get_contains_atom(CHARMMAngle self, std::string name) -> bool"""
13319 return _IMP_atom.CHARMMAngle_get_contains_atom(self, name)
13321 def show(self, *args):
13322 r"""show(CHARMMAngle self, _ostream out=std::cout)"""
13323 return _IMP_atom.CHARMMAngle_show(self, *args)
13324 __swig_destroy__ = _IMP_atom.delete_CHARMMAngle
13327 _IMP_atom.CHARMMAngle_swigregister(CHARMMAngle)
13329 def _get_native_overlap_cpp(m1, m2, threshold):
13330 r"""_get_native_overlap_cpp(IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & m1, IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & m2, double threshold) -> double"""
13331 return _IMP_atom._get_native_overlap_cpp(m1, m2, threshold)
13333 def _get_drmsd_cpp(m0, m1):
13334 r"""_get_drmsd_cpp(IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & m0, IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & m1) -> double"""
13335 return _IMP_atom._get_drmsd_cpp(m0, m1)
13337 def _get_drmsd_Q_cpp(m0, m1, threshold):
13338 r"""_get_drmsd_Q_cpp(IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & m0, IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & m1, double threshold) -> double"""
13339 return _IMP_atom._get_drmsd_Q_cpp(m0, m1, threshold)
13341 def _get_drms_cpp(m1, m2):
13342 r"""_get_drms_cpp(IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & m1, IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & m2) -> double"""
13343 return _IMP_atom._get_drms_cpp(m1, m2)
13345 def _get_rigid_bodies_drms_cpp(m1, m2, ranges):
13346 r"""_get_rigid_bodies_drms_cpp(IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & m1, IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & m2, IMP::IntRanges const & ranges) -> double"""
13347 return _IMP_atom._get_rigid_bodies_drms_cpp(m1, m2, ranges)
13350 va= [IMP.algebra.get_vector(x)
for x
in a]
13351 vb= [IMP.algebra.get_vector(x)
for x
in b]
13352 return _get_native_overlap_cpp(va, vb, d)
13355 va= [IMP.algebra.get_vector(x)
for x
in a]
13356 vb= [IMP.algebra.get_vector(x)
for x
in b]
13357 return _get_drmsd_cpp(va, vb)
13360 va= [IMP.algebra.get_vector(x)
for x
in a]
13361 vb= [IMP.algebra.get_vector(x)
for x
in b]
13362 return _get_drms_cpp(va, vb)
13365 va= [IMP.algebra.get_vector(x)
for x
in a]
13366 vb= [IMP.algebra.get_vector(x)
for x
in b]
13367 return _get_drmsd_Q_cpp(va, vb, t)
13370 va= [IMP.algebra.get_vector(x)
for x
in a]
13371 vb= [IMP.algebra.get_vector(x)
for x
in b]
13373 return _get_rigid_bodies_drms_cpp(va, vb, ranges)
13377 r"""Proxy of C++ IMP::atom::LennardJonesTypedPairScore< IMP::atom::SmoothingFunction > class."""
13379 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13380 __repr__ = _swig_repr
13382 def __init__(self, f):
13383 r"""__init__(_LennardJonesTypedPairScore self, SmoothingFunction f) -> _LennardJonesTypedPairScore"""
13384 _IMP_atom._LennardJonesTypedPairScore_swiginit(self, _IMP_atom.new__LennardJonesTypedPairScore(f))
13386 def set_repulsive_weight(self, repulsive_weight):
13387 r"""set_repulsive_weight(_LennardJonesTypedPairScore self, double repulsive_weight)"""
13388 return _IMP_atom._LennardJonesTypedPairScore_set_repulsive_weight(self, repulsive_weight)
13390 def get_repulsive_weight(self):
13391 r"""get_repulsive_weight(_LennardJonesTypedPairScore self) -> double"""
13392 return _IMP_atom._LennardJonesTypedPairScore_get_repulsive_weight(self)
13394 def set_attractive_weight(self, attractive_weight):
13395 r"""set_attractive_weight(_LennardJonesTypedPairScore self, double attractive_weight)"""
13396 return _IMP_atom._LennardJonesTypedPairScore_set_attractive_weight(self, attractive_weight)
13398 def get_attractive_weight(self):
13399 r"""get_attractive_weight(_LennardJonesTypedPairScore self) -> double"""
13400 return _IMP_atom._LennardJonesTypedPairScore_get_attractive_weight(self)
13402 def do_get_inputs(self, m, pis):
13403 r"""do_get_inputs(_LennardJonesTypedPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
13404 return _IMP_atom._LennardJonesTypedPairScore_do_get_inputs(self, m, pis)
13406 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
13407 r"""evaluate_indexes(_LennardJonesTypedPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
13408 return _IMP_atom._LennardJonesTypedPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
13410 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
13411 r"""evaluate_indexes_scores(_LennardJonesTypedPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
13412 return _IMP_atom._LennardJonesTypedPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
13414 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
13415 r"""evaluate_indexes_delta(_LennardJonesTypedPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
13416 return _IMP_atom._LennardJonesTypedPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
13418 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
13419 r"""evaluate_if_good_indexes(_LennardJonesTypedPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
13420 return _IMP_atom._LennardJonesTypedPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
13422 def get_version_info(self):
13423 r"""get_version_info(_LennardJonesTypedPairScore self) -> VersionInfo"""
13424 return _IMP_atom._LennardJonesTypedPairScore_get_version_info(self)
13425 __swig_destroy__ = _IMP_atom.delete__LennardJonesTypedPairScore
13429 return _object_cast_to__LennardJonesTypedPairScore(o)
13433 _IMP_atom._LennardJonesTypedPairScore_swigregister(_LennardJonesTypedPairScore)
13435 r"""Proxy of C++ IMP::atom::LennardJonesTypedPairScore< IMP::atom::ForceSwitch > class."""
13437 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13438 __repr__ = _swig_repr
13440 def __init__(self, f):
13441 r"""__init__(_SwitchedLennardJonesTypedPairScore self, ForceSwitch f) -> _SwitchedLennardJonesTypedPairScore"""
13442 _IMP_atom._SwitchedLennardJonesTypedPairScore_swiginit(self, _IMP_atom.new__SwitchedLennardJonesTypedPairScore(f))
13444 def set_repulsive_weight(self, repulsive_weight):
13445 r"""set_repulsive_weight(_SwitchedLennardJonesTypedPairScore self, double repulsive_weight)"""
13446 return _IMP_atom._SwitchedLennardJonesTypedPairScore_set_repulsive_weight(self, repulsive_weight)
13448 def get_repulsive_weight(self):
13449 r"""get_repulsive_weight(_SwitchedLennardJonesTypedPairScore self) -> double"""
13450 return _IMP_atom._SwitchedLennardJonesTypedPairScore_get_repulsive_weight(self)
13452 def set_attractive_weight(self, attractive_weight):
13453 r"""set_attractive_weight(_SwitchedLennardJonesTypedPairScore self, double attractive_weight)"""
13454 return _IMP_atom._SwitchedLennardJonesTypedPairScore_set_attractive_weight(self, attractive_weight)
13456 def get_attractive_weight(self):
13457 r"""get_attractive_weight(_SwitchedLennardJonesTypedPairScore self) -> double"""
13458 return _IMP_atom._SwitchedLennardJonesTypedPairScore_get_attractive_weight(self)
13460 def do_get_inputs(self, m, pis):
13461 r"""do_get_inputs(_SwitchedLennardJonesTypedPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
13462 return _IMP_atom._SwitchedLennardJonesTypedPairScore_do_get_inputs(self, m, pis)
13464 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
13465 r"""evaluate_indexes(_SwitchedLennardJonesTypedPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
13466 return _IMP_atom._SwitchedLennardJonesTypedPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
13468 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
13469 r"""evaluate_indexes_scores(_SwitchedLennardJonesTypedPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
13470 return _IMP_atom._SwitchedLennardJonesTypedPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
13472 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
13473 r"""evaluate_indexes_delta(_SwitchedLennardJonesTypedPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
13474 return _IMP_atom._SwitchedLennardJonesTypedPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
13476 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
13477 r"""evaluate_if_good_indexes(_SwitchedLennardJonesTypedPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
13478 return _IMP_atom._SwitchedLennardJonesTypedPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
13480 def get_version_info(self):
13481 r"""get_version_info(_SwitchedLennardJonesTypedPairScore self) -> VersionInfo"""
13482 return _IMP_atom._SwitchedLennardJonesTypedPairScore_get_version_info(self)
13483 __swig_destroy__ = _IMP_atom.delete__SwitchedLennardJonesTypedPairScore
13487 return _object_cast_to__SwitchedLennardJonesTypedPairScore(o)
13491 _IMP_atom._SwitchedLennardJonesTypedPairScore_swigregister(_SwitchedLennardJonesTypedPairScore)
13493 class LennardJonesTypedPairScore(_SwitchedLennardJonesTypedPairScore.__bases__[0]):
13494 def __init__(self, f):
13495 if isinstance(f, ForceSwitch):
13496 p = _SwitchedLennardJonesTypedPairScore(f)
13498 p = _LennardJonesTypedPairScore(f)
13499 self.__dict__[
'_proxied'] = p
13500 def __getattr__(self, key):
13501 return getattr(self._proxied, key)
13502 def __setattr__(self, key, val):
13503 return setattr(self._proxied, key, val)
13508 p = _SwitchedLennardJonesTypedPairScore.get_from(o)
13510 p = _LennardJonesTypedPairScore.get_from(o)
13511 obj = object.__new__(LennardJonesTypedPairScore)
13512 obj.__dict__[
'_proxied'] = p
13516 def get_module_name():
13517 r"""get_module_name() -> std::string const"""
13518 return _IMP_atom.get_module_name()
13521 r"""get_module_version() -> std::string const"""
13522 return _IMP_atom.get_module_version()
13525 r"""get_example_path(std::string fname) -> std::string"""
13526 return _IMP_atom.get_example_path(fname)
13529 r"""get_data_path(std::string fname) -> std::string"""
13530 return _IMP_atom.get_data_path(fname)
13532 from .
import _version_check
A base class for geometry contained in particles.
A base class for modifiers of ParticlesTemp.
AtomType add_atom_type(std::string name, Element e)
Create a new AtomType.
double get_kt(double T)
Return kT for a given temperature in units of [kcal/mol].
double get_volume_from_residue_type(ResidueType rt)
Return an estimate for the volume of a given residue.
Abstract class for scoring object(s) of type ParticleIndexPair.
A shared container for Pairs.
CHARMMParameters * get_heavy_atom_CHARMM_parameters()
double get_einstein_rotational_diffusion_coefficient(double r, double temp=-1)
Hierarchy read_mmcif(TextInput input, Model *model, PDBSelector *selector=get_default_pdb_selector(), bool select_first_model=true)
Read all the molecules in the first model of the mmCIF file.
Float get_secondary_structure_match_score(SecondaryStructureResidue ssr1, SecondaryStructureResidue ssr2)
Compares the secondary structure probabilities of two residues.
double get_rigid_bodies_drms(const Vector3DsOrXYZs0 &m1, const Vector3DsOrXYZs1 &m2, const IMP::IntRanges &ranges)
DRMS between two sets of rigid bodies.
Chain get_chain(Hierarchy h)
Get the containing chain or Chain() if there is none.
CheckLevel get_check_level()
Get the current audit mode.
Vector< AtomTypes > get_chi_dihedral_atom_types(ResidueType rt)
Atoms get_phi_dihedral_atoms(Residue rd)
Return the atoms comprising the phi dihedral.
void show_molecular_hierarchy(Hierarchy h)
Print out the molecular hierarchy.
double get_drms(const Vector3DsOrXYZs0 &m1, const Vector3DsOrXYZs1 &m2)
Hierarchies read_multimodel_pdb_any(TextInput input, Model *model, PDBSelector *selector=get_default_pdb_selector())
Read all models from the PDB-like file.
void remove_charmm_untyped_atoms(Hierarchy hierarchy)
Remove any atom from the Hierarchy that does not have a CHARMM type.
Hierarchies read_multimodel_bcif(TextInput input, Model *model, PDBSelector *selector=get_default_pdb_selector())
Read all models from the BinaryCIF file.
double get_protein_density_from_reference(ProteinDensityReference densityReference)
void show_with_representations(Hierarchy h, std::ostream &out=std::cout)
Traverse through the tree and show atom info, including representations.
Hierarchy create_simplified_from_volume(Hierarchy h, double resolution)
void add_particles(RMF::FileHandle fh, const ParticlesTemp &hs)
double get_spring_constant_in_femto_newtons_per_angstrom(double k_in_kcal_per_mol_per_angstrom_square)
Convert spring constant from kcal/mol/A^2 to femtonewton/A.
double get_native_overlap(const Vector3DsOrXYZs0 &m1, const Vector3DsOrXYZs1 &m2, double threshold)
Computes the native overlap between two sets of 3D points.
Various classes to hold sets of particles.
The base class for geometry.
IMP::core::RigidBody create_compatible_rigid_body(Hierarchy h, Hierarchy reference)
Rigidify a molecule or collection of molecules.
Hierarchy create_simplified_along_backbone(Hierarchy input, int num_res, bool keep_detailed=false)
double get_drmsd(const Vector3DsOrXYZs0 &m0, const Vector3DsOrXYZs1 &m1)
Calculate distance the root mean square deviation between two sets of 3D points.
Vector< VectorD< D > > get_vertices(const BoundingBoxD< D > &bb)
Return a list of the 2^D bounding points for the bounding box.
double get_mass(ResidueType c)
Get the mass from the residue type.
void add_radii(Hierarchy d, const ForceFieldParameters *ffp=get_all_atom_CHARMM_parameters(), FloatKey radius_key=FloatKey("radius"))
Add vdW radius from given force field.
A base class for geometry from a set of particles.
double get_dihedral(XYZ a, XYZ b, XYZ c, XYZ d)
Compute the dihedral angle (in radians) between the four particles.
double get_mass_from_number_of_residues(unsigned int num_aa)
Estimate the mass of a protein from the number of amino acids.
Make CGAL functionality available to IMP.
Provenance create_clone(Provenance p)
Clone provenance (including previous provenance)
Atoms get_omega_dihedral_atoms(Residue rd)
Return the atoms comprising the omega dihedral.
ParticleIndexQuads get_chi_dihedral_particle_indexes(Residue rd)
void write_pdb(const Selection &mhd, TextOutput out, unsigned int model=1)
void setup_as_approximation(Particle *h, const ParticlesTemp &other)
ParticlesTemp get_particles(Model *m, const ParticleIndexes &ps)
Get the particles from a list of indexes.
double get_mass_from_volume(double v, ProteinDensityReference ref=ALBER)
Estimate the mass of a protein from its volume.
void destroy_bond(Bond b)
Destroy the bond connecting two particles.
HierarchyTree get_hierarchy_tree(Hierarchy h)
Get a graph for the passed Hierarchy.
void add_particle(RMF::FileHandle fh, Particle *hs)
Atoms get_charmm_untyped_atoms(Hierarchy hierarchy)
Get all atoms in the Hierarchy that do not have CHARMM types.
std::string get_data_path(std::string file_name)
Return the full path to one of this module's data files.
char get_one_letter_code(ResidueType c)
Get the 1-letter amino acid code from the residue type.
Atom get_atom(Residue rd, AtomType at)
Return a particle atom from the residue.
Composable functors to implement scores via compile-time composition.
double get_angle(const Line3D &a, const Line3D &b)
Get angle in radians between two lines around their closest points.
Hierarchy read_bcif(TextInput input, Model *model, PDBSelector *selector=get_default_pdb_selector(), bool select_first_model=true)
Read all the molecules in the first model of the BinaryCIF file.
Restraint * create_excluded_volume_restraint(const Hierarchies &hs, double resolution=-1)
Bond create_custom_bond(Bonded a, Bonded b, Float length, Float stiffness=-1)
Connect the two wrapped particles by a custom bond.
void write_pdb_of_c_alphas(const Selection &mhd, TextOutput out, unsigned int model=1)
Write a hierarchy to a PDB as C_alpha atoms.
Hierarchies read_multimodel_mmcif(TextInput input, Model *model, PDBSelector *selector=get_default_pdb_selector())
Read all models from the mmCIF file.
double get_kd(double na, double nb, double nab, double volume)
double get_diffusion_angle(double D, double dtfs)
IMP::algebra::Transformation3D get_transformation_aligning_first_to_second(const Vector3DsOrXYZs0 &source, const Vector3DsOrXYZs1 &target)
Compute the rigid transform bringing the first point set to the second.
bool get_atom_type_exists(std::string name)
Return true if that atom type already exists.
Hierarchy read_pdb_any(TextInput input, Model *model, PDBSelector *selector=get_default_pdb_selector(), bool select_first_model=true)
Read all the molecules in the first model of the PDB-like file.
double get_volume(const BoundingBoxD< D > &bb)
See BoundingBoxD.
FloatPair get_component_placement_score(const core::XYZs &ref1, const core::XYZs &ref2, const core::XYZs &mdl1, const core::XYZs &mdl2)
Measure the difference between two placements of the same set of points.
void transform(Hierarchy h, const algebra::Transformation3D &tr)
Transform a hierarchy. This is aware of rigid bodies.
core::XYZR create_cover(const Selection &s, std::string name=std::string())
double get_volume_from_mass(double m, ProteinDensityReference ref=ALBER)
Estimate the volume of a protein from its mass.
Ints get_index(const ParticlesTemp &particles, const Subset &subset, const Subsets &excluded)
Common base class for heavy weight IMP objects.
Hierarchy create_protein(Model *m, std::string name, double target_radius, int number_of_residues, int first_residue_index=0, double volume=-1)
Create a coarse grained molecule.
Atoms get_psi_dihedral_atoms(Residue rd)
Return the atoms comprising the psi dihedral.
Abstract class for scoring object(s) of type ParticleIndex.
ParticlesTemp get_order(const Subset &s, const SubsetFilterTables &sft)
Bond create_bond(Bonded a, Bonded b, Int t)
Connect the two wrapped particles by a bond.
double get_rotational_diffusion_coefficient(const algebra::Rotation3Ds &orientations, double dt)
Base class for all optimizers.
double get_rmsd(const Vector3DsOrXYZs0 &m1, const Vector3DsOrXYZs1 &m2)
Hierarchy get_previous_residue(Residue rd)
Return the residue from the same chain with one lower index.
SecondaryStructureResidue setup_coarse_secondary_structure_residue(const Particles &ssr_ps, Model *mdl, bool winner_takes_all_per_res=false)
Coarsen some SecondaryStructureResidues.
double get_molarity(double n, double volume)
boost::graph HierarchyTree
A graph for representing a Hierarchy so you can view it nicely.
Hierarchy read_mol2(TextInput mol2_file, Model *model, Mol2Selector *mol2sel=nullptr)
Create a hierarchy from a Mol2 file.
double get_radius_of_gyration(const Vector3Ds &ps)
Return the radius of gyration of a set of points.
A decorator for a particle with x,y,z coordinates.
void add_loop_statistical_score_data(atom::Hierarchy h)
Restraint * create_internal_connectivity_restraint(const Selection &s, double k, std::string name="Connectivity%1%")
Create a restraint connecting the selection.
void write_mol2(Hierarchy rhd, TextOutput file_name)
Write a ligand hierarchy as a mol2 file.
Hierarchy read_pdb(TextInput input, Model *model, PDBSelector *selector=get_default_pdb_selector(), bool select_first_model=true)
Read all the molecules in the first model of the PDB file.
int get_state_index(Hierarchy h)
Walk up the hierarchy to find the current state.
SecondaryStructureResidues setup_coarse_secondary_structure_residues(const Particles &ssr_ps, Model *mdl, int coarse_factor, int start_res_num, bool winner_takes_all_per_res=false)
void add_protein_ligand_score_data(Hierarchy h)
Interface to specialized Particle types (e.g. atoms)
std::string get_molecule_name(Hierarchy h)
std::ostream & show(Hierarchy h, std::ostream &out=std::cout)
Print the hierarchy using a given decorator to display each node.
Vector< Atoms > get_chi_dihedral_atoms(Residue rd)
double get_pairwise_rmsd_score(const core::XYZs &ref1, const core::XYZs &ref2, const core::XYZs &mdl1, const core::XYZs &mdl2)
Measure the RMSD between two placements of the same set of points.
double get_force_in_femto_newtons(double force_in_kcal_per_mol_per_angstrom)
Convert force from kcal/mol/A to femtonewtons.
Basic functionality that is expected to be used by a wide variety of IMP users.
Abstract predicate function.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
Hierarchies read_multimodel_pdb(TextInput input, Model *model, PDBSelector *selector=get_default_pdb_selector())
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
Residue get_residue(Atom d, bool nothrow=false)
Return the Residue containing this atom.
Shared optimizer state that is invoked upon commitment of new coordinates.
Hierarchy get_root(Hierarchy h)
Return the root of the hierarchy.
Abstract class to implement hierarchical methods.
void add_dope_score_data(atom::Hierarchy h)
Bond get_bond(Bonded a, Bonded b)
Get the bond between two particles.
std::string show_graphviz(Graph g)
Restraint * create_distance_restraint(const Selection &n0, const Selection &n1, double x0, double k, std::string name="Distance%1%")
Representation get_representation(Hierarchy h, bool nothrow=false)
Return the Representation object containing this hierarchy.
FloatPair get_placement_score(const core::XYZs &source, const core::XYZs &target)
Measure the difference between two placements of the same set of points.
void write_multimodel_pdb(const Hierarchies &mhd, TextOutput out)
int get_copy_index(Hierarchy h)
Walk up the hierarchy to find the current copy index.
A decorator for helping deal with a generalized hierarchy.
double get_maximum_time_step_estimate(BrownianDynamics *bd)
double get_diffusion_coefficient(const algebra::Vector3Ds &displacements, double dt)
double get_surface_area(const Geometry &)
Compute the surface area of any volumetric object.
double get_resolution(Model *m, ParticleIndex pi)
Estimate the resolution of the hierarchy as used by Representation.
double get_rmsd_transforming_first(const Transformation3D &tr, const Vector3DsOrXYZs0 &m1, const Vector3DsOrXYZs1 &m2)
Calculate the root mean square deviation between two sets of 3D points.
Hierarchy create_simplified_assembly_from_volume(Hierarchy h, double resolution)
Output IMP model data in various file formats.
std::string get_chain_id(Hierarchy h)
Walk up the hierarchy to determine the chain id.
IMP::core::RigidBody create_rigid_body(const Hierarchies &h, std::string name=std::string("created rigid body"))
Rigidify a molecule or collection of molecules.
CHARMMParameters * get_all_atom_CHARMM_parameters()
Hierarchies get_leaves(const Selection &h)
double get_einstein_diffusion_coefficient(double r, double temp=-1)
double get_drmsd_Q(const Vector3DsOrXYZs0 &m0, const Vector3DsOrXYZs1 &m1, double threshold)
DensityMap * get_segment(DensityMap *map_to_segment, int nx_start, int nx_end, int ny_start, int ny_end, int nz_start, int nz_end)
Get a segment of the map according to xyz indexes.
Applies a PairScore to each Pair in a list.
Hierarchy get_next_residue(Residue rd)
Return the residue from the same chain with one higher index.
Restraint * create_connectivity_restraint(const Selections &s, double k, std::string name="Connectivity%1%")
Create a restraint connecting the selections.
void add_bonds(Hierarchy d, const ForceFieldParameters *ffp=get_all_atom_CHARMM_parameters())
Add bonds using definitions from given force field parameters.
void set_check_level(CheckLevel tf)
Control runtime checks in the code.
double get_diffusion_length(double D, double t)
std::string get_module_version()
Return the version of this module, as a string.
A restraint is a term in an IMP ScoringFunction.