20 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 class _SwigNonDynamicMeta(type):
53 """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
54 __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
59 class IMP_ATOM_SwigPyIterator(object):
60 r"""Proxy of C++ swig::IMP_ATOM_SwigPyIterator class."""
62 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
64 def __init__(self, *args, **kwargs):
65 raise AttributeError(
"No constructor defined - class is abstract")
67 __swig_destroy__ = _IMP_atom.delete_IMP_ATOM_SwigPyIterator
70 r"""value(IMP_ATOM_SwigPyIterator self) -> PyObject *"""
71 return _IMP_atom.IMP_ATOM_SwigPyIterator_value(self)
74 r"""incr(IMP_ATOM_SwigPyIterator self, size_t n=1) -> IMP_ATOM_SwigPyIterator"""
75 return _IMP_atom.IMP_ATOM_SwigPyIterator_incr(self, n)
78 r"""decr(IMP_ATOM_SwigPyIterator self, size_t n=1) -> IMP_ATOM_SwigPyIterator"""
79 return _IMP_atom.IMP_ATOM_SwigPyIterator_decr(self, n)
81 def distance(self, x):
82 r"""distance(IMP_ATOM_SwigPyIterator self, IMP_ATOM_SwigPyIterator x) -> ptrdiff_t"""
83 return _IMP_atom.IMP_ATOM_SwigPyIterator_distance(self, x)
86 r"""equal(IMP_ATOM_SwigPyIterator self, IMP_ATOM_SwigPyIterator x) -> bool"""
87 return _IMP_atom.IMP_ATOM_SwigPyIterator_equal(self, x)
90 r"""copy(IMP_ATOM_SwigPyIterator self) -> IMP_ATOM_SwigPyIterator"""
91 return _IMP_atom.IMP_ATOM_SwigPyIterator_copy(self)
94 r"""__next__(IMP_ATOM_SwigPyIterator self) -> PyObject *"""
95 return _IMP_atom.IMP_ATOM_SwigPyIterator___next__(self)
98 r"""previous(IMP_ATOM_SwigPyIterator self) -> PyObject *"""
99 return _IMP_atom.IMP_ATOM_SwigPyIterator_previous(self)
101 def advance(self, n):
102 r"""advance(IMP_ATOM_SwigPyIterator self, ptrdiff_t n) -> IMP_ATOM_SwigPyIterator"""
103 return _IMP_atom.IMP_ATOM_SwigPyIterator_advance(self, n)
106 r"""__eq__(IMP_ATOM_SwigPyIterator self, IMP_ATOM_SwigPyIterator x) -> bool"""
107 return _IMP_atom.IMP_ATOM_SwigPyIterator___eq__(self, x)
110 r"""__ne__(IMP_ATOM_SwigPyIterator self, IMP_ATOM_SwigPyIterator x) -> bool"""
111 return _IMP_atom.IMP_ATOM_SwigPyIterator___ne__(self, x)
113 def __iadd__(self, n):
114 r"""__iadd__(IMP_ATOM_SwigPyIterator self, ptrdiff_t n) -> IMP_ATOM_SwigPyIterator"""
115 return _IMP_atom.IMP_ATOM_SwigPyIterator___iadd__(self, n)
117 def __isub__(self, n):
118 r"""__isub__(IMP_ATOM_SwigPyIterator self, ptrdiff_t n) -> IMP_ATOM_SwigPyIterator"""
119 return _IMP_atom.IMP_ATOM_SwigPyIterator___isub__(self, n)
121 def __add__(self, n):
122 r"""__add__(IMP_ATOM_SwigPyIterator self, ptrdiff_t n) -> IMP_ATOM_SwigPyIterator"""
123 return _IMP_atom.IMP_ATOM_SwigPyIterator___add__(self, n)
125 def __sub__(self, *args):
127 __sub__(IMP_ATOM_SwigPyIterator self, ptrdiff_t n) -> IMP_ATOM_SwigPyIterator
128 __sub__(IMP_ATOM_SwigPyIterator self, IMP_ATOM_SwigPyIterator x) -> ptrdiff_t
130 return _IMP_atom.IMP_ATOM_SwigPyIterator___sub__(self, *args)
135 _IMP_atom.IMP_ATOM_SwigPyIterator_swigregister(IMP_ATOM_SwigPyIterator)
142 IMP_DEBUG = _IMP_atom.IMP_DEBUG
144 IMP_RELEASE = _IMP_atom.IMP_RELEASE
146 IMP_SILENT = _IMP_atom.IMP_SILENT
148 IMP_PROGRESS = _IMP_atom.IMP_PROGRESS
150 IMP_TERSE = _IMP_atom.IMP_TERSE
152 IMP_VERBOSE = _IMP_atom.IMP_VERBOSE
154 IMP_MEMORY = _IMP_atom.IMP_MEMORY
156 IMP_NONE = _IMP_atom.IMP_NONE
158 IMP_USAGE = _IMP_atom.IMP_USAGE
160 IMP_INTERNAL = _IMP_atom.IMP_INTERNAL
162 IMP_KERNEL_HAS_LOG4CXX = _IMP_atom.IMP_KERNEL_HAS_LOG4CXX
164 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_atom.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
166 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_atom.IMP_COMPILER_HAS_DEBUG_VECTOR
168 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_atom.IMP_COMPILER_HAS_RANDOM_SHUFFLE
170 IMP_COMPILER_HAS_THREE_WAY = _IMP_atom.IMP_COMPILER_HAS_THREE_WAY
172 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_atom.IMP_KERNEL_HAS_BOOST_RANDOM
174 IMP_KERNEL_HAS_NUMPY = _IMP_atom.IMP_KERNEL_HAS_NUMPY
176 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_atom.IMP_KERNEL_HAS_BOOST_SYSTEM
178 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_atom.IMP_KERNEL_HAS_GPERFTOOLS
180 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_atom.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
182 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_atom.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
184 IMPKERNEL_SHOW_WARNINGS = _IMP_atom.IMPKERNEL_SHOW_WARNINGS
188 class _DirectorObjects:
189 """@internal Simple class to keep references to director objects
190 to prevent premature deletion."""
193 def register(self, obj):
194 """Take a reference to a director object; will only work for
195 refcounted C++ classes"""
196 if hasattr(obj,
'get_ref_count'):
197 self._objects.append(obj)
199 """Only drop our reference and allow cleanup by Python if no other
200 Python references exist (we hold 3 references: one in self._objects,
201 one in x, and one in the argument list for getrefcount) *and* no
202 other C++ references exist (the Python object always holds one)"""
203 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
204 or x.get_ref_count() > 1]
208 def get_object_count(self):
209 """Get number of director objects (useful for testing only)"""
210 return len(self._objects)
211 _director_objects = _DirectorObjects()
213 class _ostream(object):
214 r"""Proxy of C++ std::ostream class."""
216 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
218 def __init__(self, *args, **kwargs):
219 raise AttributeError(
"No constructor defined")
220 __repr__ = _swig_repr
222 def write(self, osa_buf):
223 r"""write(_ostream self, char const * osa_buf)"""
224 return _IMP_atom._ostream_write(self, osa_buf)
227 _IMP_atom._ostream_swigregister(_ostream)
228 IMP_C_OPEN_BINARY = _IMP_atom.IMP_C_OPEN_BINARY
231 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_atom.IMP_CGAL_HAS_BOOST_FILESYSTEM
233 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_atom.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
235 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_atom.IMP_CGAL_HAS_BOOST_RANDOM
237 IMP_CGAL_HAS_NUMPY = _IMP_atom.IMP_CGAL_HAS_NUMPY
239 IMPCGAL_SHOW_WARNINGS = _IMP_atom.IMPCGAL_SHOW_WARNINGS
242 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_atom.IMP_ALGEBRA_HAS_IMP_CGAL
244 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_atom.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
246 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_atom.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
248 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_atom.IMP_ALGEBRA_HAS_BOOST_RANDOM
250 IMP_ALGEBRA_HAS_CGAL = _IMP_atom.IMP_ALGEBRA_HAS_CGAL
252 IMP_ALGEBRA_HAS_NUMPY = _IMP_atom.IMP_ALGEBRA_HAS_NUMPY
254 IMP_ALGEBRA_HAS_ANN = _IMP_atom.IMP_ALGEBRA_HAS_ANN
256 IMPALGEBRA_SHOW_WARNINGS = _IMP_atom.IMPALGEBRA_SHOW_WARNINGS
259 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_atom.IMP_DISPLAY_HAS_IMP_CGAL
261 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_atom.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
263 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_atom.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
265 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_atom.IMP_DISPLAY_HAS_BOOST_RANDOM
267 IMP_DISPLAY_HAS_CGAL = _IMP_atom.IMP_DISPLAY_HAS_CGAL
269 IMP_DISPLAY_HAS_NUMPY = _IMP_atom.IMP_DISPLAY_HAS_NUMPY
271 IMPDISPLAY_SHOW_WARNINGS = _IMP_atom.IMPDISPLAY_SHOW_WARNINGS
274 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_atom.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
276 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_atom.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
278 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_atom.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
280 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_atom.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
282 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_atom.IMP_SCORE_FUNCTOR_HAS_CGAL
284 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_atom.IMP_SCORE_FUNCTOR_HAS_HDF5
286 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_atom.IMP_SCORE_FUNCTOR_HAS_NUMPY
288 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_atom.IMPSCOREFUNCTOR_SHOW_WARNINGS
291 IMP_CORE_HAS_IMP_CGAL = _IMP_atom.IMP_CORE_HAS_IMP_CGAL
293 IMP_CORE_HAS_IMP_KERNEL = _IMP_atom.IMP_CORE_HAS_IMP_KERNEL
295 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_atom.IMP_CORE_HAS_BOOST_FILESYSTEM
297 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_atom.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
299 IMP_CORE_HAS_BOOST_RANDOM = _IMP_atom.IMP_CORE_HAS_BOOST_RANDOM
301 IMP_CORE_HAS_CGAL = _IMP_atom.IMP_CORE_HAS_CGAL
303 IMP_CORE_HAS_HDF5 = _IMP_atom.IMP_CORE_HAS_HDF5
305 IMP_CORE_HAS_NUMPY = _IMP_atom.IMP_CORE_HAS_NUMPY
307 IMPCORE_SHOW_WARNINGS = _IMP_atom.IMPCORE_SHOW_WARNINGS
310 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_atom.IMP_CONTAINER_HAS_IMP_ALGEBRA
312 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_atom.IMP_CONTAINER_HAS_IMP_CGAL
314 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_atom.IMP_CONTAINER_HAS_IMP_DISPLAY
316 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_atom.IMP_CONTAINER_HAS_IMP_KERNEL
318 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_atom.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
320 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_atom.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
322 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_atom.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
324 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_atom.IMP_CONTAINER_HAS_BOOST_RANDOM
326 IMP_CONTAINER_HAS_CGAL = _IMP_atom.IMP_CONTAINER_HAS_CGAL
328 IMP_CONTAINER_HAS_HDF5 = _IMP_atom.IMP_CONTAINER_HAS_HDF5
330 IMP_CONTAINER_HAS_NUMPY = _IMP_atom.IMP_CONTAINER_HAS_NUMPY
332 IMP_CONTAINER_HAS_PYTHON_IHM = _IMP_atom.IMP_CONTAINER_HAS_PYTHON_IHM
334 IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP = _IMP_atom.IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP
336 IMP_CONTAINER_HAS_ROBIN_MAP = _IMP_atom.IMP_CONTAINER_HAS_ROBIN_MAP
338 IMPCONTAINER_SHOW_WARNINGS = _IMP_atom.IMPCONTAINER_SHOW_WARNINGS
341 IMP_ATOM_HAS_IMP_CGAL = _IMP_atom.IMP_ATOM_HAS_IMP_CGAL
343 IMP_ATOM_HAS_IMP_KERNEL = _IMP_atom.IMP_ATOM_HAS_IMP_KERNEL
345 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_atom.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
347 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_atom.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
349 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_atom.IMP_ATOM_HAS_BOOST_RANDOM
351 IMP_ATOM_HAS_BOOST_REGEX = _IMP_atom.IMP_ATOM_HAS_BOOST_REGEX
353 IMP_ATOM_HAS_CGAL = _IMP_atom.IMP_ATOM_HAS_CGAL
355 IMP_ATOM_HAS_HDF5 = _IMP_atom.IMP_ATOM_HAS_HDF5
357 IMP_ATOM_HAS_NUMPY = _IMP_atom.IMP_ATOM_HAS_NUMPY
359 IMP_ATOM_HAS_PYTHON_IHM = _IMP_atom.IMP_ATOM_HAS_PYTHON_IHM
361 IMPATOM_SHOW_WARNINGS = _IMP_atom.IMPATOM_SHOW_WARNINGS
363 IMP_ATOM_TYPE_INDEX = _IMP_atom.IMP_ATOM_TYPE_INDEX
365 IMP_RESIDUE_TYPE_INDEX = _IMP_atom.IMP_RESIDUE_TYPE_INDEX
367 IMP_HIERARCHY_TYPE_INDEX = _IMP_atom.IMP_HIERARCHY_TYPE_INDEX
369 IMP_CHAIN_TYPE_INDEX = _IMP_atom.IMP_CHAIN_TYPE_INDEX
372 r"""Proxy of C++ IMP::internal::BoostDigraph< IMP::atom::HierarchyTree,IMP::atom::Hierarchy,IMP::atom::ShowHierarchyTreeVertex > class."""
374 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
375 __repr__ = _swig_repr
378 r"""__init__(HierarchyTree self) -> HierarchyTree"""
379 _IMP_atom.HierarchyTree_swiginit(self, _IMP_atom.new_HierarchyTree())
382 r"""get_graph(HierarchyTree self) -> IMP::atom::HierarchyTree const &"""
383 return _IMP_atom.HierarchyTree_get_graph(self)
386 r"""get_vertices(HierarchyTree self) -> IMP::internal::BoostDigraph< IMP::atom::HierarchyTree,IMP::atom::Hierarchy,IMP::atom::ShowHierarchyTreeVertex >::VertexDescriptors"""
387 return _IMP_atom.HierarchyTree_get_vertices(self)
389 def get_vertex_name(self, i):
390 r"""get_vertex_name(HierarchyTree self, IMP::internal::BoostDigraph< IMP::atom::HierarchyTree,IMP::atom::Hierarchy,IMP::atom::ShowHierarchyTreeVertex >::VertexDescriptor i) -> Hierarchy"""
391 return _IMP_atom.HierarchyTree_get_vertex_name(self, i)
393 def get_in_neighbors(self, v):
394 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"""
395 return _IMP_atom.HierarchyTree_get_in_neighbors(self, v)
397 def get_out_neighbors(self, v):
398 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"""
399 return _IMP_atom.HierarchyTree_get_out_neighbors(self, v)
402 r"""show_graphviz(HierarchyTree self, _ostream out=std::cout)"""
403 return _IMP_atom.HierarchyTree_show_graphviz(self, *args)
405 def get_graphviz_string(self):
406 r"""get_graphviz_string(HierarchyTree self) -> std::string"""
407 return _IMP_atom.HierarchyTree_get_graphviz_string(self)
409 def add_edge(self, v0, v1):
410 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)"""
411 return _IMP_atom.HierarchyTree_add_edge(self, v0, v1)
413 def add_vertex(self, l):
414 r"""add_vertex(HierarchyTree self, Hierarchy l) -> IMP::internal::BoostDigraph< IMP::atom::HierarchyTree,IMP::atom::Hierarchy,IMP::atom::ShowHierarchyTreeVertex >::VertexDescriptor"""
415 return _IMP_atom.HierarchyTree_add_vertex(self, l)
417 def remove_vertex(self, l):
418 r"""remove_vertex(HierarchyTree self, IMP::internal::BoostDigraph< IMP::atom::HierarchyTree,IMP::atom::Hierarchy,IMP::atom::ShowHierarchyTreeVertex >::VertexDescriptor l)"""
419 return _IMP_atom.HierarchyTree_remove_vertex(self, l)
420 __swig_destroy__ = _IMP_atom.delete_HierarchyTree
423 _IMP_atom.HierarchyTree_swigregister(HierarchyTree)
425 _value_types.append(
"HierarchyTree")
429 _plural_types.append(
"PDBRecords")
430 _value_types.append(
"PDBRecord")
433 _object_types.append(
"LennardJonesType")
436 def _object_cast_to_LennardJonesType(o):
437 r"""_object_cast_to_LennardJonesType(Object o) -> LennardJonesType"""
438 return _IMP_atom._object_cast_to_LennardJonesType(o)
440 _object_types.append(
"PDBSelector")
443 def _object_cast_to_PDBSelector(o):
444 r"""_object_cast_to_PDBSelector(Object o) -> PDBSelector"""
445 return _IMP_atom._object_cast_to_PDBSelector(o)
448 return [Angle(x)
for x
in l]
449 _plural_types.append(
"Angles")
452 _value_types.append(
"Angle")
456 return [Atom(x)
for x
in l]
457 _plural_types.append(
"Atoms")
460 _value_types.append(
"Atom")
464 return [Bond(x)
for x
in l]
465 _plural_types.append(
"Bonds")
468 _value_types.append(
"Bond")
472 return [Bonded(x)
for x
in l]
473 _plural_types.append(
"Bondeds")
476 _value_types.append(
"Bonded")
479 def CHARMMAtomList(l=[]):
480 return [CHARMMAtom(x)
for x
in l]
481 _plural_types.append(
"CHARMMAtomList")
484 _value_types.append(
"CHARMMAtom")
488 return [Chain(x)
for x
in l]
489 _plural_types.append(
"Chains")
492 _value_types.append(
"Chain")
495 def CenterOfMasses(l=[]):
496 return [CenterOfMass(x)
for x
in l]
497 _plural_types.append(
"CenterOfMasses")
500 _value_types.append(
"CenterOfMass")
504 return [Charged(x)
for x
in l]
505 _plural_types.append(
"Chargeds")
508 _value_types.append(
"Charged")
511 def Diffusions(l=[]):
512 return [Diffusion(x)
for x
in l]
513 _plural_types.append(
"Diffusions")
516 _value_types.append(
"Diffusion")
519 def RigidBodyDiffusions(l=[]):
520 return [RigidBodyDiffusion(x)
for x
in l]
521 _plural_types.append(
"RigidBodyDiffusions")
524 _value_types.append(
"RigidBodyDiffusion")
527 def TAMDParticles(l=[]):
528 return [TAMDParticle(x)
for x
in l]
529 _plural_types.append(
"TAMDParticles")
532 _value_types.append(
"TAMDParticle")
535 def TAMDCentroids(l=[]):
536 return [TAMDCentroid(x)
for x
in l]
537 _plural_types.append(
"TAMDCentroids")
540 _value_types.append(
"TAMDCentroid")
544 return [Dihedral(x)
for x
in l]
545 _plural_types.append(
"Dihedrals")
548 _value_types.append(
"Dihedral")
552 return [Domain(x)
for x
in l]
553 _plural_types.append(
"Domains")
556 _value_types.append(
"Domain")
560 return [Fragment(x)
for x
in l]
561 _plural_types.append(
"Fragments")
564 _value_types.append(
"Fragment")
567 def Hierarchies(l=[]):
568 return [Hierarchy(x)
for x
in l]
569 _plural_types.append(
"Hierarchies")
572 _value_types.append(
"Hierarchy")
575 def LennardJonesTypeds(l=[]):
576 return [LennardJonesTyped(x)
for x
in l]
577 _plural_types.append(
"LennardJonesTypeds")
580 _value_types.append(
"LennardJonesTyped")
584 return [Mass(x)
for x
in l]
585 _plural_types.append(
"Masses")
588 _value_types.append(
"Mass")
591 def LinearVelocities(l=[]):
592 return [LinearVelocity(x)
for x
in l]
593 _plural_types.append(
"LinearVelocities")
596 _value_types.append(
"LinearVelocity")
599 def AngularVelocities(l=[]):
600 return [AngularVelocity(x)
for x
in l]
601 _plural_types.append(
"AngularVelocities")
604 _value_types.append(
"AngularVelocity")
608 return [Molecule(x)
for x
in l]
609 _plural_types.append(
"Molecules")
612 _value_types.append(
"Molecule")
616 return [Residue(x)
for x
in l]
617 _plural_types.append(
"Residues")
620 _value_types.append(
"Residue")
623 def Representations(l=[]):
624 return [Representation(x)
for x
in l]
625 _plural_types.append(
"Representations")
628 _value_types.append(
"Representation")
632 return [State(x)
for x
in l]
633 _plural_types.append(
"States")
636 _value_types.append(
"State")
640 return [Copy(x)
for x
in l]
641 _plural_types.append(
"Copies")
644 _value_types.append(
"Copy")
647 def SecondaryStructureResidues(l=[]):
648 return [SecondaryStructureResidue(x)
for x
in l]
649 _plural_types.append(
"SecondaryStructureResidues")
652 _value_types.append(
"SecondaryStructureResidue")
655 def StructureSources(l=[]):
656 return [StructureSource(x)
for x
in l]
657 _plural_types.append(
"StructureSources")
660 _value_types.append(
"StructureSource")
663 _object_types.append(
"Simulator")
666 def _object_cast_to_Simulator(o):
667 r"""_object_cast_to_Simulator(Object o) -> Simulator"""
668 return _IMP_atom._object_cast_to_Simulator(o)
670 _object_types.append(
"ATOMPDBSelector")
673 def _object_cast_to_ATOMPDBSelector(o):
674 r"""_object_cast_to_ATOMPDBSelector(Object o) -> ATOMPDBSelector"""
675 return _IMP_atom._object_cast_to_ATOMPDBSelector(o)
677 _object_types.append(
"AllMol2Selector")
680 def _object_cast_to_AllMol2Selector(o):
681 r"""_object_cast_to_AllMol2Selector(Object o) -> AllMol2Selector"""
682 return _IMP_atom._object_cast_to_AllMol2Selector(o)
684 _object_types.append(
"AllPDBSelector")
687 def _object_cast_to_AllPDBSelector(o):
688 r"""_object_cast_to_AllPDBSelector(Object o) -> AllPDBSelector"""
689 return _IMP_atom._object_cast_to_AllPDBSelector(o)
691 _object_types.append(
"AndPDBSelector")
694 def _object_cast_to_AndPDBSelector(o):
695 r"""_object_cast_to_AndPDBSelector(Object o) -> AndPDBSelector"""
696 return _IMP_atom._object_cast_to_AndPDBSelector(o)
698 _object_types.append(
"XorPDBSelector")
701 def _object_cast_to_XorPDBSelector(o):
702 r"""_object_cast_to_XorPDBSelector(Object o) -> XorPDBSelector"""
703 return _IMP_atom._object_cast_to_XorPDBSelector(o)
705 _object_types.append(
"ResidueTypePDBSelector")
708 def _object_cast_to_ResidueTypePDBSelector(o):
709 r"""_object_cast_to_ResidueTypePDBSelector(Object o) -> ResidueTypePDBSelector"""
710 return _IMP_atom._object_cast_to_ResidueTypePDBSelector(o)
712 _object_types.append(
"AtomTypePDBSelector")
715 def _object_cast_to_AtomTypePDBSelector(o):
716 r"""_object_cast_to_AtomTypePDBSelector(Object o) -> AtomTypePDBSelector"""
717 return _IMP_atom._object_cast_to_AtomTypePDBSelector(o)
719 _object_types.append(
"AngleSingletonScore")
722 def _object_cast_to_AngleSingletonScore(o):
723 r"""_object_cast_to_AngleSingletonScore(Object o) -> AngleSingletonScore"""
724 return _IMP_atom._object_cast_to_AngleSingletonScore(o)
726 _object_types.append(
"BondEndpointsRefiner")
729 def _object_cast_to_BondEndpointsRefiner(o):
730 r"""_object_cast_to_BondEndpointsRefiner(Object o) -> BondEndpointsRefiner"""
731 return _IMP_atom._object_cast_to_BondEndpointsRefiner(o)
733 _object_types.append(
"BondPairContainer")
736 def _object_cast_to_BondPairContainer(o):
737 r"""_object_cast_to_BondPairContainer(Object o) -> BondPairContainer"""
738 return _IMP_atom._object_cast_to_BondPairContainer(o)
740 _object_types.append(
"BondSingletonScore")
743 def _object_cast_to_BondSingletonScore(o):
744 r"""_object_cast_to_BondSingletonScore(Object o) -> BondSingletonScore"""
745 return _IMP_atom._object_cast_to_BondSingletonScore(o)
747 _object_types.append(
"BondedPairFilter")
750 def _object_cast_to_BondedPairFilter(o):
751 r"""_object_cast_to_BondedPairFilter(Object o) -> BondedPairFilter"""
752 return _IMP_atom._object_cast_to_BondedPairFilter(o)
754 _object_types.append(
"BrownianDynamics")
757 def _object_cast_to_BrownianDynamics(o):
758 r"""_object_cast_to_BrownianDynamics(Object o) -> BrownianDynamics"""
759 return _IMP_atom._object_cast_to_BrownianDynamics(o)
761 _object_types.append(
"BrownianDynamicsTAMD")
764 def _object_cast_to_BrownianDynamicsTAMD(o):
765 r"""_object_cast_to_BrownianDynamicsTAMD(Object o) -> BrownianDynamicsTAMD"""
766 return _IMP_atom._object_cast_to_BrownianDynamicsTAMD(o)
768 _object_types.append(
"CAlphaPDBSelector")
771 def _object_cast_to_CAlphaPDBSelector(o):
772 r"""_object_cast_to_CAlphaPDBSelector(Object o) -> CAlphaPDBSelector"""
773 return _IMP_atom._object_cast_to_CAlphaPDBSelector(o)
775 _object_types.append(
"CBetaPDBSelector")
778 def _object_cast_to_CBetaPDBSelector(o):
779 r"""_object_cast_to_CBetaPDBSelector(Object o) -> CBetaPDBSelector"""
780 return _IMP_atom._object_cast_to_CBetaPDBSelector(o)
782 _object_types.append(
"BackbonePDBSelector")
785 def _object_cast_to_BackbonePDBSelector(o):
786 r"""_object_cast_to_BackbonePDBSelector(Object o) -> BackbonePDBSelector"""
787 return _IMP_atom._object_cast_to_BackbonePDBSelector(o)
789 _object_types.append(
"CHARMMParameters")
792 def _object_cast_to_CHARMMParameters(o):
793 r"""_object_cast_to_CHARMMParameters(Object o) -> CHARMMParameters"""
794 return _IMP_atom._object_cast_to_CHARMMParameters(o)
796 _object_types.append(
"CHARMMResidueTopology")
799 def _object_cast_to_CHARMMResidueTopology(o):
800 r"""_object_cast_to_CHARMMResidueTopology(Object o) -> CHARMMResidueTopology"""
801 return _IMP_atom._object_cast_to_CHARMMResidueTopology(o)
803 _object_types.append(
"CHARMMSegmentTopology")
806 def _object_cast_to_CHARMMSegmentTopology(o):
807 r"""_object_cast_to_CHARMMSegmentTopology(Object o) -> CHARMMSegmentTopology"""
808 return _IMP_atom._object_cast_to_CHARMMSegmentTopology(o)
810 _object_types.append(
"CHARMMStereochemistryRestraint")
813 def _object_cast_to_CHARMMStereochemistryRestraint(o):
814 r"""_object_cast_to_CHARMMStereochemistryRestraint(Object o) -> CHARMMStereochemistryRestraint"""
815 return _IMP_atom._object_cast_to_CHARMMStereochemistryRestraint(o)
817 _object_types.append(
"CHARMMTopology")
820 def _object_cast_to_CHARMMTopology(o):
821 r"""_object_cast_to_CHARMMTopology(Object o) -> CHARMMTopology"""
822 return _IMP_atom._object_cast_to_CHARMMTopology(o)
824 _object_types.append(
"CPDBSelector")
827 def _object_cast_to_CPDBSelector(o):
828 r"""_object_cast_to_CPDBSelector(Object o) -> CPDBSelector"""
829 return _IMP_atom._object_cast_to_CPDBSelector(o)
831 _object_types.append(
"ChainPDBSelector")
834 def _object_cast_to_ChainPDBSelector(o):
835 r"""_object_cast_to_ChainPDBSelector(Object o) -> ChainPDBSelector"""
836 return _IMP_atom._object_cast_to_ChainPDBSelector(o)
838 _object_types.append(
"CoulombPairScore")
841 def _object_cast_to_CoulombPairScore(o):
842 r"""_object_cast_to_CoulombPairScore(Object o) -> CoulombPairScore"""
843 return _IMP_atom._object_cast_to_CoulombPairScore(o)
845 _object_types.append(
"CoverBond")
848 def _object_cast_to_CoverBond(o):
849 r"""_object_cast_to_CoverBond(Object o) -> CoverBond"""
850 return _IMP_atom._object_cast_to_CoverBond(o)
852 _object_types.append(
"DihedralSingletonScore")
855 def _object_cast_to_DihedralSingletonScore(o):
856 r"""_object_cast_to_DihedralSingletonScore(Object o) -> DihedralSingletonScore"""
857 return _IMP_atom._object_cast_to_DihedralSingletonScore(o)
859 _object_types.append(
"DopePairScore")
862 def _object_cast_to_DopePairScore(o):
863 r"""_object_cast_to_DopePairScore(Object o) -> DopePairScore"""
864 return _IMP_atom._object_cast_to_DopePairScore(o)
866 _object_types.append(
"LoopStatisticalPairScore")
869 def _object_cast_to_LoopStatisticalPairScore(o):
870 r"""_object_cast_to_LoopStatisticalPairScore(Object o) -> LoopStatisticalPairScore"""
871 return _IMP_atom._object_cast_to_LoopStatisticalPairScore(o)
873 _object_types.append(
"OrientedSoapPairScore")
876 def _object_cast_to_OrientedSoapPairScore(o):
877 r"""_object_cast_to_OrientedSoapPairScore(Object o) -> OrientedSoapPairScore"""
878 return _IMP_atom._object_cast_to_OrientedSoapPairScore(o)
880 _object_types.append(
"EzRestraint")
883 def _object_cast_to_EzRestraint(o):
884 r"""_object_cast_to_EzRestraint(Object o) -> EzRestraint"""
885 return _IMP_atom._object_cast_to_EzRestraint(o)
887 _object_types.append(
"ForceFieldParameters")
890 def _object_cast_to_ForceFieldParameters(o):
891 r"""_object_cast_to_ForceFieldParameters(Object o) -> ForceFieldParameters"""
892 return _IMP_atom._object_cast_to_ForceFieldParameters(o)
894 _object_types.append(
"ForceSwitch")
897 def _object_cast_to_ForceSwitch(o):
898 r"""_object_cast_to_ForceSwitch(Object o) -> ForceSwitch"""
899 return _IMP_atom._object_cast_to_ForceSwitch(o)
901 _object_types.append(
"HydrogenPDBSelector")
904 def _object_cast_to_HydrogenPDBSelector(o):
905 r"""_object_cast_to_HydrogenPDBSelector(Object o) -> HydrogenPDBSelector"""
906 return _IMP_atom._object_cast_to_HydrogenPDBSelector(o)
908 _object_types.append(
"ImproperSingletonScore")
911 def _object_cast_to_ImproperSingletonScore(o):
912 r"""_object_cast_to_ImproperSingletonScore(Object o) -> ImproperSingletonScore"""
913 return _IMP_atom._object_cast_to_ImproperSingletonScore(o)
915 _object_types.append(
"_LennardJonesTypedPairScore")
918 def _object_cast_to__LennardJonesTypedPairScore(o):
919 r"""_object_cast_to__LennardJonesTypedPairScore(Object o) -> _LennardJonesTypedPairScore"""
920 return _IMP_atom._object_cast_to__LennardJonesTypedPairScore(o)
922 _object_types.append(
"_SwitchedLennardJonesTypedPairScore")
925 def _object_cast_to__SwitchedLennardJonesTypedPairScore(o):
926 r"""_object_cast_to__SwitchedLennardJonesTypedPairScore(Object o) -> _SwitchedLennardJonesTypedPairScore"""
927 return _IMP_atom._object_cast_to__SwitchedLennardJonesTypedPairScore(o)
929 _object_types.append(
"Mol2Selector")
932 def _object_cast_to_Mol2Selector(o):
933 r"""_object_cast_to_Mol2Selector(Object o) -> Mol2Selector"""
934 return _IMP_atom._object_cast_to_Mol2Selector(o)
936 _object_types.append(
"MolecularDynamics")
939 def _object_cast_to_MolecularDynamics(o):
940 r"""_object_cast_to_MolecularDynamics(Object o) -> MolecularDynamics"""
941 return _IMP_atom._object_cast_to_MolecularDynamics(o)
943 _object_types.append(
"NPDBSelector")
946 def _object_cast_to_NPDBSelector(o):
947 r"""_object_cast_to_NPDBSelector(Object o) -> NPDBSelector"""
948 return _IMP_atom._object_cast_to_NPDBSelector(o)
950 _object_types.append(
"NonAlternativePDBSelector")
953 def _object_cast_to_NonAlternativePDBSelector(o):
954 r"""_object_cast_to_NonAlternativePDBSelector(Object o) -> NonAlternativePDBSelector"""
955 return _IMP_atom._object_cast_to_NonAlternativePDBSelector(o)
957 _object_types.append(
"NonHydrogenMol2Selector")
960 def _object_cast_to_NonHydrogenMol2Selector(o):
961 r"""_object_cast_to_NonHydrogenMol2Selector(Object o) -> NonHydrogenMol2Selector"""
962 return _IMP_atom._object_cast_to_NonHydrogenMol2Selector(o)
964 _object_types.append(
"NonHydrogenPDBSelector")
967 def _object_cast_to_NonHydrogenPDBSelector(o):
968 r"""_object_cast_to_NonHydrogenPDBSelector(Object o) -> NonHydrogenPDBSelector"""
969 return _IMP_atom._object_cast_to_NonHydrogenPDBSelector(o)
971 _object_types.append(
"NonWaterNonHydrogenPDBSelector")
974 def _object_cast_to_NonWaterNonHydrogenPDBSelector(o):
975 r"""_object_cast_to_NonWaterNonHydrogenPDBSelector(Object o) -> NonWaterNonHydrogenPDBSelector"""
976 return _IMP_atom._object_cast_to_NonWaterNonHydrogenPDBSelector(o)
978 _object_types.append(
"NonWaterPDBSelector")
981 def _object_cast_to_NonWaterPDBSelector(o):
982 r"""_object_cast_to_NonWaterPDBSelector(Object o) -> NonWaterPDBSelector"""
983 return _IMP_atom._object_cast_to_NonWaterPDBSelector(o)
985 _object_types.append(
"NotPDBSelector")
988 def _object_cast_to_NotPDBSelector(o):
989 r"""_object_cast_to_NotPDBSelector(Object o) -> NotPDBSelector"""
990 return _IMP_atom._object_cast_to_NotPDBSelector(o)
992 _object_types.append(
"OrPDBSelector")
995 def _object_cast_to_OrPDBSelector(o):
996 r"""_object_cast_to_OrPDBSelector(Object o) -> OrPDBSelector"""
997 return _IMP_atom._object_cast_to_OrPDBSelector(o)
999 _object_types.append(
"PPDBSelector")
1002 def _object_cast_to_PPDBSelector(o):
1003 r"""_object_cast_to_PPDBSelector(Object o) -> PPDBSelector"""
1004 return _IMP_atom._object_cast_to_PPDBSelector(o)
1006 _object_types.append(
"ResidueRangePDBSelector")
1009 def _object_cast_to_ResidueRangePDBSelector(o):
1010 r"""_object_cast_to_ResidueRangePDBSelector(Object o) -> ResidueRangePDBSelector"""
1011 return _IMP_atom._object_cast_to_ResidueRangePDBSelector(o)
1013 _object_types.append(
"ProteinLigandAtomPairScore")
1016 def _object_cast_to_ProteinLigandAtomPairScore(o):
1017 r"""_object_cast_to_ProteinLigandAtomPairScore(Object o) -> ProteinLigandAtomPairScore"""
1018 return _IMP_atom._object_cast_to_ProteinLigandAtomPairScore(o)
1020 _object_types.append(
"ProteinLigandRestraint")
1023 def _object_cast_to_ProteinLigandRestraint(o):
1024 r"""_object_cast_to_ProteinLigandRestraint(Object o) -> ProteinLigandRestraint"""
1025 return _IMP_atom._object_cast_to_ProteinLigandRestraint(o)
1027 _object_types.append(
"SameResiduePairFilter")
1030 def _object_cast_to_SameResiduePairFilter(o):
1031 r"""_object_cast_to_SameResiduePairFilter(Object o) -> SameResiduePairFilter"""
1032 return _IMP_atom._object_cast_to_SameResiduePairFilter(o)
1034 _object_types.append(
"SoapPairFilter")
1037 def _object_cast_to_SoapPairFilter(o):
1038 r"""_object_cast_to_SoapPairFilter(Object o) -> SoapPairFilter"""
1039 return _IMP_atom._object_cast_to_SoapPairFilter(o)
1041 _object_types.append(
"SmoothingFunction")
1044 def _object_cast_to_SmoothingFunction(o):
1045 r"""_object_cast_to_SmoothingFunction(Object o) -> SmoothingFunction"""
1046 return _IMP_atom._object_cast_to_SmoothingFunction(o)
1048 _object_types.append(
"StereochemistryPairFilter")
1051 def _object_cast_to_StereochemistryPairFilter(o):
1052 r"""_object_cast_to_StereochemistryPairFilter(Object o) -> StereochemistryPairFilter"""
1053 return _IMP_atom._object_cast_to_StereochemistryPairFilter(o)
1055 _object_types.append(
"VelocityScalingOptimizerState")
1058 def _object_cast_to_VelocityScalingOptimizerState(o):
1059 r"""_object_cast_to_VelocityScalingOptimizerState(Object o) -> VelocityScalingOptimizerState"""
1060 return _IMP_atom._object_cast_to_VelocityScalingOptimizerState(o)
1062 _object_types.append(
"WaterPDBSelector")
1065 def _object_cast_to_WaterPDBSelector(o):
1066 r"""_object_cast_to_WaterPDBSelector(Object o) -> WaterPDBSelector"""
1067 return _IMP_atom._object_cast_to_WaterPDBSelector(o)
1069 _object_types.append(
"WritePDBOptimizerState")
1072 def _object_cast_to_WritePDBOptimizerState(o):
1073 r"""_object_cast_to_WritePDBOptimizerState(Object o) -> WritePDBOptimizerState"""
1074 return _IMP_atom._object_cast_to_WritePDBOptimizerState(o)
1077 _plural_types.append(
"AtomTypes")
1078 _value_types.append(
"AtomType")
1081 CHARMMAtomTopologies=list
1082 _plural_types.append(
"CHARMMAtomTopologies")
1083 _value_types.append(
"CHARMMAtomTopology")
1086 CHARMMBondEndpoints=list
1087 _plural_types.append(
"CHARMMBondEndpoints")
1088 _value_types.append(
"CHARMMBondEndpoint")
1091 CHARMMBondParametersList=list
1092 _plural_types.append(
"CHARMMBondParametersList")
1093 _value_types.append(
"CHARMMBondParameters")
1096 CHARMMDihedralParametersList=list
1097 _plural_types.append(
"CHARMMDihedralParametersList")
1098 _value_types.append(
"CHARMMDihedralParameters")
1101 _object_types.append(
"CHARMMIdealResidueTopology")
1104 def _object_cast_to_CHARMMIdealResidueTopology(o):
1105 r"""_object_cast_to_CHARMMIdealResidueTopology(Object o) -> CHARMMIdealResidueTopology"""
1106 return _IMP_atom._object_cast_to_CHARMMIdealResidueTopology(o)
1108 CHARMMInternalCoordinates=list
1109 _plural_types.append(
"CHARMMInternalCoordinates")
1110 _value_types.append(
"CHARMMInternalCoordinate")
1113 _object_types.append(
"CHARMMPatch")
1116 def _object_cast_to_CHARMMPatch(o):
1117 r"""_object_cast_to_CHARMMPatch(Object o) -> CHARMMPatch"""
1118 return _IMP_atom._object_cast_to_CHARMMPatch(o)
1120 _object_types.append(
"CHARMMResidueTopologyBase")
1123 def _object_cast_to_CHARMMResidueTopologyBase(o):
1124 r"""_object_cast_to_CHARMMResidueTopologyBase(Object o) -> CHARMMResidueTopologyBase"""
1125 return _IMP_atom._object_cast_to_CHARMMResidueTopologyBase(o)
1128 _plural_types.append(
"ResidueTypes")
1129 _value_types.append(
"ResidueType")
1133 _plural_types.append(
"ChainTypes")
1134 _value_types.append(
"ChainType")
1138 _plural_types.append(
"Selections")
1139 _value_types.append(
"Selection")
1142 _object_types.append(
"RemoveRigidMotionOptimizerState")
1145 def _object_cast_to_RemoveRigidMotionOptimizerState(o):
1146 r"""_object_cast_to_RemoveRigidMotionOptimizerState(Object o) -> RemoveRigidMotionOptimizerState"""
1147 return _IMP_atom._object_cast_to_RemoveRigidMotionOptimizerState(o)
1149 _object_types.append(
"BerendsenThermostatOptimizerState")
1152 def _object_cast_to_BerendsenThermostatOptimizerState(o):
1153 r"""_object_cast_to_BerendsenThermostatOptimizerState(Object o) -> BerendsenThermostatOptimizerState"""
1154 return _IMP_atom._object_cast_to_BerendsenThermostatOptimizerState(o)
1156 _object_types.append(
"LangevinThermostatOptimizerState")
1159 def _object_cast_to_LangevinThermostatOptimizerState(o):
1160 r"""_object_cast_to_LangevinThermostatOptimizerState(Object o) -> LangevinThermostatOptimizerState"""
1161 return _IMP_atom._object_cast_to_LangevinThermostatOptimizerState(o)
1163 _object_types.append(
"SelectionGeometry")
1166 def _object_cast_to_SelectionGeometry(o):
1167 r"""_object_cast_to_SelectionGeometry(Object o) -> SelectionGeometry"""
1168 return _IMP_atom._object_cast_to_SelectionGeometry(o)
1170 _object_types.append(
"HierarchyGeometry")
1173 def _object_cast_to_HierarchyGeometry(o):
1174 r"""_object_cast_to_HierarchyGeometry(Object o) -> HierarchyGeometry"""
1175 return _IMP_atom._object_cast_to_HierarchyGeometry(o)
1177 _object_types.append(
"HierarchiesGeometry")
1180 def _object_cast_to_HierarchiesGeometry(o):
1181 r"""_object_cast_to_HierarchiesGeometry(Object o) -> HierarchiesGeometry"""
1182 return _IMP_atom._object_cast_to_HierarchiesGeometry(o)
1184 _object_types.append(
"BondGeometry")
1187 def _object_cast_to_BondGeometry(o):
1188 r"""_object_cast_to_BondGeometry(Object o) -> BondGeometry"""
1189 return _IMP_atom._object_cast_to_BondGeometry(o)
1191 _object_types.append(
"BondsGeometry")
1194 def _object_cast_to_BondsGeometry(o):
1195 r"""_object_cast_to_BondsGeometry(Object o) -> BondsGeometry"""
1196 return _IMP_atom._object_cast_to_BondsGeometry(o)
1198 _object_types.append(
"CAAngleRestraint")
1201 def _object_cast_to_CAAngleRestraint(o):
1202 r"""_object_cast_to_CAAngleRestraint(Object o) -> CAAngleRestraint"""
1203 return _IMP_atom._object_cast_to_CAAngleRestraint(o)
1205 _object_types.append(
"CADihedralRestraint")
1208 def _object_cast_to_CADihedralRestraint(o):
1209 r"""_object_cast_to_CADihedralRestraint(Object o) -> CADihedralRestraint"""
1210 return _IMP_atom._object_cast_to_CADihedralRestraint(o)
1212 _object_types.append(
"HelixRestraint")
1215 def _object_cast_to_HelixRestraint(o):
1216 r"""_object_cast_to_HelixRestraint(Object o) -> HelixRestraint"""
1217 return _IMP_atom._object_cast_to_HelixRestraint(o)
1219 CHARMMDihedrals=list
1220 _plural_types.append(
"CHARMMDihedrals")
1221 _value_types.append(
"CHARMMDihedral")
1225 _plural_types.append(
"CHARMMBonds")
1226 _value_types.append(
"CHARMMBond")
1230 _plural_types.append(
"CHARMMAngles")
1231 _value_types.append(
"CHARMMAngle")
1234 r"""Proxy of C++ IMP::atom::Bond class."""
1236 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1238 def __init__(self, *args):
1240 __init__(Bond self) -> Bond
1241 __init__(Bond self, Model m, ParticleIndex id) -> Bond
1242 __init__(Bond self, _ParticleAdaptor d) -> Bond
1244 _IMP_atom.Bond_swiginit(self, _IMP_atom.new_Bond(*args))
1246 def show(self, *args):
1247 r"""show(Bond self, _ostream out=std::cout)"""
1248 return _IMP_atom.Bond_show(self, *args)
1251 def get_is_setup(*args):
1253 get_is_setup(_ParticleAdaptor p) -> bool
1254 get_is_setup(Model m, ParticleIndex pi) -> bool
1256 return _IMP_atom.Bond_get_is_setup(*args)
1257 UNKNOWN = _IMP_atom.Bond_UNKNOWN
1259 NONBIOLOGICAL = _IMP_atom.Bond_NONBIOLOGICAL
1261 SINGLE = _IMP_atom.Bond_SINGLE
1263 DOUBLE = _IMP_atom.Bond_DOUBLE
1265 TRIPLE = _IMP_atom.Bond_TRIPLE
1267 HYDROGEN = _IMP_atom.Bond_HYDROGEN
1269 SALT = _IMP_atom.Bond_SALT
1271 PEPTIDE = _IMP_atom.Bond_PEPTIDE
1273 AMIDE = _IMP_atom.Bond_AMIDE
1275 AROMATIC = _IMP_atom.Bond_AROMATIC
1278 def get_bonded(self, i):
1279 r"""get_bonded(Bond self, unsigned int i) -> Bonded"""
1280 return _IMP_atom.Bond_get_bonded(self, i)
1283 r"""get_type(Bond self) -> IMP::Int"""
1284 return _IMP_atom.Bond_get_type(self)
1286 def set_type(self, t):
1287 r"""set_type(Bond self, IMP::Int t)"""
1288 return _IMP_atom.Bond_set_type(self, t)
1291 r"""get_order(Bond self) -> IMP::Int"""
1292 return _IMP_atom.Bond_get_order(self)
1294 def set_order(self, t):
1295 r"""set_order(Bond self, IMP::Int t)"""
1296 return _IMP_atom.Bond_set_order(self, t)
1298 def get_length(self):
1299 r"""get_length(Bond self) -> IMP::Float"""
1300 return _IMP_atom.Bond_get_length(self)
1302 def set_length(self, t):
1303 r"""set_length(Bond self, IMP::Float t)"""
1304 return _IMP_atom.Bond_set_length(self, t)
1306 def get_stiffness(self):
1307 r"""get_stiffness(Bond self) -> IMP::Float"""
1308 return _IMP_atom.Bond_get_stiffness(self)
1310 def set_stiffness(self, t):
1311 r"""set_stiffness(Bond self, IMP::Float t)"""
1312 return _IMP_atom.Bond_set_stiffness(self, t)
1315 def get_length_key():
1316 r"""get_length_key() -> FloatKey"""
1317 return _IMP_atom.Bond_get_length_key()
1319 def add_attribute(self, *args):
1321 add_attribute(Bond self, FloatKey k, IMP::Float v, bool opt)
1322 add_attribute(Bond self, FloatKey a0, IMP::Float a1)
1323 add_attribute(Bond self, IntKey a0, IMP::Int a1)
1324 add_attribute(Bond self, FloatsKey a0, IMP::Floats a1)
1325 add_attribute(Bond self, IntsKey a0, IMP::Ints a1)
1326 add_attribute(Bond self, StringKey a0, IMP::String a1)
1327 add_attribute(Bond self, ParticleIndexKey a0, Particle a1)
1328 add_attribute(Bond self, ObjectKey a0, Object a1)
1329 add_attribute(Bond self, SparseFloatKey a0, IMP::Float a1)
1330 add_attribute(Bond self, SparseIntKey a0, IMP::Int a1)
1331 add_attribute(Bond self, SparseStringKey a0, IMP::String a1)
1332 add_attribute(Bond self, SparseParticleIndexKey a0, ParticleIndex a1)
1334 return _IMP_atom.Bond_add_attribute(self, *args)
1336 def get_value(self, *args):
1338 get_value(Bond self, FloatKey a0) -> IMP::Float
1339 get_value(Bond self, IntKey a0) -> IMP::Int
1340 get_value(Bond self, FloatsKey a0) -> IMP::Floats
1341 get_value(Bond self, IntsKey a0) -> IMP::Ints
1342 get_value(Bond self, StringKey a0) -> IMP::String
1343 get_value(Bond self, ParticleIndexKey a0) -> Particle
1344 get_value(Bond self, ObjectKey a0) -> Object
1345 get_value(Bond self, SparseFloatKey a0) -> IMP::Float
1346 get_value(Bond self, SparseIntKey a0) -> IMP::Int
1347 get_value(Bond self, SparseStringKey a0) -> IMP::String
1348 get_value(Bond self, SparseParticleIndexKey a0) -> ParticleIndex
1350 return _IMP_atom.Bond_get_value(self, *args)
1352 def set_value(self, *args):
1354 set_value(Bond self, FloatKey a0, IMP::Float a1)
1355 set_value(Bond self, IntKey a0, IMP::Int a1)
1356 set_value(Bond self, FloatsKey a0, IMP::Floats a1)
1357 set_value(Bond self, IntsKey a0, IMP::Ints a1)
1358 set_value(Bond self, StringKey a0, IMP::String a1)
1359 set_value(Bond self, ParticleIndexKey a0, Particle a1)
1360 set_value(Bond self, ObjectKey a0, Object a1)
1361 set_value(Bond self, SparseFloatKey a0, IMP::Float a1)
1362 set_value(Bond self, SparseIntKey a0, IMP::Int a1)
1363 set_value(Bond self, SparseStringKey a0, IMP::String a1)
1364 set_value(Bond self, SparseParticleIndexKey a0, ParticleIndex a1)
1366 return _IMP_atom.Bond_set_value(self, *args)
1368 def remove_attribute(self, *args):
1370 remove_attribute(Bond self, FloatKey a0)
1371 remove_attribute(Bond self, IntKey a0)
1372 remove_attribute(Bond self, FloatsKey a0)
1373 remove_attribute(Bond self, IntsKey a0)
1374 remove_attribute(Bond self, StringKey a0)
1375 remove_attribute(Bond self, ParticleIndexKey a0)
1376 remove_attribute(Bond self, ObjectKey a0)
1377 remove_attribute(Bond self, SparseFloatKey a0)
1378 remove_attribute(Bond self, SparseIntKey a0)
1379 remove_attribute(Bond self, SparseStringKey a0)
1380 remove_attribute(Bond self, SparseParticleIndexKey a0)
1382 return _IMP_atom.Bond_remove_attribute(self, *args)
1384 def has_attribute(self, *args):
1386 has_attribute(Bond self, FloatKey a0) -> bool
1387 has_attribute(Bond self, IntKey a0) -> bool
1388 has_attribute(Bond self, FloatsKey a0) -> bool
1389 has_attribute(Bond self, IntsKey a0) -> bool
1390 has_attribute(Bond self, StringKey a0) -> bool
1391 has_attribute(Bond self, ParticleIndexKey a0) -> bool
1392 has_attribute(Bond self, ObjectKey a0) -> bool
1393 has_attribute(Bond self, SparseFloatKey a0) -> bool
1394 has_attribute(Bond self, SparseIntKey a0) -> bool
1395 has_attribute(Bond self, SparseStringKey a0) -> bool
1396 has_attribute(Bond self, SparseParticleIndexKey a0) -> bool
1398 return _IMP_atom.Bond_has_attribute(self, *args)
1400 def get_derivative(self, a0):
1401 r"""get_derivative(Bond self, FloatKey a0) -> double"""
1402 return _IMP_atom.Bond_get_derivative(self, a0)
1405 r"""get_name(Bond self) -> std::string"""
1406 return _IMP_atom.Bond_get_name(self)
1408 def clear_caches(self):
1409 r"""clear_caches(Bond self)"""
1410 return _IMP_atom.Bond_clear_caches(self)
1412 def set_name(self, a0):
1413 r"""set_name(Bond self, std::string a0)"""
1414 return _IMP_atom.Bond_set_name(self, a0)
1417 r"""set_check_level(Bond self, IMP::CheckLevel a0)"""
1418 return _IMP_atom.Bond_set_check_level(self, a0)
1420 def add_to_derivative(self, a0, a1, a2):
1421 r"""add_to_derivative(Bond self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
1422 return _IMP_atom.Bond_add_to_derivative(self, a0, a1, a2)
1424 def set_is_optimized(self, a0, a1):
1425 r"""set_is_optimized(Bond self, FloatKey a0, bool a1)"""
1426 return _IMP_atom.Bond_set_is_optimized(self, a0, a1)
1428 def get_is_optimized(self, a0):
1429 r"""get_is_optimized(Bond self, FloatKey a0) -> bool"""
1430 return _IMP_atom.Bond_get_is_optimized(self, a0)
1433 r"""get_check_level(Bond self) -> IMP::CheckLevel"""
1434 return _IMP_atom.Bond_get_check_level(self)
1436 def __eq__(self, *args):
1438 __eq__(Bond self, Bond o) -> bool
1439 __eq__(Bond self, Particle d) -> bool
1441 return _IMP_atom.Bond___eq__(self, *args)
1443 def __ne__(self, *args):
1445 __ne__(Bond self, Bond o) -> bool
1446 __ne__(Bond self, Particle d) -> bool
1448 return _IMP_atom.Bond___ne__(self, *args)
1450 def __le__(self, *args):
1452 __le__(Bond self, Bond o) -> bool
1453 __le__(Bond self, Particle d) -> bool
1455 return _IMP_atom.Bond___le__(self, *args)
1457 def __lt__(self, *args):
1459 __lt__(Bond self, Bond o) -> bool
1460 __lt__(Bond self, Particle d) -> bool
1462 return _IMP_atom.Bond___lt__(self, *args)
1464 def __ge__(self, *args):
1466 __ge__(Bond self, Bond o) -> bool
1467 __ge__(Bond self, Particle d) -> bool
1469 return _IMP_atom.Bond___ge__(self, *args)
1471 def __gt__(self, *args):
1473 __gt__(Bond self, Bond o) -> bool
1474 __gt__(Bond self, Particle d) -> bool
1476 return _IMP_atom.Bond___gt__(self, *args)
1479 r"""__hash__(Bond self) -> std::size_t"""
1480 return _IMP_atom.Bond___hash__(self)
1483 r"""__str__(Bond self) -> std::string"""
1484 return _IMP_atom.Bond___str__(self)
1487 r"""__repr__(Bond self) -> std::string"""
1488 return _IMP_atom.Bond___repr__(self)
1490 def _get_as_binary(self):
1491 r"""_get_as_binary(Bond self) -> PyObject *"""
1492 return _IMP_atom.Bond__get_as_binary(self)
1494 def _set_from_binary(self, p):
1495 r"""_set_from_binary(Bond self, PyObject * p)"""
1496 return _IMP_atom.Bond__set_from_binary(self, p)
1498 def __getstate__(self):
1499 p = self._get_as_binary()
1500 if len(self.__dict__) > 1:
1501 d = self.__dict__.copy()
1506 def __setstate__(self, p):
1507 if not hasattr(self,
'this'):
1509 if isinstance(p, tuple):
1511 self.__dict__.update(d)
1512 return self._set_from_binary(p)
1514 __swig_destroy__ = _IMP_atom.delete_Bond
1517 _IMP_atom.Bond_swigregister(Bond)
1519 r"""Proxy of C++ IMP::atom::Bonded class."""
1521 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1523 def __init__(self, *args):
1525 __init__(Bonded self) -> Bonded
1526 __init__(Bonded self, Model m, ParticleIndex id) -> Bonded
1527 __init__(Bonded self, _ParticleAdaptor d) -> Bonded
1529 _IMP_atom.Bonded_swiginit(self, _IMP_atom.new_Bonded(*args))
1531 def show(self, *args):
1532 r"""show(Bonded self, _ostream out=std::cout)"""
1533 return _IMP_atom.Bonded_show(self, *args)
1536 def setup_particle(*args):
1538 setup_particle(Model m, ParticleIndex pi) -> Bonded
1539 setup_particle(_ParticleAdaptor pa) -> Bonded
1541 return _IMP_atom.Bonded_setup_particle(*args)
1544 def get_is_setup(*args):
1546 get_is_setup(_ParticleAdaptor p) -> bool
1547 get_is_setup(Model m, ParticleIndex pi) -> bool
1549 return _IMP_atom.Bonded_get_is_setup(*args)
1551 def get_number_of_bonds(self):
1552 r"""get_number_of_bonds(Bonded self) -> unsigned int"""
1553 return _IMP_atom.Bonded_get_number_of_bonds(self)
1555 def get_bond_indexes(self):
1556 r"""get_bond_indexes(Bonded self) -> IMP::ParticleIndexes"""
1557 return _IMP_atom.Bonded_get_bond_indexes(self)
1560 r"""get_bond(Bonded self, unsigned int i) -> Bond"""
1561 return _IMP_atom.Bonded_get_bond(self, i)
1563 def get_bonded(self, i):
1564 r"""get_bonded(Bonded self, unsigned int i) -> Bonded"""
1565 return _IMP_atom.Bonded_get_bonded(self, i)
1567 def add_attribute(self, *args):
1569 add_attribute(Bonded self, FloatKey k, IMP::Float v, bool opt)
1570 add_attribute(Bonded self, FloatKey a0, IMP::Float a1)
1571 add_attribute(Bonded self, IntKey a0, IMP::Int a1)
1572 add_attribute(Bonded self, FloatsKey a0, IMP::Floats a1)
1573 add_attribute(Bonded self, IntsKey a0, IMP::Ints a1)
1574 add_attribute(Bonded self, StringKey a0, IMP::String a1)
1575 add_attribute(Bonded self, ParticleIndexKey a0, Particle a1)
1576 add_attribute(Bonded self, ObjectKey a0, Object a1)
1577 add_attribute(Bonded self, SparseFloatKey a0, IMP::Float a1)
1578 add_attribute(Bonded self, SparseIntKey a0, IMP::Int a1)
1579 add_attribute(Bonded self, SparseStringKey a0, IMP::String a1)
1580 add_attribute(Bonded self, SparseParticleIndexKey a0, ParticleIndex a1)
1582 return _IMP_atom.Bonded_add_attribute(self, *args)
1584 def get_value(self, *args):
1586 get_value(Bonded self, FloatKey a0) -> IMP::Float
1587 get_value(Bonded self, IntKey a0) -> IMP::Int
1588 get_value(Bonded self, FloatsKey a0) -> IMP::Floats
1589 get_value(Bonded self, IntsKey a0) -> IMP::Ints
1590 get_value(Bonded self, StringKey a0) -> IMP::String
1591 get_value(Bonded self, ParticleIndexKey a0) -> Particle
1592 get_value(Bonded self, ObjectKey a0) -> Object
1593 get_value(Bonded self, SparseFloatKey a0) -> IMP::Float
1594 get_value(Bonded self, SparseIntKey a0) -> IMP::Int
1595 get_value(Bonded self, SparseStringKey a0) -> IMP::String
1596 get_value(Bonded self, SparseParticleIndexKey a0) -> ParticleIndex
1598 return _IMP_atom.Bonded_get_value(self, *args)
1600 def set_value(self, *args):
1602 set_value(Bonded self, FloatKey a0, IMP::Float a1)
1603 set_value(Bonded self, IntKey a0, IMP::Int a1)
1604 set_value(Bonded self, FloatsKey a0, IMP::Floats a1)
1605 set_value(Bonded self, IntsKey a0, IMP::Ints a1)
1606 set_value(Bonded self, StringKey a0, IMP::String a1)
1607 set_value(Bonded self, ParticleIndexKey a0, Particle a1)
1608 set_value(Bonded self, ObjectKey a0, Object a1)
1609 set_value(Bonded self, SparseFloatKey a0, IMP::Float a1)
1610 set_value(Bonded self, SparseIntKey a0, IMP::Int a1)
1611 set_value(Bonded self, SparseStringKey a0, IMP::String a1)
1612 set_value(Bonded self, SparseParticleIndexKey a0, ParticleIndex a1)
1614 return _IMP_atom.Bonded_set_value(self, *args)
1616 def remove_attribute(self, *args):
1618 remove_attribute(Bonded self, FloatKey a0)
1619 remove_attribute(Bonded self, IntKey a0)
1620 remove_attribute(Bonded self, FloatsKey a0)
1621 remove_attribute(Bonded self, IntsKey a0)
1622 remove_attribute(Bonded self, StringKey a0)
1623 remove_attribute(Bonded self, ParticleIndexKey a0)
1624 remove_attribute(Bonded self, ObjectKey a0)
1625 remove_attribute(Bonded self, SparseFloatKey a0)
1626 remove_attribute(Bonded self, SparseIntKey a0)
1627 remove_attribute(Bonded self, SparseStringKey a0)
1628 remove_attribute(Bonded self, SparseParticleIndexKey a0)
1630 return _IMP_atom.Bonded_remove_attribute(self, *args)
1632 def has_attribute(self, *args):
1634 has_attribute(Bonded self, FloatKey a0) -> bool
1635 has_attribute(Bonded self, IntKey a0) -> bool
1636 has_attribute(Bonded self, FloatsKey a0) -> bool
1637 has_attribute(Bonded self, IntsKey a0) -> bool
1638 has_attribute(Bonded self, StringKey a0) -> bool
1639 has_attribute(Bonded self, ParticleIndexKey a0) -> bool
1640 has_attribute(Bonded self, ObjectKey a0) -> bool
1641 has_attribute(Bonded self, SparseFloatKey a0) -> bool
1642 has_attribute(Bonded self, SparseIntKey a0) -> bool
1643 has_attribute(Bonded self, SparseStringKey a0) -> bool
1644 has_attribute(Bonded self, SparseParticleIndexKey a0) -> bool
1646 return _IMP_atom.Bonded_has_attribute(self, *args)
1648 def get_derivative(self, a0):
1649 r"""get_derivative(Bonded self, FloatKey a0) -> double"""
1650 return _IMP_atom.Bonded_get_derivative(self, a0)
1653 r"""get_name(Bonded self) -> std::string"""
1654 return _IMP_atom.Bonded_get_name(self)
1656 def clear_caches(self):
1657 r"""clear_caches(Bonded self)"""
1658 return _IMP_atom.Bonded_clear_caches(self)
1660 def set_name(self, a0):
1661 r"""set_name(Bonded self, std::string a0)"""
1662 return _IMP_atom.Bonded_set_name(self, a0)
1665 r"""set_check_level(Bonded self, IMP::CheckLevel a0)"""
1666 return _IMP_atom.Bonded_set_check_level(self, a0)
1668 def add_to_derivative(self, a0, a1, a2):
1669 r"""add_to_derivative(Bonded self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
1670 return _IMP_atom.Bonded_add_to_derivative(self, a0, a1, a2)
1672 def set_is_optimized(self, a0, a1):
1673 r"""set_is_optimized(Bonded self, FloatKey a0, bool a1)"""
1674 return _IMP_atom.Bonded_set_is_optimized(self, a0, a1)
1676 def get_is_optimized(self, a0):
1677 r"""get_is_optimized(Bonded self, FloatKey a0) -> bool"""
1678 return _IMP_atom.Bonded_get_is_optimized(self, a0)
1681 r"""get_check_level(Bonded self) -> IMP::CheckLevel"""
1682 return _IMP_atom.Bonded_get_check_level(self)
1684 def __eq__(self, *args):
1686 __eq__(Bonded self, Bonded o) -> bool
1687 __eq__(Bonded self, Particle d) -> bool
1689 return _IMP_atom.Bonded___eq__(self, *args)
1691 def __ne__(self, *args):
1693 __ne__(Bonded self, Bonded o) -> bool
1694 __ne__(Bonded self, Particle d) -> bool
1696 return _IMP_atom.Bonded___ne__(self, *args)
1698 def __le__(self, *args):
1700 __le__(Bonded self, Bonded o) -> bool
1701 __le__(Bonded self, Particle d) -> bool
1703 return _IMP_atom.Bonded___le__(self, *args)
1705 def __lt__(self, *args):
1707 __lt__(Bonded self, Bonded o) -> bool
1708 __lt__(Bonded self, Particle d) -> bool
1710 return _IMP_atom.Bonded___lt__(self, *args)
1712 def __ge__(self, *args):
1714 __ge__(Bonded self, Bonded o) -> bool
1715 __ge__(Bonded self, Particle d) -> bool
1717 return _IMP_atom.Bonded___ge__(self, *args)
1719 def __gt__(self, *args):
1721 __gt__(Bonded self, Bonded o) -> bool
1722 __gt__(Bonded self, Particle d) -> bool
1724 return _IMP_atom.Bonded___gt__(self, *args)
1727 r"""__hash__(Bonded self) -> std::size_t"""
1728 return _IMP_atom.Bonded___hash__(self)
1731 r"""__str__(Bonded self) -> std::string"""
1732 return _IMP_atom.Bonded___str__(self)
1735 r"""__repr__(Bonded self) -> std::string"""
1736 return _IMP_atom.Bonded___repr__(self)
1738 def _get_as_binary(self):
1739 r"""_get_as_binary(Bonded self) -> PyObject *"""
1740 return _IMP_atom.Bonded__get_as_binary(self)
1742 def _set_from_binary(self, p):
1743 r"""_set_from_binary(Bonded self, PyObject * p)"""
1744 return _IMP_atom.Bonded__set_from_binary(self, p)
1746 def __getstate__(self):
1747 p = self._get_as_binary()
1748 if len(self.__dict__) > 1:
1749 d = self.__dict__.copy()
1754 def __setstate__(self, p):
1755 if not hasattr(self,
'this'):
1757 if isinstance(p, tuple):
1759 self.__dict__.update(d)
1760 return self._set_from_binary(p)
1762 __swig_destroy__ = _IMP_atom.delete_Bonded
1765 _IMP_atom.Bonded_swigregister(Bonded)
1768 r"""create_custom_bond(Bonded a, Bonded b, IMP::Float length, IMP::Float stiffness=-1) -> Bond"""
1769 return _IMP_atom.create_custom_bond(a, b, length, stiffness)
1773 create_bond(Bonded a, Bonded b, IMP::Int t) -> Bond
1774 create_bond(Bonded a, Bonded b, Bond o) -> Bond
1776 return _IMP_atom.create_bond(*args)
1779 r"""destroy_bond(Bond b)"""
1780 return _IMP_atom.destroy_bond(b)
1783 r"""get_bond(Bonded a, Bonded b) -> Bond"""
1784 return _IMP_atom.get_bond(a, b)
1786 r"""Proxy of C++ IMP::atom::BondGeometry class."""
1788 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1790 def __init__(self, *args):
1792 __init__(BondGeometry self, Particle p) -> BondGeometry
1793 __init__(BondGeometry self, Bond d) -> BondGeometry
1795 _IMP_atom.BondGeometry_swiginit(self, _IMP_atom.new_BondGeometry(*args))
1797 def get_version_info(self):
1798 r"""get_version_info(BondGeometry self) -> VersionInfo"""
1799 return _IMP_atom.BondGeometry_get_version_info(self)
1800 __swig_destroy__ = _IMP_atom.delete_BondGeometry
1803 r"""__str__(BondGeometry self) -> std::string"""
1804 return _IMP_atom.BondGeometry___str__(self)
1807 r"""__repr__(BondGeometry self) -> std::string"""
1808 return _IMP_atom.BondGeometry___repr__(self)
1812 return _object_cast_to_BondGeometry(o)
1816 _IMP_atom.BondGeometry_swigregister(BondGeometry)
1818 r"""Proxy of C++ IMP::atom::BondsGeometry class."""
1820 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1822 def __init__(self, sc):
1823 r"""__init__(BondsGeometry self, SingletonContainer sc) -> BondsGeometry"""
1824 _IMP_atom.BondsGeometry_swiginit(self, _IMP_atom.new_BondsGeometry(sc))
1826 def get_version_info(self):
1827 r"""get_version_info(BondsGeometry self) -> VersionInfo"""
1828 return _IMP_atom.BondsGeometry_get_version_info(self)
1829 __swig_destroy__ = _IMP_atom.delete_BondsGeometry
1832 r"""__str__(BondsGeometry self) -> std::string"""
1833 return _IMP_atom.BondsGeometry___str__(self)
1836 r"""__repr__(BondsGeometry self) -> std::string"""
1837 return _IMP_atom.BondsGeometry___repr__(self)
1841 return _object_cast_to_BondsGeometry(o)
1845 _IMP_atom.BondsGeometry_swigregister(BondsGeometry)
1847 r"""Proxy of C++ IMP::atom::Hierarchy class."""
1849 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1851 def __init__(self, *args):
1853 __init__(Hierarchy self, Model m, ParticleIndex pi) -> Hierarchy
1854 __init__(Hierarchy self, _ParticleAdaptor pi) -> Hierarchy
1855 __init__(Hierarchy self) -> Hierarchy
1856 __init__(Hierarchy self, Hierarchy h) -> Hierarchy
1858 _IMP_atom.Hierarchy_swiginit(self, _IMP_atom.new_Hierarchy(*args))
1861 def setup_particle(*args):
1863 setup_particle(Particle p, _ParticleIndexesAdaptor children) -> Hierarchy
1864 setup_particle(Particle p) -> Hierarchy
1865 setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor children=IMP::ParticleIndexesAdaptor()) -> Hierarchy
1867 return _IMP_atom.Hierarchy_setup_particle(*args)
1870 def get_is_setup(*args):
1872 get_is_setup(Particle p) -> bool
1873 get_is_setup(Model m, ParticleIndex p) -> bool
1875 return _IMP_atom.Hierarchy_get_is_setup(*args)
1877 def get_is_valid(self, print_info=False):
1878 r"""get_is_valid(Hierarchy self, bool print_info=False) -> bool"""
1879 return _IMP_atom.Hierarchy_get_is_valid(self, print_info)
1881 def add_child(self, o):
1882 r"""add_child(Hierarchy self, Hierarchy o)"""
1883 return _IMP_atom.Hierarchy_add_child(self, o)
1885 def get_child(self, i):
1886 r"""get_child(Hierarchy self, unsigned int i) -> Hierarchy"""
1887 return _IMP_atom.Hierarchy_get_child(self, i)
1889 def get_children(self):
1890 r"""get_children(Hierarchy self) -> IMP::atom::Hierarchies"""
1891 return _IMP_atom.Hierarchy_get_children(self)
1893 def get_parent(self):
1894 r"""get_parent(Hierarchy self) -> Hierarchy"""
1895 return _IMP_atom.Hierarchy_get_parent(self)
1899 r"""get_traits() -> HierarchyTraits"""
1900 return _IMP_atom.Hierarchy_get_traits()
1902 def show(self, *args):
1904 show(Hierarchy self, _ostream out, std::string delimiter)
1905 show(Hierarchy self, _ostream out=std::cout)
1907 return _IMP_atom.Hierarchy_show(self, *args)
1909 def add_attribute(self, *args):
1911 add_attribute(Hierarchy self, FloatKey k, IMP::Float v, bool opt)
1912 add_attribute(Hierarchy self, FloatKey a0, IMP::Float a1)
1913 add_attribute(Hierarchy self, IntKey a0, IMP::Int a1)
1914 add_attribute(Hierarchy self, FloatsKey a0, IMP::Floats a1)
1915 add_attribute(Hierarchy self, IntsKey a0, IMP::Ints a1)
1916 add_attribute(Hierarchy self, StringKey a0, IMP::String a1)
1917 add_attribute(Hierarchy self, ParticleIndexKey a0, Particle a1)
1918 add_attribute(Hierarchy self, ObjectKey a0, Object a1)
1919 add_attribute(Hierarchy self, SparseFloatKey a0, IMP::Float a1)
1920 add_attribute(Hierarchy self, SparseIntKey a0, IMP::Int a1)
1921 add_attribute(Hierarchy self, SparseStringKey a0, IMP::String a1)
1922 add_attribute(Hierarchy self, SparseParticleIndexKey a0, ParticleIndex a1)
1924 return _IMP_atom.Hierarchy_add_attribute(self, *args)
1926 def get_value(self, *args):
1928 get_value(Hierarchy self, FloatKey a0) -> IMP::Float
1929 get_value(Hierarchy self, IntKey a0) -> IMP::Int
1930 get_value(Hierarchy self, FloatsKey a0) -> IMP::Floats
1931 get_value(Hierarchy self, IntsKey a0) -> IMP::Ints
1932 get_value(Hierarchy self, StringKey a0) -> IMP::String
1933 get_value(Hierarchy self, ParticleIndexKey a0) -> Particle
1934 get_value(Hierarchy self, ObjectKey a0) -> Object
1935 get_value(Hierarchy self, SparseFloatKey a0) -> IMP::Float
1936 get_value(Hierarchy self, SparseIntKey a0) -> IMP::Int
1937 get_value(Hierarchy self, SparseStringKey a0) -> IMP::String
1938 get_value(Hierarchy self, SparseParticleIndexKey a0) -> ParticleIndex
1940 return _IMP_atom.Hierarchy_get_value(self, *args)
1942 def set_value(self, *args):
1944 set_value(Hierarchy self, FloatKey a0, IMP::Float a1)
1945 set_value(Hierarchy self, IntKey a0, IMP::Int a1)
1946 set_value(Hierarchy self, FloatsKey a0, IMP::Floats a1)
1947 set_value(Hierarchy self, IntsKey a0, IMP::Ints a1)
1948 set_value(Hierarchy self, StringKey a0, IMP::String a1)
1949 set_value(Hierarchy self, ParticleIndexKey a0, Particle a1)
1950 set_value(Hierarchy self, ObjectKey a0, Object a1)
1951 set_value(Hierarchy self, SparseFloatKey a0, IMP::Float a1)
1952 set_value(Hierarchy self, SparseIntKey a0, IMP::Int a1)
1953 set_value(Hierarchy self, SparseStringKey a0, IMP::String a1)
1954 set_value(Hierarchy self, SparseParticleIndexKey a0, ParticleIndex a1)
1956 return _IMP_atom.Hierarchy_set_value(self, *args)
1958 def remove_attribute(self, *args):
1960 remove_attribute(Hierarchy self, FloatKey a0)
1961 remove_attribute(Hierarchy self, IntKey a0)
1962 remove_attribute(Hierarchy self, FloatsKey a0)
1963 remove_attribute(Hierarchy self, IntsKey a0)
1964 remove_attribute(Hierarchy self, StringKey a0)
1965 remove_attribute(Hierarchy self, ParticleIndexKey a0)
1966 remove_attribute(Hierarchy self, ObjectKey a0)
1967 remove_attribute(Hierarchy self, SparseFloatKey a0)
1968 remove_attribute(Hierarchy self, SparseIntKey a0)
1969 remove_attribute(Hierarchy self, SparseStringKey a0)
1970 remove_attribute(Hierarchy self, SparseParticleIndexKey a0)
1972 return _IMP_atom.Hierarchy_remove_attribute(self, *args)
1974 def has_attribute(self, *args):
1976 has_attribute(Hierarchy self, FloatKey a0) -> bool
1977 has_attribute(Hierarchy self, IntKey a0) -> bool
1978 has_attribute(Hierarchy self, FloatsKey a0) -> bool
1979 has_attribute(Hierarchy self, IntsKey a0) -> bool
1980 has_attribute(Hierarchy self, StringKey a0) -> bool
1981 has_attribute(Hierarchy self, ParticleIndexKey a0) -> bool
1982 has_attribute(Hierarchy self, ObjectKey a0) -> bool
1983 has_attribute(Hierarchy self, SparseFloatKey a0) -> bool
1984 has_attribute(Hierarchy self, SparseIntKey a0) -> bool
1985 has_attribute(Hierarchy self, SparseStringKey a0) -> bool
1986 has_attribute(Hierarchy self, SparseParticleIndexKey a0) -> bool
1988 return _IMP_atom.Hierarchy_has_attribute(self, *args)
1990 def get_derivative(self, a0):
1991 r"""get_derivative(Hierarchy self, FloatKey a0) -> double"""
1992 return _IMP_atom.Hierarchy_get_derivative(self, a0)
1995 r"""get_name(Hierarchy self) -> std::string"""
1996 return _IMP_atom.Hierarchy_get_name(self)
1998 def clear_caches(self):
1999 r"""clear_caches(Hierarchy self)"""
2000 return _IMP_atom.Hierarchy_clear_caches(self)
2002 def set_name(self, a0):
2003 r"""set_name(Hierarchy self, std::string a0)"""
2004 return _IMP_atom.Hierarchy_set_name(self, a0)
2007 r"""set_check_level(Hierarchy self, IMP::CheckLevel a0)"""
2008 return _IMP_atom.Hierarchy_set_check_level(self, a0)
2010 def add_to_derivative(self, a0, a1, a2):
2011 r"""add_to_derivative(Hierarchy self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2012 return _IMP_atom.Hierarchy_add_to_derivative(self, a0, a1, a2)
2014 def set_is_optimized(self, a0, a1):
2015 r"""set_is_optimized(Hierarchy self, FloatKey a0, bool a1)"""
2016 return _IMP_atom.Hierarchy_set_is_optimized(self, a0, a1)
2018 def get_is_optimized(self, a0):
2019 r"""get_is_optimized(Hierarchy self, FloatKey a0) -> bool"""
2020 return _IMP_atom.Hierarchy_get_is_optimized(self, a0)
2023 r"""get_check_level(Hierarchy self) -> IMP::CheckLevel"""
2024 return _IMP_atom.Hierarchy_get_check_level(self)
2026 def __eq__(self, *args):
2028 __eq__(Hierarchy self, Hierarchy o) -> bool
2029 __eq__(Hierarchy self, Particle d) -> bool
2031 return _IMP_atom.Hierarchy___eq__(self, *args)
2033 def __ne__(self, *args):
2035 __ne__(Hierarchy self, Hierarchy o) -> bool
2036 __ne__(Hierarchy self, Particle d) -> bool
2038 return _IMP_atom.Hierarchy___ne__(self, *args)
2040 def __le__(self, *args):
2042 __le__(Hierarchy self, Hierarchy o) -> bool
2043 __le__(Hierarchy self, Particle d) -> bool
2045 return _IMP_atom.Hierarchy___le__(self, *args)
2047 def __lt__(self, *args):
2049 __lt__(Hierarchy self, Hierarchy o) -> bool
2050 __lt__(Hierarchy self, Particle d) -> bool
2052 return _IMP_atom.Hierarchy___lt__(self, *args)
2054 def __ge__(self, *args):
2056 __ge__(Hierarchy self, Hierarchy o) -> bool
2057 __ge__(Hierarchy self, Particle d) -> bool
2059 return _IMP_atom.Hierarchy___ge__(self, *args)
2061 def __gt__(self, *args):
2063 __gt__(Hierarchy self, Hierarchy o) -> bool
2064 __gt__(Hierarchy self, Particle d) -> bool
2066 return _IMP_atom.Hierarchy___gt__(self, *args)
2069 r"""__hash__(Hierarchy self) -> std::size_t"""
2070 return _IMP_atom.Hierarchy___hash__(self)
2073 r"""__str__(Hierarchy self) -> std::string"""
2074 return _IMP_atom.Hierarchy___str__(self)
2077 r"""__repr__(Hierarchy self) -> std::string"""
2078 return _IMP_atom.Hierarchy___repr__(self)
2080 def _get_as_binary(self):
2081 r"""_get_as_binary(Hierarchy self) -> PyObject *"""
2082 return _IMP_atom.Hierarchy__get_as_binary(self)
2084 def _set_from_binary(self, p):
2085 r"""_set_from_binary(Hierarchy self, PyObject * p)"""
2086 return _IMP_atom.Hierarchy__set_from_binary(self, p)
2088 def __getstate__(self):
2089 p = self._get_as_binary()
2090 if len(self.__dict__) > 1:
2091 d = self.__dict__.copy()
2096 def __setstate__(self, p):
2097 if not hasattr(self,
'this'):
2099 if isinstance(p, tuple):
2101 self.__dict__.update(d)
2102 return self._set_from_binary(p)
2104 __swig_destroy__ = _IMP_atom.delete_Hierarchy
2107 _IMP_atom.Hierarchy_swigregister(Hierarchy)
2108 ATOM_TYPE = _IMP_atom.ATOM_TYPE
2110 RESIDUE_TYPE = _IMP_atom.RESIDUE_TYPE
2112 CHAIN_TYPE = _IMP_atom.CHAIN_TYPE
2114 MOLECULE_TYPE = _IMP_atom.MOLECULE_TYPE
2116 DOMAIN_TYPE = _IMP_atom.DOMAIN_TYPE
2118 FRAGMENT_TYPE = _IMP_atom.FRAGMENT_TYPE
2120 XYZ_TYPE = _IMP_atom.XYZ_TYPE
2122 XYZR_TYPE = _IMP_atom.XYZR_TYPE
2124 MASS_TYPE = _IMP_atom.MASS_TYPE
2126 STATE_TYPE = _IMP_atom.STATE_TYPE
2129 def get_by_type(mhd, t):
2130 r"""get_by_type(Hierarchy mhd, IMP::atom::GetByType t) -> IMP::atom::Hierarchies"""
2131 return _IMP_atom.get_by_type(mhd, t)
2133 def create_fragment(ps):
2134 r"""create_fragment(IMP::atom::Hierarchies const & ps) -> Hierarchy"""
2135 return _IMP_atom.create_fragment(ps)
2137 def get_internal_bonds(mhd, with_representations=False):
2138 r"""get_internal_bonds(Hierarchy mhd, bool with_representations=False) -> IMP::atom::Bonds"""
2139 return _IMP_atom.get_internal_bonds(mhd, with_representations)
2142 r"""get_root(Hierarchy h) -> Hierarchy"""
2143 return _IMP_atom.get_root(h)
2146 r"""show(Hierarchy h, _ostream out=std::cout)"""
2147 return _IMP_atom.show(*args)
2151 create_rigid_body(IMP::atom::Hierarchies const & h, std::string name=std::string("created rigid body")) -> RigidBody
2152 create_rigid_body(Hierarchy h) -> RigidBody
2154 return _IMP_atom.create_rigid_body(*args)
2157 r"""create_compatible_rigid_body(Hierarchy h, Hierarchy reference) -> RigidBody"""
2158 return _IMP_atom.create_compatible_rigid_body(h, reference)
2160 def get_is_heterogen(h):
2161 r"""get_is_heterogen(Hierarchy h) -> bool"""
2162 return _IMP_atom.get_is_heterogen(h)
2165 r"""create_clone(Hierarchy d, Model m=None) -> Hierarchy"""
2166 return _IMP_atom.create_clone(d, m)
2168 def create_clone_one(d, m=None):
2169 r"""create_clone_one(Hierarchy d, Model m=None) -> Hierarchy"""
2170 return _IMP_atom.create_clone_one(d, m)
2173 r"""destroy(Hierarchy d)"""
2174 return _IMP_atom.destroy(d)
2176 def get_bounding_box(h):
2177 r"""get_bounding_box(Hierarchy h) -> BoundingBox3D"""
2178 return _IMP_atom.get_bounding_box(h)
2180 def get_bounding_sphere(h):
2181 r"""get_bounding_sphere(Hierarchy h) -> Sphere3D"""
2182 return _IMP_atom.get_bounding_sphere(h)
2184 r"""Proxy of C++ IMP::atom::Angle class."""
2186 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2188 def __init__(self, *args):
2190 __init__(Angle self) -> Angle
2191 __init__(Angle self, Model m, ParticleIndex id) -> Angle
2192 __init__(Angle self, _ParticleAdaptor d) -> Angle
2194 _IMP_atom.Angle_swiginit(self, _IMP_atom.new_Angle(*args))
2196 def show(self, *args):
2197 r"""show(Angle self, _ostream out=std::cout)"""
2198 return _IMP_atom.Angle_show(self, *args)
2201 def setup_particle(*args):
2203 setup_particle(Model m, ParticleIndex pi, XYZ a, XYZ b, XYZ c) -> Angle
2204 setup_particle(_ParticleAdaptor pa, XYZ a, XYZ b, XYZ c) -> Angle
2206 return _IMP_atom.Angle_setup_particle(*args)
2209 def get_is_setup(*args):
2211 get_is_setup(_ParticleAdaptor p) -> bool
2212 get_is_setup(Model m, ParticleIndex pi) -> bool
2214 return _IMP_atom.Angle_get_is_setup(*args)
2216 def get_particle(self, *args):
2218 get_particle(Angle self) -> Particle
2219 get_particle(Angle self, unsigned int i) -> Particle
2221 return _IMP_atom.Angle_get_particle(self, *args)
2223 def get_ideal(self):
2224 r"""get_ideal(Angle self) -> IMP::Float"""
2225 return _IMP_atom.Angle_get_ideal(self)
2227 def set_ideal(self, t):
2228 r"""set_ideal(Angle self, IMP::Float t)"""
2229 return _IMP_atom.Angle_set_ideal(self, t)
2231 def get_stiffness(self):
2232 r"""get_stiffness(Angle self) -> IMP::Float"""
2233 return _IMP_atom.Angle_get_stiffness(self)
2235 def set_stiffness(self, t):
2236 r"""set_stiffness(Angle self, IMP::Float t)"""
2237 return _IMP_atom.Angle_set_stiffness(self, t)
2240 def get_particle_key(i):
2241 r"""get_particle_key(unsigned int i) -> ParticleIndexKey"""
2242 return _IMP_atom.Angle_get_particle_key(i)
2245 def get_ideal_key():
2246 r"""get_ideal_key() -> FloatKey"""
2247 return _IMP_atom.Angle_get_ideal_key()
2250 def get_stiffness_key():
2251 r"""get_stiffness_key() -> FloatKey"""
2252 return _IMP_atom.Angle_get_stiffness_key()
2254 def add_attribute(self, *args):
2256 add_attribute(Angle self, FloatKey k, IMP::Float v, bool opt)
2257 add_attribute(Angle self, FloatKey a0, IMP::Float a1)
2258 add_attribute(Angle self, IntKey a0, IMP::Int a1)
2259 add_attribute(Angle self, FloatsKey a0, IMP::Floats a1)
2260 add_attribute(Angle self, IntsKey a0, IMP::Ints a1)
2261 add_attribute(Angle self, StringKey a0, IMP::String a1)
2262 add_attribute(Angle self, ParticleIndexKey a0, Particle a1)
2263 add_attribute(Angle self, ObjectKey a0, Object a1)
2264 add_attribute(Angle self, SparseFloatKey a0, IMP::Float a1)
2265 add_attribute(Angle self, SparseIntKey a0, IMP::Int a1)
2266 add_attribute(Angle self, SparseStringKey a0, IMP::String a1)
2267 add_attribute(Angle self, SparseParticleIndexKey a0, ParticleIndex a1)
2269 return _IMP_atom.Angle_add_attribute(self, *args)
2271 def get_value(self, *args):
2273 get_value(Angle self, FloatKey a0) -> IMP::Float
2274 get_value(Angle self, IntKey a0) -> IMP::Int
2275 get_value(Angle self, FloatsKey a0) -> IMP::Floats
2276 get_value(Angle self, IntsKey a0) -> IMP::Ints
2277 get_value(Angle self, StringKey a0) -> IMP::String
2278 get_value(Angle self, ParticleIndexKey a0) -> Particle
2279 get_value(Angle self, ObjectKey a0) -> Object
2280 get_value(Angle self, SparseFloatKey a0) -> IMP::Float
2281 get_value(Angle self, SparseIntKey a0) -> IMP::Int
2282 get_value(Angle self, SparseStringKey a0) -> IMP::String
2283 get_value(Angle self, SparseParticleIndexKey a0) -> ParticleIndex
2285 return _IMP_atom.Angle_get_value(self, *args)
2287 def set_value(self, *args):
2289 set_value(Angle self, FloatKey a0, IMP::Float a1)
2290 set_value(Angle self, IntKey a0, IMP::Int a1)
2291 set_value(Angle self, FloatsKey a0, IMP::Floats a1)
2292 set_value(Angle self, IntsKey a0, IMP::Ints a1)
2293 set_value(Angle self, StringKey a0, IMP::String a1)
2294 set_value(Angle self, ParticleIndexKey a0, Particle a1)
2295 set_value(Angle self, ObjectKey a0, Object a1)
2296 set_value(Angle self, SparseFloatKey a0, IMP::Float a1)
2297 set_value(Angle self, SparseIntKey a0, IMP::Int a1)
2298 set_value(Angle self, SparseStringKey a0, IMP::String a1)
2299 set_value(Angle self, SparseParticleIndexKey a0, ParticleIndex a1)
2301 return _IMP_atom.Angle_set_value(self, *args)
2303 def remove_attribute(self, *args):
2305 remove_attribute(Angle self, FloatKey a0)
2306 remove_attribute(Angle self, IntKey a0)
2307 remove_attribute(Angle self, FloatsKey a0)
2308 remove_attribute(Angle self, IntsKey a0)
2309 remove_attribute(Angle self, StringKey a0)
2310 remove_attribute(Angle self, ParticleIndexKey a0)
2311 remove_attribute(Angle self, ObjectKey a0)
2312 remove_attribute(Angle self, SparseFloatKey a0)
2313 remove_attribute(Angle self, SparseIntKey a0)
2314 remove_attribute(Angle self, SparseStringKey a0)
2315 remove_attribute(Angle self, SparseParticleIndexKey a0)
2317 return _IMP_atom.Angle_remove_attribute(self, *args)
2319 def has_attribute(self, *args):
2321 has_attribute(Angle self, FloatKey a0) -> bool
2322 has_attribute(Angle self, IntKey a0) -> bool
2323 has_attribute(Angle self, FloatsKey a0) -> bool
2324 has_attribute(Angle self, IntsKey a0) -> bool
2325 has_attribute(Angle self, StringKey a0) -> bool
2326 has_attribute(Angle self, ParticleIndexKey a0) -> bool
2327 has_attribute(Angle self, ObjectKey a0) -> bool
2328 has_attribute(Angle self, SparseFloatKey a0) -> bool
2329 has_attribute(Angle self, SparseIntKey a0) -> bool
2330 has_attribute(Angle self, SparseStringKey a0) -> bool
2331 has_attribute(Angle self, SparseParticleIndexKey a0) -> bool
2333 return _IMP_atom.Angle_has_attribute(self, *args)
2335 def get_derivative(self, a0):
2336 r"""get_derivative(Angle self, FloatKey a0) -> double"""
2337 return _IMP_atom.Angle_get_derivative(self, a0)
2340 r"""get_name(Angle self) -> std::string"""
2341 return _IMP_atom.Angle_get_name(self)
2343 def clear_caches(self):
2344 r"""clear_caches(Angle self)"""
2345 return _IMP_atom.Angle_clear_caches(self)
2347 def set_name(self, a0):
2348 r"""set_name(Angle self, std::string a0)"""
2349 return _IMP_atom.Angle_set_name(self, a0)
2352 r"""set_check_level(Angle self, IMP::CheckLevel a0)"""
2353 return _IMP_atom.Angle_set_check_level(self, a0)
2355 def add_to_derivative(self, a0, a1, a2):
2356 r"""add_to_derivative(Angle self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2357 return _IMP_atom.Angle_add_to_derivative(self, a0, a1, a2)
2359 def set_is_optimized(self, a0, a1):
2360 r"""set_is_optimized(Angle self, FloatKey a0, bool a1)"""
2361 return _IMP_atom.Angle_set_is_optimized(self, a0, a1)
2363 def get_is_optimized(self, a0):
2364 r"""get_is_optimized(Angle self, FloatKey a0) -> bool"""
2365 return _IMP_atom.Angle_get_is_optimized(self, a0)
2368 r"""get_check_level(Angle self) -> IMP::CheckLevel"""
2369 return _IMP_atom.Angle_get_check_level(self)
2371 def __eq__(self, *args):
2373 __eq__(Angle self, Angle o) -> bool
2374 __eq__(Angle self, Particle d) -> bool
2376 return _IMP_atom.Angle___eq__(self, *args)
2378 def __ne__(self, *args):
2380 __ne__(Angle self, Angle o) -> bool
2381 __ne__(Angle self, Particle d) -> bool
2383 return _IMP_atom.Angle___ne__(self, *args)
2385 def __le__(self, *args):
2387 __le__(Angle self, Angle o) -> bool
2388 __le__(Angle self, Particle d) -> bool
2390 return _IMP_atom.Angle___le__(self, *args)
2392 def __lt__(self, *args):
2394 __lt__(Angle self, Angle o) -> bool
2395 __lt__(Angle self, Particle d) -> bool
2397 return _IMP_atom.Angle___lt__(self, *args)
2399 def __ge__(self, *args):
2401 __ge__(Angle self, Angle o) -> bool
2402 __ge__(Angle self, Particle d) -> bool
2404 return _IMP_atom.Angle___ge__(self, *args)
2406 def __gt__(self, *args):
2408 __gt__(Angle self, Angle o) -> bool
2409 __gt__(Angle self, Particle d) -> bool
2411 return _IMP_atom.Angle___gt__(self, *args)
2414 r"""__hash__(Angle self) -> std::size_t"""
2415 return _IMP_atom.Angle___hash__(self)
2418 r"""__str__(Angle self) -> std::string"""
2419 return _IMP_atom.Angle___str__(self)
2422 r"""__repr__(Angle self) -> std::string"""
2423 return _IMP_atom.Angle___repr__(self)
2425 def _get_as_binary(self):
2426 r"""_get_as_binary(Angle self) -> PyObject *"""
2427 return _IMP_atom.Angle__get_as_binary(self)
2429 def _set_from_binary(self, p):
2430 r"""_set_from_binary(Angle self, PyObject * p)"""
2431 return _IMP_atom.Angle__set_from_binary(self, p)
2433 def __getstate__(self):
2434 p = self._get_as_binary()
2435 if len(self.__dict__) > 1:
2436 d = self.__dict__.copy()
2441 def __setstate__(self, p):
2442 if not hasattr(self,
'this'):
2444 if isinstance(p, tuple):
2446 self.__dict__.update(d)
2447 return self._set_from_binary(p)
2449 __swig_destroy__ = _IMP_atom.delete_Angle
2452 _IMP_atom.Angle_swigregister(Angle)
2454 r"""Proxy of C++ IMP::atom::Dihedral class."""
2456 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2458 def __init__(self, *args):
2460 __init__(Dihedral self) -> Dihedral
2461 __init__(Dihedral self, Model m, ParticleIndex id) -> Dihedral
2462 __init__(Dihedral self, _ParticleAdaptor d) -> Dihedral
2464 _IMP_atom.Dihedral_swiginit(self, _IMP_atom.new_Dihedral(*args))
2466 def show(self, *args):
2467 r"""show(Dihedral self, _ostream out=std::cout)"""
2468 return _IMP_atom.Dihedral_show(self, *args)
2471 def setup_particle(*args):
2473 setup_particle(Model m, ParticleIndex pi, XYZ a, XYZ b, XYZ c, XYZ d) -> Dihedral
2474 setup_particle(_ParticleAdaptor pa, XYZ a, XYZ b, XYZ c, XYZ d) -> Dihedral
2476 return _IMP_atom.Dihedral_setup_particle(*args)
2479 def get_is_setup(*args):
2481 get_is_setup(_ParticleAdaptor p) -> bool
2482 get_is_setup(Model m, ParticleIndex pi) -> bool
2484 return _IMP_atom.Dihedral_get_is_setup(*args)
2486 def get_particle(self, *args):
2488 get_particle(Dihedral self) -> Particle
2489 get_particle(Dihedral self, unsigned int i) -> Particle
2491 return _IMP_atom.Dihedral_get_particle(self, *args)
2493 def get_ideal(self):
2494 r"""get_ideal(Dihedral self) -> IMP::Float"""
2495 return _IMP_atom.Dihedral_get_ideal(self)
2497 def set_ideal(self, t):
2498 r"""set_ideal(Dihedral self, IMP::Float t)"""
2499 return _IMP_atom.Dihedral_set_ideal(self, t)
2501 def get_multiplicity(self):
2502 r"""get_multiplicity(Dihedral self) -> IMP::Int"""
2503 return _IMP_atom.Dihedral_get_multiplicity(self)
2505 def set_multiplicity(self, t):
2506 r"""set_multiplicity(Dihedral self, IMP::Int t)"""
2507 return _IMP_atom.Dihedral_set_multiplicity(self, t)
2509 def get_stiffness(self):
2510 r"""get_stiffness(Dihedral self) -> IMP::Float"""
2511 return _IMP_atom.Dihedral_get_stiffness(self)
2513 def set_stiffness(self, t):
2514 r"""set_stiffness(Dihedral self, IMP::Float t)"""
2515 return _IMP_atom.Dihedral_set_stiffness(self, t)
2518 def get_particle_key(i):
2519 r"""get_particle_key(unsigned int i) -> ParticleIndexKey"""
2520 return _IMP_atom.Dihedral_get_particle_key(i)
2523 def get_ideal_key():
2524 r"""get_ideal_key() -> FloatKey"""
2525 return _IMP_atom.Dihedral_get_ideal_key()
2528 def get_multiplicity_key():
2529 r"""get_multiplicity_key() -> IntKey"""
2530 return _IMP_atom.Dihedral_get_multiplicity_key()
2533 def get_stiffness_key():
2534 r"""get_stiffness_key() -> FloatKey"""
2535 return _IMP_atom.Dihedral_get_stiffness_key()
2537 def add_attribute(self, *args):
2539 add_attribute(Dihedral self, FloatKey k, IMP::Float v, bool opt)
2540 add_attribute(Dihedral self, FloatKey a0, IMP::Float a1)
2541 add_attribute(Dihedral self, IntKey a0, IMP::Int a1)
2542 add_attribute(Dihedral self, FloatsKey a0, IMP::Floats a1)
2543 add_attribute(Dihedral self, IntsKey a0, IMP::Ints a1)
2544 add_attribute(Dihedral self, StringKey a0, IMP::String a1)
2545 add_attribute(Dihedral self, ParticleIndexKey a0, Particle a1)
2546 add_attribute(Dihedral self, ObjectKey a0, Object a1)
2547 add_attribute(Dihedral self, SparseFloatKey a0, IMP::Float a1)
2548 add_attribute(Dihedral self, SparseIntKey a0, IMP::Int a1)
2549 add_attribute(Dihedral self, SparseStringKey a0, IMP::String a1)
2550 add_attribute(Dihedral self, SparseParticleIndexKey a0, ParticleIndex a1)
2552 return _IMP_atom.Dihedral_add_attribute(self, *args)
2554 def get_value(self, *args):
2556 get_value(Dihedral self, FloatKey a0) -> IMP::Float
2557 get_value(Dihedral self, IntKey a0) -> IMP::Int
2558 get_value(Dihedral self, FloatsKey a0) -> IMP::Floats
2559 get_value(Dihedral self, IntsKey a0) -> IMP::Ints
2560 get_value(Dihedral self, StringKey a0) -> IMP::String
2561 get_value(Dihedral self, ParticleIndexKey a0) -> Particle
2562 get_value(Dihedral self, ObjectKey a0) -> Object
2563 get_value(Dihedral self, SparseFloatKey a0) -> IMP::Float
2564 get_value(Dihedral self, SparseIntKey a0) -> IMP::Int
2565 get_value(Dihedral self, SparseStringKey a0) -> IMP::String
2566 get_value(Dihedral self, SparseParticleIndexKey a0) -> ParticleIndex
2568 return _IMP_atom.Dihedral_get_value(self, *args)
2570 def set_value(self, *args):
2572 set_value(Dihedral self, FloatKey a0, IMP::Float a1)
2573 set_value(Dihedral self, IntKey a0, IMP::Int a1)
2574 set_value(Dihedral self, FloatsKey a0, IMP::Floats a1)
2575 set_value(Dihedral self, IntsKey a0, IMP::Ints a1)
2576 set_value(Dihedral self, StringKey a0, IMP::String a1)
2577 set_value(Dihedral self, ParticleIndexKey a0, Particle a1)
2578 set_value(Dihedral self, ObjectKey a0, Object a1)
2579 set_value(Dihedral self, SparseFloatKey a0, IMP::Float a1)
2580 set_value(Dihedral self, SparseIntKey a0, IMP::Int a1)
2581 set_value(Dihedral self, SparseStringKey a0, IMP::String a1)
2582 set_value(Dihedral self, SparseParticleIndexKey a0, ParticleIndex a1)
2584 return _IMP_atom.Dihedral_set_value(self, *args)
2586 def remove_attribute(self, *args):
2588 remove_attribute(Dihedral self, FloatKey a0)
2589 remove_attribute(Dihedral self, IntKey a0)
2590 remove_attribute(Dihedral self, FloatsKey a0)
2591 remove_attribute(Dihedral self, IntsKey a0)
2592 remove_attribute(Dihedral self, StringKey a0)
2593 remove_attribute(Dihedral self, ParticleIndexKey a0)
2594 remove_attribute(Dihedral self, ObjectKey a0)
2595 remove_attribute(Dihedral self, SparseFloatKey a0)
2596 remove_attribute(Dihedral self, SparseIntKey a0)
2597 remove_attribute(Dihedral self, SparseStringKey a0)
2598 remove_attribute(Dihedral self, SparseParticleIndexKey a0)
2600 return _IMP_atom.Dihedral_remove_attribute(self, *args)
2602 def has_attribute(self, *args):
2604 has_attribute(Dihedral self, FloatKey a0) -> bool
2605 has_attribute(Dihedral self, IntKey a0) -> bool
2606 has_attribute(Dihedral self, FloatsKey a0) -> bool
2607 has_attribute(Dihedral self, IntsKey a0) -> bool
2608 has_attribute(Dihedral self, StringKey a0) -> bool
2609 has_attribute(Dihedral self, ParticleIndexKey a0) -> bool
2610 has_attribute(Dihedral self, ObjectKey a0) -> bool
2611 has_attribute(Dihedral self, SparseFloatKey a0) -> bool
2612 has_attribute(Dihedral self, SparseIntKey a0) -> bool
2613 has_attribute(Dihedral self, SparseStringKey a0) -> bool
2614 has_attribute(Dihedral self, SparseParticleIndexKey a0) -> bool
2616 return _IMP_atom.Dihedral_has_attribute(self, *args)
2618 def get_derivative(self, a0):
2619 r"""get_derivative(Dihedral self, FloatKey a0) -> double"""
2620 return _IMP_atom.Dihedral_get_derivative(self, a0)
2623 r"""get_name(Dihedral self) -> std::string"""
2624 return _IMP_atom.Dihedral_get_name(self)
2626 def clear_caches(self):
2627 r"""clear_caches(Dihedral self)"""
2628 return _IMP_atom.Dihedral_clear_caches(self)
2630 def set_name(self, a0):
2631 r"""set_name(Dihedral self, std::string a0)"""
2632 return _IMP_atom.Dihedral_set_name(self, a0)
2635 r"""set_check_level(Dihedral self, IMP::CheckLevel a0)"""
2636 return _IMP_atom.Dihedral_set_check_level(self, a0)
2638 def add_to_derivative(self, a0, a1, a2):
2639 r"""add_to_derivative(Dihedral self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2640 return _IMP_atom.Dihedral_add_to_derivative(self, a0, a1, a2)
2642 def set_is_optimized(self, a0, a1):
2643 r"""set_is_optimized(Dihedral self, FloatKey a0, bool a1)"""
2644 return _IMP_atom.Dihedral_set_is_optimized(self, a0, a1)
2646 def get_is_optimized(self, a0):
2647 r"""get_is_optimized(Dihedral self, FloatKey a0) -> bool"""
2648 return _IMP_atom.Dihedral_get_is_optimized(self, a0)
2651 r"""get_check_level(Dihedral self) -> IMP::CheckLevel"""
2652 return _IMP_atom.Dihedral_get_check_level(self)
2654 def __eq__(self, *args):
2656 __eq__(Dihedral self, Dihedral o) -> bool
2657 __eq__(Dihedral self, Particle d) -> bool
2659 return _IMP_atom.Dihedral___eq__(self, *args)
2661 def __ne__(self, *args):
2663 __ne__(Dihedral self, Dihedral o) -> bool
2664 __ne__(Dihedral self, Particle d) -> bool
2666 return _IMP_atom.Dihedral___ne__(self, *args)
2668 def __le__(self, *args):
2670 __le__(Dihedral self, Dihedral o) -> bool
2671 __le__(Dihedral self, Particle d) -> bool
2673 return _IMP_atom.Dihedral___le__(self, *args)
2675 def __lt__(self, *args):
2677 __lt__(Dihedral self, Dihedral o) -> bool
2678 __lt__(Dihedral self, Particle d) -> bool
2680 return _IMP_atom.Dihedral___lt__(self, *args)
2682 def __ge__(self, *args):
2684 __ge__(Dihedral self, Dihedral o) -> bool
2685 __ge__(Dihedral self, Particle d) -> bool
2687 return _IMP_atom.Dihedral___ge__(self, *args)
2689 def __gt__(self, *args):
2691 __gt__(Dihedral self, Dihedral o) -> bool
2692 __gt__(Dihedral self, Particle d) -> bool
2694 return _IMP_atom.Dihedral___gt__(self, *args)
2697 r"""__hash__(Dihedral self) -> std::size_t"""
2698 return _IMP_atom.Dihedral___hash__(self)
2701 r"""__str__(Dihedral self) -> std::string"""
2702 return _IMP_atom.Dihedral___str__(self)
2705 r"""__repr__(Dihedral self) -> std::string"""
2706 return _IMP_atom.Dihedral___repr__(self)
2708 def _get_as_binary(self):
2709 r"""_get_as_binary(Dihedral self) -> PyObject *"""
2710 return _IMP_atom.Dihedral__get_as_binary(self)
2712 def _set_from_binary(self, p):
2713 r"""_set_from_binary(Dihedral self, PyObject * p)"""
2714 return _IMP_atom.Dihedral__set_from_binary(self, p)
2716 def __getstate__(self):
2717 p = self._get_as_binary()
2718 if len(self.__dict__) > 1:
2719 d = self.__dict__.copy()
2724 def __setstate__(self, p):
2725 if not hasattr(self,
'this'):
2727 if isinstance(p, tuple):
2729 self.__dict__.update(d)
2730 return self._set_from_binary(p)
2732 __swig_destroy__ = _IMP_atom.delete_Dihedral
2735 _IMP_atom.Dihedral_swigregister(Dihedral)
2737 r"""Proxy of C++ IMP::atom::SmoothingFunction class."""
2739 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2741 def __init__(self, *args, **kwargs):
2742 raise AttributeError(
"No constructor defined - class is abstract")
2744 def __call__(self, *args):
2746 __call__(SmoothingFunction self, double score, double distance) -> double
2747 __call__(SmoothingFunction self, double score, double deriv, double distance) -> IMP::DerivativePair
2749 return _IMP_atom.SmoothingFunction___call__(self, *args)
2750 __swig_destroy__ = _IMP_atom.delete_SmoothingFunction
2753 r"""__str__(SmoothingFunction self) -> std::string"""
2754 return _IMP_atom.SmoothingFunction___str__(self)
2757 r"""__repr__(SmoothingFunction self) -> std::string"""
2758 return _IMP_atom.SmoothingFunction___repr__(self)
2762 return _object_cast_to_SmoothingFunction(o)
2766 _IMP_atom.SmoothingFunction_swigregister(SmoothingFunction)
2767 class ForceSwitch(SmoothingFunction):
2768 r"""Proxy of C++ IMP::atom::ForceSwitch class."""
2770 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2772 def __init__(self, min_distance, max_distance):
2773 r"""__init__(ForceSwitch self, double min_distance, double max_distance) -> ForceSwitch"""
2774 _IMP_atom.ForceSwitch_swiginit(self, _IMP_atom.new_ForceSwitch(min_distance, max_distance))
2776 def get_min_distance(self):
2777 r"""get_min_distance(ForceSwitch self) -> double"""
2778 return _IMP_atom.ForceSwitch_get_min_distance(self)
2780 def get_max_distance(self):
2781 r"""get_max_distance(ForceSwitch self) -> double"""
2782 return _IMP_atom.ForceSwitch_get_max_distance(self)
2784 def __call__(self, *args):
2786 __call__(ForceSwitch self, double score, double distance) -> double
2787 __call__(ForceSwitch self, double score, double deriv, double distance) -> IMP::DerivativePair
2789 return _IMP_atom.ForceSwitch___call__(self, *args)
2791 def get_version_info(self):
2792 r"""get_version_info(ForceSwitch self) -> VersionInfo"""
2793 return _IMP_atom.ForceSwitch_get_version_info(self)
2794 __swig_destroy__ = _IMP_atom.delete_ForceSwitch
2797 r"""__str__(ForceSwitch self) -> std::string"""
2798 return _IMP_atom.ForceSwitch___str__(self)
2801 r"""__repr__(ForceSwitch self) -> std::string"""
2802 return _IMP_atom.ForceSwitch___repr__(self)
2806 return _object_cast_to_ForceSwitch(o)
2810 import jax.numpy
as jnp
2811 min_distance = self.get_min_distance()
2812 max_distance = self.get_max_distance()
2813 dist_dif = max_distance - min_distance
2814 value_prefactor = 1.0 / (dist_dif * dist_dif * dist_dif)
2815 deriv_prefactor = 6.0 * value_prefactor
2816 def jax_func(score, d):
2817 x = max_distance - d
2818 mid_range = (value_prefactor * x * x *
2819 (max_distance + 2.0 * d - 3.0 * min_distance))
2821 d <= min_distance, 1.0,
2822 jnp.where(d > max_distance, 0.0, mid_range))
2823 return score * factor
2828 _IMP_atom.ForceSwitch_swigregister(ForceSwitch)
2830 r"""Proxy of C++ IMP::atom::AngleSingletonScore class."""
2832 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2834 def __init__(self, f):
2835 r"""__init__(AngleSingletonScore self, UnaryFunction f) -> AngleSingletonScore"""
2836 _IMP_atom.AngleSingletonScore_swiginit(self, _IMP_atom.new_AngleSingletonScore(f))
2838 def get_unary_function(self):
2839 r"""get_unary_function(AngleSingletonScore self) -> UnaryFunction"""
2840 return _IMP_atom.AngleSingletonScore_get_unary_function(self)
2842 def do_get_inputs(self, m, pis):
2843 r"""do_get_inputs(AngleSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2844 return _IMP_atom.AngleSingletonScore_do_get_inputs(self, m, pis)
2846 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
2847 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"""
2848 return _IMP_atom.AngleSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
2850 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
2851 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"""
2852 return _IMP_atom.AngleSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
2854 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
2855 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"""
2856 return _IMP_atom.AngleSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
2858 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
2859 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"""
2860 return _IMP_atom.AngleSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
2862 def get_version_info(self):
2863 r"""get_version_info(AngleSingletonScore self) -> VersionInfo"""
2864 return _IMP_atom.AngleSingletonScore_get_version_info(self)
2865 __swig_destroy__ = _IMP_atom.delete_AngleSingletonScore
2868 r"""__str__(AngleSingletonScore self) -> std::string"""
2869 return _IMP_atom.AngleSingletonScore___str__(self)
2872 r"""__repr__(AngleSingletonScore self) -> std::string"""
2873 return _IMP_atom.AngleSingletonScore___repr__(self)
2877 return _object_cast_to_AngleSingletonScore(o)
2880 def _get_jax(self, m, indexes, space):
2881 import jax.numpy
as jnp
2882 import IMP.core._jax_util
2883 from IMP.atom._jax_util
import _get_angles
2884 def score(jm, angles, uf):
2885 xyzs = jm[
'xyz'][angles.bonded_indexes]
2886 rij = xyzs[:,0] - xyzs[:,1]
2887 rkj = xyzs[:,2] - xyzs[:,1]
2888 angle = IMP.core._jax_util._angle(rij, rkj)
2889 angle_diff = IMP.core._jax_util._get_angle_difference(
2890 angle, angles.ideal)
2891 return uf(angles.stiffness * angle_diff)
2892 uf = self.get_unary_function().get_derived_object()
2893 f = functools.partial(score, angles=_get_angles(m, indexes),
2895 return self._wrap_jax(m, f)
2899 _IMP_atom.AngleSingletonScore_swigregister(AngleSingletonScore)
2901 r"""Proxy of C++ IMP::atom::BondEndpointsRefiner class."""
2903 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2906 r"""__init__(BondEndpointsRefiner self) -> BondEndpointsRefiner"""
2907 _IMP_atom.BondEndpointsRefiner_swiginit(self, _IMP_atom.new_BondEndpointsRefiner())
2909 def do_get_inputs(self, m, pis):
2910 r"""do_get_inputs(BondEndpointsRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2911 return _IMP_atom.BondEndpointsRefiner_do_get_inputs(self, m, pis)
2913 def get_version_info(self):
2914 r"""get_version_info(BondEndpointsRefiner self) -> VersionInfo"""
2915 return _IMP_atom.BondEndpointsRefiner_get_version_info(self)
2916 __swig_destroy__ = _IMP_atom.delete_BondEndpointsRefiner
2919 r"""__str__(BondEndpointsRefiner self) -> std::string"""
2920 return _IMP_atom.BondEndpointsRefiner___str__(self)
2923 r"""__repr__(BondEndpointsRefiner self) -> std::string"""
2924 return _IMP_atom.BondEndpointsRefiner___repr__(self)
2928 return _object_cast_to_BondEndpointsRefiner(o)
2932 _IMP_atom.BondEndpointsRefiner_swigregister(BondEndpointsRefiner)
2934 r"""Proxy of C++ IMP::atom::BondPairContainer class."""
2936 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2938 def __init__(self, sc):
2939 r"""__init__(BondPairContainer self, SingletonContainer sc) -> BondPairContainer"""
2940 _IMP_atom.BondPairContainer_swiginit(self, _IMP_atom.new_BondPairContainer(sc))
2942 def do_get_inputs(self):
2943 r"""do_get_inputs(BondPairContainer self) -> IMP::ModelObjectsTemp"""
2944 return _IMP_atom.BondPairContainer_do_get_inputs(self)
2946 def do_apply(self, sm):
2947 r"""do_apply(BondPairContainer self, PairModifier sm)"""
2948 return _IMP_atom.BondPairContainer_do_apply(self, sm)
2950 def do_apply_moved(self, sm, moved_pis, reset_pis):
2951 r"""do_apply_moved(BondPairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
2952 return _IMP_atom.BondPairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
2954 def get_version_info(self):
2955 r"""get_version_info(BondPairContainer self) -> VersionInfo"""
2956 return _IMP_atom.BondPairContainer_get_version_info(self)
2957 __swig_destroy__ = _IMP_atom.delete_BondPairContainer
2960 r"""__str__(BondPairContainer self) -> std::string"""
2961 return _IMP_atom.BondPairContainer___str__(self)
2964 r"""__repr__(BondPairContainer self) -> std::string"""
2965 return _IMP_atom.BondPairContainer___repr__(self)
2969 return _object_cast_to_BondPairContainer(o)
2973 _IMP_atom.BondPairContainer_swigregister(BondPairContainer)
2975 r"""Proxy of C++ IMP::atom::BondSingletonScore class."""
2977 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2979 def __init__(self, f):
2980 r"""__init__(BondSingletonScore self, UnaryFunction f) -> BondSingletonScore"""
2981 _IMP_atom.BondSingletonScore_swiginit(self, _IMP_atom.new_BondSingletonScore(f))
2983 def get_unary_function(self):
2984 r"""get_unary_function(BondSingletonScore self) -> UnaryFunction"""
2985 return _IMP_atom.BondSingletonScore_get_unary_function(self)
2987 def do_get_inputs(self, m, pis):
2988 r"""do_get_inputs(BondSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2989 return _IMP_atom.BondSingletonScore_do_get_inputs(self, m, pis)
2991 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
2992 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"""
2993 return _IMP_atom.BondSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
2995 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
2996 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"""
2997 return _IMP_atom.BondSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
2999 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
3000 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"""
3001 return _IMP_atom.BondSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
3003 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
3004 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"""
3005 return _IMP_atom.BondSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
3007 def get_version_info(self):
3008 r"""get_version_info(BondSingletonScore self) -> VersionInfo"""
3009 return _IMP_atom.BondSingletonScore_get_version_info(self)
3010 __swig_destroy__ = _IMP_atom.delete_BondSingletonScore
3013 r"""__str__(BondSingletonScore self) -> std::string"""
3014 return _IMP_atom.BondSingletonScore___str__(self)
3017 r"""__repr__(BondSingletonScore self) -> std::string"""
3018 return _IMP_atom.BondSingletonScore___repr__(self)
3022 return _object_cast_to_BondSingletonScore(o)
3025 def _get_jax(self, m, indexes, space):
3026 import jax.numpy
as jnp
3027 from IMP.atom._jax_util
import _get_bonds
3028 def score(jm, bonds, uf):
3029 xyzs = jm[
'xyz'][bonds.bonded_indexes]
3030 diff = xyzs[:,0] - xyzs[:,1]
3031 drs = space.distance(diff)
3032 return uf(bonds.stiffness * (drs - bonds.length))
3033 uf = self.get_unary_function().get_derived_object()
3034 f = functools.partial(score, bonds=_get_bonds(m, indexes),
3036 return self._wrap_jax(m, f)
3040 _IMP_atom.BondSingletonScore_swigregister(BondSingletonScore)
3042 r"""Proxy of C++ IMP::atom::DihedralSingletonScore class."""
3044 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3047 r"""__init__(DihedralSingletonScore self) -> DihedralSingletonScore"""
3048 _IMP_atom.DihedralSingletonScore_swiginit(self, _IMP_atom.new_DihedralSingletonScore())
3050 def do_get_inputs(self, m, pis):
3051 r"""do_get_inputs(DihedralSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3052 return _IMP_atom.DihedralSingletonScore_do_get_inputs(self, m, pis)
3054 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
3055 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"""
3056 return _IMP_atom.DihedralSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
3058 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
3059 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"""
3060 return _IMP_atom.DihedralSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
3062 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
3063 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"""
3064 return _IMP_atom.DihedralSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
3066 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
3067 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"""
3068 return _IMP_atom.DihedralSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
3070 def get_version_info(self):
3071 r"""get_version_info(DihedralSingletonScore self) -> VersionInfo"""
3072 return _IMP_atom.DihedralSingletonScore_get_version_info(self)
3073 __swig_destroy__ = _IMP_atom.delete_DihedralSingletonScore
3076 r"""__str__(DihedralSingletonScore self) -> std::string"""
3077 return _IMP_atom.DihedralSingletonScore___str__(self)
3080 r"""__repr__(DihedralSingletonScore self) -> std::string"""
3081 return _IMP_atom.DihedralSingletonScore___repr__(self)
3085 return _object_cast_to_DihedralSingletonScore(o)
3088 def _get_as_binary(self):
3089 r"""_get_as_binary(DihedralSingletonScore self) -> PyObject *"""
3090 return _IMP_atom.DihedralSingletonScore__get_as_binary(self)
3092 def _set_from_binary(self, p):
3093 r"""_set_from_binary(DihedralSingletonScore self, PyObject * p)"""
3094 return _IMP_atom.DihedralSingletonScore__set_from_binary(self, p)
3096 def __getstate__(self):
3097 p = self._get_as_binary()
3098 if len(self.__dict__) > 1:
3099 d = self.__dict__.copy()
3104 def __setstate__(self, p):
3105 if not hasattr(self,
'this'):
3107 if isinstance(p, tuple):
3109 self.__dict__.update(d)
3110 return self._set_from_binary(p)
3113 def _get_jax(self, m, indexes, space):
3114 import jax.numpy
as jnp
3115 import IMP.core._jax_util
3116 from IMP.atom._jax_util
import _get_dihedrals
3117 def score(jm, dihedrals):
3118 xyzs = jm[
'xyz'][dihedrals.bonded_indexes]
3119 rij = xyzs[:,0] - xyzs[:,1]
3120 rkj = xyzs[:,2] - xyzs[:,1]
3121 rkl = xyzs[:,2] - xyzs[:,3]
3122 dihedral = IMP.core._jax_util._dihedral(rij, rkj, rkl)
3123 b = 0.5 * dihedrals.stiffness * jnp.abs(dihedrals.stiffness)
3124 return jnp.abs(b) + b * jnp.cos(dihedral * dihedrals.multiplicity
3126 f = functools.partial(score, dihedrals=_get_dihedrals(m, indexes))
3127 return self._wrap_jax(m, f)
3131 _IMP_atom.DihedralSingletonScore_swigregister(DihedralSingletonScore)
3133 r"""Proxy of C++ IMP::atom::ImproperSingletonScore class."""
3135 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3137 def __init__(self, f):
3138 r"""__init__(ImproperSingletonScore self, UnaryFunction f) -> ImproperSingletonScore"""
3139 _IMP_atom.ImproperSingletonScore_swiginit(self, _IMP_atom.new_ImproperSingletonScore(f))
3141 def get_unary_function(self):
3142 r"""get_unary_function(ImproperSingletonScore self) -> UnaryFunction"""
3143 return _IMP_atom.ImproperSingletonScore_get_unary_function(self)
3145 def do_get_inputs(self, m, pis):
3146 r"""do_get_inputs(ImproperSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3147 return _IMP_atom.ImproperSingletonScore_do_get_inputs(self, m, pis)
3149 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
3150 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"""
3151 return _IMP_atom.ImproperSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
3153 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
3154 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"""
3155 return _IMP_atom.ImproperSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
3157 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
3158 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"""
3159 return _IMP_atom.ImproperSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
3161 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
3162 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"""
3163 return _IMP_atom.ImproperSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
3165 def get_version_info(self):
3166 r"""get_version_info(ImproperSingletonScore self) -> VersionInfo"""
3167 return _IMP_atom.ImproperSingletonScore_get_version_info(self)
3168 __swig_destroy__ = _IMP_atom.delete_ImproperSingletonScore
3171 r"""__str__(ImproperSingletonScore self) -> std::string"""
3172 return _IMP_atom.ImproperSingletonScore___str__(self)
3175 r"""__repr__(ImproperSingletonScore self) -> std::string"""
3176 return _IMP_atom.ImproperSingletonScore___repr__(self)
3180 return _object_cast_to_ImproperSingletonScore(o)
3183 def _get_jax(self, m, indexes, space):
3184 import jax.numpy
as jnp
3185 import IMP.core._jax_util
3186 from IMP.atom._jax_util
import _get_dihedrals
3187 def score(jm, dihedrals, uf):
3188 xyzs = jm[
'xyz'][dihedrals.bonded_indexes]
3189 rij = xyzs[:,0] - xyzs[:,1]
3190 rkj = xyzs[:,2] - xyzs[:,1]
3191 rkl = xyzs[:,2] - xyzs[:,3]
3192 dihedral = IMP.core._jax_util._dihedral(rij, rkj, rkl)
3193 angle_diff = IMP.core._jax_util._get_angle_difference(
3194 dihedral, dihedrals.ideal)
3195 return uf(dihedrals.stiffness * angle_diff)
3196 uf = self.get_unary_function().get_derived_object()
3197 f = functools.partial(score, dihedrals=_get_dihedrals(m, indexes),
3199 return self._wrap_jax(m, f)
3203 _IMP_atom.ImproperSingletonScore_swigregister(ImproperSingletonScore)
3205 r"""Proxy of C++ IMP::atom::CenterOfMass class."""
3207 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3209 def get_constraint(self):
3210 r"""get_constraint(CenterOfMass self) -> Constraint"""
3211 return _IMP_atom.CenterOfMass_get_constraint(self)
3214 r"""get_mass(CenterOfMass self) -> IMP::Float"""
3215 return _IMP_atom.CenterOfMass_get_mass(self)
3217 def get_coordinate(self, i):
3218 r"""get_coordinate(CenterOfMass self, int i) -> IMP::Float"""
3219 return _IMP_atom.CenterOfMass_get_coordinate(self, i)
3221 def get_coordinates(self):
3222 r"""get_coordinates(CenterOfMass self) -> Vector3D"""
3223 return _IMP_atom.CenterOfMass_get_coordinates(self)
3225 def __init__(self, *args):
3227 __init__(CenterOfMass self) -> CenterOfMass
3228 __init__(CenterOfMass self, Model m, ParticleIndex id) -> CenterOfMass
3229 __init__(CenterOfMass self, _ParticleAdaptor d) -> CenterOfMass
3231 _IMP_atom.CenterOfMass_swiginit(self, _IMP_atom.new_CenterOfMass(*args))
3233 def show(self, *args):
3234 r"""show(CenterOfMass self, _ostream out=std::cout)"""
3235 return _IMP_atom.CenterOfMass_show(self, *args)
3238 def setup_particle(*args):
3240 setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor members) -> CenterOfMass
3241 setup_particle(_ParticleAdaptor pa, _ParticleIndexesAdaptor members) -> CenterOfMass
3242 setup_particle(Model m, ParticleIndex pi, Refiner refiner) -> CenterOfMass
3243 setup_particle(_ParticleAdaptor pa, Refiner refiner) -> CenterOfMass
3245 return _IMP_atom.CenterOfMass_setup_particle(*args)
3248 def teardown_particle(com):
3249 r"""teardown_particle(CenterOfMass com)"""
3250 return _IMP_atom.CenterOfMass_teardown_particle(com)
3253 def get_is_setup(*args):
3255 get_is_setup(_ParticleAdaptor p) -> bool
3256 get_is_setup(Model m, ParticleIndex pi) -> bool
3258 return _IMP_atom.CenterOfMass_get_is_setup(*args)
3260 def add_attribute(self, *args):
3262 add_attribute(CenterOfMass self, FloatKey k, IMP::Float v, bool opt)
3263 add_attribute(CenterOfMass self, FloatKey a0, IMP::Float a1)
3264 add_attribute(CenterOfMass self, IntKey a0, IMP::Int a1)
3265 add_attribute(CenterOfMass self, FloatsKey a0, IMP::Floats a1)
3266 add_attribute(CenterOfMass self, IntsKey a0, IMP::Ints a1)
3267 add_attribute(CenterOfMass self, StringKey a0, IMP::String a1)
3268 add_attribute(CenterOfMass self, ParticleIndexKey a0, Particle a1)
3269 add_attribute(CenterOfMass self, ObjectKey a0, Object a1)
3270 add_attribute(CenterOfMass self, SparseFloatKey a0, IMP::Float a1)
3271 add_attribute(CenterOfMass self, SparseIntKey a0, IMP::Int a1)
3272 add_attribute(CenterOfMass self, SparseStringKey a0, IMP::String a1)
3273 add_attribute(CenterOfMass self, SparseParticleIndexKey a0, ParticleIndex a1)
3275 return _IMP_atom.CenterOfMass_add_attribute(self, *args)
3277 def get_value(self, *args):
3279 get_value(CenterOfMass self, FloatKey a0) -> IMP::Float
3280 get_value(CenterOfMass self, IntKey a0) -> IMP::Int
3281 get_value(CenterOfMass self, FloatsKey a0) -> IMP::Floats
3282 get_value(CenterOfMass self, IntsKey a0) -> IMP::Ints
3283 get_value(CenterOfMass self, StringKey a0) -> IMP::String
3284 get_value(CenterOfMass self, ParticleIndexKey a0) -> Particle
3285 get_value(CenterOfMass self, ObjectKey a0) -> Object
3286 get_value(CenterOfMass self, SparseFloatKey a0) -> IMP::Float
3287 get_value(CenterOfMass self, SparseIntKey a0) -> IMP::Int
3288 get_value(CenterOfMass self, SparseStringKey a0) -> IMP::String
3289 get_value(CenterOfMass self, SparseParticleIndexKey a0) -> ParticleIndex
3291 return _IMP_atom.CenterOfMass_get_value(self, *args)
3293 def set_value(self, *args):
3295 set_value(CenterOfMass self, FloatKey a0, IMP::Float a1)
3296 set_value(CenterOfMass self, IntKey a0, IMP::Int a1)
3297 set_value(CenterOfMass self, FloatsKey a0, IMP::Floats a1)
3298 set_value(CenterOfMass self, IntsKey a0, IMP::Ints a1)
3299 set_value(CenterOfMass self, StringKey a0, IMP::String a1)
3300 set_value(CenterOfMass self, ParticleIndexKey a0, Particle a1)
3301 set_value(CenterOfMass self, ObjectKey a0, Object a1)
3302 set_value(CenterOfMass self, SparseFloatKey a0, IMP::Float a1)
3303 set_value(CenterOfMass self, SparseIntKey a0, IMP::Int a1)
3304 set_value(CenterOfMass self, SparseStringKey a0, IMP::String a1)
3305 set_value(CenterOfMass self, SparseParticleIndexKey a0, ParticleIndex a1)
3307 return _IMP_atom.CenterOfMass_set_value(self, *args)
3309 def remove_attribute(self, *args):
3311 remove_attribute(CenterOfMass self, FloatKey a0)
3312 remove_attribute(CenterOfMass self, IntKey a0)
3313 remove_attribute(CenterOfMass self, FloatsKey a0)
3314 remove_attribute(CenterOfMass self, IntsKey a0)
3315 remove_attribute(CenterOfMass self, StringKey a0)
3316 remove_attribute(CenterOfMass self, ParticleIndexKey a0)
3317 remove_attribute(CenterOfMass self, ObjectKey a0)
3318 remove_attribute(CenterOfMass self, SparseFloatKey a0)
3319 remove_attribute(CenterOfMass self, SparseIntKey a0)
3320 remove_attribute(CenterOfMass self, SparseStringKey a0)
3321 remove_attribute(CenterOfMass self, SparseParticleIndexKey a0)
3323 return _IMP_atom.CenterOfMass_remove_attribute(self, *args)
3325 def has_attribute(self, *args):
3327 has_attribute(CenterOfMass self, FloatKey a0) -> bool
3328 has_attribute(CenterOfMass self, IntKey a0) -> bool
3329 has_attribute(CenterOfMass self, FloatsKey a0) -> bool
3330 has_attribute(CenterOfMass self, IntsKey a0) -> bool
3331 has_attribute(CenterOfMass self, StringKey a0) -> bool
3332 has_attribute(CenterOfMass self, ParticleIndexKey a0) -> bool
3333 has_attribute(CenterOfMass self, ObjectKey a0) -> bool
3334 has_attribute(CenterOfMass self, SparseFloatKey a0) -> bool
3335 has_attribute(CenterOfMass self, SparseIntKey a0) -> bool
3336 has_attribute(CenterOfMass self, SparseStringKey a0) -> bool
3337 has_attribute(CenterOfMass self, SparseParticleIndexKey a0) -> bool
3339 return _IMP_atom.CenterOfMass_has_attribute(self, *args)
3341 def get_derivative(self, a0):
3342 r"""get_derivative(CenterOfMass self, FloatKey a0) -> double"""
3343 return _IMP_atom.CenterOfMass_get_derivative(self, a0)
3346 r"""get_name(CenterOfMass self) -> std::string"""
3347 return _IMP_atom.CenterOfMass_get_name(self)
3349 def clear_caches(self):
3350 r"""clear_caches(CenterOfMass self)"""
3351 return _IMP_atom.CenterOfMass_clear_caches(self)
3353 def set_name(self, a0):
3354 r"""set_name(CenterOfMass self, std::string a0)"""
3355 return _IMP_atom.CenterOfMass_set_name(self, a0)
3358 r"""set_check_level(CenterOfMass self, IMP::CheckLevel a0)"""
3359 return _IMP_atom.CenterOfMass_set_check_level(self, a0)
3361 def add_to_derivative(self, a0, a1, a2):
3362 r"""add_to_derivative(CenterOfMass self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
3363 return _IMP_atom.CenterOfMass_add_to_derivative(self, a0, a1, a2)
3365 def set_is_optimized(self, a0, a1):
3366 r"""set_is_optimized(CenterOfMass self, FloatKey a0, bool a1)"""
3367 return _IMP_atom.CenterOfMass_set_is_optimized(self, a0, a1)
3369 def get_is_optimized(self, a0):
3370 r"""get_is_optimized(CenterOfMass self, FloatKey a0) -> bool"""
3371 return _IMP_atom.CenterOfMass_get_is_optimized(self, a0)
3374 r"""get_check_level(CenterOfMass self) -> IMP::CheckLevel"""
3375 return _IMP_atom.CenterOfMass_get_check_level(self)
3377 def __eq__(self, *args):
3379 __eq__(CenterOfMass self, CenterOfMass o) -> bool
3380 __eq__(CenterOfMass self, Particle d) -> bool
3382 return _IMP_atom.CenterOfMass___eq__(self, *args)
3384 def __ne__(self, *args):
3386 __ne__(CenterOfMass self, CenterOfMass o) -> bool
3387 __ne__(CenterOfMass self, Particle d) -> bool
3389 return _IMP_atom.CenterOfMass___ne__(self, *args)
3391 def __le__(self, *args):
3393 __le__(CenterOfMass self, CenterOfMass o) -> bool
3394 __le__(CenterOfMass self, Particle d) -> bool
3396 return _IMP_atom.CenterOfMass___le__(self, *args)
3398 def __lt__(self, *args):
3400 __lt__(CenterOfMass self, CenterOfMass o) -> bool
3401 __lt__(CenterOfMass self, Particle d) -> bool
3403 return _IMP_atom.CenterOfMass___lt__(self, *args)
3405 def __ge__(self, *args):
3407 __ge__(CenterOfMass self, CenterOfMass o) -> bool
3408 __ge__(CenterOfMass self, Particle d) -> bool
3410 return _IMP_atom.CenterOfMass___ge__(self, *args)
3412 def __gt__(self, *args):
3414 __gt__(CenterOfMass self, CenterOfMass o) -> bool
3415 __gt__(CenterOfMass self, Particle d) -> bool
3417 return _IMP_atom.CenterOfMass___gt__(self, *args)
3420 r"""__hash__(CenterOfMass self) -> std::size_t"""
3421 return _IMP_atom.CenterOfMass___hash__(self)
3424 r"""__str__(CenterOfMass self) -> std::string"""
3425 return _IMP_atom.CenterOfMass___str__(self)
3428 r"""__repr__(CenterOfMass self) -> std::string"""
3429 return _IMP_atom.CenterOfMass___repr__(self)
3431 def _get_as_binary(self):
3432 r"""_get_as_binary(CenterOfMass self) -> PyObject *"""
3433 return _IMP_atom.CenterOfMass__get_as_binary(self)
3435 def _set_from_binary(self, p):
3436 r"""_set_from_binary(CenterOfMass self, PyObject * p)"""
3437 return _IMP_atom.CenterOfMass__set_from_binary(self, p)
3439 def __getstate__(self):
3440 p = self._get_as_binary()
3441 if len(self.__dict__) > 1:
3442 d = self.__dict__.copy()
3447 def __setstate__(self, p):
3448 if not hasattr(self,
'this'):
3450 if isinstance(p, tuple):
3452 self.__dict__.update(d)
3453 return self._set_from_binary(p)
3455 __swig_destroy__ = _IMP_atom.delete_CenterOfMass
3458 _IMP_atom.CenterOfMass_swigregister(CenterOfMass)
3460 r"""Proxy of C++ IMP::atom::CoverBond class."""
3462 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3465 r"""__init__(CoverBond self) -> CoverBond"""
3466 _IMP_atom.CoverBond_swiginit(self, _IMP_atom.new_CoverBond())
3468 def do_get_inputs(self, m, pis):
3469 r"""do_get_inputs(CoverBond self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3470 return _IMP_atom.CoverBond_do_get_inputs(self, m, pis)
3472 def do_get_outputs(self, m, pis):
3473 r"""do_get_outputs(CoverBond self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3474 return _IMP_atom.CoverBond_do_get_outputs(self, m, pis)
3476 def get_version_info(self):
3477 r"""get_version_info(CoverBond self) -> VersionInfo"""
3478 return _IMP_atom.CoverBond_get_version_info(self)
3479 __swig_destroy__ = _IMP_atom.delete_CoverBond
3482 r"""__str__(CoverBond self) -> std::string"""
3483 return _IMP_atom.CoverBond___str__(self)
3486 r"""__repr__(CoverBond self) -> std::string"""
3487 return _IMP_atom.CoverBond___repr__(self)
3491 return _object_cast_to_CoverBond(o)
3495 _IMP_atom.CoverBond_swigregister(CoverBond)
3497 r"""Proxy of C++ IMP::atom::Simulator class."""
3499 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3501 def __init__(self, *args):
3503 __init__(Simulator self, Model m, std::string name="Simulator %1%", double wave_factor=1.0) -> Simulator
3504 __init__(Simulator self) -> Simulator
3506 if self.__class__ == Simulator:
3510 _IMP_atom.Simulator_swiginit(self, _IMP_atom.new_Simulator(_self, *args))
3512 if self.__class__ != Simulator:
3513 _director_objects.register(self)
3518 def simulate(self, time_in_fs):
3519 r"""simulate(Simulator self, double time_in_fs) -> double"""
3520 return _IMP_atom.Simulator_simulate(self, time_in_fs)
3522 def simulate_wave(self, time_in_fs, max_time_step_factor=10.0, base=1.5):
3523 r"""simulate_wave(Simulator self, double time_in_fs, double max_time_step_factor=10.0, double base=1.5) -> double"""
3524 return _IMP_atom.Simulator_simulate_wave(self, time_in_fs, max_time_step_factor, base)
3526 def get_temperature(self):
3527 r"""get_temperature(Simulator self) -> double"""
3528 return _IMP_atom.Simulator_get_temperature(self)
3530 def set_temperature(self, d):
3531 r"""set_temperature(Simulator self, double d)"""
3532 return _IMP_atom.Simulator_set_temperature(self, d)
3534 def set_maximum_time_step(self, ts):
3535 r"""set_maximum_time_step(Simulator self, double ts)"""
3536 return _IMP_atom.Simulator_set_maximum_time_step(self, ts)
3538 def get_maximum_time_step(self):
3539 r"""get_maximum_time_step(Simulator self) -> double"""
3540 return _IMP_atom.Simulator_get_maximum_time_step(self)
3542 def get_last_time_step(self):
3543 r"""get_last_time_step(Simulator self) -> double"""
3544 return _IMP_atom.Simulator_get_last_time_step(self)
3546 def set_time_step(self, ts):
3547 r"""set_time_step(Simulator self, double ts)"""
3548 return _IMP_atom.Simulator_set_time_step(self, ts)
3551 r"""get_kt(Simulator self) -> double"""
3552 return _IMP_atom.Simulator_get_kt(self)
3554 def get_current_time(self):
3555 r"""get_current_time(Simulator self) -> double"""
3556 return _IMP_atom.Simulator_get_current_time(self)
3558 def set_current_time(self, ct):
3559 r"""set_current_time(Simulator self, double ct)"""
3560 return _IMP_atom.Simulator_set_current_time(self, ct)
3562 def get_simulation_particles(self):
3563 r"""get_simulation_particles(Simulator self) -> IMP::ParticlesTemp"""
3564 return _IMP_atom.Simulator_get_simulation_particles(self)
3566 def get_simulation_particle_indexes(self):
3567 r"""get_simulation_particle_indexes(Simulator self) -> IMP::ParticleIndexes"""
3568 return _IMP_atom.Simulator_get_simulation_particle_indexes(self)
3569 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)
3570 def __set_particles(self, obj): IMP._list_util.set_varlist(self.particles, obj)
3571 def __del_particles(self): IMP._list_util.del_varlist(self.particles)
3572 particles = property(__get_particles, __set_particles, __del_particles, doc=
"List of ##ucnames")
3574 def remove_particle(self, d):
3575 r"""remove_particle(Simulator self, Particle d)"""
3576 return _IMP_atom.Simulator_remove_particle(self, d)
3578 def _python_index_particle(self, d, start, stop):
3579 r"""_python_index_particle(Simulator self, Particle d, unsigned int start, unsigned int stop) -> unsigned int"""
3580 return _IMP_atom.Simulator__python_index_particle(self, d, start, stop)
3582 def remove_particles(self, d):
3583 r"""remove_particles(Simulator self, IMP::Particles const & d)"""
3584 return _IMP_atom.Simulator_remove_particles(self, d)
3586 def set_particles(self, ps):
3587 r"""set_particles(Simulator self, IMP::Particles const & ps)"""
3588 return _IMP_atom.Simulator_set_particles(self, ps)
3590 def set_particles_order(self, objs):
3591 r"""set_particles_order(Simulator self, IMP::Particles const & objs)"""
3592 return _IMP_atom.Simulator_set_particles_order(self, objs)
3595 r"""add_particle(Simulator self, Particle obj) -> unsigned int"""
3596 return _IMP_atom.Simulator_add_particle(self, obj)
3599 r"""add_particles(Simulator self, IMP::Particles const & objs)"""
3600 return _IMP_atom.Simulator_add_particles(self, objs)
3602 def clear_particles(self):
3603 r"""clear_particles(Simulator self)"""
3604 return _IMP_atom.Simulator_clear_particles(self)
3606 def get_number_of_particles(self):
3607 r"""get_number_of_particles(Simulator self) -> unsigned int"""
3608 return _IMP_atom.Simulator_get_number_of_particles(self)
3610 def get_has_particles(self):
3611 r"""get_has_particles(Simulator self) -> bool"""
3612 return _IMP_atom.Simulator_get_has_particles(self)
3614 def get_particle(self, i):
3615 r"""get_particle(Simulator self, unsigned int i) -> Particle"""
3616 return _IMP_atom.Simulator_get_particle(self, i)
3619 r"""get_particles(Simulator self) -> IMP::Particles"""
3620 return _IMP_atom.Simulator_get_particles(self)
3622 def erase_particle(self, i):
3623 r"""erase_particle(Simulator self, unsigned int i)"""
3624 return _IMP_atom.Simulator_erase_particle(self, i)
3626 def reserve_particles(self, sz):
3627 r"""reserve_particles(Simulator self, unsigned int sz)"""
3628 return _IMP_atom.Simulator_reserve_particles(self, sz)
3630 def do_optimize(self, max_steps):
3631 r"""do_optimize(Simulator self, unsigned int max_steps) -> IMP::Float"""
3632 return _IMP_atom.Simulator_do_optimize(self, max_steps)
3634 def setup(self, arg0):
3635 r"""setup(Simulator self, IMP::ParticleIndexes const & arg0)"""
3636 return _IMP_atom.Simulator_setup(self, arg0)
3638 def do_step(self, sc, dt):
3639 r"""do_step(Simulator self, IMP::ParticleIndexes const & sc, double dt) -> double"""
3640 return _IMP_atom.Simulator_do_step(self, sc, dt)
3642 def get_is_simulation_particle(self, p):
3643 r"""get_is_simulation_particle(Simulator self, ParticleIndex p) -> bool"""
3644 return _IMP_atom.Simulator_get_is_simulation_particle(self, p)
3646 def do_simulate(self, time):
3647 r"""do_simulate(Simulator self, double time) -> double"""
3648 return _IMP_atom.Simulator_do_simulate(self, time)
3650 def do_simulate_wave(self, time_in_fs, max_time_step_factor=10.0, base=1.5):
3651 r"""do_simulate_wave(Simulator self, double time_in_fs, double max_time_step_factor=10.0, double base=1.5) -> double"""
3652 return _IMP_atom.Simulator_do_simulate_wave(self, time_in_fs, max_time_step_factor, base)
3655 r"""__str__(Simulator self) -> std::string"""
3656 return _IMP_atom.Simulator___str__(self)
3659 r"""__repr__(Simulator self) -> std::string"""
3660 return _IMP_atom.Simulator___repr__(self)
3664 return _object_cast_to_Simulator(o)
3667 def do_show(self, out):
3672 return _object_cast_to_Simulator(o)
3674 __swig_destroy__ = _IMP_atom.delete_Simulator
3675 def __disown__(self):
3677 _IMP_atom.disown_Simulator(self)
3678 return weakref.proxy(self)
3680 def do_destroy(self):
3681 r"""do_destroy(Simulator self)"""
3682 return _IMP_atom.Simulator_do_destroy(self)
3684 def handle_set_has_required_score_states(self, arg0):
3685 r"""handle_set_has_required_score_states(Simulator self, bool arg0)"""
3686 return _IMP_atom.Simulator_handle_set_has_required_score_states(self, arg0)
3688 def do_get_inputs(self):
3689 r"""do_get_inputs(Simulator self) -> IMP::ModelObjectsTemp"""
3690 return _IMP_atom.Simulator_do_get_inputs(self)
3692 def do_get_outputs(self):
3693 r"""do_get_outputs(Simulator self) -> IMP::ModelObjectsTemp"""
3694 return _IMP_atom.Simulator_do_get_outputs(self)
3696 def do_get_interactions(self):
3697 r"""do_get_interactions(Simulator self) -> IMP::ModelObjectsTemps"""
3698 return _IMP_atom.Simulator_do_get_interactions(self)
3701 _IMP_atom.Simulator_swigregister(Simulator)
3702 IMP_ATOM_DEFAULT_BD_RANDOM_POOL_SIZE = _IMP_atom.IMP_ATOM_DEFAULT_BD_RANDOM_POOL_SIZE
3704 class BrownianDynamics(Simulator):
3705 r"""Proxy of C++ IMP::atom::BrownianDynamics class."""
3707 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3709 def __init__(self, *args):
3710 r"""__init__(BrownianDynamics self, Model m, std::string name="BrownianDynamics%1%", double wave_factor=1.0, unsigned int random_pool_size=10000) -> BrownianDynamics"""
3711 _IMP_atom.BrownianDynamics_swiginit(self, _IMP_atom.new_BrownianDynamics(*args))
3713 def set_maximum_move(self, ms_in_A):
3714 r"""set_maximum_move(BrownianDynamics self, double ms_in_A)"""
3715 return _IMP_atom.BrownianDynamics_set_maximum_move(self, ms_in_A)
3717 def get_maximum_move(self):
3718 r"""get_maximum_move(BrownianDynamics self) -> double"""
3719 return _IMP_atom.BrownianDynamics_get_maximum_move(self)
3721 def set_use_stochastic_runge_kutta(self, tf):
3722 r"""set_use_stochastic_runge_kutta(BrownianDynamics self, bool tf)"""
3723 return _IMP_atom.BrownianDynamics_set_use_stochastic_runge_kutta(self, tf)
3725 def get_use_stochastic_runge_kutta(self):
3726 r"""get_use_stochastic_runge_kutta(BrownianDynamics self) -> bool"""
3727 return _IMP_atom.BrownianDynamics_get_use_stochastic_runge_kutta(self)
3729 def get_version_info(self):
3730 r"""get_version_info(BrownianDynamics self) -> VersionInfo"""
3731 return _IMP_atom.BrownianDynamics_get_version_info(self)
3732 __swig_destroy__ = _IMP_atom.delete_BrownianDynamics
3735 r"""__str__(BrownianDynamics self) -> std::string"""
3736 return _IMP_atom.BrownianDynamics___str__(self)
3739 r"""__repr__(BrownianDynamics self) -> std::string"""
3740 return _IMP_atom.BrownianDynamics___repr__(self)
3744 return _object_cast_to_BrownianDynamics(o)
3747 def _get_jax(self, space=None):
3748 from IMP.atom._jax_util
import _BDJAXInfo
3752 if type(self)
is not BrownianDynamics:
3753 raise NotImplementedError(
3754 f
"No JAX implementation for {self} ({type(self)})")
3755 return _BDJAXInfo(self, space)
3757 def _get_jax_optimizer(self, max_steps, space=None):
3758 import IMP.atom._jax_util
3759 return IMP.atom._jax_util._BDJAXOptimizer(self, max_steps, space)
3761 def _optimize_jax(self, max_steps, space=None):
3762 opt = self._get_jax_optimizer(max_steps, space=space)
3763 score, bd_state = opt.optimize(opt.get_initial_state())
3768 _IMP_atom.BrownianDynamics_swigregister(BrownianDynamics)
3771 r"""get_maximum_time_step_estimate(BrownianDynamics bd) -> double"""
3772 return _IMP_atom.get_maximum_time_step_estimate(bd)
3774 def get_harmonic_sigma(D, f):
3775 r"""get_harmonic_sigma(double D, double f) -> double"""
3776 return _IMP_atom.get_harmonic_sigma(D, f)
3777 class BrownianDynamicsTAMD(BrownianDynamics):
3778 r"""Proxy of C++ IMP::atom::BrownianDynamicsTAMD class."""
3780 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3782 def __init__(self, *args):
3783 r"""__init__(BrownianDynamicsTAMD self, Model m, std::string name="BrownianDynamicsTAMD%1%", double wave_factor=1.0) -> BrownianDynamicsTAMD"""
3784 _IMP_atom.BrownianDynamicsTAMD_swiginit(self, _IMP_atom.new_BrownianDynamicsTAMD(*args))
3787 r"""__str__(BrownianDynamicsTAMD self) -> std::string"""
3788 return _IMP_atom.BrownianDynamicsTAMD___str__(self)
3791 r"""__repr__(BrownianDynamicsTAMD self) -> std::string"""
3792 return _IMP_atom.BrownianDynamicsTAMD___repr__(self)
3796 return _object_cast_to_BrownianDynamicsTAMD(o)
3798 __swig_destroy__ = _IMP_atom.delete_BrownianDynamicsTAMD
3801 _IMP_atom.BrownianDynamicsTAMD_swigregister(BrownianDynamicsTAMD)
3803 r"""Proxy of C++ IMP::atom::Diffusion class."""
3805 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3807 def __init__(self, *args):
3809 __init__(Diffusion self) -> Diffusion
3810 __init__(Diffusion self, Model m, ParticleIndex id) -> Diffusion
3811 __init__(Diffusion self, _ParticleAdaptor d) -> Diffusion
3813 _IMP_atom.Diffusion_swiginit(self, _IMP_atom.new_Diffusion(*args))
3815 def show(self, *args):
3816 r"""show(Diffusion self, _ostream out=std::cout)"""
3817 return _IMP_atom.Diffusion_show(self, *args)
3820 def setup_particle(*args):
3822 setup_particle(Model m, ParticleIndex pi, IMP::Float D) -> Diffusion
3823 setup_particle(_ParticleAdaptor pa, IMP::Float D) -> Diffusion
3824 setup_particle(Model m, ParticleIndex pi, Vector3D v, IMP::Float D) -> Diffusion
3825 setup_particle(_ParticleAdaptor pa, Vector3D v, IMP::Float D) -> Diffusion
3826 setup_particle(Model m, ParticleIndex pi) -> Diffusion
3827 setup_particle(_ParticleAdaptor pa) -> Diffusion
3829 return _IMP_atom.Diffusion_setup_particle(*args)
3832 def get_is_setup(*args):
3834 get_is_setup(_ParticleAdaptor p) -> bool
3835 get_is_setup(Model m, ParticleIndex p) -> bool
3837 return _IMP_atom.Diffusion_get_is_setup(*args)
3839 def set_diffusion_coefficient(self, d):
3840 r"""set_diffusion_coefficient(Diffusion self, double d)"""
3841 return _IMP_atom.Diffusion_set_diffusion_coefficient(self, d)
3844 r"""get_diffusion_coefficient(Diffusion self) -> double"""
3845 return _IMP_atom.Diffusion_get_diffusion_coefficient(self)
3848 def get_diffusion_coefficient_key():
3849 r"""get_diffusion_coefficient_key() -> FloatKey"""
3850 return _IMP_atom.Diffusion_get_diffusion_coefficient_key()
3852 def add_attribute(self, *args):
3854 add_attribute(Diffusion self, FloatKey k, IMP::Float v, bool opt)
3855 add_attribute(Diffusion self, FloatKey a0, IMP::Float a1)
3856 add_attribute(Diffusion self, IntKey a0, IMP::Int a1)
3857 add_attribute(Diffusion self, FloatsKey a0, IMP::Floats a1)
3858 add_attribute(Diffusion self, IntsKey a0, IMP::Ints a1)
3859 add_attribute(Diffusion self, StringKey a0, IMP::String a1)
3860 add_attribute(Diffusion self, ParticleIndexKey a0, Particle a1)
3861 add_attribute(Diffusion self, ObjectKey a0, Object a1)
3862 add_attribute(Diffusion self, SparseFloatKey a0, IMP::Float a1)
3863 add_attribute(Diffusion self, SparseIntKey a0, IMP::Int a1)
3864 add_attribute(Diffusion self, SparseStringKey a0, IMP::String a1)
3865 add_attribute(Diffusion self, SparseParticleIndexKey a0, ParticleIndex a1)
3867 return _IMP_atom.Diffusion_add_attribute(self, *args)
3869 def get_value(self, *args):
3871 get_value(Diffusion self, FloatKey a0) -> IMP::Float
3872 get_value(Diffusion self, IntKey a0) -> IMP::Int
3873 get_value(Diffusion self, FloatsKey a0) -> IMP::Floats
3874 get_value(Diffusion self, IntsKey a0) -> IMP::Ints
3875 get_value(Diffusion self, StringKey a0) -> IMP::String
3876 get_value(Diffusion self, ParticleIndexKey a0) -> Particle
3877 get_value(Diffusion self, ObjectKey a0) -> Object
3878 get_value(Diffusion self, SparseFloatKey a0) -> IMP::Float
3879 get_value(Diffusion self, SparseIntKey a0) -> IMP::Int
3880 get_value(Diffusion self, SparseStringKey a0) -> IMP::String
3881 get_value(Diffusion self, SparseParticleIndexKey a0) -> ParticleIndex
3883 return _IMP_atom.Diffusion_get_value(self, *args)
3885 def set_value(self, *args):
3887 set_value(Diffusion self, FloatKey a0, IMP::Float a1)
3888 set_value(Diffusion self, IntKey a0, IMP::Int a1)
3889 set_value(Diffusion self, FloatsKey a0, IMP::Floats a1)
3890 set_value(Diffusion self, IntsKey a0, IMP::Ints a1)
3891 set_value(Diffusion self, StringKey a0, IMP::String a1)
3892 set_value(Diffusion self, ParticleIndexKey a0, Particle a1)
3893 set_value(Diffusion self, ObjectKey a0, Object a1)
3894 set_value(Diffusion self, SparseFloatKey a0, IMP::Float a1)
3895 set_value(Diffusion self, SparseIntKey a0, IMP::Int a1)
3896 set_value(Diffusion self, SparseStringKey a0, IMP::String a1)
3897 set_value(Diffusion self, SparseParticleIndexKey a0, ParticleIndex a1)
3899 return _IMP_atom.Diffusion_set_value(self, *args)
3901 def remove_attribute(self, *args):
3903 remove_attribute(Diffusion self, FloatKey a0)
3904 remove_attribute(Diffusion self, IntKey a0)
3905 remove_attribute(Diffusion self, FloatsKey a0)
3906 remove_attribute(Diffusion self, IntsKey a0)
3907 remove_attribute(Diffusion self, StringKey a0)
3908 remove_attribute(Diffusion self, ParticleIndexKey a0)
3909 remove_attribute(Diffusion self, ObjectKey a0)
3910 remove_attribute(Diffusion self, SparseFloatKey a0)
3911 remove_attribute(Diffusion self, SparseIntKey a0)
3912 remove_attribute(Diffusion self, SparseStringKey a0)
3913 remove_attribute(Diffusion self, SparseParticleIndexKey a0)
3915 return _IMP_atom.Diffusion_remove_attribute(self, *args)
3917 def has_attribute(self, *args):
3919 has_attribute(Diffusion self, FloatKey a0) -> bool
3920 has_attribute(Diffusion self, IntKey a0) -> bool
3921 has_attribute(Diffusion self, FloatsKey a0) -> bool
3922 has_attribute(Diffusion self, IntsKey a0) -> bool
3923 has_attribute(Diffusion self, StringKey a0) -> bool
3924 has_attribute(Diffusion self, ParticleIndexKey a0) -> bool
3925 has_attribute(Diffusion self, ObjectKey a0) -> bool
3926 has_attribute(Diffusion self, SparseFloatKey a0) -> bool
3927 has_attribute(Diffusion self, SparseIntKey a0) -> bool
3928 has_attribute(Diffusion self, SparseStringKey a0) -> bool
3929 has_attribute(Diffusion self, SparseParticleIndexKey a0) -> bool
3931 return _IMP_atom.Diffusion_has_attribute(self, *args)
3933 def get_derivative(self, a0):
3934 r"""get_derivative(Diffusion self, FloatKey a0) -> double"""
3935 return _IMP_atom.Diffusion_get_derivative(self, a0)
3938 r"""get_name(Diffusion self) -> std::string"""
3939 return _IMP_atom.Diffusion_get_name(self)
3941 def clear_caches(self):
3942 r"""clear_caches(Diffusion self)"""
3943 return _IMP_atom.Diffusion_clear_caches(self)
3945 def set_name(self, a0):
3946 r"""set_name(Diffusion self, std::string a0)"""
3947 return _IMP_atom.Diffusion_set_name(self, a0)
3950 r"""set_check_level(Diffusion self, IMP::CheckLevel a0)"""
3951 return _IMP_atom.Diffusion_set_check_level(self, a0)
3953 def add_to_derivative(self, a0, a1, a2):
3954 r"""add_to_derivative(Diffusion self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
3955 return _IMP_atom.Diffusion_add_to_derivative(self, a0, a1, a2)
3957 def set_is_optimized(self, a0, a1):
3958 r"""set_is_optimized(Diffusion self, FloatKey a0, bool a1)"""
3959 return _IMP_atom.Diffusion_set_is_optimized(self, a0, a1)
3961 def get_is_optimized(self, a0):
3962 r"""get_is_optimized(Diffusion self, FloatKey a0) -> bool"""
3963 return _IMP_atom.Diffusion_get_is_optimized(self, a0)
3966 r"""get_check_level(Diffusion self) -> IMP::CheckLevel"""
3967 return _IMP_atom.Diffusion_get_check_level(self)
3969 def __eq__(self, *args):
3971 __eq__(Diffusion self, Diffusion o) -> bool
3972 __eq__(Diffusion self, Particle d) -> bool
3974 return _IMP_atom.Diffusion___eq__(self, *args)
3976 def __ne__(self, *args):
3978 __ne__(Diffusion self, Diffusion o) -> bool
3979 __ne__(Diffusion self, Particle d) -> bool
3981 return _IMP_atom.Diffusion___ne__(self, *args)
3983 def __le__(self, *args):
3985 __le__(Diffusion self, Diffusion o) -> bool
3986 __le__(Diffusion self, Particle d) -> bool
3988 return _IMP_atom.Diffusion___le__(self, *args)
3990 def __lt__(self, *args):
3992 __lt__(Diffusion self, Diffusion o) -> bool
3993 __lt__(Diffusion self, Particle d) -> bool
3995 return _IMP_atom.Diffusion___lt__(self, *args)
3997 def __ge__(self, *args):
3999 __ge__(Diffusion self, Diffusion o) -> bool
4000 __ge__(Diffusion self, Particle d) -> bool
4002 return _IMP_atom.Diffusion___ge__(self, *args)
4004 def __gt__(self, *args):
4006 __gt__(Diffusion self, Diffusion o) -> bool
4007 __gt__(Diffusion self, Particle d) -> bool
4009 return _IMP_atom.Diffusion___gt__(self, *args)
4012 r"""__hash__(Diffusion self) -> std::size_t"""
4013 return _IMP_atom.Diffusion___hash__(self)
4016 r"""__str__(Diffusion self) -> std::string"""
4017 return _IMP_atom.Diffusion___str__(self)
4020 r"""__repr__(Diffusion self) -> std::string"""
4021 return _IMP_atom.Diffusion___repr__(self)
4023 def _get_as_binary(self):
4024 r"""_get_as_binary(Diffusion self) -> PyObject *"""
4025 return _IMP_atom.Diffusion__get_as_binary(self)
4027 def _set_from_binary(self, p):
4028 r"""_set_from_binary(Diffusion self, PyObject * p)"""
4029 return _IMP_atom.Diffusion__set_from_binary(self, p)
4031 def __getstate__(self):
4032 p = self._get_as_binary()
4033 if len(self.__dict__) > 1:
4034 d = self.__dict__.copy()
4039 def __setstate__(self, p):
4040 if not hasattr(self,
'this'):
4042 if isinstance(p, tuple):
4044 self.__dict__.update(d)
4045 return self._set_from_binary(p)
4047 __swig_destroy__ = _IMP_atom.delete_Diffusion
4050 _IMP_atom.Diffusion_swigregister(Diffusion)
4052 def get_diffusion_coefficient_from_cm2_per_second(din):
4053 r"""get_diffusion_coefficient_from_cm2_per_second(double din) -> double"""
4054 return _IMP_atom.get_diffusion_coefficient_from_cm2_per_second(din)
4055 class RigidBodyDiffusion(Diffusion):
4056 r"""Proxy of C++ IMP::atom::RigidBodyDiffusion class."""
4058 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4060 def __init__(self, *args):
4062 __init__(RigidBodyDiffusion self) -> RigidBodyDiffusion
4063 __init__(RigidBodyDiffusion self, Model m, ParticleIndex id) -> RigidBodyDiffusion
4064 __init__(RigidBodyDiffusion self, _ParticleAdaptor d) -> RigidBodyDiffusion
4066 _IMP_atom.RigidBodyDiffusion_swiginit(self, _IMP_atom.new_RigidBodyDiffusion(*args))
4068 def show(self, *args):
4069 r"""show(RigidBodyDiffusion self, _ostream out=std::cout)"""
4070 return _IMP_atom.RigidBodyDiffusion_show(self, *args)
4073 def setup_particle(*args):
4075 setup_particle(Model m, ParticleIndex pi) -> RigidBodyDiffusion
4076 setup_particle(_ParticleAdaptor pa) -> RigidBodyDiffusion
4078 return _IMP_atom.RigidBodyDiffusion_setup_particle(*args)
4081 r"""get_rotational_diffusion_coefficient(RigidBodyDiffusion self) -> double"""
4082 return _IMP_atom.RigidBodyDiffusion_get_rotational_diffusion_coefficient(self)
4084 def set_rotational_diffusion_coefficient(self, d):
4085 r"""set_rotational_diffusion_coefficient(RigidBodyDiffusion self, double d)"""
4086 return _IMP_atom.RigidBodyDiffusion_set_rotational_diffusion_coefficient(self, d)
4089 def get_is_setup(*args):
4091 get_is_setup(_ParticleAdaptor p) -> bool
4092 get_is_setup(Model m, ParticleIndex p) -> bool
4094 return _IMP_atom.RigidBodyDiffusion_get_is_setup(*args)
4097 def get_rotational_diffusion_coefficient_key():
4098 r"""get_rotational_diffusion_coefficient_key() -> FloatKey"""
4099 return _IMP_atom.RigidBodyDiffusion_get_rotational_diffusion_coefficient_key()
4101 def add_attribute(self, *args):
4103 add_attribute(RigidBodyDiffusion self, FloatKey k, IMP::Float v, bool opt)
4104 add_attribute(RigidBodyDiffusion self, FloatKey a0, IMP::Float a1)
4105 add_attribute(RigidBodyDiffusion self, IntKey a0, IMP::Int a1)
4106 add_attribute(RigidBodyDiffusion self, FloatsKey a0, IMP::Floats a1)
4107 add_attribute(RigidBodyDiffusion self, IntsKey a0, IMP::Ints a1)
4108 add_attribute(RigidBodyDiffusion self, StringKey a0, IMP::String a1)
4109 add_attribute(RigidBodyDiffusion self, ParticleIndexKey a0, Particle a1)
4110 add_attribute(RigidBodyDiffusion self, ObjectKey a0, Object a1)
4111 add_attribute(RigidBodyDiffusion self, SparseFloatKey a0, IMP::Float a1)
4112 add_attribute(RigidBodyDiffusion self, SparseIntKey a0, IMP::Int a1)
4113 add_attribute(RigidBodyDiffusion self, SparseStringKey a0, IMP::String a1)
4114 add_attribute(RigidBodyDiffusion self, SparseParticleIndexKey a0, ParticleIndex a1)
4116 return _IMP_atom.RigidBodyDiffusion_add_attribute(self, *args)
4118 def get_value(self, *args):
4120 get_value(RigidBodyDiffusion self, FloatKey a0) -> IMP::Float
4121 get_value(RigidBodyDiffusion self, IntKey a0) -> IMP::Int
4122 get_value(RigidBodyDiffusion self, FloatsKey a0) -> IMP::Floats
4123 get_value(RigidBodyDiffusion self, IntsKey a0) -> IMP::Ints
4124 get_value(RigidBodyDiffusion self, StringKey a0) -> IMP::String
4125 get_value(RigidBodyDiffusion self, ParticleIndexKey a0) -> Particle
4126 get_value(RigidBodyDiffusion self, ObjectKey a0) -> Object
4127 get_value(RigidBodyDiffusion self, SparseFloatKey a0) -> IMP::Float
4128 get_value(RigidBodyDiffusion self, SparseIntKey a0) -> IMP::Int
4129 get_value(RigidBodyDiffusion self, SparseStringKey a0) -> IMP::String
4130 get_value(RigidBodyDiffusion self, SparseParticleIndexKey a0) -> ParticleIndex
4132 return _IMP_atom.RigidBodyDiffusion_get_value(self, *args)
4134 def set_value(self, *args):
4136 set_value(RigidBodyDiffusion self, FloatKey a0, IMP::Float a1)
4137 set_value(RigidBodyDiffusion self, IntKey a0, IMP::Int a1)
4138 set_value(RigidBodyDiffusion self, FloatsKey a0, IMP::Floats a1)
4139 set_value(RigidBodyDiffusion self, IntsKey a0, IMP::Ints a1)
4140 set_value(RigidBodyDiffusion self, StringKey a0, IMP::String a1)
4141 set_value(RigidBodyDiffusion self, ParticleIndexKey a0, Particle a1)
4142 set_value(RigidBodyDiffusion self, ObjectKey a0, Object a1)
4143 set_value(RigidBodyDiffusion self, SparseFloatKey a0, IMP::Float a1)
4144 set_value(RigidBodyDiffusion self, SparseIntKey a0, IMP::Int a1)
4145 set_value(RigidBodyDiffusion self, SparseStringKey a0, IMP::String a1)
4146 set_value(RigidBodyDiffusion self, SparseParticleIndexKey a0, ParticleIndex a1)
4148 return _IMP_atom.RigidBodyDiffusion_set_value(self, *args)
4150 def remove_attribute(self, *args):
4152 remove_attribute(RigidBodyDiffusion self, FloatKey a0)
4153 remove_attribute(RigidBodyDiffusion self, IntKey a0)
4154 remove_attribute(RigidBodyDiffusion self, FloatsKey a0)
4155 remove_attribute(RigidBodyDiffusion self, IntsKey a0)
4156 remove_attribute(RigidBodyDiffusion self, StringKey a0)
4157 remove_attribute(RigidBodyDiffusion self, ParticleIndexKey a0)
4158 remove_attribute(RigidBodyDiffusion self, ObjectKey a0)
4159 remove_attribute(RigidBodyDiffusion self, SparseFloatKey a0)
4160 remove_attribute(RigidBodyDiffusion self, SparseIntKey a0)
4161 remove_attribute(RigidBodyDiffusion self, SparseStringKey a0)
4162 remove_attribute(RigidBodyDiffusion self, SparseParticleIndexKey a0)
4164 return _IMP_atom.RigidBodyDiffusion_remove_attribute(self, *args)
4166 def has_attribute(self, *args):
4168 has_attribute(RigidBodyDiffusion self, FloatKey a0) -> bool
4169 has_attribute(RigidBodyDiffusion self, IntKey a0) -> bool
4170 has_attribute(RigidBodyDiffusion self, FloatsKey a0) -> bool
4171 has_attribute(RigidBodyDiffusion self, IntsKey a0) -> bool
4172 has_attribute(RigidBodyDiffusion self, StringKey a0) -> bool
4173 has_attribute(RigidBodyDiffusion self, ParticleIndexKey a0) -> bool
4174 has_attribute(RigidBodyDiffusion self, ObjectKey a0) -> bool
4175 has_attribute(RigidBodyDiffusion self, SparseFloatKey a0) -> bool
4176 has_attribute(RigidBodyDiffusion self, SparseIntKey a0) -> bool
4177 has_attribute(RigidBodyDiffusion self, SparseStringKey a0) -> bool
4178 has_attribute(RigidBodyDiffusion self, SparseParticleIndexKey a0) -> bool
4180 return _IMP_atom.RigidBodyDiffusion_has_attribute(self, *args)
4182 def get_derivative(self, a0):
4183 r"""get_derivative(RigidBodyDiffusion self, FloatKey a0) -> double"""
4184 return _IMP_atom.RigidBodyDiffusion_get_derivative(self, a0)
4187 r"""get_name(RigidBodyDiffusion self) -> std::string"""
4188 return _IMP_atom.RigidBodyDiffusion_get_name(self)
4190 def clear_caches(self):
4191 r"""clear_caches(RigidBodyDiffusion self)"""
4192 return _IMP_atom.RigidBodyDiffusion_clear_caches(self)
4194 def set_name(self, a0):
4195 r"""set_name(RigidBodyDiffusion self, std::string a0)"""
4196 return _IMP_atom.RigidBodyDiffusion_set_name(self, a0)
4199 r"""set_check_level(RigidBodyDiffusion self, IMP::CheckLevel a0)"""
4200 return _IMP_atom.RigidBodyDiffusion_set_check_level(self, a0)
4202 def add_to_derivative(self, a0, a1, a2):
4203 r"""add_to_derivative(RigidBodyDiffusion self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
4204 return _IMP_atom.RigidBodyDiffusion_add_to_derivative(self, a0, a1, a2)
4206 def set_is_optimized(self, a0, a1):
4207 r"""set_is_optimized(RigidBodyDiffusion self, FloatKey a0, bool a1)"""
4208 return _IMP_atom.RigidBodyDiffusion_set_is_optimized(self, a0, a1)
4210 def get_is_optimized(self, a0):
4211 r"""get_is_optimized(RigidBodyDiffusion self, FloatKey a0) -> bool"""
4212 return _IMP_atom.RigidBodyDiffusion_get_is_optimized(self, a0)
4215 r"""get_check_level(RigidBodyDiffusion self) -> IMP::CheckLevel"""
4216 return _IMP_atom.RigidBodyDiffusion_get_check_level(self)
4218 def __eq__(self, *args):
4220 __eq__(RigidBodyDiffusion self, RigidBodyDiffusion o) -> bool
4221 __eq__(RigidBodyDiffusion self, Particle d) -> bool
4223 return _IMP_atom.RigidBodyDiffusion___eq__(self, *args)
4225 def __ne__(self, *args):
4227 __ne__(RigidBodyDiffusion self, RigidBodyDiffusion o) -> bool
4228 __ne__(RigidBodyDiffusion self, Particle d) -> bool
4230 return _IMP_atom.RigidBodyDiffusion___ne__(self, *args)
4232 def __le__(self, *args):
4234 __le__(RigidBodyDiffusion self, RigidBodyDiffusion o) -> bool
4235 __le__(RigidBodyDiffusion self, Particle d) -> bool
4237 return _IMP_atom.RigidBodyDiffusion___le__(self, *args)
4239 def __lt__(self, *args):
4241 __lt__(RigidBodyDiffusion self, RigidBodyDiffusion o) -> bool
4242 __lt__(RigidBodyDiffusion self, Particle d) -> bool
4244 return _IMP_atom.RigidBodyDiffusion___lt__(self, *args)
4246 def __ge__(self, *args):
4248 __ge__(RigidBodyDiffusion self, RigidBodyDiffusion o) -> bool
4249 __ge__(RigidBodyDiffusion self, Particle d) -> bool
4251 return _IMP_atom.RigidBodyDiffusion___ge__(self, *args)
4253 def __gt__(self, *args):
4255 __gt__(RigidBodyDiffusion self, RigidBodyDiffusion o) -> bool
4256 __gt__(RigidBodyDiffusion self, Particle d) -> bool
4258 return _IMP_atom.RigidBodyDiffusion___gt__(self, *args)
4261 r"""__hash__(RigidBodyDiffusion self) -> std::size_t"""
4262 return _IMP_atom.RigidBodyDiffusion___hash__(self)
4265 r"""__str__(RigidBodyDiffusion self) -> std::string"""
4266 return _IMP_atom.RigidBodyDiffusion___str__(self)
4269 r"""__repr__(RigidBodyDiffusion self) -> std::string"""
4270 return _IMP_atom.RigidBodyDiffusion___repr__(self)
4272 def _get_as_binary(self):
4273 r"""_get_as_binary(RigidBodyDiffusion self) -> PyObject *"""
4274 return _IMP_atom.RigidBodyDiffusion__get_as_binary(self)
4276 def _set_from_binary(self, p):
4277 r"""_set_from_binary(RigidBodyDiffusion self, PyObject * p)"""
4278 return _IMP_atom.RigidBodyDiffusion__set_from_binary(self, p)
4280 def __getstate__(self):
4281 p = self._get_as_binary()
4282 if len(self.__dict__) > 1:
4283 d = self.__dict__.copy()
4288 def __setstate__(self, p):
4289 if not hasattr(self,
'this'):
4291 if isinstance(p, tuple):
4293 self.__dict__.update(d)
4294 return self._set_from_binary(p)
4296 __swig_destroy__ = _IMP_atom.delete_RigidBodyDiffusion
4299 _IMP_atom.RigidBodyDiffusion_swigregister(RigidBodyDiffusion)
4301 r"""Proxy of C++ IMP::atom::TAMDParticle class."""
4303 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4305 def __init__(self, *args):
4307 __init__(TAMDParticle self) -> TAMDParticle
4308 __init__(TAMDParticle self, Model m, ParticleIndex id) -> TAMDParticle
4309 __init__(TAMDParticle self, _ParticleAdaptor d) -> TAMDParticle
4311 _IMP_atom.TAMDParticle_swiginit(self, _IMP_atom.new_TAMDParticle(*args))
4313 def show(self, *args):
4314 r"""show(TAMDParticle self, _ostream out=std::cout)"""
4315 return _IMP_atom.TAMDParticle_show(self, *args)
4318 def setup_particle(*args):
4320 setup_particle(Model m, ParticleIndex pi, ParticleIndex pi_ref, IMP::Float tsf, IMP::Float fsf) -> TAMDParticle
4321 setup_particle(_ParticleAdaptor pa, ParticleIndex pi_ref, IMP::Float tsf, IMP::Float fsf) -> TAMDParticle
4322 setup_particle(Model m, ParticleIndex pi, Particle p_ref, IMP::Float tsf, IMP::Float fsf) -> TAMDParticle
4323 setup_particle(_ParticleAdaptor pa, Particle p_ref, IMP::Float tsf, IMP::Float fsf) -> TAMDParticle
4325 return _IMP_atom.TAMDParticle_setup_particle(*args)
4328 def get_is_setup(*args):
4330 get_is_setup(_ParticleAdaptor p) -> bool
4331 get_is_setup(Model m, ParticleIndex p) -> bool
4333 return _IMP_atom.TAMDParticle_get_is_setup(*args)
4335 def get_reference_particle_index(self):
4336 r"""get_reference_particle_index(TAMDParticle self) -> ParticleIndex"""
4337 return _IMP_atom.TAMDParticle_get_reference_particle_index(self)
4339 def set_temperature_scale_factor(self, tsf):
4340 r"""set_temperature_scale_factor(TAMDParticle self, float tsf)"""
4341 return _IMP_atom.TAMDParticle_set_temperature_scale_factor(self, tsf)
4343 def get_temperature_scale_factor(self):
4344 r"""get_temperature_scale_factor(TAMDParticle self) -> double"""
4345 return _IMP_atom.TAMDParticle_get_temperature_scale_factor(self)
4347 def set_friction_scale_factor(self, tsf):
4348 r"""set_friction_scale_factor(TAMDParticle self, float tsf)"""
4349 return _IMP_atom.TAMDParticle_set_friction_scale_factor(self, tsf)
4351 def get_friction_scale_factor(self):
4352 r"""get_friction_scale_factor(TAMDParticle self) -> double"""
4353 return _IMP_atom.TAMDParticle_get_friction_scale_factor(self)
4355 def update_coordinates_from_ref(self):
4356 r"""update_coordinates_from_ref(TAMDParticle self)"""
4357 return _IMP_atom.TAMDParticle_update_coordinates_from_ref(self)
4360 def get_temperature_scale_factor_key():
4361 r"""get_temperature_scale_factor_key() -> FloatKey"""
4362 return _IMP_atom.TAMDParticle_get_temperature_scale_factor_key()
4365 def get_friction_scale_factor_key():
4366 r"""get_friction_scale_factor_key() -> FloatKey"""
4367 return _IMP_atom.TAMDParticle_get_friction_scale_factor_key()
4370 def get_reference_particle_index_key():
4371 r"""get_reference_particle_index_key() -> ParticleIndexKey"""
4372 return _IMP_atom.TAMDParticle_get_reference_particle_index_key()
4374 def add_attribute(self, *args):
4376 add_attribute(TAMDParticle self, FloatKey k, IMP::Float v, bool opt)
4377 add_attribute(TAMDParticle self, FloatKey a0, IMP::Float a1)
4378 add_attribute(TAMDParticle self, IntKey a0, IMP::Int a1)
4379 add_attribute(TAMDParticle self, FloatsKey a0, IMP::Floats a1)
4380 add_attribute(TAMDParticle self, IntsKey a0, IMP::Ints a1)
4381 add_attribute(TAMDParticle self, StringKey a0, IMP::String a1)
4382 add_attribute(TAMDParticle self, ParticleIndexKey a0, Particle a1)
4383 add_attribute(TAMDParticle self, ObjectKey a0, Object a1)
4384 add_attribute(TAMDParticle self, SparseFloatKey a0, IMP::Float a1)
4385 add_attribute(TAMDParticle self, SparseIntKey a0, IMP::Int a1)
4386 add_attribute(TAMDParticle self, SparseStringKey a0, IMP::String a1)
4387 add_attribute(TAMDParticle self, SparseParticleIndexKey a0, ParticleIndex a1)
4389 return _IMP_atom.TAMDParticle_add_attribute(self, *args)
4391 def get_value(self, *args):
4393 get_value(TAMDParticle self, FloatKey a0) -> IMP::Float
4394 get_value(TAMDParticle self, IntKey a0) -> IMP::Int
4395 get_value(TAMDParticle self, FloatsKey a0) -> IMP::Floats
4396 get_value(TAMDParticle self, IntsKey a0) -> IMP::Ints
4397 get_value(TAMDParticle self, StringKey a0) -> IMP::String
4398 get_value(TAMDParticle self, ParticleIndexKey a0) -> Particle
4399 get_value(TAMDParticle self, ObjectKey a0) -> Object
4400 get_value(TAMDParticle self, SparseFloatKey a0) -> IMP::Float
4401 get_value(TAMDParticle self, SparseIntKey a0) -> IMP::Int
4402 get_value(TAMDParticle self, SparseStringKey a0) -> IMP::String
4403 get_value(TAMDParticle self, SparseParticleIndexKey a0) -> ParticleIndex
4405 return _IMP_atom.TAMDParticle_get_value(self, *args)
4407 def set_value(self, *args):
4409 set_value(TAMDParticle self, FloatKey a0, IMP::Float a1)
4410 set_value(TAMDParticle self, IntKey a0, IMP::Int a1)
4411 set_value(TAMDParticle self, FloatsKey a0, IMP::Floats a1)
4412 set_value(TAMDParticle self, IntsKey a0, IMP::Ints a1)
4413 set_value(TAMDParticle self, StringKey a0, IMP::String a1)
4414 set_value(TAMDParticle self, ParticleIndexKey a0, Particle a1)
4415 set_value(TAMDParticle self, ObjectKey a0, Object a1)
4416 set_value(TAMDParticle self, SparseFloatKey a0, IMP::Float a1)
4417 set_value(TAMDParticle self, SparseIntKey a0, IMP::Int a1)
4418 set_value(TAMDParticle self, SparseStringKey a0, IMP::String a1)
4419 set_value(TAMDParticle self, SparseParticleIndexKey a0, ParticleIndex a1)
4421 return _IMP_atom.TAMDParticle_set_value(self, *args)
4423 def remove_attribute(self, *args):
4425 remove_attribute(TAMDParticle self, FloatKey a0)
4426 remove_attribute(TAMDParticle self, IntKey a0)
4427 remove_attribute(TAMDParticle self, FloatsKey a0)
4428 remove_attribute(TAMDParticle self, IntsKey a0)
4429 remove_attribute(TAMDParticle self, StringKey a0)
4430 remove_attribute(TAMDParticle self, ParticleIndexKey a0)
4431 remove_attribute(TAMDParticle self, ObjectKey a0)
4432 remove_attribute(TAMDParticle self, SparseFloatKey a0)
4433 remove_attribute(TAMDParticle self, SparseIntKey a0)
4434 remove_attribute(TAMDParticle self, SparseStringKey a0)
4435 remove_attribute(TAMDParticle self, SparseParticleIndexKey a0)
4437 return _IMP_atom.TAMDParticle_remove_attribute(self, *args)
4439 def has_attribute(self, *args):
4441 has_attribute(TAMDParticle self, FloatKey a0) -> bool
4442 has_attribute(TAMDParticle self, IntKey a0) -> bool
4443 has_attribute(TAMDParticle self, FloatsKey a0) -> bool
4444 has_attribute(TAMDParticle self, IntsKey a0) -> bool
4445 has_attribute(TAMDParticle self, StringKey a0) -> bool
4446 has_attribute(TAMDParticle self, ParticleIndexKey a0) -> bool
4447 has_attribute(TAMDParticle self, ObjectKey a0) -> bool
4448 has_attribute(TAMDParticle self, SparseFloatKey a0) -> bool
4449 has_attribute(TAMDParticle self, SparseIntKey a0) -> bool
4450 has_attribute(TAMDParticle self, SparseStringKey a0) -> bool
4451 has_attribute(TAMDParticle self, SparseParticleIndexKey a0) -> bool
4453 return _IMP_atom.TAMDParticle_has_attribute(self, *args)
4455 def get_derivative(self, a0):
4456 r"""get_derivative(TAMDParticle self, FloatKey a0) -> double"""
4457 return _IMP_atom.TAMDParticle_get_derivative(self, a0)
4460 r"""get_name(TAMDParticle self) -> std::string"""
4461 return _IMP_atom.TAMDParticle_get_name(self)
4463 def clear_caches(self):
4464 r"""clear_caches(TAMDParticle self)"""
4465 return _IMP_atom.TAMDParticle_clear_caches(self)
4467 def set_name(self, a0):
4468 r"""set_name(TAMDParticle self, std::string a0)"""
4469 return _IMP_atom.TAMDParticle_set_name(self, a0)
4472 r"""set_check_level(TAMDParticle self, IMP::CheckLevel a0)"""
4473 return _IMP_atom.TAMDParticle_set_check_level(self, a0)
4475 def add_to_derivative(self, a0, a1, a2):
4476 r"""add_to_derivative(TAMDParticle self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
4477 return _IMP_atom.TAMDParticle_add_to_derivative(self, a0, a1, a2)
4479 def set_is_optimized(self, a0, a1):
4480 r"""set_is_optimized(TAMDParticle self, FloatKey a0, bool a1)"""
4481 return _IMP_atom.TAMDParticle_set_is_optimized(self, a0, a1)
4483 def get_is_optimized(self, a0):
4484 r"""get_is_optimized(TAMDParticle self, FloatKey a0) -> bool"""
4485 return _IMP_atom.TAMDParticle_get_is_optimized(self, a0)
4488 r"""get_check_level(TAMDParticle self) -> IMP::CheckLevel"""
4489 return _IMP_atom.TAMDParticle_get_check_level(self)
4491 def __eq__(self, *args):
4493 __eq__(TAMDParticle self, TAMDParticle o) -> bool
4494 __eq__(TAMDParticle self, Particle d) -> bool
4496 return _IMP_atom.TAMDParticle___eq__(self, *args)
4498 def __ne__(self, *args):
4500 __ne__(TAMDParticle self, TAMDParticle o) -> bool
4501 __ne__(TAMDParticle self, Particle d) -> bool
4503 return _IMP_atom.TAMDParticle___ne__(self, *args)
4505 def __le__(self, *args):
4507 __le__(TAMDParticle self, TAMDParticle o) -> bool
4508 __le__(TAMDParticle self, Particle d) -> bool
4510 return _IMP_atom.TAMDParticle___le__(self, *args)
4512 def __lt__(self, *args):
4514 __lt__(TAMDParticle self, TAMDParticle o) -> bool
4515 __lt__(TAMDParticle self, Particle d) -> bool
4517 return _IMP_atom.TAMDParticle___lt__(self, *args)
4519 def __ge__(self, *args):
4521 __ge__(TAMDParticle self, TAMDParticle o) -> bool
4522 __ge__(TAMDParticle self, Particle d) -> bool
4524 return _IMP_atom.TAMDParticle___ge__(self, *args)
4526 def __gt__(self, *args):
4528 __gt__(TAMDParticle self, TAMDParticle o) -> bool
4529 __gt__(TAMDParticle self, Particle d) -> bool
4531 return _IMP_atom.TAMDParticle___gt__(self, *args)
4534 r"""__hash__(TAMDParticle self) -> std::size_t"""
4535 return _IMP_atom.TAMDParticle___hash__(self)
4538 r"""__str__(TAMDParticle self) -> std::string"""
4539 return _IMP_atom.TAMDParticle___str__(self)
4542 r"""__repr__(TAMDParticle self) -> std::string"""
4543 return _IMP_atom.TAMDParticle___repr__(self)
4545 def _get_as_binary(self):
4546 r"""_get_as_binary(TAMDParticle self) -> PyObject *"""
4547 return _IMP_atom.TAMDParticle__get_as_binary(self)
4549 def _set_from_binary(self, p):
4550 r"""_set_from_binary(TAMDParticle self, PyObject * p)"""
4551 return _IMP_atom.TAMDParticle__set_from_binary(self, p)
4553 def __getstate__(self):
4554 p = self._get_as_binary()
4555 if len(self.__dict__) > 1:
4556 d = self.__dict__.copy()
4561 def __setstate__(self, p):
4562 if not hasattr(self,
'this'):
4564 if isinstance(p, tuple):
4566 self.__dict__.update(d)
4567 return self._set_from_binary(p)
4569 __swig_destroy__ = _IMP_atom.delete_TAMDParticle
4572 _IMP_atom.TAMDParticle_swigregister(TAMDParticle)
4574 r"""Proxy of C++ IMP::atom::Charged class."""
4576 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4578 def __init__(self, *args):
4580 __init__(Charged self) -> Charged
4581 __init__(Charged self, Model m, ParticleIndex id) -> Charged
4582 __init__(Charged self, _ParticleAdaptor d) -> Charged
4584 _IMP_atom.Charged_swiginit(self, _IMP_atom.new_Charged(*args))
4586 def show(self, *args):
4587 r"""show(Charged self, _ostream out=std::cout)"""
4588 return _IMP_atom.Charged_show(self, *args)
4591 def setup_particle(*args):
4593 setup_particle(Model m, ParticleIndex pi, IMP::Float charge) -> Charged
4594 setup_particle(_ParticleAdaptor pa, IMP::Float charge) -> Charged
4595 setup_particle(Model m, ParticleIndex pi, Vector3D v, IMP::Float charge) -> Charged
4596 setup_particle(_ParticleAdaptor pa, Vector3D v, IMP::Float charge) -> Charged
4598 return _IMP_atom.Charged_setup_particle(*args)
4600 def get_charge(self):
4601 r"""get_charge(Charged self) -> IMP::Float"""
4602 return _IMP_atom.Charged_get_charge(self)
4604 def set_charge(self, t):
4605 r"""set_charge(Charged self, IMP::Float t)"""
4606 return _IMP_atom.Charged_set_charge(self, t)
4609 def get_is_setup(*args):
4611 get_is_setup(_ParticleAdaptor p) -> bool
4612 get_is_setup(Model m, ParticleIndex pi) -> bool
4614 return _IMP_atom.Charged_get_is_setup(*args)
4617 def get_charge_key():
4618 r"""get_charge_key() -> FloatKey"""
4619 return _IMP_atom.Charged_get_charge_key()
4621 def add_attribute(self, *args):
4623 add_attribute(Charged self, FloatKey k, IMP::Float v, bool opt)
4624 add_attribute(Charged self, FloatKey a0, IMP::Float a1)
4625 add_attribute(Charged self, IntKey a0, IMP::Int a1)
4626 add_attribute(Charged self, FloatsKey a0, IMP::Floats a1)
4627 add_attribute(Charged self, IntsKey a0, IMP::Ints a1)
4628 add_attribute(Charged self, StringKey a0, IMP::String a1)
4629 add_attribute(Charged self, ParticleIndexKey a0, Particle a1)
4630 add_attribute(Charged self, ObjectKey a0, Object a1)
4631 add_attribute(Charged self, SparseFloatKey a0, IMP::Float a1)
4632 add_attribute(Charged self, SparseIntKey a0, IMP::Int a1)
4633 add_attribute(Charged self, SparseStringKey a0, IMP::String a1)
4634 add_attribute(Charged self, SparseParticleIndexKey a0, ParticleIndex a1)
4636 return _IMP_atom.Charged_add_attribute(self, *args)
4638 def get_value(self, *args):
4640 get_value(Charged self, FloatKey a0) -> IMP::Float
4641 get_value(Charged self, IntKey a0) -> IMP::Int
4642 get_value(Charged self, FloatsKey a0) -> IMP::Floats
4643 get_value(Charged self, IntsKey a0) -> IMP::Ints
4644 get_value(Charged self, StringKey a0) -> IMP::String
4645 get_value(Charged self, ParticleIndexKey a0) -> Particle
4646 get_value(Charged self, ObjectKey a0) -> Object
4647 get_value(Charged self, SparseFloatKey a0) -> IMP::Float
4648 get_value(Charged self, SparseIntKey a0) -> IMP::Int
4649 get_value(Charged self, SparseStringKey a0) -> IMP::String
4650 get_value(Charged self, SparseParticleIndexKey a0) -> ParticleIndex
4652 return _IMP_atom.Charged_get_value(self, *args)
4654 def set_value(self, *args):
4656 set_value(Charged self, FloatKey a0, IMP::Float a1)
4657 set_value(Charged self, IntKey a0, IMP::Int a1)
4658 set_value(Charged self, FloatsKey a0, IMP::Floats a1)
4659 set_value(Charged self, IntsKey a0, IMP::Ints a1)
4660 set_value(Charged self, StringKey a0, IMP::String a1)
4661 set_value(Charged self, ParticleIndexKey a0, Particle a1)
4662 set_value(Charged self, ObjectKey a0, Object a1)
4663 set_value(Charged self, SparseFloatKey a0, IMP::Float a1)
4664 set_value(Charged self, SparseIntKey a0, IMP::Int a1)
4665 set_value(Charged self, SparseStringKey a0, IMP::String a1)
4666 set_value(Charged self, SparseParticleIndexKey a0, ParticleIndex a1)
4668 return _IMP_atom.Charged_set_value(self, *args)
4670 def remove_attribute(self, *args):
4672 remove_attribute(Charged self, FloatKey a0)
4673 remove_attribute(Charged self, IntKey a0)
4674 remove_attribute(Charged self, FloatsKey a0)
4675 remove_attribute(Charged self, IntsKey a0)
4676 remove_attribute(Charged self, StringKey a0)
4677 remove_attribute(Charged self, ParticleIndexKey a0)
4678 remove_attribute(Charged self, ObjectKey a0)
4679 remove_attribute(Charged self, SparseFloatKey a0)
4680 remove_attribute(Charged self, SparseIntKey a0)
4681 remove_attribute(Charged self, SparseStringKey a0)
4682 remove_attribute(Charged self, SparseParticleIndexKey a0)
4684 return _IMP_atom.Charged_remove_attribute(self, *args)
4686 def has_attribute(self, *args):
4688 has_attribute(Charged self, FloatKey a0) -> bool
4689 has_attribute(Charged self, IntKey a0) -> bool
4690 has_attribute(Charged self, FloatsKey a0) -> bool
4691 has_attribute(Charged self, IntsKey a0) -> bool
4692 has_attribute(Charged self, StringKey a0) -> bool
4693 has_attribute(Charged self, ParticleIndexKey a0) -> bool
4694 has_attribute(Charged self, ObjectKey a0) -> bool
4695 has_attribute(Charged self, SparseFloatKey a0) -> bool
4696 has_attribute(Charged self, SparseIntKey a0) -> bool
4697 has_attribute(Charged self, SparseStringKey a0) -> bool
4698 has_attribute(Charged self, SparseParticleIndexKey a0) -> bool
4700 return _IMP_atom.Charged_has_attribute(self, *args)
4702 def get_derivative(self, a0):
4703 r"""get_derivative(Charged self, FloatKey a0) -> double"""
4704 return _IMP_atom.Charged_get_derivative(self, a0)
4707 r"""get_name(Charged self) -> std::string"""
4708 return _IMP_atom.Charged_get_name(self)
4710 def clear_caches(self):
4711 r"""clear_caches(Charged self)"""
4712 return _IMP_atom.Charged_clear_caches(self)
4714 def set_name(self, a0):
4715 r"""set_name(Charged self, std::string a0)"""
4716 return _IMP_atom.Charged_set_name(self, a0)
4719 r"""set_check_level(Charged self, IMP::CheckLevel a0)"""
4720 return _IMP_atom.Charged_set_check_level(self, a0)
4722 def add_to_derivative(self, a0, a1, a2):
4723 r"""add_to_derivative(Charged self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
4724 return _IMP_atom.Charged_add_to_derivative(self, a0, a1, a2)
4726 def set_is_optimized(self, a0, a1):
4727 r"""set_is_optimized(Charged self, FloatKey a0, bool a1)"""
4728 return _IMP_atom.Charged_set_is_optimized(self, a0, a1)
4730 def get_is_optimized(self, a0):
4731 r"""get_is_optimized(Charged self, FloatKey a0) -> bool"""
4732 return _IMP_atom.Charged_get_is_optimized(self, a0)
4735 r"""get_check_level(Charged self) -> IMP::CheckLevel"""
4736 return _IMP_atom.Charged_get_check_level(self)
4738 def __eq__(self, *args):
4740 __eq__(Charged self, Charged o) -> bool
4741 __eq__(Charged self, Particle d) -> bool
4743 return _IMP_atom.Charged___eq__(self, *args)
4745 def __ne__(self, *args):
4747 __ne__(Charged self, Charged o) -> bool
4748 __ne__(Charged self, Particle d) -> bool
4750 return _IMP_atom.Charged___ne__(self, *args)
4752 def __le__(self, *args):
4754 __le__(Charged self, Charged o) -> bool
4755 __le__(Charged self, Particle d) -> bool
4757 return _IMP_atom.Charged___le__(self, *args)
4759 def __lt__(self, *args):
4761 __lt__(Charged self, Charged o) -> bool
4762 __lt__(Charged self, Particle d) -> bool
4764 return _IMP_atom.Charged___lt__(self, *args)
4766 def __ge__(self, *args):
4768 __ge__(Charged self, Charged o) -> bool
4769 __ge__(Charged self, Particle d) -> bool
4771 return _IMP_atom.Charged___ge__(self, *args)
4773 def __gt__(self, *args):
4775 __gt__(Charged self, Charged o) -> bool
4776 __gt__(Charged self, Particle d) -> bool
4778 return _IMP_atom.Charged___gt__(self, *args)
4781 r"""__hash__(Charged self) -> std::size_t"""
4782 return _IMP_atom.Charged___hash__(self)
4785 r"""__str__(Charged self) -> std::string"""
4786 return _IMP_atom.Charged___str__(self)
4789 r"""__repr__(Charged self) -> std::string"""
4790 return _IMP_atom.Charged___repr__(self)
4792 def _get_as_binary(self):
4793 r"""_get_as_binary(Charged self) -> PyObject *"""
4794 return _IMP_atom.Charged__get_as_binary(self)
4796 def _set_from_binary(self, p):
4797 r"""_set_from_binary(Charged self, PyObject * p)"""
4798 return _IMP_atom.Charged__set_from_binary(self, p)
4800 def __getstate__(self):
4801 p = self._get_as_binary()
4802 if len(self.__dict__) > 1:
4803 d = self.__dict__.copy()
4808 def __setstate__(self, p):
4809 if not hasattr(self,
'this'):
4811 if isinstance(p, tuple):
4813 self.__dict__.update(d)
4814 return self._set_from_binary(p)
4816 __swig_destroy__ = _IMP_atom.delete_Charged
4819 _IMP_atom.Charged_swigregister(Charged)
4821 r"""Proxy of C++ IMP::atom::CoulombPairScore class."""
4823 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4825 def __init__(self, f):
4826 r"""__init__(CoulombPairScore self, SmoothingFunction f) -> CoulombPairScore"""
4827 _IMP_atom.CoulombPairScore_swiginit(self, _IMP_atom.new_CoulombPairScore(f))
4829 def set_relative_dielectric(self, relative_dielectric):
4830 r"""set_relative_dielectric(CoulombPairScore self, double relative_dielectric)"""
4831 return _IMP_atom.CoulombPairScore_set_relative_dielectric(self, relative_dielectric)
4833 def get_relative_dielectric(self):
4834 r"""get_relative_dielectric(CoulombPairScore self) -> double"""
4835 return _IMP_atom.CoulombPairScore_get_relative_dielectric(self)
4837 def get_smoothing_function(self):
4838 r"""get_smoothing_function(CoulombPairScore self) -> SmoothingFunction"""
4839 return _IMP_atom.CoulombPairScore_get_smoothing_function(self)
4841 def do_get_inputs(self, m, pis):
4842 r"""do_get_inputs(CoulombPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4843 return _IMP_atom.CoulombPairScore_do_get_inputs(self, m, pis)
4845 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
4846 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"""
4847 return _IMP_atom.CoulombPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
4849 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
4850 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"""
4851 return _IMP_atom.CoulombPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
4853 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
4854 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"""
4855 return _IMP_atom.CoulombPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
4857 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
4858 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"""
4859 return _IMP_atom.CoulombPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
4861 def get_version_info(self):
4862 r"""get_version_info(CoulombPairScore self) -> VersionInfo"""
4863 return _IMP_atom.CoulombPairScore_get_version_info(self)
4864 __swig_destroy__ = _IMP_atom.delete_CoulombPairScore
4867 r"""__str__(CoulombPairScore self) -> std::string"""
4868 return _IMP_atom.CoulombPairScore___str__(self)
4871 r"""__repr__(CoulombPairScore self) -> std::string"""
4872 return _IMP_atom.CoulombPairScore___repr__(self)
4876 return _object_cast_to_CoulombPairScore(o)
4879 def _get_jax(self, m, indexes, space):
4882 import jax.numpy
as jnp
4885 avogadro = 6.02214179e23
4886 electron_charge = 1.6021892e-19
4887 permittivity_vacuum = 8.854187818e-12
4889 factor = (avogadro * electron_charge * electron_charge *
4890 1.0e10 / permittivity_vacuum / kcal2joule /
4891 (4.0 * math.pi * self.get_relative_dielectric()))
4892 sf = self.get_smoothing_function().get_derived_object()
4895 smoothing_function = jax.vmap(sf._get_jax())
4897 xyzs = jm[
'xyz'][indexes]
4898 qs = jm[
'charge'][indexes]
4899 diff = xyzs[:,0] - xyzs[:,1]
4900 drs = space.distance(diff)
4901 scores = factor * jnp.prod(qs, axis=-1) / drs
4902 return smoothing_function(scores, drs)
4903 return self._wrap_jax(m, score, keys=[Charged.get_charge_key()])
4907 _IMP_atom.CoulombPairScore_swigregister(CoulombPairScore)
4908 class Domain(Hierarchy):
4909 r"""Proxy of C++ IMP::atom::Domain class."""
4911 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4913 def set_index_range(self, ir):
4914 r"""set_index_range(Domain self, IMP::IntRange ir)"""
4915 return _IMP_atom.Domain_set_index_range(self, ir)
4917 def get_index_range(self):
4918 r"""get_index_range(Domain self) -> IMP::IntRange"""
4919 return _IMP_atom.Domain_get_index_range(self)
4921 def __init__(self, *args):
4923 __init__(Domain self) -> Domain
4924 __init__(Domain self, Model m, ParticleIndex id) -> Domain
4925 __init__(Domain self, _ParticleAdaptor d) -> Domain
4927 _IMP_atom.Domain_swiginit(self, _IMP_atom.new_Domain(*args))
4930 def get_is_setup(*args):
4932 get_is_setup(Model m, ParticleIndex pi) -> bool
4933 get_is_setup(_ParticleAdaptor p) -> bool
4935 return _IMP_atom.Domain_get_is_setup(*args)
4937 def show(self, *args):
4938 r"""show(Domain self, _ostream out=std::cout)"""
4939 return _IMP_atom.Domain_show(self, *args)
4942 def setup_particle(*args):
4944 setup_particle(Model m, ParticleIndex pi, Domain other) -> Domain
4945 setup_particle(_ParticleAdaptor pa, Domain other) -> Domain
4946 setup_particle(Model m, ParticleIndex pi, IMP::IntRange residues) -> Domain
4947 setup_particle(_ParticleAdaptor pa, IMP::IntRange residues) -> Domain
4949 return _IMP_atom.Domain_setup_particle(*args)
4951 def add_attribute(self, *args):
4953 add_attribute(Domain self, FloatKey k, IMP::Float v, bool opt)
4954 add_attribute(Domain self, FloatKey a0, IMP::Float a1)
4955 add_attribute(Domain self, IntKey a0, IMP::Int a1)
4956 add_attribute(Domain self, FloatsKey a0, IMP::Floats a1)
4957 add_attribute(Domain self, IntsKey a0, IMP::Ints a1)
4958 add_attribute(Domain self, StringKey a0, IMP::String a1)
4959 add_attribute(Domain self, ParticleIndexKey a0, Particle a1)
4960 add_attribute(Domain self, ObjectKey a0, Object a1)
4961 add_attribute(Domain self, SparseFloatKey a0, IMP::Float a1)
4962 add_attribute(Domain self, SparseIntKey a0, IMP::Int a1)
4963 add_attribute(Domain self, SparseStringKey a0, IMP::String a1)
4964 add_attribute(Domain self, SparseParticleIndexKey a0, ParticleIndex a1)
4966 return _IMP_atom.Domain_add_attribute(self, *args)
4968 def get_value(self, *args):
4970 get_value(Domain self, FloatKey a0) -> IMP::Float
4971 get_value(Domain self, IntKey a0) -> IMP::Int
4972 get_value(Domain self, FloatsKey a0) -> IMP::Floats
4973 get_value(Domain self, IntsKey a0) -> IMP::Ints
4974 get_value(Domain self, StringKey a0) -> IMP::String
4975 get_value(Domain self, ParticleIndexKey a0) -> Particle
4976 get_value(Domain self, ObjectKey a0) -> Object
4977 get_value(Domain self, SparseFloatKey a0) -> IMP::Float
4978 get_value(Domain self, SparseIntKey a0) -> IMP::Int
4979 get_value(Domain self, SparseStringKey a0) -> IMP::String
4980 get_value(Domain self, SparseParticleIndexKey a0) -> ParticleIndex
4982 return _IMP_atom.Domain_get_value(self, *args)
4984 def set_value(self, *args):
4986 set_value(Domain self, FloatKey a0, IMP::Float a1)
4987 set_value(Domain self, IntKey a0, IMP::Int a1)
4988 set_value(Domain self, FloatsKey a0, IMP::Floats a1)
4989 set_value(Domain self, IntsKey a0, IMP::Ints a1)
4990 set_value(Domain self, StringKey a0, IMP::String a1)
4991 set_value(Domain self, ParticleIndexKey a0, Particle a1)
4992 set_value(Domain self, ObjectKey a0, Object a1)
4993 set_value(Domain self, SparseFloatKey a0, IMP::Float a1)
4994 set_value(Domain self, SparseIntKey a0, IMP::Int a1)
4995 set_value(Domain self, SparseStringKey a0, IMP::String a1)
4996 set_value(Domain self, SparseParticleIndexKey a0, ParticleIndex a1)
4998 return _IMP_atom.Domain_set_value(self, *args)
5000 def remove_attribute(self, *args):
5002 remove_attribute(Domain self, FloatKey a0)
5003 remove_attribute(Domain self, IntKey a0)
5004 remove_attribute(Domain self, FloatsKey a0)
5005 remove_attribute(Domain self, IntsKey a0)
5006 remove_attribute(Domain self, StringKey a0)
5007 remove_attribute(Domain self, ParticleIndexKey a0)
5008 remove_attribute(Domain self, ObjectKey a0)
5009 remove_attribute(Domain self, SparseFloatKey a0)
5010 remove_attribute(Domain self, SparseIntKey a0)
5011 remove_attribute(Domain self, SparseStringKey a0)
5012 remove_attribute(Domain self, SparseParticleIndexKey a0)
5014 return _IMP_atom.Domain_remove_attribute(self, *args)
5016 def has_attribute(self, *args):
5018 has_attribute(Domain self, FloatKey a0) -> bool
5019 has_attribute(Domain self, IntKey a0) -> bool
5020 has_attribute(Domain self, FloatsKey a0) -> bool
5021 has_attribute(Domain self, IntsKey a0) -> bool
5022 has_attribute(Domain self, StringKey a0) -> bool
5023 has_attribute(Domain self, ParticleIndexKey a0) -> bool
5024 has_attribute(Domain self, ObjectKey a0) -> bool
5025 has_attribute(Domain self, SparseFloatKey a0) -> bool
5026 has_attribute(Domain self, SparseIntKey a0) -> bool
5027 has_attribute(Domain self, SparseStringKey a0) -> bool
5028 has_attribute(Domain self, SparseParticleIndexKey a0) -> bool
5030 return _IMP_atom.Domain_has_attribute(self, *args)
5032 def get_derivative(self, a0):
5033 r"""get_derivative(Domain self, FloatKey a0) -> double"""
5034 return _IMP_atom.Domain_get_derivative(self, a0)
5037 r"""get_name(Domain self) -> std::string"""
5038 return _IMP_atom.Domain_get_name(self)
5040 def clear_caches(self):
5041 r"""clear_caches(Domain self)"""
5042 return _IMP_atom.Domain_clear_caches(self)
5044 def set_name(self, a0):
5045 r"""set_name(Domain self, std::string a0)"""
5046 return _IMP_atom.Domain_set_name(self, a0)
5049 r"""set_check_level(Domain self, IMP::CheckLevel a0)"""
5050 return _IMP_atom.Domain_set_check_level(self, a0)
5052 def add_to_derivative(self, a0, a1, a2):
5053 r"""add_to_derivative(Domain self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
5054 return _IMP_atom.Domain_add_to_derivative(self, a0, a1, a2)
5056 def set_is_optimized(self, a0, a1):
5057 r"""set_is_optimized(Domain self, FloatKey a0, bool a1)"""
5058 return _IMP_atom.Domain_set_is_optimized(self, a0, a1)
5060 def get_is_optimized(self, a0):
5061 r"""get_is_optimized(Domain self, FloatKey a0) -> bool"""
5062 return _IMP_atom.Domain_get_is_optimized(self, a0)
5065 r"""get_check_level(Domain self) -> IMP::CheckLevel"""
5066 return _IMP_atom.Domain_get_check_level(self)
5068 def __eq__(self, *args):
5070 __eq__(Domain self, Domain o) -> bool
5071 __eq__(Domain self, Particle d) -> bool
5073 return _IMP_atom.Domain___eq__(self, *args)
5075 def __ne__(self, *args):
5077 __ne__(Domain self, Domain o) -> bool
5078 __ne__(Domain self, Particle d) -> bool
5080 return _IMP_atom.Domain___ne__(self, *args)
5082 def __le__(self, *args):
5084 __le__(Domain self, Domain o) -> bool
5085 __le__(Domain self, Particle d) -> bool
5087 return _IMP_atom.Domain___le__(self, *args)
5089 def __lt__(self, *args):
5091 __lt__(Domain self, Domain o) -> bool
5092 __lt__(Domain self, Particle d) -> bool
5094 return _IMP_atom.Domain___lt__(self, *args)
5096 def __ge__(self, *args):
5098 __ge__(Domain self, Domain o) -> bool
5099 __ge__(Domain self, Particle d) -> bool
5101 return _IMP_atom.Domain___ge__(self, *args)
5103 def __gt__(self, *args):
5105 __gt__(Domain self, Domain o) -> bool
5106 __gt__(Domain self, Particle d) -> bool
5108 return _IMP_atom.Domain___gt__(self, *args)
5111 r"""__hash__(Domain self) -> std::size_t"""
5112 return _IMP_atom.Domain___hash__(self)
5115 r"""__str__(Domain self) -> std::string"""
5116 return _IMP_atom.Domain___str__(self)
5119 r"""__repr__(Domain self) -> std::string"""
5120 return _IMP_atom.Domain___repr__(self)
5122 def _get_as_binary(self):
5123 r"""_get_as_binary(Domain self) -> PyObject *"""
5124 return _IMP_atom.Domain__get_as_binary(self)
5126 def _set_from_binary(self, p):
5127 r"""_set_from_binary(Domain self, PyObject * p)"""
5128 return _IMP_atom.Domain__set_from_binary(self, p)
5130 def __getstate__(self):
5131 p = self._get_as_binary()
5132 if len(self.__dict__) > 1:
5133 d = self.__dict__.copy()
5138 def __setstate__(self, p):
5139 if not hasattr(self,
'this'):
5141 if isinstance(p, tuple):
5143 self.__dict__.update(d)
5144 return self._set_from_binary(p)
5146 __swig_destroy__ = _IMP_atom.delete_Domain
5149 _IMP_atom.Domain_swigregister(Domain)
5151 r"""Proxy of C++ IMP::atom::LennardJonesType class."""
5153 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5155 def __init__(self, *args):
5156 r"""__init__(LennardJonesType self, double well_depth, double radius, std::string name="LennardJonesType%1%") -> LennardJonesType"""
5157 _IMP_atom.LennardJonesType_swiginit(self, _IMP_atom.new_LennardJonesType(*args))
5159 def get_well_depth(self):
5160 r"""get_well_depth(LennardJonesType self) -> double"""
5161 return _IMP_atom.LennardJonesType_get_well_depth(self)
5163 def set_well_depth(self, d):
5164 r"""set_well_depth(LennardJonesType self, double d)"""
5165 return _IMP_atom.LennardJonesType_set_well_depth(self, d)
5167 def get_radius(self):
5168 r"""get_radius(LennardJonesType self) -> double"""
5169 return _IMP_atom.LennardJonesType_get_radius(self)
5171 def set_radius(self, r):
5172 r"""set_radius(LennardJonesType self, double r)"""
5173 return _IMP_atom.LennardJonesType_set_radius(self, r)
5176 r"""get_index(LennardJonesType self) -> int"""
5177 return _IMP_atom.LennardJonesType_get_index(self)
5179 def get_version_info(self):
5180 r"""get_version_info(LennardJonesType self) -> VersionInfo"""
5181 return _IMP_atom.LennardJonesType_get_version_info(self)
5182 __swig_destroy__ = _IMP_atom.delete_LennardJonesType
5185 r"""__str__(LennardJonesType self) -> std::string"""
5186 return _IMP_atom.LennardJonesType___str__(self)
5189 r"""__repr__(LennardJonesType self) -> std::string"""
5190 return _IMP_atom.LennardJonesType___repr__(self)
5194 return _object_cast_to_LennardJonesType(o)
5198 _IMP_atom.LennardJonesType_swigregister(LennardJonesType)
5200 r"""Proxy of C++ IMP::atom::LennardJonesTyped class."""
5202 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5204 def __init__(self, *args):
5206 __init__(LennardJonesTyped self) -> LennardJonesTyped
5207 __init__(LennardJonesTyped self, Model m, ParticleIndex id) -> LennardJonesTyped
5208 __init__(LennardJonesTyped self, _ParticleAdaptor d) -> LennardJonesTyped
5210 _IMP_atom.LennardJonesTyped_swiginit(self, _IMP_atom.new_LennardJonesTyped(*args))
5212 def show(self, *args):
5213 r"""show(LennardJonesTyped self, _ostream out=std::cout)"""
5214 return _IMP_atom.LennardJonesTyped_show(self, *args)
5217 def setup_particle(*args):
5219 setup_particle(Model m, ParticleIndex pi, LennardJonesType type) -> LennardJonesTyped
5220 setup_particle(_ParticleAdaptor pa, LennardJonesType type) -> LennardJonesTyped
5222 return _IMP_atom.LennardJonesTyped_setup_particle(*args)
5225 def get_is_setup(*args):
5227 get_is_setup(_ParticleAdaptor p) -> bool
5228 get_is_setup(Model m, ParticleIndex pi) -> bool
5230 return _IMP_atom.LennardJonesTyped_get_is_setup(*args)
5232 def set_type(self, type):
5233 r"""set_type(LennardJonesTyped self, LennardJonesType type)"""
5234 return _IMP_atom.LennardJonesTyped_set_type(self, type)
5237 r"""get_type(LennardJonesTyped self) -> LennardJonesType"""
5238 return _IMP_atom.LennardJonesTyped_get_type(self)
5241 r"""get_index(LennardJonesTyped self) -> int"""
5242 return _IMP_atom.LennardJonesTyped_get_index(self)
5244 def get_well_depth(self):
5245 r"""get_well_depth(LennardJonesTyped self) -> double"""
5246 return _IMP_atom.LennardJonesTyped_get_well_depth(self)
5248 def get_radius(self):
5249 r"""get_radius(LennardJonesTyped self) -> double"""
5250 return _IMP_atom.LennardJonesTyped_get_radius(self)
5254 r"""get_type_key() -> IntKey"""
5255 return _IMP_atom.LennardJonesTyped_get_type_key()
5257 def add_attribute(self, *args):
5259 add_attribute(LennardJonesTyped self, FloatKey k, IMP::Float v, bool opt)
5260 add_attribute(LennardJonesTyped self, FloatKey a0, IMP::Float a1)
5261 add_attribute(LennardJonesTyped self, IntKey a0, IMP::Int a1)
5262 add_attribute(LennardJonesTyped self, FloatsKey a0, IMP::Floats a1)
5263 add_attribute(LennardJonesTyped self, IntsKey a0, IMP::Ints a1)
5264 add_attribute(LennardJonesTyped self, StringKey a0, IMP::String a1)
5265 add_attribute(LennardJonesTyped self, ParticleIndexKey a0, Particle a1)
5266 add_attribute(LennardJonesTyped self, ObjectKey a0, Object a1)
5267 add_attribute(LennardJonesTyped self, SparseFloatKey a0, IMP::Float a1)
5268 add_attribute(LennardJonesTyped self, SparseIntKey a0, IMP::Int a1)
5269 add_attribute(LennardJonesTyped self, SparseStringKey a0, IMP::String a1)
5270 add_attribute(LennardJonesTyped self, SparseParticleIndexKey a0, ParticleIndex a1)
5272 return _IMP_atom.LennardJonesTyped_add_attribute(self, *args)
5274 def get_value(self, *args):
5276 get_value(LennardJonesTyped self, FloatKey a0) -> IMP::Float
5277 get_value(LennardJonesTyped self, IntKey a0) -> IMP::Int
5278 get_value(LennardJonesTyped self, FloatsKey a0) -> IMP::Floats
5279 get_value(LennardJonesTyped self, IntsKey a0) -> IMP::Ints
5280 get_value(LennardJonesTyped self, StringKey a0) -> IMP::String
5281 get_value(LennardJonesTyped self, ParticleIndexKey a0) -> Particle
5282 get_value(LennardJonesTyped self, ObjectKey a0) -> Object
5283 get_value(LennardJonesTyped self, SparseFloatKey a0) -> IMP::Float
5284 get_value(LennardJonesTyped self, SparseIntKey a0) -> IMP::Int
5285 get_value(LennardJonesTyped self, SparseStringKey a0) -> IMP::String
5286 get_value(LennardJonesTyped self, SparseParticleIndexKey a0) -> ParticleIndex
5288 return _IMP_atom.LennardJonesTyped_get_value(self, *args)
5290 def set_value(self, *args):
5292 set_value(LennardJonesTyped self, FloatKey a0, IMP::Float a1)
5293 set_value(LennardJonesTyped self, IntKey a0, IMP::Int a1)
5294 set_value(LennardJonesTyped self, FloatsKey a0, IMP::Floats a1)
5295 set_value(LennardJonesTyped self, IntsKey a0, IMP::Ints a1)
5296 set_value(LennardJonesTyped self, StringKey a0, IMP::String a1)
5297 set_value(LennardJonesTyped self, ParticleIndexKey a0, Particle a1)
5298 set_value(LennardJonesTyped self, ObjectKey a0, Object a1)
5299 set_value(LennardJonesTyped self, SparseFloatKey a0, IMP::Float a1)
5300 set_value(LennardJonesTyped self, SparseIntKey a0, IMP::Int a1)
5301 set_value(LennardJonesTyped self, SparseStringKey a0, IMP::String a1)
5302 set_value(LennardJonesTyped self, SparseParticleIndexKey a0, ParticleIndex a1)
5304 return _IMP_atom.LennardJonesTyped_set_value(self, *args)
5306 def remove_attribute(self, *args):
5308 remove_attribute(LennardJonesTyped self, FloatKey a0)
5309 remove_attribute(LennardJonesTyped self, IntKey a0)
5310 remove_attribute(LennardJonesTyped self, FloatsKey a0)
5311 remove_attribute(LennardJonesTyped self, IntsKey a0)
5312 remove_attribute(LennardJonesTyped self, StringKey a0)
5313 remove_attribute(LennardJonesTyped self, ParticleIndexKey a0)
5314 remove_attribute(LennardJonesTyped self, ObjectKey a0)
5315 remove_attribute(LennardJonesTyped self, SparseFloatKey a0)
5316 remove_attribute(LennardJonesTyped self, SparseIntKey a0)
5317 remove_attribute(LennardJonesTyped self, SparseStringKey a0)
5318 remove_attribute(LennardJonesTyped self, SparseParticleIndexKey a0)
5320 return _IMP_atom.LennardJonesTyped_remove_attribute(self, *args)
5322 def has_attribute(self, *args):
5324 has_attribute(LennardJonesTyped self, FloatKey a0) -> bool
5325 has_attribute(LennardJonesTyped self, IntKey a0) -> bool
5326 has_attribute(LennardJonesTyped self, FloatsKey a0) -> bool
5327 has_attribute(LennardJonesTyped self, IntsKey a0) -> bool
5328 has_attribute(LennardJonesTyped self, StringKey a0) -> bool
5329 has_attribute(LennardJonesTyped self, ParticleIndexKey a0) -> bool
5330 has_attribute(LennardJonesTyped self, ObjectKey a0) -> bool
5331 has_attribute(LennardJonesTyped self, SparseFloatKey a0) -> bool
5332 has_attribute(LennardJonesTyped self, SparseIntKey a0) -> bool
5333 has_attribute(LennardJonesTyped self, SparseStringKey a0) -> bool
5334 has_attribute(LennardJonesTyped self, SparseParticleIndexKey a0) -> bool
5336 return _IMP_atom.LennardJonesTyped_has_attribute(self, *args)
5338 def get_derivative(self, a0):
5339 r"""get_derivative(LennardJonesTyped self, FloatKey a0) -> double"""
5340 return _IMP_atom.LennardJonesTyped_get_derivative(self, a0)
5343 r"""get_name(LennardJonesTyped self) -> std::string"""
5344 return _IMP_atom.LennardJonesTyped_get_name(self)
5346 def clear_caches(self):
5347 r"""clear_caches(LennardJonesTyped self)"""
5348 return _IMP_atom.LennardJonesTyped_clear_caches(self)
5350 def set_name(self, a0):
5351 r"""set_name(LennardJonesTyped self, std::string a0)"""
5352 return _IMP_atom.LennardJonesTyped_set_name(self, a0)
5355 r"""set_check_level(LennardJonesTyped self, IMP::CheckLevel a0)"""
5356 return _IMP_atom.LennardJonesTyped_set_check_level(self, a0)
5358 def add_to_derivative(self, a0, a1, a2):
5359 r"""add_to_derivative(LennardJonesTyped self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
5360 return _IMP_atom.LennardJonesTyped_add_to_derivative(self, a0, a1, a2)
5362 def set_is_optimized(self, a0, a1):
5363 r"""set_is_optimized(LennardJonesTyped self, FloatKey a0, bool a1)"""
5364 return _IMP_atom.LennardJonesTyped_set_is_optimized(self, a0, a1)
5366 def get_is_optimized(self, a0):
5367 r"""get_is_optimized(LennardJonesTyped self, FloatKey a0) -> bool"""
5368 return _IMP_atom.LennardJonesTyped_get_is_optimized(self, a0)
5371 r"""get_check_level(LennardJonesTyped self) -> IMP::CheckLevel"""
5372 return _IMP_atom.LennardJonesTyped_get_check_level(self)
5374 def __eq__(self, *args):
5376 __eq__(LennardJonesTyped self, LennardJonesTyped o) -> bool
5377 __eq__(LennardJonesTyped self, Particle d) -> bool
5379 return _IMP_atom.LennardJonesTyped___eq__(self, *args)
5381 def __ne__(self, *args):
5383 __ne__(LennardJonesTyped self, LennardJonesTyped o) -> bool
5384 __ne__(LennardJonesTyped self, Particle d) -> bool
5386 return _IMP_atom.LennardJonesTyped___ne__(self, *args)
5388 def __le__(self, *args):
5390 __le__(LennardJonesTyped self, LennardJonesTyped o) -> bool
5391 __le__(LennardJonesTyped self, Particle d) -> bool
5393 return _IMP_atom.LennardJonesTyped___le__(self, *args)
5395 def __lt__(self, *args):
5397 __lt__(LennardJonesTyped self, LennardJonesTyped o) -> bool
5398 __lt__(LennardJonesTyped self, Particle d) -> bool
5400 return _IMP_atom.LennardJonesTyped___lt__(self, *args)
5402 def __ge__(self, *args):
5404 __ge__(LennardJonesTyped self, LennardJonesTyped o) -> bool
5405 __ge__(LennardJonesTyped self, Particle d) -> bool
5407 return _IMP_atom.LennardJonesTyped___ge__(self, *args)
5409 def __gt__(self, *args):
5411 __gt__(LennardJonesTyped self, LennardJonesTyped o) -> bool
5412 __gt__(LennardJonesTyped self, Particle d) -> bool
5414 return _IMP_atom.LennardJonesTyped___gt__(self, *args)
5417 r"""__hash__(LennardJonesTyped self) -> std::size_t"""
5418 return _IMP_atom.LennardJonesTyped___hash__(self)
5421 r"""__str__(LennardJonesTyped self) -> std::string"""
5422 return _IMP_atom.LennardJonesTyped___str__(self)
5425 r"""__repr__(LennardJonesTyped self) -> std::string"""
5426 return _IMP_atom.LennardJonesTyped___repr__(self)
5428 def _get_as_binary(self):
5429 r"""_get_as_binary(LennardJonesTyped self) -> PyObject *"""
5430 return _IMP_atom.LennardJonesTyped__get_as_binary(self)
5432 def _set_from_binary(self, p):
5433 r"""_set_from_binary(LennardJonesTyped self, PyObject * p)"""
5434 return _IMP_atom.LennardJonesTyped__set_from_binary(self, p)
5436 def __getstate__(self):
5437 p = self._get_as_binary()
5438 if len(self.__dict__) > 1:
5439 d = self.__dict__.copy()
5444 def __setstate__(self, p):
5445 if not hasattr(self,
'this'):
5447 if isinstance(p, tuple):
5449 self.__dict__.update(d)
5450 return self._set_from_binary(p)
5452 __swig_destroy__ = _IMP_atom.delete_LennardJonesTyped
5455 _IMP_atom.LennardJonesTyped_swigregister(LennardJonesTyped)
5457 r"""Proxy of C++ IMP::atom::LinearVelocity class."""
5459 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5462 def get_velocity_key():
5463 r"""get_velocity_key() -> Vector3DKey"""
5464 return _IMP_atom.LinearVelocity_get_velocity_key()
5466 def __init__(self, *args):
5468 __init__(LinearVelocity self) -> LinearVelocity
5469 __init__(LinearVelocity self, Model m, ParticleIndex id) -> LinearVelocity
5470 __init__(LinearVelocity self, _ParticleAdaptor d) -> LinearVelocity
5472 _IMP_atom.LinearVelocity_swiginit(self, _IMP_atom.new_LinearVelocity(*args))
5475 def get_is_setup(*args):
5477 get_is_setup(Model m, ParticleIndex pi) -> bool
5478 get_is_setup(_ParticleAdaptor p) -> bool
5480 return _IMP_atom.LinearVelocity_get_is_setup(*args)
5482 def show(self, *args):
5483 r"""show(LinearVelocity self, _ostream out=std::cout)"""
5484 return _IMP_atom.LinearVelocity_show(self, *args)
5487 def setup_particle(*args):
5489 setup_particle(Model m, ParticleIndex pi) -> LinearVelocity
5490 setup_particle(_ParticleAdaptor pa) -> LinearVelocity
5491 setup_particle(Model m, ParticleIndex pi, Vector3D v) -> LinearVelocity
5492 setup_particle(_ParticleAdaptor pa, Vector3D v) -> LinearVelocity
5494 return _IMP_atom.LinearVelocity_setup_particle(*args)
5496 def set_velocity(self, v):
5497 r"""set_velocity(LinearVelocity self, Vector3D v)"""
5498 return _IMP_atom.LinearVelocity_set_velocity(self, v)
5500 def get_velocity(self):
5501 r"""get_velocity(LinearVelocity self) -> Vector3D"""
5502 return _IMP_atom.LinearVelocity_get_velocity(self)
5504 def add_attribute(self, *args):
5506 add_attribute(LinearVelocity self, FloatKey k, IMP::Float v, bool opt)
5507 add_attribute(LinearVelocity self, FloatKey a0, IMP::Float a1)
5508 add_attribute(LinearVelocity self, IntKey a0, IMP::Int a1)
5509 add_attribute(LinearVelocity self, FloatsKey a0, IMP::Floats a1)
5510 add_attribute(LinearVelocity self, IntsKey a0, IMP::Ints a1)
5511 add_attribute(LinearVelocity self, StringKey a0, IMP::String a1)
5512 add_attribute(LinearVelocity self, ParticleIndexKey a0, Particle a1)
5513 add_attribute(LinearVelocity self, ObjectKey a0, Object a1)
5514 add_attribute(LinearVelocity self, SparseFloatKey a0, IMP::Float a1)
5515 add_attribute(LinearVelocity self, SparseIntKey a0, IMP::Int a1)
5516 add_attribute(LinearVelocity self, SparseStringKey a0, IMP::String a1)
5517 add_attribute(LinearVelocity self, SparseParticleIndexKey a0, ParticleIndex a1)
5519 return _IMP_atom.LinearVelocity_add_attribute(self, *args)
5521 def get_value(self, *args):
5523 get_value(LinearVelocity self, FloatKey a0) -> IMP::Float
5524 get_value(LinearVelocity self, IntKey a0) -> IMP::Int
5525 get_value(LinearVelocity self, FloatsKey a0) -> IMP::Floats
5526 get_value(LinearVelocity self, IntsKey a0) -> IMP::Ints
5527 get_value(LinearVelocity self, StringKey a0) -> IMP::String
5528 get_value(LinearVelocity self, ParticleIndexKey a0) -> Particle
5529 get_value(LinearVelocity self, ObjectKey a0) -> Object
5530 get_value(LinearVelocity self, SparseFloatKey a0) -> IMP::Float
5531 get_value(LinearVelocity self, SparseIntKey a0) -> IMP::Int
5532 get_value(LinearVelocity self, SparseStringKey a0) -> IMP::String
5533 get_value(LinearVelocity self, SparseParticleIndexKey a0) -> ParticleIndex
5535 return _IMP_atom.LinearVelocity_get_value(self, *args)
5537 def set_value(self, *args):
5539 set_value(LinearVelocity self, FloatKey a0, IMP::Float a1)
5540 set_value(LinearVelocity self, IntKey a0, IMP::Int a1)
5541 set_value(LinearVelocity self, FloatsKey a0, IMP::Floats a1)
5542 set_value(LinearVelocity self, IntsKey a0, IMP::Ints a1)
5543 set_value(LinearVelocity self, StringKey a0, IMP::String a1)
5544 set_value(LinearVelocity self, ParticleIndexKey a0, Particle a1)
5545 set_value(LinearVelocity self, ObjectKey a0, Object a1)
5546 set_value(LinearVelocity self, SparseFloatKey a0, IMP::Float a1)
5547 set_value(LinearVelocity self, SparseIntKey a0, IMP::Int a1)
5548 set_value(LinearVelocity self, SparseStringKey a0, IMP::String a1)
5549 set_value(LinearVelocity self, SparseParticleIndexKey a0, ParticleIndex a1)
5551 return _IMP_atom.LinearVelocity_set_value(self, *args)
5553 def remove_attribute(self, *args):
5555 remove_attribute(LinearVelocity self, FloatKey a0)
5556 remove_attribute(LinearVelocity self, IntKey a0)
5557 remove_attribute(LinearVelocity self, FloatsKey a0)
5558 remove_attribute(LinearVelocity self, IntsKey a0)
5559 remove_attribute(LinearVelocity self, StringKey a0)
5560 remove_attribute(LinearVelocity self, ParticleIndexKey a0)
5561 remove_attribute(LinearVelocity self, ObjectKey a0)
5562 remove_attribute(LinearVelocity self, SparseFloatKey a0)
5563 remove_attribute(LinearVelocity self, SparseIntKey a0)
5564 remove_attribute(LinearVelocity self, SparseStringKey a0)
5565 remove_attribute(LinearVelocity self, SparseParticleIndexKey a0)
5567 return _IMP_atom.LinearVelocity_remove_attribute(self, *args)
5569 def has_attribute(self, *args):
5571 has_attribute(LinearVelocity self, FloatKey a0) -> bool
5572 has_attribute(LinearVelocity self, IntKey a0) -> bool
5573 has_attribute(LinearVelocity self, FloatsKey a0) -> bool
5574 has_attribute(LinearVelocity self, IntsKey a0) -> bool
5575 has_attribute(LinearVelocity self, StringKey a0) -> bool
5576 has_attribute(LinearVelocity self, ParticleIndexKey a0) -> bool
5577 has_attribute(LinearVelocity self, ObjectKey a0) -> bool
5578 has_attribute(LinearVelocity self, SparseFloatKey a0) -> bool
5579 has_attribute(LinearVelocity self, SparseIntKey a0) -> bool
5580 has_attribute(LinearVelocity self, SparseStringKey a0) -> bool
5581 has_attribute(LinearVelocity self, SparseParticleIndexKey a0) -> bool
5583 return _IMP_atom.LinearVelocity_has_attribute(self, *args)
5585 def get_derivative(self, a0):
5586 r"""get_derivative(LinearVelocity self, FloatKey a0) -> double"""
5587 return _IMP_atom.LinearVelocity_get_derivative(self, a0)
5590 r"""get_name(LinearVelocity self) -> std::string"""
5591 return _IMP_atom.LinearVelocity_get_name(self)
5593 def clear_caches(self):
5594 r"""clear_caches(LinearVelocity self)"""
5595 return _IMP_atom.LinearVelocity_clear_caches(self)
5597 def set_name(self, a0):
5598 r"""set_name(LinearVelocity self, std::string a0)"""
5599 return _IMP_atom.LinearVelocity_set_name(self, a0)
5602 r"""set_check_level(LinearVelocity self, IMP::CheckLevel a0)"""
5603 return _IMP_atom.LinearVelocity_set_check_level(self, a0)
5605 def add_to_derivative(self, a0, a1, a2):
5606 r"""add_to_derivative(LinearVelocity self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
5607 return _IMP_atom.LinearVelocity_add_to_derivative(self, a0, a1, a2)
5609 def set_is_optimized(self, a0, a1):
5610 r"""set_is_optimized(LinearVelocity self, FloatKey a0, bool a1)"""
5611 return _IMP_atom.LinearVelocity_set_is_optimized(self, a0, a1)
5613 def get_is_optimized(self, a0):
5614 r"""get_is_optimized(LinearVelocity self, FloatKey a0) -> bool"""
5615 return _IMP_atom.LinearVelocity_get_is_optimized(self, a0)
5618 r"""get_check_level(LinearVelocity self) -> IMP::CheckLevel"""
5619 return _IMP_atom.LinearVelocity_get_check_level(self)
5621 def __eq__(self, *args):
5623 __eq__(LinearVelocity self, LinearVelocity o) -> bool
5624 __eq__(LinearVelocity self, Particle d) -> bool
5626 return _IMP_atom.LinearVelocity___eq__(self, *args)
5628 def __ne__(self, *args):
5630 __ne__(LinearVelocity self, LinearVelocity o) -> bool
5631 __ne__(LinearVelocity self, Particle d) -> bool
5633 return _IMP_atom.LinearVelocity___ne__(self, *args)
5635 def __le__(self, *args):
5637 __le__(LinearVelocity self, LinearVelocity o) -> bool
5638 __le__(LinearVelocity self, Particle d) -> bool
5640 return _IMP_atom.LinearVelocity___le__(self, *args)
5642 def __lt__(self, *args):
5644 __lt__(LinearVelocity self, LinearVelocity o) -> bool
5645 __lt__(LinearVelocity self, Particle d) -> bool
5647 return _IMP_atom.LinearVelocity___lt__(self, *args)
5649 def __ge__(self, *args):
5651 __ge__(LinearVelocity self, LinearVelocity o) -> bool
5652 __ge__(LinearVelocity self, Particle d) -> bool
5654 return _IMP_atom.LinearVelocity___ge__(self, *args)
5656 def __gt__(self, *args):
5658 __gt__(LinearVelocity self, LinearVelocity o) -> bool
5659 __gt__(LinearVelocity self, Particle d) -> bool
5661 return _IMP_atom.LinearVelocity___gt__(self, *args)
5664 r"""__hash__(LinearVelocity self) -> std::size_t"""
5665 return _IMP_atom.LinearVelocity___hash__(self)
5668 r"""__str__(LinearVelocity self) -> std::string"""
5669 return _IMP_atom.LinearVelocity___str__(self)
5672 r"""__repr__(LinearVelocity self) -> std::string"""
5673 return _IMP_atom.LinearVelocity___repr__(self)
5675 def _get_as_binary(self):
5676 r"""_get_as_binary(LinearVelocity self) -> PyObject *"""
5677 return _IMP_atom.LinearVelocity__get_as_binary(self)
5679 def _set_from_binary(self, p):
5680 r"""_set_from_binary(LinearVelocity self, PyObject * p)"""
5681 return _IMP_atom.LinearVelocity__set_from_binary(self, p)
5683 def __getstate__(self):
5684 p = self._get_as_binary()
5685 if len(self.__dict__) > 1:
5686 d = self.__dict__.copy()
5691 def __setstate__(self, p):
5692 if not hasattr(self,
'this'):
5694 if isinstance(p, tuple):
5696 self.__dict__.update(d)
5697 return self._set_from_binary(p)
5699 __swig_destroy__ = _IMP_atom.delete_LinearVelocity
5702 _IMP_atom.LinearVelocity_swigregister(LinearVelocity)
5704 r"""Proxy of C++ IMP::atom::AngularVelocity class."""
5706 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5708 def __init__(self, *args):
5710 __init__(AngularVelocity self) -> AngularVelocity
5711 __init__(AngularVelocity self, Model m, ParticleIndex id) -> AngularVelocity
5712 __init__(AngularVelocity self, _ParticleAdaptor d) -> AngularVelocity
5714 _IMP_atom.AngularVelocity_swiginit(self, _IMP_atom.new_AngularVelocity(*args))
5717 def get_is_setup(*args):
5719 get_is_setup(Model m, ParticleIndex pi) -> bool
5720 get_is_setup(_ParticleAdaptor p) -> bool
5722 return _IMP_atom.AngularVelocity_get_is_setup(*args)
5724 def show(self, *args):
5725 r"""show(AngularVelocity self, _ostream out=std::cout)"""
5726 return _IMP_atom.AngularVelocity_show(self, *args)
5729 def setup_particle(*args):
5731 setup_particle(Model m, ParticleIndex pi) -> AngularVelocity
5732 setup_particle(_ParticleAdaptor pa) -> AngularVelocity
5733 setup_particle(Model m, ParticleIndex pi, Vector4D v) -> AngularVelocity
5734 setup_particle(_ParticleAdaptor pa, Vector4D v) -> AngularVelocity
5736 return _IMP_atom.AngularVelocity_setup_particle(*args)
5738 def set_velocity(self, v):
5739 r"""set_velocity(AngularVelocity self, Vector4D v)"""
5740 return _IMP_atom.AngularVelocity_set_velocity(self, v)
5742 def get_velocity(self):
5743 r"""get_velocity(AngularVelocity self) -> Vector4D"""
5744 return _IMP_atom.AngularVelocity_get_velocity(self)
5746 def add_attribute(self, *args):
5748 add_attribute(AngularVelocity self, FloatKey k, IMP::Float v, bool opt)
5749 add_attribute(AngularVelocity self, FloatKey a0, IMP::Float a1)
5750 add_attribute(AngularVelocity self, IntKey a0, IMP::Int a1)
5751 add_attribute(AngularVelocity self, FloatsKey a0, IMP::Floats a1)
5752 add_attribute(AngularVelocity self, IntsKey a0, IMP::Ints a1)
5753 add_attribute(AngularVelocity self, StringKey a0, IMP::String a1)
5754 add_attribute(AngularVelocity self, ParticleIndexKey a0, Particle a1)
5755 add_attribute(AngularVelocity self, ObjectKey a0, Object a1)
5756 add_attribute(AngularVelocity self, SparseFloatKey a0, IMP::Float a1)
5757 add_attribute(AngularVelocity self, SparseIntKey a0, IMP::Int a1)
5758 add_attribute(AngularVelocity self, SparseStringKey a0, IMP::String a1)
5759 add_attribute(AngularVelocity self, SparseParticleIndexKey a0, ParticleIndex a1)
5761 return _IMP_atom.AngularVelocity_add_attribute(self, *args)
5763 def get_value(self, *args):
5765 get_value(AngularVelocity self, FloatKey a0) -> IMP::Float
5766 get_value(AngularVelocity self, IntKey a0) -> IMP::Int
5767 get_value(AngularVelocity self, FloatsKey a0) -> IMP::Floats
5768 get_value(AngularVelocity self, IntsKey a0) -> IMP::Ints
5769 get_value(AngularVelocity self, StringKey a0) -> IMP::String
5770 get_value(AngularVelocity self, ParticleIndexKey a0) -> Particle
5771 get_value(AngularVelocity self, ObjectKey a0) -> Object
5772 get_value(AngularVelocity self, SparseFloatKey a0) -> IMP::Float
5773 get_value(AngularVelocity self, SparseIntKey a0) -> IMP::Int
5774 get_value(AngularVelocity self, SparseStringKey a0) -> IMP::String
5775 get_value(AngularVelocity self, SparseParticleIndexKey a0) -> ParticleIndex
5777 return _IMP_atom.AngularVelocity_get_value(self, *args)
5779 def set_value(self, *args):
5781 set_value(AngularVelocity self, FloatKey a0, IMP::Float a1)
5782 set_value(AngularVelocity self, IntKey a0, IMP::Int a1)
5783 set_value(AngularVelocity self, FloatsKey a0, IMP::Floats a1)
5784 set_value(AngularVelocity self, IntsKey a0, IMP::Ints a1)
5785 set_value(AngularVelocity self, StringKey a0, IMP::String a1)
5786 set_value(AngularVelocity self, ParticleIndexKey a0, Particle a1)
5787 set_value(AngularVelocity self, ObjectKey a0, Object a1)
5788 set_value(AngularVelocity self, SparseFloatKey a0, IMP::Float a1)
5789 set_value(AngularVelocity self, SparseIntKey a0, IMP::Int a1)
5790 set_value(AngularVelocity self, SparseStringKey a0, IMP::String a1)
5791 set_value(AngularVelocity self, SparseParticleIndexKey a0, ParticleIndex a1)
5793 return _IMP_atom.AngularVelocity_set_value(self, *args)
5795 def remove_attribute(self, *args):
5797 remove_attribute(AngularVelocity self, FloatKey a0)
5798 remove_attribute(AngularVelocity self, IntKey a0)
5799 remove_attribute(AngularVelocity self, FloatsKey a0)
5800 remove_attribute(AngularVelocity self, IntsKey a0)
5801 remove_attribute(AngularVelocity self, StringKey a0)
5802 remove_attribute(AngularVelocity self, ParticleIndexKey a0)
5803 remove_attribute(AngularVelocity self, ObjectKey a0)
5804 remove_attribute(AngularVelocity self, SparseFloatKey a0)
5805 remove_attribute(AngularVelocity self, SparseIntKey a0)
5806 remove_attribute(AngularVelocity self, SparseStringKey a0)
5807 remove_attribute(AngularVelocity self, SparseParticleIndexKey a0)
5809 return _IMP_atom.AngularVelocity_remove_attribute(self, *args)
5811 def has_attribute(self, *args):
5813 has_attribute(AngularVelocity self, FloatKey a0) -> bool
5814 has_attribute(AngularVelocity self, IntKey a0) -> bool
5815 has_attribute(AngularVelocity self, FloatsKey a0) -> bool
5816 has_attribute(AngularVelocity self, IntsKey a0) -> bool
5817 has_attribute(AngularVelocity self, StringKey a0) -> bool
5818 has_attribute(AngularVelocity self, ParticleIndexKey a0) -> bool
5819 has_attribute(AngularVelocity self, ObjectKey a0) -> bool
5820 has_attribute(AngularVelocity self, SparseFloatKey a0) -> bool
5821 has_attribute(AngularVelocity self, SparseIntKey a0) -> bool
5822 has_attribute(AngularVelocity self, SparseStringKey a0) -> bool
5823 has_attribute(AngularVelocity self, SparseParticleIndexKey a0) -> bool
5825 return _IMP_atom.AngularVelocity_has_attribute(self, *args)
5827 def get_derivative(self, a0):
5828 r"""get_derivative(AngularVelocity self, FloatKey a0) -> double"""
5829 return _IMP_atom.AngularVelocity_get_derivative(self, a0)
5832 r"""get_name(AngularVelocity self) -> std::string"""
5833 return _IMP_atom.AngularVelocity_get_name(self)
5835 def clear_caches(self):
5836 r"""clear_caches(AngularVelocity self)"""
5837 return _IMP_atom.AngularVelocity_clear_caches(self)
5839 def set_name(self, a0):
5840 r"""set_name(AngularVelocity self, std::string a0)"""
5841 return _IMP_atom.AngularVelocity_set_name(self, a0)
5844 r"""set_check_level(AngularVelocity self, IMP::CheckLevel a0)"""
5845 return _IMP_atom.AngularVelocity_set_check_level(self, a0)
5847 def add_to_derivative(self, a0, a1, a2):
5848 r"""add_to_derivative(AngularVelocity self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
5849 return _IMP_atom.AngularVelocity_add_to_derivative(self, a0, a1, a2)
5851 def set_is_optimized(self, a0, a1):
5852 r"""set_is_optimized(AngularVelocity self, FloatKey a0, bool a1)"""
5853 return _IMP_atom.AngularVelocity_set_is_optimized(self, a0, a1)
5855 def get_is_optimized(self, a0):
5856 r"""get_is_optimized(AngularVelocity self, FloatKey a0) -> bool"""
5857 return _IMP_atom.AngularVelocity_get_is_optimized(self, a0)
5860 r"""get_check_level(AngularVelocity self) -> IMP::CheckLevel"""
5861 return _IMP_atom.AngularVelocity_get_check_level(self)
5863 def __eq__(self, *args):
5865 __eq__(AngularVelocity self, AngularVelocity o) -> bool
5866 __eq__(AngularVelocity self, Particle d) -> bool
5868 return _IMP_atom.AngularVelocity___eq__(self, *args)
5870 def __ne__(self, *args):
5872 __ne__(AngularVelocity self, AngularVelocity o) -> bool
5873 __ne__(AngularVelocity self, Particle d) -> bool
5875 return _IMP_atom.AngularVelocity___ne__(self, *args)
5877 def __le__(self, *args):
5879 __le__(AngularVelocity self, AngularVelocity o) -> bool
5880 __le__(AngularVelocity self, Particle d) -> bool
5882 return _IMP_atom.AngularVelocity___le__(self, *args)
5884 def __lt__(self, *args):
5886 __lt__(AngularVelocity self, AngularVelocity o) -> bool
5887 __lt__(AngularVelocity self, Particle d) -> bool
5889 return _IMP_atom.AngularVelocity___lt__(self, *args)
5891 def __ge__(self, *args):
5893 __ge__(AngularVelocity self, AngularVelocity o) -> bool
5894 __ge__(AngularVelocity self, Particle d) -> bool
5896 return _IMP_atom.AngularVelocity___ge__(self, *args)
5898 def __gt__(self, *args):
5900 __gt__(AngularVelocity self, AngularVelocity o) -> bool
5901 __gt__(AngularVelocity self, Particle d) -> bool
5903 return _IMP_atom.AngularVelocity___gt__(self, *args)
5906 r"""__hash__(AngularVelocity self) -> std::size_t"""
5907 return _IMP_atom.AngularVelocity___hash__(self)
5910 r"""__str__(AngularVelocity self) -> std::string"""
5911 return _IMP_atom.AngularVelocity___str__(self)
5914 r"""__repr__(AngularVelocity self) -> std::string"""
5915 return _IMP_atom.AngularVelocity___repr__(self)
5917 def _get_as_binary(self):
5918 r"""_get_as_binary(AngularVelocity self) -> PyObject *"""
5919 return _IMP_atom.AngularVelocity__get_as_binary(self)
5921 def _set_from_binary(self, p):
5922 r"""_set_from_binary(AngularVelocity self, PyObject * p)"""
5923 return _IMP_atom.AngularVelocity__set_from_binary(self, p)
5925 def __getstate__(self):
5926 p = self._get_as_binary()
5927 if len(self.__dict__) > 1:
5928 d = self.__dict__.copy()
5933 def __setstate__(self, p):
5934 if not hasattr(self,
'this'):
5936 if isinstance(p, tuple):
5938 self.__dict__.update(d)
5939 return self._set_from_binary(p)
5941 __swig_destroy__ = _IMP_atom.delete_AngularVelocity
5944 _IMP_atom.AngularVelocity_swigregister(AngularVelocity)
5945 class MolecularDynamics(Simulator):
5946 r"""Proxy of C++ IMP::atom::MolecularDynamics class."""
5948 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5950 def __init__(self, *args):
5952 __init__(MolecularDynamics self, Model m) -> MolecularDynamics
5953 __init__(MolecularDynamics self) -> MolecularDynamics
5955 _IMP_atom.MolecularDynamics_swiginit(self, _IMP_atom.new_MolecularDynamics(*args))
5957 def get_kinetic_energy(self):
5958 r"""get_kinetic_energy(MolecularDynamics self) -> IMP::Float"""
5959 return _IMP_atom.MolecularDynamics_get_kinetic_energy(self)
5961 def get_kinetic_temperature(self, ekinetic):
5962 r"""get_kinetic_temperature(MolecularDynamics self, IMP::Float ekinetic) -> IMP::Float"""
5963 return _IMP_atom.MolecularDynamics_get_kinetic_temperature(self, ekinetic)
5965 def set_velocity_cap(self, velocity_cap):
5966 r"""set_velocity_cap(MolecularDynamics self, IMP::Float velocity_cap)"""
5967 return _IMP_atom.MolecularDynamics_set_velocity_cap(self, velocity_cap)
5969 def get_velocity_cap(self):
5970 r"""get_velocity_cap(MolecularDynamics self) -> IMP::Float"""
5971 return _IMP_atom.MolecularDynamics_get_velocity_cap(self)
5973 def get_degrees_of_freedom(self):
5974 r"""get_degrees_of_freedom(MolecularDynamics self) -> int"""
5975 return _IMP_atom.MolecularDynamics_get_degrees_of_freedom(self)
5977 def assign_velocities(self, temperature):
5978 r"""assign_velocities(MolecularDynamics self, IMP::Float temperature)"""
5979 return _IMP_atom.MolecularDynamics_assign_velocities(self, temperature)
5981 def setup(self, ps):
5982 r"""setup(MolecularDynamics self, IMP::ParticleIndexes const & ps)"""
5983 return _IMP_atom.MolecularDynamics_setup(self, ps)
5985 def do_step(self, sc, dt):
5986 r"""do_step(MolecularDynamics self, IMP::ParticleIndexes const & sc, double dt) -> double"""
5987 return _IMP_atom.MolecularDynamics_do_step(self, sc, dt)
5989 def get_is_simulation_particle(self, p):
5990 r"""get_is_simulation_particle(MolecularDynamics self, ParticleIndex p) -> bool"""
5991 return _IMP_atom.MolecularDynamics_get_is_simulation_particle(self, p)
5993 def get_version_info(self):
5994 r"""get_version_info(MolecularDynamics self) -> VersionInfo"""
5995 return _IMP_atom.MolecularDynamics_get_version_info(self)
5996 __swig_destroy__ = _IMP_atom.delete_MolecularDynamics
5999 r"""__str__(MolecularDynamics self) -> std::string"""
6000 return _IMP_atom.MolecularDynamics___str__(self)
6003 r"""__repr__(MolecularDynamics self) -> std::string"""
6004 return _IMP_atom.MolecularDynamics___repr__(self)
6008 return _object_cast_to_MolecularDynamics(o)
6011 def _get_as_binary(self):
6012 r"""_get_as_binary(MolecularDynamics self) -> PyObject *"""
6013 return _IMP_atom.MolecularDynamics__get_as_binary(self)
6015 def _set_from_binary(self, p):
6016 r"""_set_from_binary(MolecularDynamics self, PyObject * p)"""
6017 return _IMP_atom.MolecularDynamics__set_from_binary(self, p)
6019 def __getstate__(self):
6020 p = self._get_as_binary()
6021 if len(self.__dict__) > 1:
6022 d = self.__dict__.copy()
6027 def __setstate__(self, p):
6028 if not hasattr(self,
'this'):
6030 if isinstance(p, tuple):
6032 self.__dict__.update(d)
6033 return self._set_from_binary(p)
6036 def _get_jax(self, space=None):
6037 from IMP.atom._jax_util
import _MDJAXInfo
6038 return _MDJAXInfo(self, space)
6040 def _get_jax_optimizer(self, max_steps, space=None):
6041 import IMP.atom._jax_util
6042 return IMP.atom._jax_util._MDJAXOptimizer(self, max_steps, space)
6044 def _optimize_jax(self, max_steps, space=None):
6045 opt = self._get_jax_optimizer(max_steps, space=space)
6046 score, md_state = opt.optimize(opt.get_initial_state())
6051 _IMP_atom.MolecularDynamics_swigregister(MolecularDynamics)
6053 r"""Proxy of C++ IMP::atom::VelocityScalingOptimizerState class."""
6055 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6057 def __init__(self, m, pis, temperature):
6058 r"""__init__(VelocityScalingOptimizerState self, Model m, _ParticleIndexesAdaptor pis, double temperature) -> VelocityScalingOptimizerState"""
6059 _IMP_atom.VelocityScalingOptimizerState_swiginit(self, _IMP_atom.new_VelocityScalingOptimizerState(m, pis, temperature))
6061 def set_particles(self, pis):
6062 r"""set_particles(VelocityScalingOptimizerState self, IMP::Particles const & pis)"""
6063 return _IMP_atom.VelocityScalingOptimizerState_set_particles(self, pis)
6065 def set_temperature(self, temperature):
6066 r"""set_temperature(VelocityScalingOptimizerState self, IMP::Float temperature)"""
6067 return _IMP_atom.VelocityScalingOptimizerState_set_temperature(self, temperature)
6070 r"""get_particles(VelocityScalingOptimizerState self) -> IMP::Particles"""
6071 return _IMP_atom.VelocityScalingOptimizerState_get_particles(self)
6073 def get_temperature(self):
6074 r"""get_temperature(VelocityScalingOptimizerState self) -> IMP::Float"""
6075 return _IMP_atom.VelocityScalingOptimizerState_get_temperature(self)
6077 def rescale_velocities(self):
6078 r"""rescale_velocities(VelocityScalingOptimizerState self)"""
6079 return _IMP_atom.VelocityScalingOptimizerState_rescale_velocities(self)
6081 def get_version_info(self):
6082 r"""get_version_info(VelocityScalingOptimizerState self) -> VersionInfo"""
6083 return _IMP_atom.VelocityScalingOptimizerState_get_version_info(self)
6084 __swig_destroy__ = _IMP_atom.delete_VelocityScalingOptimizerState
6087 r"""__str__(VelocityScalingOptimizerState self) -> std::string"""
6088 return _IMP_atom.VelocityScalingOptimizerState___str__(self)
6091 r"""__repr__(VelocityScalingOptimizerState self) -> std::string"""
6092 return _IMP_atom.VelocityScalingOptimizerState___repr__(self)
6096 return _object_cast_to_VelocityScalingOptimizerState(o)
6099 def _get_jax(self, state_index):
6101 import jax.numpy
as jnp
6102 temperature = self.get_temperature()
6105 def scale_velocities(linvel, tkinetic):
6106 scale = jnp.sqrt(temperature / tkinetic)
6107 return jnp.where(tkinetic > 1e-8,
6108 linvel.at[indexes].
multiply(scale), linvel)
6111 ekinetic = md.get_kinetic_energy()
6112 tkinetic = md.get_kinetic_temperature(ekinetic)
6113 scale = scale_velocities
6116 if hasattr(tkinetic,
'ndim')
and tkinetic.ndim >= 1:
6117 scale = jax.vmap(scale_velocities, in_axes=0)
6118 md.jm[
'linvel'] = scale(md.jm[
'linvel'], tkinetic)
6121 return self._wrap_jax(
lambda x: x, apply_func)
6125 _IMP_atom.VelocityScalingOptimizerState_swigregister(VelocityScalingOptimizerState)
6126 class Fragment(Hierarchy):
6127 r"""Proxy of C++ IMP::atom::Fragment class."""
6129 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6131 def set_residue_indexes(self, o):
6132 r"""set_residue_indexes(Fragment self, IMP::Ints o)"""
6133 return _IMP_atom.Fragment_set_residue_indexes(self, o)
6135 def get_residue_indexes(self):
6136 r"""get_residue_indexes(Fragment self) -> IMP::Ints"""
6137 return _IMP_atom.Fragment_get_residue_indexes(self)
6139 def get_contains_residue(self, rindex):
6140 r"""get_contains_residue(Fragment self, int rindex) -> bool"""
6141 return _IMP_atom.Fragment_get_contains_residue(self, rindex)
6143 def get_contains_any_sorted_residue(self, rinds):
6144 r"""get_contains_any_sorted_residue(Fragment self, IMP::Ints const & rinds) -> bool"""
6145 return _IMP_atom.Fragment_get_contains_any_sorted_residue(self, rinds)
6147 def __init__(self, *args):
6149 __init__(Fragment self) -> Fragment
6150 __init__(Fragment self, Model m, ParticleIndex id) -> Fragment
6151 __init__(Fragment self, _ParticleAdaptor d) -> Fragment
6153 _IMP_atom.Fragment_swiginit(self, _IMP_atom.new_Fragment(*args))
6156 def get_is_setup(*args):
6158 get_is_setup(Model m, ParticleIndex pi) -> bool
6159 get_is_setup(_ParticleAdaptor p) -> bool
6161 return _IMP_atom.Fragment_get_is_setup(*args)
6163 def show(self, *args):
6164 r"""show(Fragment self, _ostream out=std::cout)"""
6165 return _IMP_atom.Fragment_show(self, *args)
6168 def setup_particle(*args):
6170 setup_particle(Model m, ParticleIndex pi) -> Fragment
6171 setup_particle(_ParticleAdaptor pa) -> Fragment
6172 setup_particle(Model m, ParticleIndex pi, Fragment other) -> Fragment
6173 setup_particle(_ParticleAdaptor pa, Fragment other) -> Fragment
6174 setup_particle(Model m, ParticleIndex pi, IMP::Ints residue_indexes) -> Fragment
6175 setup_particle(_ParticleAdaptor pa, IMP::Ints residue_indexes) -> Fragment
6177 return _IMP_atom.Fragment_setup_particle(*args)
6179 def add_attribute(self, *args):
6181 add_attribute(Fragment self, FloatKey k, IMP::Float v, bool opt)
6182 add_attribute(Fragment self, FloatKey a0, IMP::Float a1)
6183 add_attribute(Fragment self, IntKey a0, IMP::Int a1)
6184 add_attribute(Fragment self, FloatsKey a0, IMP::Floats a1)
6185 add_attribute(Fragment self, IntsKey a0, IMP::Ints a1)
6186 add_attribute(Fragment self, StringKey a0, IMP::String a1)
6187 add_attribute(Fragment self, ParticleIndexKey a0, Particle a1)
6188 add_attribute(Fragment self, ObjectKey a0, Object a1)
6189 add_attribute(Fragment self, SparseFloatKey a0, IMP::Float a1)
6190 add_attribute(Fragment self, SparseIntKey a0, IMP::Int a1)
6191 add_attribute(Fragment self, SparseStringKey a0, IMP::String a1)
6192 add_attribute(Fragment self, SparseParticleIndexKey a0, ParticleIndex a1)
6194 return _IMP_atom.Fragment_add_attribute(self, *args)
6196 def get_value(self, *args):
6198 get_value(Fragment self, FloatKey a0) -> IMP::Float
6199 get_value(Fragment self, IntKey a0) -> IMP::Int
6200 get_value(Fragment self, FloatsKey a0) -> IMP::Floats
6201 get_value(Fragment self, IntsKey a0) -> IMP::Ints
6202 get_value(Fragment self, StringKey a0) -> IMP::String
6203 get_value(Fragment self, ParticleIndexKey a0) -> Particle
6204 get_value(Fragment self, ObjectKey a0) -> Object
6205 get_value(Fragment self, SparseFloatKey a0) -> IMP::Float
6206 get_value(Fragment self, SparseIntKey a0) -> IMP::Int
6207 get_value(Fragment self, SparseStringKey a0) -> IMP::String
6208 get_value(Fragment self, SparseParticleIndexKey a0) -> ParticleIndex
6210 return _IMP_atom.Fragment_get_value(self, *args)
6212 def set_value(self, *args):
6214 set_value(Fragment self, FloatKey a0, IMP::Float a1)
6215 set_value(Fragment self, IntKey a0, IMP::Int a1)
6216 set_value(Fragment self, FloatsKey a0, IMP::Floats a1)
6217 set_value(Fragment self, IntsKey a0, IMP::Ints a1)
6218 set_value(Fragment self, StringKey a0, IMP::String a1)
6219 set_value(Fragment self, ParticleIndexKey a0, Particle a1)
6220 set_value(Fragment self, ObjectKey a0, Object a1)
6221 set_value(Fragment self, SparseFloatKey a0, IMP::Float a1)
6222 set_value(Fragment self, SparseIntKey a0, IMP::Int a1)
6223 set_value(Fragment self, SparseStringKey a0, IMP::String a1)
6224 set_value(Fragment self, SparseParticleIndexKey a0, ParticleIndex a1)
6226 return _IMP_atom.Fragment_set_value(self, *args)
6228 def remove_attribute(self, *args):
6230 remove_attribute(Fragment self, FloatKey a0)
6231 remove_attribute(Fragment self, IntKey a0)
6232 remove_attribute(Fragment self, FloatsKey a0)
6233 remove_attribute(Fragment self, IntsKey a0)
6234 remove_attribute(Fragment self, StringKey a0)
6235 remove_attribute(Fragment self, ParticleIndexKey a0)
6236 remove_attribute(Fragment self, ObjectKey a0)
6237 remove_attribute(Fragment self, SparseFloatKey a0)
6238 remove_attribute(Fragment self, SparseIntKey a0)
6239 remove_attribute(Fragment self, SparseStringKey a0)
6240 remove_attribute(Fragment self, SparseParticleIndexKey a0)
6242 return _IMP_atom.Fragment_remove_attribute(self, *args)
6244 def has_attribute(self, *args):
6246 has_attribute(Fragment self, FloatKey a0) -> bool
6247 has_attribute(Fragment self, IntKey a0) -> bool
6248 has_attribute(Fragment self, FloatsKey a0) -> bool
6249 has_attribute(Fragment self, IntsKey a0) -> bool
6250 has_attribute(Fragment self, StringKey a0) -> bool
6251 has_attribute(Fragment self, ParticleIndexKey a0) -> bool
6252 has_attribute(Fragment self, ObjectKey a0) -> bool
6253 has_attribute(Fragment self, SparseFloatKey a0) -> bool
6254 has_attribute(Fragment self, SparseIntKey a0) -> bool
6255 has_attribute(Fragment self, SparseStringKey a0) -> bool
6256 has_attribute(Fragment self, SparseParticleIndexKey a0) -> bool
6258 return _IMP_atom.Fragment_has_attribute(self, *args)
6260 def get_derivative(self, a0):
6261 r"""get_derivative(Fragment self, FloatKey a0) -> double"""
6262 return _IMP_atom.Fragment_get_derivative(self, a0)
6265 r"""get_name(Fragment self) -> std::string"""
6266 return _IMP_atom.Fragment_get_name(self)
6268 def clear_caches(self):
6269 r"""clear_caches(Fragment self)"""
6270 return _IMP_atom.Fragment_clear_caches(self)
6272 def set_name(self, a0):
6273 r"""set_name(Fragment self, std::string a0)"""
6274 return _IMP_atom.Fragment_set_name(self, a0)
6277 r"""set_check_level(Fragment self, IMP::CheckLevel a0)"""
6278 return _IMP_atom.Fragment_set_check_level(self, a0)
6280 def add_to_derivative(self, a0, a1, a2):
6281 r"""add_to_derivative(Fragment self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
6282 return _IMP_atom.Fragment_add_to_derivative(self, a0, a1, a2)
6284 def set_is_optimized(self, a0, a1):
6285 r"""set_is_optimized(Fragment self, FloatKey a0, bool a1)"""
6286 return _IMP_atom.Fragment_set_is_optimized(self, a0, a1)
6288 def get_is_optimized(self, a0):
6289 r"""get_is_optimized(Fragment self, FloatKey a0) -> bool"""
6290 return _IMP_atom.Fragment_get_is_optimized(self, a0)
6293 r"""get_check_level(Fragment self) -> IMP::CheckLevel"""
6294 return _IMP_atom.Fragment_get_check_level(self)
6296 def __eq__(self, *args):
6298 __eq__(Fragment self, Fragment o) -> bool
6299 __eq__(Fragment self, Particle d) -> bool
6301 return _IMP_atom.Fragment___eq__(self, *args)
6303 def __ne__(self, *args):
6305 __ne__(Fragment self, Fragment o) -> bool
6306 __ne__(Fragment self, Particle d) -> bool
6308 return _IMP_atom.Fragment___ne__(self, *args)
6310 def __le__(self, *args):
6312 __le__(Fragment self, Fragment o) -> bool
6313 __le__(Fragment self, Particle d) -> bool
6315 return _IMP_atom.Fragment___le__(self, *args)
6317 def __lt__(self, *args):
6319 __lt__(Fragment self, Fragment o) -> bool
6320 __lt__(Fragment self, Particle d) -> bool
6322 return _IMP_atom.Fragment___lt__(self, *args)
6324 def __ge__(self, *args):
6326 __ge__(Fragment self, Fragment o) -> bool
6327 __ge__(Fragment self, Particle d) -> bool
6329 return _IMP_atom.Fragment___ge__(self, *args)
6331 def __gt__(self, *args):
6333 __gt__(Fragment self, Fragment o) -> bool
6334 __gt__(Fragment self, Particle d) -> bool
6336 return _IMP_atom.Fragment___gt__(self, *args)
6339 r"""__hash__(Fragment self) -> std::size_t"""
6340 return _IMP_atom.Fragment___hash__(self)
6343 r"""__str__(Fragment self) -> std::string"""
6344 return _IMP_atom.Fragment___str__(self)
6347 r"""__repr__(Fragment self) -> std::string"""
6348 return _IMP_atom.Fragment___repr__(self)
6350 def _get_as_binary(self):
6351 r"""_get_as_binary(Fragment self) -> PyObject *"""
6352 return _IMP_atom.Fragment__get_as_binary(self)
6354 def _set_from_binary(self, p):
6355 r"""_set_from_binary(Fragment self, PyObject * p)"""
6356 return _IMP_atom.Fragment__set_from_binary(self, p)
6358 def __getstate__(self):
6359 p = self._get_as_binary()
6360 if len(self.__dict__) > 1:
6361 d = self.__dict__.copy()
6366 def __setstate__(self, p):
6367 if not hasattr(self,
'this'):
6369 if isinstance(p, tuple):
6371 self.__dict__.update(d)
6372 return self._set_from_binary(p)
6374 __swig_destroy__ = _IMP_atom.delete_Fragment
6377 _IMP_atom.Fragment_swigregister(Fragment)
6379 r"""Proxy of C++ IMP::atom::StereochemistryPairFilter class."""
6381 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6384 r"""__init__(StereochemistryPairFilter self) -> StereochemistryPairFilter"""
6385 _IMP_atom.StereochemistryPairFilter_swiginit(self, _IMP_atom.new_StereochemistryPairFilter())
6387 def set_bonds(self, bonds):
6388 r"""set_bonds(StereochemistryPairFilter self, IMP::Particles const & bonds)"""
6389 return _IMP_atom.StereochemistryPairFilter_set_bonds(self, bonds)
6391 def set_angles(self, angles):
6392 r"""set_angles(StereochemistryPairFilter self, IMP::Particles const & angles)"""
6393 return _IMP_atom.StereochemistryPairFilter_set_angles(self, angles)
6395 def set_dihedrals(self, dihedrals):
6396 r"""set_dihedrals(StereochemistryPairFilter self, IMP::Particles const & dihedrals)"""
6397 return _IMP_atom.StereochemistryPairFilter_set_dihedrals(self, dihedrals)
6399 def do_get_inputs(self, m, pis):
6400 r"""do_get_inputs(StereochemistryPairFilter self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6401 return _IMP_atom.StereochemistryPairFilter_do_get_inputs(self, m, pis)
6403 def get_value(self, *args):
6405 get_value(StereochemistryPairFilter self, IMP::ParticlePair const & a) -> int
6406 get_value(StereochemistryPairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
6408 return _IMP_atom.StereochemistryPairFilter_get_value(self, *args)
6410 def get_value_index(self, *args):
6412 get_value_index(StereochemistryPairFilter self, Model m, IMP::ParticleIndexPair const & p) -> int
6413 get_value_index(StereochemistryPairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
6415 return _IMP_atom.StereochemistryPairFilter_get_value_index(self, *args)
6417 def get_version_info(self):
6418 r"""get_version_info(StereochemistryPairFilter self) -> VersionInfo"""
6419 return _IMP_atom.StereochemistryPairFilter_get_version_info(self)
6420 __swig_destroy__ = _IMP_atom.delete_StereochemistryPairFilter
6423 r"""__str__(StereochemistryPairFilter self) -> std::string"""
6424 return _IMP_atom.StereochemistryPairFilter___str__(self)
6427 r"""__repr__(StereochemistryPairFilter self) -> std::string"""
6428 return _IMP_atom.StereochemistryPairFilter___repr__(self)
6432 return _object_cast_to_StereochemistryPairFilter(o)
6436 _IMP_atom.StereochemistryPairFilter_swigregister(StereochemistryPairFilter)
6438 r"""Proxy of C++ IMP::atom::SoapPairFilter class."""
6440 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6442 def __init__(self, library):
6443 r"""__init__(SoapPairFilter self, std::string library) -> SoapPairFilter"""
6444 _IMP_atom.SoapPairFilter_swiginit(self, _IMP_atom.new_SoapPairFilter(library))
6446 def do_get_inputs(self, m, pis):
6447 r"""do_get_inputs(SoapPairFilter self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6448 return _IMP_atom.SoapPairFilter_do_get_inputs(self, m, pis)
6450 def get_value(self, *args):
6452 get_value(SoapPairFilter self, IMP::ParticlePair const & a) -> int
6453 get_value(SoapPairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
6455 return _IMP_atom.SoapPairFilter_get_value(self, *args)
6457 def get_value_index(self, *args):
6459 get_value_index(SoapPairFilter self, Model m, IMP::ParticleIndexPair const & p) -> int
6460 get_value_index(SoapPairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
6462 return _IMP_atom.SoapPairFilter_get_value_index(self, *args)
6464 def get_version_info(self):
6465 r"""get_version_info(SoapPairFilter self) -> VersionInfo"""
6466 return _IMP_atom.SoapPairFilter_get_version_info(self)
6467 __swig_destroy__ = _IMP_atom.delete_SoapPairFilter
6470 r"""__str__(SoapPairFilter self) -> std::string"""
6471 return _IMP_atom.SoapPairFilter___str__(self)
6474 r"""__repr__(SoapPairFilter self) -> std::string"""
6475 return _IMP_atom.SoapPairFilter___repr__(self)
6479 return _object_cast_to_SoapPairFilter(o)
6483 _IMP_atom.SoapPairFilter_swigregister(SoapPairFilter)
6485 r"""Proxy of C++ IMP::atom::Mass class."""
6487 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6490 r"""get_mass(Mass self) -> IMP::Float"""
6491 return _IMP_atom.Mass_get_mass(self)
6493 def set_mass(self, d):
6494 r"""set_mass(Mass self, IMP::Float d)"""
6495 return _IMP_atom.Mass_set_mass(self, d)
6497 def __init__(self, *args):
6499 __init__(Mass self) -> Mass
6500 __init__(Mass self, Model m, ParticleIndex id) -> Mass
6501 __init__(Mass self, _ParticleAdaptor d) -> Mass
6503 _IMP_atom.Mass_swiginit(self, _IMP_atom.new_Mass(*args))
6506 def get_is_setup(*args):
6508 get_is_setup(Model m, ParticleIndex pi) -> bool
6509 get_is_setup(_ParticleAdaptor p) -> bool
6511 return _IMP_atom.Mass_get_is_setup(*args)
6513 def show(self, *args):
6514 r"""show(Mass self, _ostream out=std::cout)"""
6515 return _IMP_atom.Mass_show(self, *args)
6518 def setup_particle(*args):
6520 setup_particle(Model m, ParticleIndex pi, IMP::Float mass) -> Mass
6521 setup_particle(_ParticleAdaptor pa, IMP::Float mass) -> Mass
6522 setup_particle(Model m, ParticleIndex pi, Mass other) -> Mass
6523 setup_particle(_ParticleAdaptor pa, Mass other) -> Mass
6525 return _IMP_atom.Mass_setup_particle(*args)
6529 r"""get_mass_key() -> FloatKey"""
6530 return _IMP_atom.Mass_get_mass_key()
6532 def add_attribute(self, *args):
6534 add_attribute(Mass self, FloatKey k, IMP::Float v, bool opt)
6535 add_attribute(Mass self, FloatKey a0, IMP::Float a1)
6536 add_attribute(Mass self, IntKey a0, IMP::Int a1)
6537 add_attribute(Mass self, FloatsKey a0, IMP::Floats a1)
6538 add_attribute(Mass self, IntsKey a0, IMP::Ints a1)
6539 add_attribute(Mass self, StringKey a0, IMP::String a1)
6540 add_attribute(Mass self, ParticleIndexKey a0, Particle a1)
6541 add_attribute(Mass self, ObjectKey a0, Object a1)
6542 add_attribute(Mass self, SparseFloatKey a0, IMP::Float a1)
6543 add_attribute(Mass self, SparseIntKey a0, IMP::Int a1)
6544 add_attribute(Mass self, SparseStringKey a0, IMP::String a1)
6545 add_attribute(Mass self, SparseParticleIndexKey a0, ParticleIndex a1)
6547 return _IMP_atom.Mass_add_attribute(self, *args)
6549 def get_value(self, *args):
6551 get_value(Mass self, FloatKey a0) -> IMP::Float
6552 get_value(Mass self, IntKey a0) -> IMP::Int
6553 get_value(Mass self, FloatsKey a0) -> IMP::Floats
6554 get_value(Mass self, IntsKey a0) -> IMP::Ints
6555 get_value(Mass self, StringKey a0) -> IMP::String
6556 get_value(Mass self, ParticleIndexKey a0) -> Particle
6557 get_value(Mass self, ObjectKey a0) -> Object
6558 get_value(Mass self, SparseFloatKey a0) -> IMP::Float
6559 get_value(Mass self, SparseIntKey a0) -> IMP::Int
6560 get_value(Mass self, SparseStringKey a0) -> IMP::String
6561 get_value(Mass self, SparseParticleIndexKey a0) -> ParticleIndex
6563 return _IMP_atom.Mass_get_value(self, *args)
6565 def set_value(self, *args):
6567 set_value(Mass self, FloatKey a0, IMP::Float a1)
6568 set_value(Mass self, IntKey a0, IMP::Int a1)
6569 set_value(Mass self, FloatsKey a0, IMP::Floats a1)
6570 set_value(Mass self, IntsKey a0, IMP::Ints a1)
6571 set_value(Mass self, StringKey a0, IMP::String a1)
6572 set_value(Mass self, ParticleIndexKey a0, Particle a1)
6573 set_value(Mass self, ObjectKey a0, Object a1)
6574 set_value(Mass self, SparseFloatKey a0, IMP::Float a1)
6575 set_value(Mass self, SparseIntKey a0, IMP::Int a1)
6576 set_value(Mass self, SparseStringKey a0, IMP::String a1)
6577 set_value(Mass self, SparseParticleIndexKey a0, ParticleIndex a1)
6579 return _IMP_atom.Mass_set_value(self, *args)
6581 def remove_attribute(self, *args):
6583 remove_attribute(Mass self, FloatKey a0)
6584 remove_attribute(Mass self, IntKey a0)
6585 remove_attribute(Mass self, FloatsKey a0)
6586 remove_attribute(Mass self, IntsKey a0)
6587 remove_attribute(Mass self, StringKey a0)
6588 remove_attribute(Mass self, ParticleIndexKey a0)
6589 remove_attribute(Mass self, ObjectKey a0)
6590 remove_attribute(Mass self, SparseFloatKey a0)
6591 remove_attribute(Mass self, SparseIntKey a0)
6592 remove_attribute(Mass self, SparseStringKey a0)
6593 remove_attribute(Mass self, SparseParticleIndexKey a0)
6595 return _IMP_atom.Mass_remove_attribute(self, *args)
6597 def has_attribute(self, *args):
6599 has_attribute(Mass self, FloatKey a0) -> bool
6600 has_attribute(Mass self, IntKey a0) -> bool
6601 has_attribute(Mass self, FloatsKey a0) -> bool
6602 has_attribute(Mass self, IntsKey a0) -> bool
6603 has_attribute(Mass self, StringKey a0) -> bool
6604 has_attribute(Mass self, ParticleIndexKey a0) -> bool
6605 has_attribute(Mass self, ObjectKey a0) -> bool
6606 has_attribute(Mass self, SparseFloatKey a0) -> bool
6607 has_attribute(Mass self, SparseIntKey a0) -> bool
6608 has_attribute(Mass self, SparseStringKey a0) -> bool
6609 has_attribute(Mass self, SparseParticleIndexKey a0) -> bool
6611 return _IMP_atom.Mass_has_attribute(self, *args)
6613 def get_derivative(self, a0):
6614 r"""get_derivative(Mass self, FloatKey a0) -> double"""
6615 return _IMP_atom.Mass_get_derivative(self, a0)
6618 r"""get_name(Mass self) -> std::string"""
6619 return _IMP_atom.Mass_get_name(self)
6621 def clear_caches(self):
6622 r"""clear_caches(Mass self)"""
6623 return _IMP_atom.Mass_clear_caches(self)
6625 def set_name(self, a0):
6626 r"""set_name(Mass self, std::string a0)"""
6627 return _IMP_atom.Mass_set_name(self, a0)
6630 r"""set_check_level(Mass self, IMP::CheckLevel a0)"""
6631 return _IMP_atom.Mass_set_check_level(self, a0)
6633 def add_to_derivative(self, a0, a1, a2):
6634 r"""add_to_derivative(Mass self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
6635 return _IMP_atom.Mass_add_to_derivative(self, a0, a1, a2)
6637 def set_is_optimized(self, a0, a1):
6638 r"""set_is_optimized(Mass self, FloatKey a0, bool a1)"""
6639 return _IMP_atom.Mass_set_is_optimized(self, a0, a1)
6641 def get_is_optimized(self, a0):
6642 r"""get_is_optimized(Mass self, FloatKey a0) -> bool"""
6643 return _IMP_atom.Mass_get_is_optimized(self, a0)
6646 r"""get_check_level(Mass self) -> IMP::CheckLevel"""
6647 return _IMP_atom.Mass_get_check_level(self)
6649 def __eq__(self, *args):
6651 __eq__(Mass self, Mass o) -> bool
6652 __eq__(Mass self, Particle d) -> bool
6654 return _IMP_atom.Mass___eq__(self, *args)
6656 def __ne__(self, *args):
6658 __ne__(Mass self, Mass o) -> bool
6659 __ne__(Mass self, Particle d) -> bool
6661 return _IMP_atom.Mass___ne__(self, *args)
6663 def __le__(self, *args):
6665 __le__(Mass self, Mass o) -> bool
6666 __le__(Mass self, Particle d) -> bool
6668 return _IMP_atom.Mass___le__(self, *args)
6670 def __lt__(self, *args):
6672 __lt__(Mass self, Mass o) -> bool
6673 __lt__(Mass self, Particle d) -> bool
6675 return _IMP_atom.Mass___lt__(self, *args)
6677 def __ge__(self, *args):
6679 __ge__(Mass self, Mass o) -> bool
6680 __ge__(Mass self, Particle d) -> bool
6682 return _IMP_atom.Mass___ge__(self, *args)
6684 def __gt__(self, *args):
6686 __gt__(Mass self, Mass o) -> bool
6687 __gt__(Mass self, Particle d) -> bool
6689 return _IMP_atom.Mass___gt__(self, *args)
6692 r"""__hash__(Mass self) -> std::size_t"""
6693 return _IMP_atom.Mass___hash__(self)
6696 r"""__str__(Mass self) -> std::string"""
6697 return _IMP_atom.Mass___str__(self)
6700 r"""__repr__(Mass self) -> std::string"""
6701 return _IMP_atom.Mass___repr__(self)
6703 def _get_as_binary(self):
6704 r"""_get_as_binary(Mass self) -> PyObject *"""
6705 return _IMP_atom.Mass__get_as_binary(self)
6707 def _set_from_binary(self, p):
6708 r"""_set_from_binary(Mass self, PyObject * p)"""
6709 return _IMP_atom.Mass__set_from_binary(self, p)
6711 def __getstate__(self):
6712 p = self._get_as_binary()
6713 if len(self.__dict__) > 1:
6714 d = self.__dict__.copy()
6719 def __setstate__(self, p):
6720 if not hasattr(self,
'this'):
6722 if isinstance(p, tuple):
6724 self.__dict__.update(d)
6725 return self._set_from_binary(p)
6727 __swig_destroy__ = _IMP_atom.delete_Mass
6730 _IMP_atom.Mass_swigregister(Mass)
6732 r"""Proxy of C++ IMP::atom::BondedPairFilter class."""
6734 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6737 r"""__init__(BondedPairFilter self) -> BondedPairFilter"""
6738 _IMP_atom.BondedPairFilter_swiginit(self, _IMP_atom.new_BondedPairFilter())
6740 def do_get_inputs(self, m, pis):
6741 r"""do_get_inputs(BondedPairFilter self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6742 return _IMP_atom.BondedPairFilter_do_get_inputs(self, m, pis)
6744 def get_value(self, *args):
6746 get_value(BondedPairFilter self, IMP::ParticlePair const & a) -> int
6747 get_value(BondedPairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
6749 return _IMP_atom.BondedPairFilter_get_value(self, *args)
6751 def get_value_index(self, *args):
6753 get_value_index(BondedPairFilter self, Model m, IMP::ParticleIndexPair const & p) -> int
6754 get_value_index(BondedPairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
6756 return _IMP_atom.BondedPairFilter_get_value_index(self, *args)
6758 def get_version_info(self):
6759 r"""get_version_info(BondedPairFilter self) -> VersionInfo"""
6760 return _IMP_atom.BondedPairFilter_get_version_info(self)
6761 __swig_destroy__ = _IMP_atom.delete_BondedPairFilter
6764 r"""__str__(BondedPairFilter self) -> std::string"""
6765 return _IMP_atom.BondedPairFilter___str__(self)
6768 r"""__repr__(BondedPairFilter self) -> std::string"""
6769 return _IMP_atom.BondedPairFilter___repr__(self)
6773 return _object_cast_to_BondedPairFilter(o)
6777 _IMP_atom.BondedPairFilter_swigregister(BondedPairFilter)
6779 r"""Proxy of C++ IMP::atom::Mol2Selector class."""
6781 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6783 def __init__(self, *args, **kwargs):
6784 raise AttributeError(
"No constructor defined - class is abstract")
6786 def get_is_selected(self, atom_line):
6787 r"""get_is_selected(Mol2Selector self, std::string const & atom_line) -> bool"""
6788 return _IMP_atom.Mol2Selector_get_is_selected(self, atom_line)
6789 __swig_destroy__ = _IMP_atom.delete_Mol2Selector
6792 r"""__str__(Mol2Selector self) -> std::string"""
6793 return _IMP_atom.Mol2Selector___str__(self)
6796 r"""__repr__(Mol2Selector self) -> std::string"""
6797 return _IMP_atom.Mol2Selector___repr__(self)
6801 return _object_cast_to_Mol2Selector(o)
6805 _IMP_atom.Mol2Selector_swigregister(Mol2Selector)
6806 class AllMol2Selector(Mol2Selector):
6807 r"""Proxy of C++ IMP::atom::AllMol2Selector class."""
6809 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6812 r"""__str__(AllMol2Selector self) -> std::string"""
6813 return _IMP_atom.AllMol2Selector___str__(self)
6816 r"""__repr__(AllMol2Selector self) -> std::string"""
6817 return _IMP_atom.AllMol2Selector___repr__(self)
6821 return _object_cast_to_AllMol2Selector(o)
6825 r"""__init__(AllMol2Selector self) -> AllMol2Selector"""
6826 _IMP_atom.AllMol2Selector_swiginit(self, _IMP_atom.new_AllMol2Selector())
6827 __swig_destroy__ = _IMP_atom.delete_AllMol2Selector
6830 _IMP_atom.AllMol2Selector_swigregister(AllMol2Selector)
6831 class NonHydrogenMol2Selector(Mol2Selector):
6832 r"""Proxy of C++ IMP::atom::NonHydrogenMol2Selector class."""
6834 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6837 r"""__str__(NonHydrogenMol2Selector self) -> std::string"""
6838 return _IMP_atom.NonHydrogenMol2Selector___str__(self)
6841 r"""__repr__(NonHydrogenMol2Selector self) -> std::string"""
6842 return _IMP_atom.NonHydrogenMol2Selector___repr__(self)
6846 return _object_cast_to_NonHydrogenMol2Selector(o)
6850 r"""__init__(NonHydrogenMol2Selector self) -> NonHydrogenMol2Selector"""
6851 _IMP_atom.NonHydrogenMol2Selector_swiginit(self, _IMP_atom.new_NonHydrogenMol2Selector())
6852 __swig_destroy__ = _IMP_atom.delete_NonHydrogenMol2Selector
6855 _IMP_atom.NonHydrogenMol2Selector_swigregister(NonHydrogenMol2Selector)
6857 def read_mol2(mol2_file, model, mol2sel=None):
6858 r"""read_mol2(TextInput mol2_file, Model model, Mol2Selector mol2sel=None) -> Hierarchy"""
6859 return _IMP_atom.read_mol2(mol2_file, model, mol2sel)
6862 r"""write_mol2(Hierarchy rhd, TextOutput file_name)"""
6863 return _IMP_atom.write_mol2(rhd, file_name)
6865 r"""Proxy of C++ IMP::atom::SecondaryStructureResidue class."""
6867 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6869 def __init__(self, *args):
6871 __init__(SecondaryStructureResidue self) -> SecondaryStructureResidue
6872 __init__(SecondaryStructureResidue self, Model m, ParticleIndex id) -> SecondaryStructureResidue
6873 __init__(SecondaryStructureResidue self, _ParticleAdaptor d) -> SecondaryStructureResidue
6875 _IMP_atom.SecondaryStructureResidue_swiginit(self, _IMP_atom.new_SecondaryStructureResidue(*args))
6877 def show(self, *args):
6878 r"""show(SecondaryStructureResidue self, _ostream out=std::cout)"""
6879 return _IMP_atom.SecondaryStructureResidue_show(self, *args)
6882 def setup_particle(*args):
6884 setup_particle(Model m, ParticleIndex pi, IMP::Float prob_helix, IMP::Float prob_strand, IMP::Float prob_coil) -> SecondaryStructureResidue
6885 setup_particle(_ParticleAdaptor pa, IMP::Float prob_helix, IMP::Float prob_strand, IMP::Float prob_coil) -> SecondaryStructureResidue
6886 setup_particle(Particle res_p) -> SecondaryStructureResidue
6888 return _IMP_atom.SecondaryStructureResidue_setup_particle(*args)
6891 def get_is_setup(*args):
6893 get_is_setup(_ParticleAdaptor p) -> bool
6894 get_is_setup(Model m, ParticleIndex pi) -> bool
6896 return _IMP_atom.SecondaryStructureResidue_get_is_setup(*args)
6898 def get_particle(self):
6899 r"""get_particle(SecondaryStructureResidue self) -> Particle"""
6900 return _IMP_atom.SecondaryStructureResidue_get_particle(self)
6902 def get_all_probabilities(self):
6903 r"""get_all_probabilities(SecondaryStructureResidue self) -> IMP::Floats"""
6904 return _IMP_atom.SecondaryStructureResidue_get_all_probabilities(self)
6906 def get_prob_helix(self):
6907 r"""get_prob_helix(SecondaryStructureResidue self) -> IMP::Float"""
6908 return _IMP_atom.SecondaryStructureResidue_get_prob_helix(self)
6910 def set_prob_helix(self, t):
6911 r"""set_prob_helix(SecondaryStructureResidue self, IMP::Float t)"""
6912 return _IMP_atom.SecondaryStructureResidue_set_prob_helix(self, t)
6914 def get_prob_strand(self):
6915 r"""get_prob_strand(SecondaryStructureResidue self) -> IMP::Float"""
6916 return _IMP_atom.SecondaryStructureResidue_get_prob_strand(self)
6918 def set_prob_strand(self, t):
6919 r"""set_prob_strand(SecondaryStructureResidue self, IMP::Float t)"""
6920 return _IMP_atom.SecondaryStructureResidue_set_prob_strand(self, t)
6922 def get_prob_coil(self):
6923 r"""get_prob_coil(SecondaryStructureResidue self) -> IMP::Float"""
6924 return _IMP_atom.SecondaryStructureResidue_get_prob_coil(self)
6926 def set_prob_coil(self, t):
6927 r"""set_prob_coil(SecondaryStructureResidue self, IMP::Float t)"""
6928 return _IMP_atom.SecondaryStructureResidue_set_prob_coil(self, t)
6931 def get_prob_helix_key():
6932 r"""get_prob_helix_key() -> FloatKey"""
6933 return _IMP_atom.SecondaryStructureResidue_get_prob_helix_key()
6936 def get_prob_strand_key():
6937 r"""get_prob_strand_key() -> FloatKey"""
6938 return _IMP_atom.SecondaryStructureResidue_get_prob_strand_key()
6941 def get_prob_coil_key():
6942 r"""get_prob_coil_key() -> FloatKey"""
6943 return _IMP_atom.SecondaryStructureResidue_get_prob_coil_key()
6945 def add_attribute(self, *args):
6947 add_attribute(SecondaryStructureResidue self, FloatKey k, IMP::Float v, bool opt)
6948 add_attribute(SecondaryStructureResidue self, FloatKey a0, IMP::Float a1)
6949 add_attribute(SecondaryStructureResidue self, IntKey a0, IMP::Int a1)
6950 add_attribute(SecondaryStructureResidue self, FloatsKey a0, IMP::Floats a1)
6951 add_attribute(SecondaryStructureResidue self, IntsKey a0, IMP::Ints a1)
6952 add_attribute(SecondaryStructureResidue self, StringKey a0, IMP::String a1)
6953 add_attribute(SecondaryStructureResidue self, ParticleIndexKey a0, Particle a1)
6954 add_attribute(SecondaryStructureResidue self, ObjectKey a0, Object a1)
6955 add_attribute(SecondaryStructureResidue self, SparseFloatKey a0, IMP::Float a1)
6956 add_attribute(SecondaryStructureResidue self, SparseIntKey a0, IMP::Int a1)
6957 add_attribute(SecondaryStructureResidue self, SparseStringKey a0, IMP::String a1)
6958 add_attribute(SecondaryStructureResidue self, SparseParticleIndexKey a0, ParticleIndex a1)
6960 return _IMP_atom.SecondaryStructureResidue_add_attribute(self, *args)
6962 def get_value(self, *args):
6964 get_value(SecondaryStructureResidue self, FloatKey a0) -> IMP::Float
6965 get_value(SecondaryStructureResidue self, IntKey a0) -> IMP::Int
6966 get_value(SecondaryStructureResidue self, FloatsKey a0) -> IMP::Floats
6967 get_value(SecondaryStructureResidue self, IntsKey a0) -> IMP::Ints
6968 get_value(SecondaryStructureResidue self, StringKey a0) -> IMP::String
6969 get_value(SecondaryStructureResidue self, ParticleIndexKey a0) -> Particle
6970 get_value(SecondaryStructureResidue self, ObjectKey a0) -> Object
6971 get_value(SecondaryStructureResidue self, SparseFloatKey a0) -> IMP::Float
6972 get_value(SecondaryStructureResidue self, SparseIntKey a0) -> IMP::Int
6973 get_value(SecondaryStructureResidue self, SparseStringKey a0) -> IMP::String
6974 get_value(SecondaryStructureResidue self, SparseParticleIndexKey a0) -> ParticleIndex
6976 return _IMP_atom.SecondaryStructureResidue_get_value(self, *args)
6978 def set_value(self, *args):
6980 set_value(SecondaryStructureResidue self, FloatKey a0, IMP::Float a1)
6981 set_value(SecondaryStructureResidue self, IntKey a0, IMP::Int a1)
6982 set_value(SecondaryStructureResidue self, FloatsKey a0, IMP::Floats a1)
6983 set_value(SecondaryStructureResidue self, IntsKey a0, IMP::Ints a1)
6984 set_value(SecondaryStructureResidue self, StringKey a0, IMP::String a1)
6985 set_value(SecondaryStructureResidue self, ParticleIndexKey a0, Particle a1)
6986 set_value(SecondaryStructureResidue self, ObjectKey a0, Object a1)
6987 set_value(SecondaryStructureResidue self, SparseFloatKey a0, IMP::Float a1)
6988 set_value(SecondaryStructureResidue self, SparseIntKey a0, IMP::Int a1)
6989 set_value(SecondaryStructureResidue self, SparseStringKey a0, IMP::String a1)
6990 set_value(SecondaryStructureResidue self, SparseParticleIndexKey a0, ParticleIndex a1)
6992 return _IMP_atom.SecondaryStructureResidue_set_value(self, *args)
6994 def remove_attribute(self, *args):
6996 remove_attribute(SecondaryStructureResidue self, FloatKey a0)
6997 remove_attribute(SecondaryStructureResidue self, IntKey a0)
6998 remove_attribute(SecondaryStructureResidue self, FloatsKey a0)
6999 remove_attribute(SecondaryStructureResidue self, IntsKey a0)
7000 remove_attribute(SecondaryStructureResidue self, StringKey a0)
7001 remove_attribute(SecondaryStructureResidue self, ParticleIndexKey a0)
7002 remove_attribute(SecondaryStructureResidue self, ObjectKey a0)
7003 remove_attribute(SecondaryStructureResidue self, SparseFloatKey a0)
7004 remove_attribute(SecondaryStructureResidue self, SparseIntKey a0)
7005 remove_attribute(SecondaryStructureResidue self, SparseStringKey a0)
7006 remove_attribute(SecondaryStructureResidue self, SparseParticleIndexKey a0)
7008 return _IMP_atom.SecondaryStructureResidue_remove_attribute(self, *args)
7010 def has_attribute(self, *args):
7012 has_attribute(SecondaryStructureResidue self, FloatKey a0) -> bool
7013 has_attribute(SecondaryStructureResidue self, IntKey a0) -> bool
7014 has_attribute(SecondaryStructureResidue self, FloatsKey a0) -> bool
7015 has_attribute(SecondaryStructureResidue self, IntsKey a0) -> bool
7016 has_attribute(SecondaryStructureResidue self, StringKey a0) -> bool
7017 has_attribute(SecondaryStructureResidue self, ParticleIndexKey a0) -> bool
7018 has_attribute(SecondaryStructureResidue self, ObjectKey a0) -> bool
7019 has_attribute(SecondaryStructureResidue self, SparseFloatKey a0) -> bool
7020 has_attribute(SecondaryStructureResidue self, SparseIntKey a0) -> bool
7021 has_attribute(SecondaryStructureResidue self, SparseStringKey a0) -> bool
7022 has_attribute(SecondaryStructureResidue self, SparseParticleIndexKey a0) -> bool
7024 return _IMP_atom.SecondaryStructureResidue_has_attribute(self, *args)
7026 def get_derivative(self, a0):
7027 r"""get_derivative(SecondaryStructureResidue self, FloatKey a0) -> double"""
7028 return _IMP_atom.SecondaryStructureResidue_get_derivative(self, a0)
7031 r"""get_name(SecondaryStructureResidue self) -> std::string"""
7032 return _IMP_atom.SecondaryStructureResidue_get_name(self)
7034 def clear_caches(self):
7035 r"""clear_caches(SecondaryStructureResidue self)"""
7036 return _IMP_atom.SecondaryStructureResidue_clear_caches(self)
7038 def set_name(self, a0):
7039 r"""set_name(SecondaryStructureResidue self, std::string a0)"""
7040 return _IMP_atom.SecondaryStructureResidue_set_name(self, a0)
7043 r"""set_check_level(SecondaryStructureResidue self, IMP::CheckLevel a0)"""
7044 return _IMP_atom.SecondaryStructureResidue_set_check_level(self, a0)
7046 def add_to_derivative(self, a0, a1, a2):
7047 r"""add_to_derivative(SecondaryStructureResidue self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
7048 return _IMP_atom.SecondaryStructureResidue_add_to_derivative(self, a0, a1, a2)
7050 def set_is_optimized(self, a0, a1):
7051 r"""set_is_optimized(SecondaryStructureResidue self, FloatKey a0, bool a1)"""
7052 return _IMP_atom.SecondaryStructureResidue_set_is_optimized(self, a0, a1)
7054 def get_is_optimized(self, a0):
7055 r"""get_is_optimized(SecondaryStructureResidue self, FloatKey a0) -> bool"""
7056 return _IMP_atom.SecondaryStructureResidue_get_is_optimized(self, a0)
7059 r"""get_check_level(SecondaryStructureResidue self) -> IMP::CheckLevel"""
7060 return _IMP_atom.SecondaryStructureResidue_get_check_level(self)
7062 def __eq__(self, *args):
7064 __eq__(SecondaryStructureResidue self, SecondaryStructureResidue o) -> bool
7065 __eq__(SecondaryStructureResidue self, Particle d) -> bool
7067 return _IMP_atom.SecondaryStructureResidue___eq__(self, *args)
7069 def __ne__(self, *args):
7071 __ne__(SecondaryStructureResidue self, SecondaryStructureResidue o) -> bool
7072 __ne__(SecondaryStructureResidue self, Particle d) -> bool
7074 return _IMP_atom.SecondaryStructureResidue___ne__(self, *args)
7076 def __le__(self, *args):
7078 __le__(SecondaryStructureResidue self, SecondaryStructureResidue o) -> bool
7079 __le__(SecondaryStructureResidue self, Particle d) -> bool
7081 return _IMP_atom.SecondaryStructureResidue___le__(self, *args)
7083 def __lt__(self, *args):
7085 __lt__(SecondaryStructureResidue self, SecondaryStructureResidue o) -> bool
7086 __lt__(SecondaryStructureResidue self, Particle d) -> bool
7088 return _IMP_atom.SecondaryStructureResidue___lt__(self, *args)
7090 def __ge__(self, *args):
7092 __ge__(SecondaryStructureResidue self, SecondaryStructureResidue o) -> bool
7093 __ge__(SecondaryStructureResidue self, Particle d) -> bool
7095 return _IMP_atom.SecondaryStructureResidue___ge__(self, *args)
7097 def __gt__(self, *args):
7099 __gt__(SecondaryStructureResidue self, SecondaryStructureResidue o) -> bool
7100 __gt__(SecondaryStructureResidue self, Particle d) -> bool
7102 return _IMP_atom.SecondaryStructureResidue___gt__(self, *args)
7105 r"""__hash__(SecondaryStructureResidue self) -> std::size_t"""
7106 return _IMP_atom.SecondaryStructureResidue___hash__(self)
7109 r"""__str__(SecondaryStructureResidue self) -> std::string"""
7110 return _IMP_atom.SecondaryStructureResidue___str__(self)
7113 r"""__repr__(SecondaryStructureResidue self) -> std::string"""
7114 return _IMP_atom.SecondaryStructureResidue___repr__(self)
7116 def _get_as_binary(self):
7117 r"""_get_as_binary(SecondaryStructureResidue self) -> PyObject *"""
7118 return _IMP_atom.SecondaryStructureResidue__get_as_binary(self)
7120 def _set_from_binary(self, p):
7121 r"""_set_from_binary(SecondaryStructureResidue self, PyObject * p)"""
7122 return _IMP_atom.SecondaryStructureResidue__set_from_binary(self, p)
7124 def __getstate__(self):
7125 p = self._get_as_binary()
7126 if len(self.__dict__) > 1:
7127 d = self.__dict__.copy()
7132 def __setstate__(self, p):
7133 if not hasattr(self,
'this'):
7135 if isinstance(p, tuple):
7137 self.__dict__.update(d)
7138 return self._set_from_binary(p)
7140 __swig_destroy__ = _IMP_atom.delete_SecondaryStructureResidue
7143 _IMP_atom.SecondaryStructureResidue_swigregister(SecondaryStructureResidue)
7146 r"""setup_coarse_secondary_structure_residue(IMP::Particles const & ssr_ps, Model mdl, bool winner_takes_all_per_res=False) -> SecondaryStructureResidue"""
7147 return _IMP_atom.setup_coarse_secondary_structure_residue(ssr_ps, mdl, winner_takes_all_per_res)
7150 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"""
7151 return _IMP_atom.setup_coarse_secondary_structure_residues(ssr_ps, mdl, coarse_factor, start_res_num, winner_takes_all_per_res)
7154 r"""get_secondary_structure_match_score(SecondaryStructureResidue ssr1, SecondaryStructureResidue ssr2) -> IMP::Float"""
7155 return _IMP_atom.get_secondary_structure_match_score(ssr1, ssr2)
7157 def read_psipred(*args):
7159 read_psipred(TextInput inf, Model mdl) -> IMP::atom::SecondaryStructureResidues
7160 read_psipred(TextInput inf, IMP::Particles ps) -> IMP::atom::SecondaryStructureResidues
7162 return _IMP_atom.read_psipred(*args)
7164 r"""Proxy of C++ IMP::score_functor::DistancePairScore< IMP::score_functor::Dope > class."""
7166 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7167 __repr__ = _swig_repr
7169 def __init__(self, *args):
7171 __init__(_ADopeBase self, Dope t0, std::string name="FunctorDistancePairScore %1%") -> _ADopeBase
7172 __init__(_ADopeBase self) -> _ADopeBase
7174 _IMP_atom._ADopeBase_swiginit(self, _IMP_atom.new__ADopeBase(*args))
7176 def do_get_inputs(self, m, pis):
7177 r"""do_get_inputs(_ADopeBase self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7178 return _IMP_atom._ADopeBase_do_get_inputs(self, m, pis)
7180 def get_score_functor(self, *args):
7182 get_score_functor(_ADopeBase self) -> Dope
7183 get_score_functor(_ADopeBase self) -> Dope
7185 return _IMP_atom._ADopeBase_get_score_functor(self, *args)
7187 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
7188 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"""
7189 return _IMP_atom._ADopeBase_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
7191 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
7192 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"""
7193 return _IMP_atom._ADopeBase_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
7195 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
7196 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"""
7197 return _IMP_atom._ADopeBase_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
7199 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
7200 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"""
7201 return _IMP_atom._ADopeBase_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
7203 def get_version_info(self):
7204 r"""get_version_info(_ADopeBase self) -> VersionInfo"""
7205 return _IMP_atom._ADopeBase_get_version_info(self)
7206 __swig_destroy__ = _IMP_atom.delete__ADopeBase
7209 _IMP_atom._ADopeBase_swigregister(_ADopeBase)
7211 r"""Proxy of C++ IMP::score_functor::DistancePairScore< IMP::score_functor::Statistical< IMP::atom::DopeType,false,true,false > > class."""
7213 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7214 __repr__ = _swig_repr
7216 def __init__(self, *args):
7218 __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
7219 __init__(_BDopeBase self) -> _BDopeBase
7221 _IMP_atom._BDopeBase_swiginit(self, _IMP_atom.new__BDopeBase(*args))
7223 def do_get_inputs(self, m, pis):
7224 r"""do_get_inputs(_BDopeBase self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7225 return _IMP_atom._BDopeBase_do_get_inputs(self, m, pis)
7227 def get_score_functor(self, *args):
7229 get_score_functor(_BDopeBase self) -> _DopeBase
7230 get_score_functor(_BDopeBase self) -> _DopeBase
7232 return _IMP_atom._BDopeBase_get_score_functor(self, *args)
7234 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
7235 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"""
7236 return _IMP_atom._BDopeBase_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
7238 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
7239 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"""
7240 return _IMP_atom._BDopeBase_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
7242 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
7243 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"""
7244 return _IMP_atom._BDopeBase_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
7246 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
7247 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"""
7248 return _IMP_atom._BDopeBase_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
7250 def get_version_info(self):
7251 r"""get_version_info(_BDopeBase self) -> VersionInfo"""
7252 return _IMP_atom._BDopeBase_get_version_info(self)
7253 __swig_destroy__ = _IMP_atom.delete__BDopeBase
7256 _IMP_atom._BDopeBase_swigregister(_BDopeBase)
7258 r"""Proxy of C++ IMP::score_functor::DistancePairScore< IMP::score_functor::LoopStatistical > class."""
7260 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7261 __repr__ = _swig_repr
7263 def __init__(self, *args):
7265 __init__(_ALoopStatisticalBase self, LoopStatistical t0, std::string name="FunctorDistancePairScore %1%") -> _ALoopStatisticalBase
7266 __init__(_ALoopStatisticalBase self) -> _ALoopStatisticalBase
7268 _IMP_atom._ALoopStatisticalBase_swiginit(self, _IMP_atom.new__ALoopStatisticalBase(*args))
7270 def do_get_inputs(self, m, pis):
7271 r"""do_get_inputs(_ALoopStatisticalBase self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7272 return _IMP_atom._ALoopStatisticalBase_do_get_inputs(self, m, pis)
7274 def get_score_functor(self, *args):
7276 get_score_functor(_ALoopStatisticalBase self) -> LoopStatistical
7277 get_score_functor(_ALoopStatisticalBase self) -> LoopStatistical
7279 return _IMP_atom._ALoopStatisticalBase_get_score_functor(self, *args)
7281 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
7282 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"""
7283 return _IMP_atom._ALoopStatisticalBase_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
7285 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
7286 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"""
7287 return _IMP_atom._ALoopStatisticalBase_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
7289 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
7290 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"""
7291 return _IMP_atom._ALoopStatisticalBase_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
7293 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
7294 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"""
7295 return _IMP_atom._ALoopStatisticalBase_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
7297 def get_version_info(self):
7298 r"""get_version_info(_ALoopStatisticalBase self) -> VersionInfo"""
7299 return _IMP_atom._ALoopStatisticalBase_get_version_info(self)
7300 __swig_destroy__ = _IMP_atom.delete__ALoopStatisticalBase
7303 _IMP_atom._ALoopStatisticalBase_swigregister(_ALoopStatisticalBase)
7305 r"""Proxy of C++ IMP::score_functor::DistancePairScore< IMP::score_functor::Statistical< IMP::atom::LoopStatisticalType,false,true,false > > class."""
7307 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7308 __repr__ = _swig_repr
7310 def __init__(self, *args):
7312 __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
7313 __init__(_BLoopStatisticalBase self) -> _BLoopStatisticalBase
7315 _IMP_atom._BLoopStatisticalBase_swiginit(self, _IMP_atom.new__BLoopStatisticalBase(*args))
7317 def do_get_inputs(self, m, pis):
7318 r"""do_get_inputs(_BLoopStatisticalBase self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7319 return _IMP_atom._BLoopStatisticalBase_do_get_inputs(self, m, pis)
7321 def get_score_functor(self, *args):
7323 get_score_functor(_BLoopStatisticalBase self) -> _LoopStatisticalBase
7324 get_score_functor(_BLoopStatisticalBase self) -> _LoopStatisticalBase
7326 return _IMP_atom._BLoopStatisticalBase_get_score_functor(self, *args)
7328 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
7329 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"""
7330 return _IMP_atom._BLoopStatisticalBase_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
7332 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
7333 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"""
7334 return _IMP_atom._BLoopStatisticalBase_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
7336 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
7337 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"""
7338 return _IMP_atom._BLoopStatisticalBase_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
7340 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
7341 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"""
7342 return _IMP_atom._BLoopStatisticalBase_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
7344 def get_version_info(self):
7345 r"""get_version_info(_BLoopStatisticalBase self) -> VersionInfo"""
7346 return _IMP_atom._BLoopStatisticalBase_get_version_info(self)
7347 __swig_destroy__ = _IMP_atom.delete__BLoopStatisticalBase
7350 _IMP_atom._BLoopStatisticalBase_swigregister(_BLoopStatisticalBase)
7352 r"""Proxy of C++ IMP::score_functor::DistancePairScoreWithCache< IMP::score_functor::OrientedSoap > class."""
7354 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7355 __repr__ = _swig_repr
7357 def __init__(self, *args):
7358 r"""__init__(_OrientedSoapBase self, IMP::score_functor::DistancePairScoreWithCache< IMP::score_functor::OrientedSoap >::DistanceScore const & t0, std::string name="FunctorDistancePairScoreWithCache %1%") -> _OrientedSoapBase"""
7359 _IMP_atom._OrientedSoapBase_swiginit(self, _IMP_atom.new__OrientedSoapBase(*args))
7361 def do_get_inputs(self, m, pis):
7362 r"""do_get_inputs(_OrientedSoapBase self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7363 return _IMP_atom._OrientedSoapBase_do_get_inputs(self, m, pis)
7365 def get_score_functor(self):
7366 r"""get_score_functor(_OrientedSoapBase self) -> IMP::score_functor::OrientedSoap &"""
7367 return _IMP_atom._OrientedSoapBase_get_score_functor(self)
7369 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
7370 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"""
7371 return _IMP_atom._OrientedSoapBase_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
7373 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
7374 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"""
7375 return _IMP_atom._OrientedSoapBase_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
7377 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
7378 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"""
7379 return _IMP_atom._OrientedSoapBase_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
7381 def get_version_info(self):
7382 r"""get_version_info(_OrientedSoapBase self) -> VersionInfo"""
7383 return _IMP_atom._OrientedSoapBase_get_version_info(self)
7384 __swig_destroy__ = _IMP_atom.delete__OrientedSoapBase
7387 _IMP_atom._OrientedSoapBase_swigregister(_OrientedSoapBase)
7389 r"""Proxy of C++ IMP::score_functor::DistancePairScore< score_functor::Statistical< IMP::atom::ProteinLigandType,true,false > > class."""
7391 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7392 __repr__ = _swig_repr
7394 def __init__(self, *args):
7396 __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
7397 __init__(_SPSFTB self) -> _SPSFTB
7399 _IMP_atom._SPSFTB_swiginit(self, _IMP_atom.new__SPSFTB(*args))
7401 def do_get_inputs(self, m, pis):
7402 r"""do_get_inputs(_SPSFTB self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7403 return _IMP_atom._SPSFTB_do_get_inputs(self, m, pis)
7405 def get_score_functor(self, *args):
7407 get_score_functor(_SPSFTB self) -> IMP::score_functor::Statistical< IMP::atom::ProteinLigandType,true,false,false >
7408 get_score_functor(_SPSFTB self) -> IMP::score_functor::Statistical< IMP::atom::ProteinLigandType,true,false,false > const &
7410 return _IMP_atom._SPSFTB_get_score_functor(self, *args)
7412 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
7413 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"""
7414 return _IMP_atom._SPSFTB_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
7416 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
7417 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"""
7418 return _IMP_atom._SPSFTB_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
7420 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
7421 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"""
7422 return _IMP_atom._SPSFTB_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
7424 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
7425 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"""
7426 return _IMP_atom._SPSFTB_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
7428 def get_version_info(self):
7429 r"""get_version_info(_SPSFTB self) -> VersionInfo"""
7430 return _IMP_atom._SPSFTB_get_version_info(self)
7431 __swig_destroy__ = _IMP_atom.delete__SPSFTB
7434 _IMP_atom._SPSFTB_swigregister(_SPSFTB)
7435 class _SPSTF(_SPSFTB):
7436 r"""Proxy of C++ IMP::core::StatisticalPairScore< IMP::atom::ProteinLigandType,true,false > class."""
7438 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7439 __repr__ = _swig_repr
7441 def __init__(self, *args):
7443 __init__(_SPSTF self, IntKey k, double threshold, TextInput data_file) -> _SPSTF
7444 __init__(_SPSTF self, IntKey k, double threshold, TextInput data_file, unsigned int shift) -> _SPSTF
7446 _IMP_atom._SPSTF_swiginit(self, _IMP_atom.new__SPSTF(*args))
7447 __swig_destroy__ = _IMP_atom.delete__SPSTF
7450 _IMP_atom._SPSTF_swigregister(_SPSTF)
7451 class _SPSFT(_BDopeBase):
7452 r"""Proxy of C++ IMP::core::StatisticalPairScore< IMP::atom::DopeType,false,true > class."""
7454 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7455 __repr__ = _swig_repr
7457 def __init__(self, *args):
7459 __init__(_SPSFT self, IntKey k, double threshold, TextInput data_file) -> _SPSFT
7460 __init__(_SPSFT self, IntKey k, double threshold, TextInput data_file, unsigned int shift) -> _SPSFT
7462 _IMP_atom._SPSFT_swiginit(self, _IMP_atom.new__SPSFT(*args))
7463 __swig_destroy__ = _IMP_atom.delete__SPSFT
7466 _IMP_atom._SPSFT_swigregister(_SPSFT)
7467 class _SPSFTL(_BLoopStatisticalBase):
7468 r"""Proxy of C++ IMP::core::StatisticalPairScore< IMP::atom::LoopStatisticalType,false,true > class."""
7470 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7471 __repr__ = _swig_repr
7473 def __init__(self, *args):
7475 __init__(_SPSFTL self, IntKey k, double threshold, TextInput data_file) -> _SPSFTL
7476 __init__(_SPSFTL self, IntKey k, double threshold, TextInput data_file, unsigned int shift) -> _SPSFTL
7478 _IMP_atom._SPSFTL_swiginit(self, _IMP_atom.new__SPSFTL(*args))
7479 __swig_destroy__ = _IMP_atom.delete__SPSFTL
7482 _IMP_atom._SPSFTL_swigregister(_SPSFTL)
7483 class ProteinLigandAtomPairScore(_SPSTF):
7484 r"""Proxy of C++ IMP::atom::ProteinLigandAtomPairScore class."""
7486 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7488 def __init__(self, *args):
7490 __init__(ProteinLigandAtomPairScore self, double threshold=std::numeric_limits< double >::max()) -> ProteinLigandAtomPairScore
7491 __init__(ProteinLigandAtomPairScore self, double threshold, TextInput data_file) -> ProteinLigandAtomPairScore
7493 _IMP_atom.ProteinLigandAtomPairScore_swiginit(self, _IMP_atom.new_ProteinLigandAtomPairScore(*args))
7495 def get_maximum_distance(self):
7496 r"""get_maximum_distance(ProteinLigandAtomPairScore self) -> double"""
7497 return _IMP_atom.ProteinLigandAtomPairScore_get_maximum_distance(self)
7500 r"""__str__(ProteinLigandAtomPairScore self) -> std::string"""
7501 return _IMP_atom.ProteinLigandAtomPairScore___str__(self)
7504 r"""__repr__(ProteinLigandAtomPairScore self) -> std::string"""
7505 return _IMP_atom.ProteinLigandAtomPairScore___repr__(self)
7509 return _object_cast_to_ProteinLigandAtomPairScore(o)
7511 __swig_destroy__ = _IMP_atom.delete_ProteinLigandAtomPairScore
7514 _IMP_atom.ProteinLigandAtomPairScore_swigregister(ProteinLigandAtomPairScore)
7516 r"""Proxy of C++ IMP::atom::ProteinLigandRestraint class."""
7518 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7520 def __init__(self, *args):
7522 __init__(ProteinLigandRestraint self, Hierarchy protein, Hierarchy ligand, double threshold=std::numeric_limits< double >::max()) -> ProteinLigandRestraint
7523 __init__(ProteinLigandRestraint self, Hierarchy protein, Hierarchy ligand, double threshold, TextInput data_file) -> ProteinLigandRestraint
7525 _IMP_atom.ProteinLigandRestraint_swiginit(self, _IMP_atom.new_ProteinLigandRestraint(*args))
7528 r"""__str__(ProteinLigandRestraint self) -> std::string"""
7529 return _IMP_atom.ProteinLigandRestraint___str__(self)
7532 r"""__repr__(ProteinLigandRestraint self) -> std::string"""
7533 return _IMP_atom.ProteinLigandRestraint___repr__(self)
7537 return _object_cast_to_ProteinLigandRestraint(o)
7539 __swig_destroy__ = _IMP_atom.delete_ProteinLigandRestraint
7542 _IMP_atom.ProteinLigandRestraint_swigregister(ProteinLigandRestraint)
7545 r"""add_protein_ligand_score_data(Hierarchy h)"""
7546 return _IMP_atom.add_protein_ligand_score_data(h)
7547 class AtomType(IMP._Value):
7548 r"""Proxy of C++ IMP::Key< 8974343 > class."""
7550 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7552 def __init__(self, *args):
7554 __init__(AtomType self) -> AtomType
7555 __init__(AtomType self, std::string const & c, bool is_implicit_add_permitted=True) -> AtomType
7556 __init__(AtomType self, unsigned int i) -> AtomType
7558 _IMP_atom.AtomType_swiginit(self, _IMP_atom.new_AtomType(*args))
7562 r"""add_key(std::string sc) -> unsigned int"""
7563 return _IMP_atom.AtomType_add_key(sc)
7566 def get_key_exists(sc):
7567 r"""get_key_exists(std::string sc) -> bool"""
7568 return _IMP_atom.AtomType_get_key_exists(sc)
7570 def get_string(self):
7571 r"""get_string(AtomType self) -> std::string const"""
7572 return _IMP_atom.AtomType_get_string(self)
7574 def __cmp__(self, o):
7575 r"""__cmp__(AtomType self, AtomType o) -> int"""
7576 return _IMP_atom.AtomType___cmp__(self, o)
7578 def __eq__(self, o):
7579 r"""__eq__(AtomType self, AtomType o) -> bool"""
7580 return _IMP_atom.AtomType___eq__(self, o)
7582 def __ne__(self, o):
7583 r"""__ne__(AtomType self, AtomType o) -> bool"""
7584 return _IMP_atom.AtomType___ne__(self, o)
7586 def __lt__(self, o):
7587 r"""__lt__(AtomType self, AtomType o) -> bool"""
7588 return _IMP_atom.AtomType___lt__(self, o)
7590 def __gt__(self, o):
7591 r"""__gt__(AtomType self, AtomType o) -> bool"""
7592 return _IMP_atom.AtomType___gt__(self, o)
7594 def __ge__(self, o):
7595 r"""__ge__(AtomType self, AtomType o) -> bool"""
7596 return _IMP_atom.AtomType___ge__(self, o)
7598 def __le__(self, o):
7599 r"""__le__(AtomType self, AtomType o) -> bool"""
7600 return _IMP_atom.AtomType___le__(self, o)
7603 r"""__hash__(AtomType self) -> std::size_t"""
7604 return _IMP_atom.AtomType___hash__(self)
7606 def show(self, *args):
7607 r"""show(AtomType self, _ostream out=std::cout)"""
7608 return _IMP_atom.AtomType_show(self, *args)
7611 def add_alias(old_key, new_name):
7612 r"""add_alias(AtomType old_key, std::string new_name) -> AtomType"""
7613 return _IMP_atom.AtomType_add_alias(old_key, new_name)
7616 def get_number_of_keys():
7617 r"""get_number_of_keys() -> unsigned int"""
7618 return _IMP_atom.AtomType_get_number_of_keys()
7621 r"""get_index(AtomType self) -> unsigned int"""
7622 return _IMP_atom.AtomType_get_index(self)
7626 r"""show_all(_ostream out)"""
7627 return _IMP_atom.AtomType_show_all(out)
7630 def get_all_strings():
7631 r"""get_all_strings() -> IMP::Vector< std::string >"""
7632 return _IMP_atom.AtomType_get_all_strings()
7635 def get_number_unique():
7636 r"""get_number_unique() -> unsigned int"""
7637 return _IMP_atom.AtomType_get_number_unique()
7640 r"""__str__(AtomType self) -> std::string"""
7641 return _IMP_atom.AtomType___str__(self)
7644 r"""__repr__(AtomType self) -> std::string"""
7645 return _IMP_atom.AtomType___repr__(self)
7646 __swig_destroy__ = _IMP_atom.delete_AtomType
7649 _IMP_atom.AtomType_swigregister(AtomType)
7650 class ResidueType(IMP._Value):
7651 r"""Proxy of C++ IMP::Key< 90784334 > class."""
7653 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7655 def __init__(self, *args):
7657 __init__(ResidueType self) -> ResidueType
7658 __init__(ResidueType self, std::string const & c, bool is_implicit_add_permitted=True) -> ResidueType
7659 __init__(ResidueType self, unsigned int i) -> ResidueType
7661 _IMP_atom.ResidueType_swiginit(self, _IMP_atom.new_ResidueType(*args))
7665 r"""add_key(std::string sc) -> unsigned int"""
7666 return _IMP_atom.ResidueType_add_key(sc)
7669 def get_key_exists(sc):
7670 r"""get_key_exists(std::string sc) -> bool"""
7671 return _IMP_atom.ResidueType_get_key_exists(sc)
7673 def get_string(self):
7674 r"""get_string(ResidueType self) -> std::string const"""
7675 return _IMP_atom.ResidueType_get_string(self)
7677 def __cmp__(self, o):
7678 r"""__cmp__(ResidueType self, ResidueType o) -> int"""
7679 return _IMP_atom.ResidueType___cmp__(self, o)
7681 def __eq__(self, o):
7682 r"""__eq__(ResidueType self, ResidueType o) -> bool"""
7683 return _IMP_atom.ResidueType___eq__(self, o)
7685 def __ne__(self, o):
7686 r"""__ne__(ResidueType self, ResidueType o) -> bool"""
7687 return _IMP_atom.ResidueType___ne__(self, o)
7689 def __lt__(self, o):
7690 r"""__lt__(ResidueType self, ResidueType o) -> bool"""
7691 return _IMP_atom.ResidueType___lt__(self, o)
7693 def __gt__(self, o):
7694 r"""__gt__(ResidueType self, ResidueType o) -> bool"""
7695 return _IMP_atom.ResidueType___gt__(self, o)
7697 def __ge__(self, o):
7698 r"""__ge__(ResidueType self, ResidueType o) -> bool"""
7699 return _IMP_atom.ResidueType___ge__(self, o)
7701 def __le__(self, o):
7702 r"""__le__(ResidueType self, ResidueType o) -> bool"""
7703 return _IMP_atom.ResidueType___le__(self, o)
7706 r"""__hash__(ResidueType self) -> std::size_t"""
7707 return _IMP_atom.ResidueType___hash__(self)
7709 def show(self, *args):
7710 r"""show(ResidueType self, _ostream out=std::cout)"""
7711 return _IMP_atom.ResidueType_show(self, *args)
7714 def add_alias(old_key, new_name):
7715 r"""add_alias(ResidueType old_key, std::string new_name) -> ResidueType"""
7716 return _IMP_atom.ResidueType_add_alias(old_key, new_name)
7719 def get_number_of_keys():
7720 r"""get_number_of_keys() -> unsigned int"""
7721 return _IMP_atom.ResidueType_get_number_of_keys()
7724 r"""get_index(ResidueType self) -> unsigned int"""
7725 return _IMP_atom.ResidueType_get_index(self)
7729 r"""show_all(_ostream out)"""
7730 return _IMP_atom.ResidueType_show_all(out)
7733 def get_all_strings():
7734 r"""get_all_strings() -> IMP::Vector< std::string >"""
7735 return _IMP_atom.ResidueType_get_all_strings()
7738 def get_number_unique():
7739 r"""get_number_unique() -> unsigned int"""
7740 return _IMP_atom.ResidueType_get_number_unique()
7743 r"""__str__(ResidueType self) -> std::string"""
7744 return _IMP_atom.ResidueType___str__(self)
7747 r"""__repr__(ResidueType self) -> std::string"""
7748 return _IMP_atom.ResidueType___repr__(self)
7749 __swig_destroy__ = _IMP_atom.delete_ResidueType
7752 _IMP_atom.ResidueType_swigregister(ResidueType)
7753 class ChainType(IMP._Value):
7754 r"""Proxy of C++ IMP::Key< 90784336 > class."""
7756 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7758 def __init__(self, *args):
7760 __init__(ChainType self) -> ChainType
7761 __init__(ChainType self, std::string const & c, bool is_implicit_add_permitted=True) -> ChainType
7762 __init__(ChainType self, unsigned int i) -> ChainType
7764 _IMP_atom.ChainType_swiginit(self, _IMP_atom.new_ChainType(*args))
7768 r"""add_key(std::string sc) -> unsigned int"""
7769 return _IMP_atom.ChainType_add_key(sc)
7772 def get_key_exists(sc):
7773 r"""get_key_exists(std::string sc) -> bool"""
7774 return _IMP_atom.ChainType_get_key_exists(sc)
7776 def get_string(self):
7777 r"""get_string(ChainType self) -> std::string const"""
7778 return _IMP_atom.ChainType_get_string(self)
7780 def __cmp__(self, o):
7781 r"""__cmp__(ChainType self, ChainType o) -> int"""
7782 return _IMP_atom.ChainType___cmp__(self, o)
7784 def __eq__(self, o):
7785 r"""__eq__(ChainType self, ChainType o) -> bool"""
7786 return _IMP_atom.ChainType___eq__(self, o)
7788 def __ne__(self, o):
7789 r"""__ne__(ChainType self, ChainType o) -> bool"""
7790 return _IMP_atom.ChainType___ne__(self, o)
7792 def __lt__(self, o):
7793 r"""__lt__(ChainType self, ChainType o) -> bool"""
7794 return _IMP_atom.ChainType___lt__(self, o)
7796 def __gt__(self, o):
7797 r"""__gt__(ChainType self, ChainType o) -> bool"""
7798 return _IMP_atom.ChainType___gt__(self, o)
7800 def __ge__(self, o):
7801 r"""__ge__(ChainType self, ChainType o) -> bool"""
7802 return _IMP_atom.ChainType___ge__(self, o)
7804 def __le__(self, o):
7805 r"""__le__(ChainType self, ChainType o) -> bool"""
7806 return _IMP_atom.ChainType___le__(self, o)
7809 r"""__hash__(ChainType self) -> std::size_t"""
7810 return _IMP_atom.ChainType___hash__(self)
7812 def show(self, *args):
7813 r"""show(ChainType self, _ostream out=std::cout)"""
7814 return _IMP_atom.ChainType_show(self, *args)
7817 def add_alias(old_key, new_name):
7818 r"""add_alias(ChainType old_key, std::string new_name) -> ChainType"""
7819 return _IMP_atom.ChainType_add_alias(old_key, new_name)
7822 def get_number_of_keys():
7823 r"""get_number_of_keys() -> unsigned int"""
7824 return _IMP_atom.ChainType_get_number_of_keys()
7827 r"""get_index(ChainType self) -> unsigned int"""
7828 return _IMP_atom.ChainType_get_index(self)
7832 r"""show_all(_ostream out)"""
7833 return _IMP_atom.ChainType_show_all(out)
7836 def get_all_strings():
7837 r"""get_all_strings() -> IMP::Vector< std::string >"""
7838 return _IMP_atom.ChainType_get_all_strings()
7841 def get_number_unique():
7842 r"""get_number_unique() -> unsigned int"""
7843 return _IMP_atom.ChainType_get_number_unique()
7846 r"""__str__(ChainType self) -> std::string"""
7847 return _IMP_atom.ChainType___str__(self)
7850 r"""__repr__(ChainType self) -> std::string"""
7851 return _IMP_atom.ChainType___repr__(self)
7852 __swig_destroy__ = _IMP_atom.delete_ChainType
7855 _IMP_atom.ChainType_swigregister(ChainType)
7856 UNKNOWN_ELEMENT = _IMP_atom.UNKNOWN_ELEMENT
8074 NUMBER_OF_ELEMENTS = _IMP_atom.NUMBER_OF_ELEMENTS
8078 r"""hash_value(IMP::atom::Element e) -> size_t"""
8079 return _IMP_atom.hash_value(e)
8080 class ElementTable(object):
8081 r"""Proxy of C++ IMP::atom::ElementTable class."""
8083 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8084 __repr__ = _swig_repr
8087 r"""__init__(ElementTable self) -> ElementTable"""
8088 _IMP_atom.ElementTable_swiginit(self, _IMP_atom.new_ElementTable())
8090 def get_element(self, s):
8091 r"""get_element(ElementTable self, std::string const & s) -> IMP::atom::Element"""
8092 return _IMP_atom.ElementTable_get_element(self, s)
8094 def get_name(self, e):
8095 r"""get_name(ElementTable self, IMP::atom::Element e) -> std::string"""
8096 return _IMP_atom.ElementTable_get_name(self, e)
8099 r"""get_mass(ElementTable self, IMP::atom::Element e) -> IMP::Float"""
8100 return _IMP_atom.ElementTable_get_mass(self, e)
8101 __swig_destroy__ = _IMP_atom.delete_ElementTable
8104 _IMP_atom.ElementTable_swigregister(ElementTable)
8106 def get_element_table():
8107 r"""get_element_table() -> ElementTable"""
8108 return _IMP_atom.get_element_table()
8109 class Atom(Hierarchy):
8110 r"""Proxy of C++ IMP::atom::Atom class."""
8112 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8114 def __init__(self, *args):
8116 __init__(Atom self) -> Atom
8117 __init__(Atom self, Model m, ParticleIndex id) -> Atom
8118 __init__(Atom self, _ParticleAdaptor d) -> Atom
8120 _IMP_atom.Atom_swiginit(self, _IMP_atom.new_Atom(*args))
8122 def show(self, *args):
8123 r"""show(Atom self, _ostream out=std::cout)"""
8124 return _IMP_atom.Atom_show(self, *args)
8127 def setup_particle(*args):
8129 setup_particle(Model m, ParticleIndex pi, Atom other) -> Atom
8130 setup_particle(_ParticleAdaptor pa, Atom other) -> Atom
8131 setup_particle(Model m, ParticleIndex pi, AtomType atom_type) -> Atom
8132 setup_particle(_ParticleAdaptor pa, AtomType atom_type) -> Atom
8134 return _IMP_atom.Atom_setup_particle(*args)
8137 def get_is_setup(*args):
8139 get_is_setup(_ParticleAdaptor p) -> bool
8140 get_is_setup(Model m, ParticleIndex pi) -> bool
8142 return _IMP_atom.Atom_get_is_setup(*args)
8144 def get_atom_type(self):
8145 r"""get_atom_type(Atom self) -> AtomType"""
8146 return _IMP_atom.Atom_get_atom_type(self)
8148 def set_atom_type(self, t):
8149 r"""set_atom_type(Atom self, AtomType t)"""
8150 return _IMP_atom.Atom_set_atom_type(self, t)
8152 def get_element(self):
8153 r"""get_element(Atom self) -> IMP::atom::Element"""
8154 return _IMP_atom.Atom_get_element(self)
8156 def set_element(self, e):
8157 r"""set_element(Atom self, IMP::atom::Element e)"""
8158 return _IMP_atom.Atom_set_element(self, e)
8160 def get_occupancy(self):
8161 r"""get_occupancy(Atom self) -> double"""
8162 return _IMP_atom.Atom_get_occupancy(self)
8164 def set_occupancy(self, occupancy):
8165 r"""set_occupancy(Atom self, double occupancy)"""
8166 return _IMP_atom.Atom_set_occupancy(self, occupancy)
8168 def get_temperature_factor(self):
8169 r"""get_temperature_factor(Atom self) -> double"""
8170 return _IMP_atom.Atom_get_temperature_factor(self)
8172 def set_temperature_factor(self, tempFactor):
8173 r"""set_temperature_factor(Atom self, double tempFactor)"""
8174 return _IMP_atom.Atom_set_temperature_factor(self, tempFactor)
8176 def get_input_index(self):
8177 r"""get_input_index(Atom self) -> IMP::Int"""
8178 return _IMP_atom.Atom_get_input_index(self)
8180 def set_input_index(self, t):
8181 r"""set_input_index(Atom self, IMP::Int t)"""
8182 return _IMP_atom.Atom_set_input_index(self, t)
8185 def get_atom_type_key():
8186 r"""get_atom_type_key() -> IntKey"""
8187 return _IMP_atom.Atom_get_atom_type_key()
8190 def get_element_key():
8191 r"""get_element_key() -> IntKey"""
8192 return _IMP_atom.Atom_get_element_key()
8195 def get_input_index_key():
8196 r"""get_input_index_key() -> IntKey"""
8197 return _IMP_atom.Atom_get_input_index_key()
8200 def get_occupancy_key():
8201 r"""get_occupancy_key() -> FloatKey"""
8202 return _IMP_atom.Atom_get_occupancy_key()
8205 def get_temperature_factor_key():
8206 r"""get_temperature_factor_key() -> FloatKey"""
8207 return _IMP_atom.Atom_get_temperature_factor_key()
8209 def add_attribute(self, *args):
8211 add_attribute(Atom self, FloatKey k, IMP::Float v, bool opt)
8212 add_attribute(Atom self, FloatKey a0, IMP::Float a1)
8213 add_attribute(Atom self, IntKey a0, IMP::Int a1)
8214 add_attribute(Atom self, FloatsKey a0, IMP::Floats a1)
8215 add_attribute(Atom self, IntsKey a0, IMP::Ints a1)
8216 add_attribute(Atom self, StringKey a0, IMP::String a1)
8217 add_attribute(Atom self, ParticleIndexKey a0, Particle a1)
8218 add_attribute(Atom self, ObjectKey a0, Object a1)
8219 add_attribute(Atom self, SparseFloatKey a0, IMP::Float a1)
8220 add_attribute(Atom self, SparseIntKey a0, IMP::Int a1)
8221 add_attribute(Atom self, SparseStringKey a0, IMP::String a1)
8222 add_attribute(Atom self, SparseParticleIndexKey a0, ParticleIndex a1)
8224 return _IMP_atom.Atom_add_attribute(self, *args)
8226 def get_value(self, *args):
8228 get_value(Atom self, FloatKey a0) -> IMP::Float
8229 get_value(Atom self, IntKey a0) -> IMP::Int
8230 get_value(Atom self, FloatsKey a0) -> IMP::Floats
8231 get_value(Atom self, IntsKey a0) -> IMP::Ints
8232 get_value(Atom self, StringKey a0) -> IMP::String
8233 get_value(Atom self, ParticleIndexKey a0) -> Particle
8234 get_value(Atom self, ObjectKey a0) -> Object
8235 get_value(Atom self, SparseFloatKey a0) -> IMP::Float
8236 get_value(Atom self, SparseIntKey a0) -> IMP::Int
8237 get_value(Atom self, SparseStringKey a0) -> IMP::String
8238 get_value(Atom self, SparseParticleIndexKey a0) -> ParticleIndex
8240 return _IMP_atom.Atom_get_value(self, *args)
8242 def set_value(self, *args):
8244 set_value(Atom self, FloatKey a0, IMP::Float a1)
8245 set_value(Atom self, IntKey a0, IMP::Int a1)
8246 set_value(Atom self, FloatsKey a0, IMP::Floats a1)
8247 set_value(Atom self, IntsKey a0, IMP::Ints a1)
8248 set_value(Atom self, StringKey a0, IMP::String a1)
8249 set_value(Atom self, ParticleIndexKey a0, Particle a1)
8250 set_value(Atom self, ObjectKey a0, Object a1)
8251 set_value(Atom self, SparseFloatKey a0, IMP::Float a1)
8252 set_value(Atom self, SparseIntKey a0, IMP::Int a1)
8253 set_value(Atom self, SparseStringKey a0, IMP::String a1)
8254 set_value(Atom self, SparseParticleIndexKey a0, ParticleIndex a1)
8256 return _IMP_atom.Atom_set_value(self, *args)
8258 def remove_attribute(self, *args):
8260 remove_attribute(Atom self, FloatKey a0)
8261 remove_attribute(Atom self, IntKey a0)
8262 remove_attribute(Atom self, FloatsKey a0)
8263 remove_attribute(Atom self, IntsKey a0)
8264 remove_attribute(Atom self, StringKey a0)
8265 remove_attribute(Atom self, ParticleIndexKey a0)
8266 remove_attribute(Atom self, ObjectKey a0)
8267 remove_attribute(Atom self, SparseFloatKey a0)
8268 remove_attribute(Atom self, SparseIntKey a0)
8269 remove_attribute(Atom self, SparseStringKey a0)
8270 remove_attribute(Atom self, SparseParticleIndexKey a0)
8272 return _IMP_atom.Atom_remove_attribute(self, *args)
8274 def has_attribute(self, *args):
8276 has_attribute(Atom self, FloatKey a0) -> bool
8277 has_attribute(Atom self, IntKey a0) -> bool
8278 has_attribute(Atom self, FloatsKey a0) -> bool
8279 has_attribute(Atom self, IntsKey a0) -> bool
8280 has_attribute(Atom self, StringKey a0) -> bool
8281 has_attribute(Atom self, ParticleIndexKey a0) -> bool
8282 has_attribute(Atom self, ObjectKey a0) -> bool
8283 has_attribute(Atom self, SparseFloatKey a0) -> bool
8284 has_attribute(Atom self, SparseIntKey a0) -> bool
8285 has_attribute(Atom self, SparseStringKey a0) -> bool
8286 has_attribute(Atom self, SparseParticleIndexKey a0) -> bool
8288 return _IMP_atom.Atom_has_attribute(self, *args)
8290 def get_derivative(self, a0):
8291 r"""get_derivative(Atom self, FloatKey a0) -> double"""
8292 return _IMP_atom.Atom_get_derivative(self, a0)
8295 r"""get_name(Atom self) -> std::string"""
8296 return _IMP_atom.Atom_get_name(self)
8298 def clear_caches(self):
8299 r"""clear_caches(Atom self)"""
8300 return _IMP_atom.Atom_clear_caches(self)
8302 def set_name(self, a0):
8303 r"""set_name(Atom self, std::string a0)"""
8304 return _IMP_atom.Atom_set_name(self, a0)
8307 r"""set_check_level(Atom self, IMP::CheckLevel a0)"""
8308 return _IMP_atom.Atom_set_check_level(self, a0)
8310 def add_to_derivative(self, a0, a1, a2):
8311 r"""add_to_derivative(Atom self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8312 return _IMP_atom.Atom_add_to_derivative(self, a0, a1, a2)
8314 def set_is_optimized(self, a0, a1):
8315 r"""set_is_optimized(Atom self, FloatKey a0, bool a1)"""
8316 return _IMP_atom.Atom_set_is_optimized(self, a0, a1)
8318 def get_is_optimized(self, a0):
8319 r"""get_is_optimized(Atom self, FloatKey a0) -> bool"""
8320 return _IMP_atom.Atom_get_is_optimized(self, a0)
8323 r"""get_check_level(Atom self) -> IMP::CheckLevel"""
8324 return _IMP_atom.Atom_get_check_level(self)
8326 def __eq__(self, *args):
8328 __eq__(Atom self, Atom o) -> bool
8329 __eq__(Atom self, Particle d) -> bool
8331 return _IMP_atom.Atom___eq__(self, *args)
8333 def __ne__(self, *args):
8335 __ne__(Atom self, Atom o) -> bool
8336 __ne__(Atom self, Particle d) -> bool
8338 return _IMP_atom.Atom___ne__(self, *args)
8340 def __le__(self, *args):
8342 __le__(Atom self, Atom o) -> bool
8343 __le__(Atom self, Particle d) -> bool
8345 return _IMP_atom.Atom___le__(self, *args)
8347 def __lt__(self, *args):
8349 __lt__(Atom self, Atom o) -> bool
8350 __lt__(Atom self, Particle d) -> bool
8352 return _IMP_atom.Atom___lt__(self, *args)
8354 def __ge__(self, *args):
8356 __ge__(Atom self, Atom o) -> bool
8357 __ge__(Atom self, Particle d) -> bool
8359 return _IMP_atom.Atom___ge__(self, *args)
8361 def __gt__(self, *args):
8363 __gt__(Atom self, Atom o) -> bool
8364 __gt__(Atom self, Particle d) -> bool
8366 return _IMP_atom.Atom___gt__(self, *args)
8369 r"""__hash__(Atom self) -> std::size_t"""
8370 return _IMP_atom.Atom___hash__(self)
8373 r"""__str__(Atom self) -> std::string"""
8374 return _IMP_atom.Atom___str__(self)
8377 r"""__repr__(Atom self) -> std::string"""
8378 return _IMP_atom.Atom___repr__(self)
8380 def _get_as_binary(self):
8381 r"""_get_as_binary(Atom self) -> PyObject *"""
8382 return _IMP_atom.Atom__get_as_binary(self)
8384 def _set_from_binary(self, p):
8385 r"""_set_from_binary(Atom self, PyObject * p)"""
8386 return _IMP_atom.Atom__set_from_binary(self, p)
8388 def __getstate__(self):
8389 p = self._get_as_binary()
8390 if len(self.__dict__) > 1:
8391 d = self.__dict__.copy()
8396 def __setstate__(self, p):
8397 if not hasattr(self,
'this'):
8399 if isinstance(p, tuple):
8401 self.__dict__.update(d)
8402 return self._set_from_binary(p)
8404 __swig_destroy__ = _IMP_atom.delete_Atom
8407 _IMP_atom.Atom_swigregister(Atom)
8408 cvar = _IMP_atom.cvar
8409 AT_UNKNOWN = cvar.AT_UNKNOWN
8419 AT_HA1 = cvar.AT_HA1
8420 AT_HA2 = cvar.AT_HA2
8421 AT_HA3 = cvar.AT_HA3
8424 AT_HB1 = cvar.AT_HB1
8425 AT_HB2 = cvar.AT_HB2
8426 AT_HB3 = cvar.AT_HB3
8427 AT_OXT = cvar.AT_OXT
8428 AT_CH3 = cvar.AT_CH3
8431 AT_CG1 = cvar.AT_CG1
8432 AT_CG2 = cvar.AT_CG2
8434 AT_HG1 = cvar.AT_HG1
8435 AT_HG2 = cvar.AT_HG2
8436 AT_HG3 = cvar.AT_HG3
8437 AT_HG11 = cvar.AT_HG11
8438 AT_HG21 = cvar.AT_HG21
8439 AT_HG31 = cvar.AT_HG31
8440 AT_HG12 = cvar.AT_HG12
8441 AT_HG13 = cvar.AT_HG13
8442 AT_HG22 = cvar.AT_HG22
8443 AT_HG23 = cvar.AT_HG23
8444 AT_HG32 = cvar.AT_HG32
8446 AT_OG1 = cvar.AT_OG1
8449 AT_CD1 = cvar.AT_CD1
8450 AT_CD2 = cvar.AT_CD2
8452 AT_HD1 = cvar.AT_HD1
8453 AT_HD2 = cvar.AT_HD2
8454 AT_HD3 = cvar.AT_HD3
8455 AT_HD11 = cvar.AT_HD11
8456 AT_HD21 = cvar.AT_HD21
8457 AT_HD31 = cvar.AT_HD31
8458 AT_HD12 = cvar.AT_HD12
8459 AT_HD13 = cvar.AT_HD13
8460 AT_HD22 = cvar.AT_HD22
8461 AT_HD23 = cvar.AT_HD23
8462 AT_HD32 = cvar.AT_HD32
8464 AT_OD1 = cvar.AT_OD1
8465 AT_OD2 = cvar.AT_OD2
8466 AT_ND1 = cvar.AT_ND1
8467 AT_ND2 = cvar.AT_ND2
8469 AT_CE1 = cvar.AT_CE1
8470 AT_CE2 = cvar.AT_CE2
8471 AT_CE3 = cvar.AT_CE3
8473 AT_HE1 = cvar.AT_HE1
8474 AT_HE2 = cvar.AT_HE2
8475 AT_HE3 = cvar.AT_HE3
8476 AT_HE21 = cvar.AT_HE21
8477 AT_HE22 = cvar.AT_HE22
8478 AT_OE1 = cvar.AT_OE1
8479 AT_OE2 = cvar.AT_OE2
8481 AT_NE1 = cvar.AT_NE1
8482 AT_NE2 = cvar.AT_NE2
8484 AT_CZ2 = cvar.AT_CZ2
8485 AT_CZ3 = cvar.AT_CZ3
8488 AT_HZ1 = cvar.AT_HZ1
8489 AT_HZ2 = cvar.AT_HZ2
8490 AT_HZ3 = cvar.AT_HZ3
8491 AT_CH2 = cvar.AT_CH2
8492 AT_NH1 = cvar.AT_NH1
8493 AT_NH2 = cvar.AT_NH2
8496 AT_HH11 = cvar.AT_HH11
8497 AT_HH21 = cvar.AT_HH21
8498 AT_HH2 = cvar.AT_HH2
8499 AT_HH12 = cvar.AT_HH12
8500 AT_HH22 = cvar.AT_HH22
8501 AT_HH13 = cvar.AT_HH13
8502 AT_HH23 = cvar.AT_HH23
8503 AT_HH33 = cvar.AT_HH33
8505 AT_OP1 = cvar.AT_OP1
8506 AT_OP2 = cvar.AT_OP2
8507 AT_OP3 = cvar.AT_OP3
8508 AT_O5p = cvar.AT_O5p
8509 AT_C5p = cvar.AT_C5p
8510 AT_H5p = cvar.AT_H5p
8511 AT_H5pp = cvar.AT_H5pp
8512 AT_C4p = cvar.AT_C4p
8513 AT_H4p = cvar.AT_H4p
8514 AT_O4p = cvar.AT_O4p
8515 AT_C1p = cvar.AT_C1p
8516 AT_H1p = cvar.AT_H1p
8517 AT_C3p = cvar.AT_C3p
8518 AT_H3p = cvar.AT_H3p
8519 AT_O3p = cvar.AT_O3p
8520 AT_C2p = cvar.AT_C2p
8521 AT_H2p = cvar.AT_H2p
8522 AT_H2pp = cvar.AT_H2pp
8523 AT_O2p = cvar.AT_O2p
8524 AT_HO2p = cvar.AT_HO2p
8536 AT_H61 = cvar.AT_H61
8537 AT_H62 = cvar.AT_H62
8541 AT_H21 = cvar.AT_H21
8542 AT_H22 = cvar.AT_H22
8547 AT_H41 = cvar.AT_H41
8548 AT_H42 = cvar.AT_H42
8551 AT_H71 = cvar.AT_H71
8552 AT_H72 = cvar.AT_H72
8553 AT_H73 = cvar.AT_H73
8554 AT_O1A = cvar.AT_O1A
8555 AT_O2A = cvar.AT_O2A
8556 AT_O3A = cvar.AT_O3A
8557 AT_O1B = cvar.AT_O1B
8558 AT_O2B = cvar.AT_O2B
8559 AT_O3B = cvar.AT_O3B
8560 AT_CAY = cvar.AT_CAY
8563 AT_CAT = cvar.AT_CAT
8568 get_residue(Hierarchy mhd, unsigned int index) -> Hierarchy
8569 get_residue(Atom d, bool nothrow=False) -> Residue
8571 return _IMP_atom.get_residue(*args)
8574 r"""get_atom(Residue rd, AtomType at) -> Atom"""
8575 return _IMP_atom.get_atom(rd, at)
8578 r"""add_atom_type(std::string name, IMP::atom::Element e) -> AtomType"""
8579 return _IMP_atom.add_atom_type(name, e)
8581 def get_element_for_atom_type(at):
8582 r"""get_element_for_atom_type(AtomType at) -> IMP::atom::Element"""
8583 return _IMP_atom.get_element_for_atom_type(at)
8586 r"""get_atom_type_exists(std::string name) -> bool"""
8587 return _IMP_atom.get_atom_type_exists(name)
8588 class Residue(Hierarchy):
8589 r"""Proxy of C++ IMP::atom::Residue class."""
8591 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8593 def __init__(self, *args):
8595 __init__(Residue self) -> Residue
8596 __init__(Residue self, Model m, ParticleIndex id) -> Residue
8597 __init__(Residue self, _ParticleAdaptor d) -> Residue
8599 _IMP_atom.Residue_swiginit(self, _IMP_atom.new_Residue(*args))
8601 def show(self, *args):
8602 r"""show(Residue self, _ostream out=std::cout)"""
8603 return _IMP_atom.Residue_show(self, *args)
8606 def setup_particle(*args):
8608 setup_particle(Model m, ParticleIndex pi, ResidueType t, int index, int insertion_code) -> Residue
8609 setup_particle(_ParticleAdaptor pa, ResidueType t, int index, int insertion_code) -> Residue
8610 setup_particle(Model m, ParticleIndex pi, ResidueType t, int index) -> Residue
8611 setup_particle(_ParticleAdaptor pa, ResidueType t, int index) -> Residue
8612 setup_particle(Model m, ParticleIndex pi, ResidueType t) -> Residue
8613 setup_particle(_ParticleAdaptor pa, ResidueType t) -> Residue
8614 setup_particle(Model m, ParticleIndex pi, Residue other) -> Residue
8615 setup_particle(_ParticleAdaptor pa, Residue other) -> Residue
8617 return _IMP_atom.Residue_setup_particle(*args)
8620 def get_is_setup(*args):
8622 get_is_setup(_ParticleAdaptor p) -> bool
8623 get_is_setup(Model m, ParticleIndex pi) -> bool
8625 return _IMP_atom.Residue_get_is_setup(*args)
8627 def get_residue_type(self):
8628 r"""get_residue_type(Residue self) -> ResidueType"""
8629 return _IMP_atom.Residue_get_residue_type(self)
8631 def set_residue_type(self, t):
8632 r"""set_residue_type(Residue self, ResidueType t)"""
8633 return _IMP_atom.Residue_set_residue_type(self, t)
8635 def get_is_protein(self):
8636 r"""get_is_protein(Residue self) -> bool"""
8637 return _IMP_atom.Residue_get_is_protein(self)
8639 def get_is_dna(self):
8640 r"""get_is_dna(Residue self) -> bool"""
8641 return _IMP_atom.Residue_get_is_dna(self)
8643 def get_is_rna(self):
8644 r"""get_is_rna(Residue self) -> bool"""
8645 return _IMP_atom.Residue_get_is_rna(self)
8648 r"""get_index(Residue self) -> IMP::Int"""
8649 return _IMP_atom.Residue_get_index(self)
8651 def set_index(self, t):
8652 r"""set_index(Residue self, IMP::Int t)"""
8653 return _IMP_atom.Residue_set_index(self, t)
8655 def get_insertion_code(self):
8656 r"""get_insertion_code(Residue self) -> char"""
8657 return _IMP_atom.Residue_get_insertion_code(self)
8659 def set_insertion_code(self, insertion_code):
8660 r"""set_insertion_code(Residue self, char insertion_code)"""
8661 return _IMP_atom.Residue_set_insertion_code(self, insertion_code)
8664 def get_index_key():
8665 r"""get_index_key() -> IntKey"""
8666 return _IMP_atom.Residue_get_index_key()
8669 def get_residue_type_key():
8670 r"""get_residue_type_key() -> IntKey"""
8671 return _IMP_atom.Residue_get_residue_type_key()
8674 def get_insertion_code_key():
8675 r"""get_insertion_code_key() -> IntKey"""
8676 return _IMP_atom.Residue_get_insertion_code_key()
8679 def get_type_changed_key():
8680 r"""get_type_changed_key() -> TriggerKey"""
8681 return _IMP_atom.Residue_get_type_changed_key()
8683 def add_attribute(self, *args):
8685 add_attribute(Residue self, FloatKey k, IMP::Float v, bool opt)
8686 add_attribute(Residue self, FloatKey a0, IMP::Float a1)
8687 add_attribute(Residue self, IntKey a0, IMP::Int a1)
8688 add_attribute(Residue self, FloatsKey a0, IMP::Floats a1)
8689 add_attribute(Residue self, IntsKey a0, IMP::Ints a1)
8690 add_attribute(Residue self, StringKey a0, IMP::String a1)
8691 add_attribute(Residue self, ParticleIndexKey a0, Particle a1)
8692 add_attribute(Residue self, ObjectKey a0, Object a1)
8693 add_attribute(Residue self, SparseFloatKey a0, IMP::Float a1)
8694 add_attribute(Residue self, SparseIntKey a0, IMP::Int a1)
8695 add_attribute(Residue self, SparseStringKey a0, IMP::String a1)
8696 add_attribute(Residue self, SparseParticleIndexKey a0, ParticleIndex a1)
8698 return _IMP_atom.Residue_add_attribute(self, *args)
8700 def get_value(self, *args):
8702 get_value(Residue self, FloatKey a0) -> IMP::Float
8703 get_value(Residue self, IntKey a0) -> IMP::Int
8704 get_value(Residue self, FloatsKey a0) -> IMP::Floats
8705 get_value(Residue self, IntsKey a0) -> IMP::Ints
8706 get_value(Residue self, StringKey a0) -> IMP::String
8707 get_value(Residue self, ParticleIndexKey a0) -> Particle
8708 get_value(Residue self, ObjectKey a0) -> Object
8709 get_value(Residue self, SparseFloatKey a0) -> IMP::Float
8710 get_value(Residue self, SparseIntKey a0) -> IMP::Int
8711 get_value(Residue self, SparseStringKey a0) -> IMP::String
8712 get_value(Residue self, SparseParticleIndexKey a0) -> ParticleIndex
8714 return _IMP_atom.Residue_get_value(self, *args)
8716 def set_value(self, *args):
8718 set_value(Residue self, FloatKey a0, IMP::Float a1)
8719 set_value(Residue self, IntKey a0, IMP::Int a1)
8720 set_value(Residue self, FloatsKey a0, IMP::Floats a1)
8721 set_value(Residue self, IntsKey a0, IMP::Ints a1)
8722 set_value(Residue self, StringKey a0, IMP::String a1)
8723 set_value(Residue self, ParticleIndexKey a0, Particle a1)
8724 set_value(Residue self, ObjectKey a0, Object a1)
8725 set_value(Residue self, SparseFloatKey a0, IMP::Float a1)
8726 set_value(Residue self, SparseIntKey a0, IMP::Int a1)
8727 set_value(Residue self, SparseStringKey a0, IMP::String a1)
8728 set_value(Residue self, SparseParticleIndexKey a0, ParticleIndex a1)
8730 return _IMP_atom.Residue_set_value(self, *args)
8732 def remove_attribute(self, *args):
8734 remove_attribute(Residue self, FloatKey a0)
8735 remove_attribute(Residue self, IntKey a0)
8736 remove_attribute(Residue self, FloatsKey a0)
8737 remove_attribute(Residue self, IntsKey a0)
8738 remove_attribute(Residue self, StringKey a0)
8739 remove_attribute(Residue self, ParticleIndexKey a0)
8740 remove_attribute(Residue self, ObjectKey a0)
8741 remove_attribute(Residue self, SparseFloatKey a0)
8742 remove_attribute(Residue self, SparseIntKey a0)
8743 remove_attribute(Residue self, SparseStringKey a0)
8744 remove_attribute(Residue self, SparseParticleIndexKey a0)
8746 return _IMP_atom.Residue_remove_attribute(self, *args)
8748 def has_attribute(self, *args):
8750 has_attribute(Residue self, FloatKey a0) -> bool
8751 has_attribute(Residue self, IntKey a0) -> bool
8752 has_attribute(Residue self, FloatsKey a0) -> bool
8753 has_attribute(Residue self, IntsKey a0) -> bool
8754 has_attribute(Residue self, StringKey a0) -> bool
8755 has_attribute(Residue self, ParticleIndexKey a0) -> bool
8756 has_attribute(Residue self, ObjectKey a0) -> bool
8757 has_attribute(Residue self, SparseFloatKey a0) -> bool
8758 has_attribute(Residue self, SparseIntKey a0) -> bool
8759 has_attribute(Residue self, SparseStringKey a0) -> bool
8760 has_attribute(Residue self, SparseParticleIndexKey a0) -> bool
8762 return _IMP_atom.Residue_has_attribute(self, *args)
8764 def get_derivative(self, a0):
8765 r"""get_derivative(Residue self, FloatKey a0) -> double"""
8766 return _IMP_atom.Residue_get_derivative(self, a0)
8769 r"""get_name(Residue self) -> std::string"""
8770 return _IMP_atom.Residue_get_name(self)
8772 def clear_caches(self):
8773 r"""clear_caches(Residue self)"""
8774 return _IMP_atom.Residue_clear_caches(self)
8776 def set_name(self, a0):
8777 r"""set_name(Residue self, std::string a0)"""
8778 return _IMP_atom.Residue_set_name(self, a0)
8781 r"""set_check_level(Residue self, IMP::CheckLevel a0)"""
8782 return _IMP_atom.Residue_set_check_level(self, a0)
8784 def add_to_derivative(self, a0, a1, a2):
8785 r"""add_to_derivative(Residue self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8786 return _IMP_atom.Residue_add_to_derivative(self, a0, a1, a2)
8788 def set_is_optimized(self, a0, a1):
8789 r"""set_is_optimized(Residue self, FloatKey a0, bool a1)"""
8790 return _IMP_atom.Residue_set_is_optimized(self, a0, a1)
8792 def get_is_optimized(self, a0):
8793 r"""get_is_optimized(Residue self, FloatKey a0) -> bool"""
8794 return _IMP_atom.Residue_get_is_optimized(self, a0)
8797 r"""get_check_level(Residue self) -> IMP::CheckLevel"""
8798 return _IMP_atom.Residue_get_check_level(self)
8800 def __eq__(self, *args):
8802 __eq__(Residue self, Residue o) -> bool
8803 __eq__(Residue self, Particle d) -> bool
8805 return _IMP_atom.Residue___eq__(self, *args)
8807 def __ne__(self, *args):
8809 __ne__(Residue self, Residue o) -> bool
8810 __ne__(Residue self, Particle d) -> bool
8812 return _IMP_atom.Residue___ne__(self, *args)
8814 def __le__(self, *args):
8816 __le__(Residue self, Residue o) -> bool
8817 __le__(Residue self, Particle d) -> bool
8819 return _IMP_atom.Residue___le__(self, *args)
8821 def __lt__(self, *args):
8823 __lt__(Residue self, Residue o) -> bool
8824 __lt__(Residue self, Particle d) -> bool
8826 return _IMP_atom.Residue___lt__(self, *args)
8828 def __ge__(self, *args):
8830 __ge__(Residue self, Residue o) -> bool
8831 __ge__(Residue self, Particle d) -> bool
8833 return _IMP_atom.Residue___ge__(self, *args)
8835 def __gt__(self, *args):
8837 __gt__(Residue self, Residue o) -> bool
8838 __gt__(Residue self, Particle d) -> bool
8840 return _IMP_atom.Residue___gt__(self, *args)
8843 r"""__hash__(Residue self) -> std::size_t"""
8844 return _IMP_atom.Residue___hash__(self)
8847 r"""__str__(Residue self) -> std::string"""
8848 return _IMP_atom.Residue___str__(self)
8851 r"""__repr__(Residue self) -> std::string"""
8852 return _IMP_atom.Residue___repr__(self)
8854 def _get_as_binary(self):
8855 r"""_get_as_binary(Residue self) -> PyObject *"""
8856 return _IMP_atom.Residue__get_as_binary(self)
8858 def _set_from_binary(self, p):
8859 r"""_set_from_binary(Residue self, PyObject * p)"""
8860 return _IMP_atom.Residue__set_from_binary(self, p)
8862 def __getstate__(self):
8863 p = self._get_as_binary()
8864 if len(self.__dict__) > 1:
8865 d = self.__dict__.copy()
8870 def __setstate__(self, p):
8871 if not hasattr(self,
'this'):
8873 if isinstance(p, tuple):
8875 self.__dict__.update(d)
8876 return self._set_from_binary(p)
8878 __swig_destroy__ = _IMP_atom.delete_Residue
8881 _IMP_atom.Residue_swigregister(Residue)
8922 r"""get_next_residue(Residue rd) -> Hierarchy"""
8923 return _IMP_atom.get_next_residue(rd)
8926 r"""get_previous_residue(Residue rd) -> Hierarchy"""
8927 return _IMP_atom.get_previous_residue(rd)
8930 r"""get_one_letter_code(ResidueType c) -> char"""
8931 return _IMP_atom.get_one_letter_code(c)
8932 BALLS = _IMP_atom.BALLS
8934 DENSITIES = _IMP_atom.DENSITIES
8936 class Representation(Hierarchy):
8937 r"""Proxy of C++ IMP::atom::Representation class."""
8939 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8942 def setup_particle(*args):
8944 setup_particle(Model m, ParticleIndex pi) -> Representation
8945 setup_particle(_ParticleAdaptor pa) -> Representation
8946 setup_particle(Model m, ParticleIndex pi, double resolution) -> Representation
8947 setup_particle(_ParticleAdaptor pa, double resolution) -> Representation
8948 setup_particle(Model m, ParticleIndex pi, Representation other) -> Representation
8949 setup_particle(_ParticleAdaptor pa, Representation other) -> Representation
8951 return _IMP_atom.Representation_setup_particle(*args)
8953 def __init__(self, *args):
8955 __init__(Representation self) -> Representation
8956 __init__(Representation self, Model m, ParticleIndex id) -> Representation
8957 __init__(Representation self, _ParticleAdaptor d) -> Representation
8959 _IMP_atom.Representation_swiginit(self, _IMP_atom.new_Representation(*args))
8961 def show(self, *args):
8962 r"""show(Representation self, _ostream out=std::cout)"""
8963 return _IMP_atom.Representation_show(self, *args)
8966 def get_is_setup(*args):
8968 get_is_setup(_ParticleAdaptor p) -> bool
8969 get_is_setup(Model m, ParticleIndex pi) -> bool
8971 return _IMP_atom.Representation_get_is_setup(*args)
8974 r"""get_representation(Representation self, double resolution, IMP::atom::RepresentationType type=BALLS) -> Hierarchy"""
8975 return _IMP_atom.Representation_get_representation(self, *args)
8977 def get_representations(self, *args):
8978 r"""get_representations(Representation self, IMP::atom::RepresentationType type=BALLS) -> IMP::atom::Hierarchies"""
8979 return _IMP_atom.Representation_get_representations(self, *args)
8981 def add_representation(self, *args):
8982 r"""add_representation(Representation self, _ParticleIndexAdaptor rep, IMP::atom::RepresentationType type=BALLS, double resolution=-1)"""
8983 return _IMP_atom.Representation_add_representation(self, *args)
8985 def get_resolutions(self, *args):
8986 r"""get_resolutions(Representation self, IMP::atom::RepresentationType type=BALLS) -> IMP::Floats"""
8987 return _IMP_atom.Representation_get_resolutions(self, *args)
8989 def remove_representation(self, rep):
8990 r"""remove_representation(Representation self, _ParticleIndexAdaptor rep)"""
8991 return _IMP_atom.Representation_remove_representation(self, rep)
8993 def update_parents(self):
8994 r"""update_parents(Representation self)"""
8995 return _IMP_atom.Representation_update_parents(self)
8997 def add_attribute(self, *args):
8999 add_attribute(Representation self, FloatKey k, IMP::Float v, bool opt)
9000 add_attribute(Representation self, FloatKey a0, IMP::Float a1)
9001 add_attribute(Representation self, IntKey a0, IMP::Int a1)
9002 add_attribute(Representation self, FloatsKey a0, IMP::Floats a1)
9003 add_attribute(Representation self, IntsKey a0, IMP::Ints a1)
9004 add_attribute(Representation self, StringKey a0, IMP::String a1)
9005 add_attribute(Representation self, ParticleIndexKey a0, Particle a1)
9006 add_attribute(Representation self, ObjectKey a0, Object a1)
9007 add_attribute(Representation self, SparseFloatKey a0, IMP::Float a1)
9008 add_attribute(Representation self, SparseIntKey a0, IMP::Int a1)
9009 add_attribute(Representation self, SparseStringKey a0, IMP::String a1)
9010 add_attribute(Representation self, SparseParticleIndexKey a0, ParticleIndex a1)
9012 return _IMP_atom.Representation_add_attribute(self, *args)
9014 def get_value(self, *args):
9016 get_value(Representation self, FloatKey a0) -> IMP::Float
9017 get_value(Representation self, IntKey a0) -> IMP::Int
9018 get_value(Representation self, FloatsKey a0) -> IMP::Floats
9019 get_value(Representation self, IntsKey a0) -> IMP::Ints
9020 get_value(Representation self, StringKey a0) -> IMP::String
9021 get_value(Representation self, ParticleIndexKey a0) -> Particle
9022 get_value(Representation self, ObjectKey a0) -> Object
9023 get_value(Representation self, SparseFloatKey a0) -> IMP::Float
9024 get_value(Representation self, SparseIntKey a0) -> IMP::Int
9025 get_value(Representation self, SparseStringKey a0) -> IMP::String
9026 get_value(Representation self, SparseParticleIndexKey a0) -> ParticleIndex
9028 return _IMP_atom.Representation_get_value(self, *args)
9030 def set_value(self, *args):
9032 set_value(Representation self, FloatKey a0, IMP::Float a1)
9033 set_value(Representation self, IntKey a0, IMP::Int a1)
9034 set_value(Representation self, FloatsKey a0, IMP::Floats a1)
9035 set_value(Representation self, IntsKey a0, IMP::Ints a1)
9036 set_value(Representation self, StringKey a0, IMP::String a1)
9037 set_value(Representation self, ParticleIndexKey a0, Particle a1)
9038 set_value(Representation self, ObjectKey a0, Object a1)
9039 set_value(Representation self, SparseFloatKey a0, IMP::Float a1)
9040 set_value(Representation self, SparseIntKey a0, IMP::Int a1)
9041 set_value(Representation self, SparseStringKey a0, IMP::String a1)
9042 set_value(Representation self, SparseParticleIndexKey a0, ParticleIndex a1)
9044 return _IMP_atom.Representation_set_value(self, *args)
9046 def remove_attribute(self, *args):
9048 remove_attribute(Representation self, FloatKey a0)
9049 remove_attribute(Representation self, IntKey a0)
9050 remove_attribute(Representation self, FloatsKey a0)
9051 remove_attribute(Representation self, IntsKey a0)
9052 remove_attribute(Representation self, StringKey a0)
9053 remove_attribute(Representation self, ParticleIndexKey a0)
9054 remove_attribute(Representation self, ObjectKey a0)
9055 remove_attribute(Representation self, SparseFloatKey a0)
9056 remove_attribute(Representation self, SparseIntKey a0)
9057 remove_attribute(Representation self, SparseStringKey a0)
9058 remove_attribute(Representation self, SparseParticleIndexKey a0)
9060 return _IMP_atom.Representation_remove_attribute(self, *args)
9062 def has_attribute(self, *args):
9064 has_attribute(Representation self, FloatKey a0) -> bool
9065 has_attribute(Representation self, IntKey a0) -> bool
9066 has_attribute(Representation self, FloatsKey a0) -> bool
9067 has_attribute(Representation self, IntsKey a0) -> bool
9068 has_attribute(Representation self, StringKey a0) -> bool
9069 has_attribute(Representation self, ParticleIndexKey a0) -> bool
9070 has_attribute(Representation self, ObjectKey a0) -> bool
9071 has_attribute(Representation self, SparseFloatKey a0) -> bool
9072 has_attribute(Representation self, SparseIntKey a0) -> bool
9073 has_attribute(Representation self, SparseStringKey a0) -> bool
9074 has_attribute(Representation self, SparseParticleIndexKey a0) -> bool
9076 return _IMP_atom.Representation_has_attribute(self, *args)
9078 def get_derivative(self, a0):
9079 r"""get_derivative(Representation self, FloatKey a0) -> double"""
9080 return _IMP_atom.Representation_get_derivative(self, a0)
9083 r"""get_name(Representation self) -> std::string"""
9084 return _IMP_atom.Representation_get_name(self)
9086 def clear_caches(self):
9087 r"""clear_caches(Representation self)"""
9088 return _IMP_atom.Representation_clear_caches(self)
9090 def set_name(self, a0):
9091 r"""set_name(Representation self, std::string a0)"""
9092 return _IMP_atom.Representation_set_name(self, a0)
9095 r"""set_check_level(Representation self, IMP::CheckLevel a0)"""
9096 return _IMP_atom.Representation_set_check_level(self, a0)
9098 def add_to_derivative(self, a0, a1, a2):
9099 r"""add_to_derivative(Representation self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
9100 return _IMP_atom.Representation_add_to_derivative(self, a0, a1, a2)
9102 def set_is_optimized(self, a0, a1):
9103 r"""set_is_optimized(Representation self, FloatKey a0, bool a1)"""
9104 return _IMP_atom.Representation_set_is_optimized(self, a0, a1)
9106 def get_is_optimized(self, a0):
9107 r"""get_is_optimized(Representation self, FloatKey a0) -> bool"""
9108 return _IMP_atom.Representation_get_is_optimized(self, a0)
9111 r"""get_check_level(Representation self) -> IMP::CheckLevel"""
9112 return _IMP_atom.Representation_get_check_level(self)
9114 def __eq__(self, *args):
9116 __eq__(Representation self, Representation o) -> bool
9117 __eq__(Representation self, Particle d) -> bool
9119 return _IMP_atom.Representation___eq__(self, *args)
9121 def __ne__(self, *args):
9123 __ne__(Representation self, Representation o) -> bool
9124 __ne__(Representation self, Particle d) -> bool
9126 return _IMP_atom.Representation___ne__(self, *args)
9128 def __le__(self, *args):
9130 __le__(Representation self, Representation o) -> bool
9131 __le__(Representation self, Particle d) -> bool
9133 return _IMP_atom.Representation___le__(self, *args)
9135 def __lt__(self, *args):
9137 __lt__(Representation self, Representation o) -> bool
9138 __lt__(Representation self, Particle d) -> bool
9140 return _IMP_atom.Representation___lt__(self, *args)
9142 def __ge__(self, *args):
9144 __ge__(Representation self, Representation o) -> bool
9145 __ge__(Representation self, Particle d) -> bool
9147 return _IMP_atom.Representation___ge__(self, *args)
9149 def __gt__(self, *args):
9151 __gt__(Representation self, Representation o) -> bool
9152 __gt__(Representation self, Particle d) -> bool
9154 return _IMP_atom.Representation___gt__(self, *args)
9157 r"""__hash__(Representation self) -> std::size_t"""
9158 return _IMP_atom.Representation___hash__(self)
9161 r"""__str__(Representation self) -> std::string"""
9162 return _IMP_atom.Representation___str__(self)
9165 r"""__repr__(Representation self) -> std::string"""
9166 return _IMP_atom.Representation___repr__(self)
9168 def _get_as_binary(self):
9169 r"""_get_as_binary(Representation self) -> PyObject *"""
9170 return _IMP_atom.Representation__get_as_binary(self)
9172 def _set_from_binary(self, p):
9173 r"""_set_from_binary(Representation self, PyObject * p)"""
9174 return _IMP_atom.Representation__set_from_binary(self, p)
9176 def __getstate__(self):
9177 p = self._get_as_binary()
9178 if len(self.__dict__) > 1:
9179 d = self.__dict__.copy()
9184 def __setstate__(self, p):
9185 if not hasattr(self,
'this'):
9187 if isinstance(p, tuple):
9189 self.__dict__.update(d)
9190 return self._set_from_binary(p)
9192 __swig_destroy__ = _IMP_atom.delete_Representation
9195 _IMP_atom.Representation_swigregister(Representation)
9196 ALL_RESOLUTIONS = cvar.ALL_RESOLUTIONS
9201 get_resolution(Model m, ParticleIndex pi) -> double
9202 get_resolution(Hierarchy h) -> double
9204 return _IMP_atom.get_resolution(*args)
9207 r"""get_representation(Hierarchy h, bool nothrow=False) -> Representation"""
9208 return _IMP_atom.get_representation(h, nothrow)
9211 r"""show_with_representations(Hierarchy h, _ostream out=std::cout)"""
9212 return _IMP_atom.show_with_representations(*args)
9213 class State(Hierarchy):
9214 r"""Proxy of C++ IMP::atom::State class."""
9216 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9219 def setup_particle(*args):
9221 setup_particle(Model m, ParticleIndex pi, unsigned int index) -> State
9222 setup_particle(_ParticleAdaptor pa, unsigned int index) -> State
9223 setup_particle(Model m, ParticleIndex pi, State other) -> State
9224 setup_particle(_ParticleAdaptor pa, State other) -> State
9226 return _IMP_atom.State_setup_particle(*args)
9228 def __init__(self, *args):
9230 __init__(State self) -> State
9231 __init__(State self, Model m, ParticleIndex id) -> State
9232 __init__(State self, _ParticleAdaptor d) -> State
9234 _IMP_atom.State_swiginit(self, _IMP_atom.new_State(*args))
9236 def show(self, *args):
9237 r"""show(State self, _ostream out=std::cout)"""
9238 return _IMP_atom.State_show(self, *args)
9241 def get_is_setup(*args):
9243 get_is_setup(_ParticleAdaptor p) -> bool
9244 get_is_setup(Model m, ParticleIndex pi) -> bool
9246 return _IMP_atom.State_get_is_setup(*args)
9249 r"""get_state_index(State self) -> unsigned int"""
9250 return _IMP_atom.State_get_state_index(self)
9252 def add_attribute(self, *args):
9254 add_attribute(State self, FloatKey k, IMP::Float v, bool opt)
9255 add_attribute(State self, FloatKey a0, IMP::Float a1)
9256 add_attribute(State self, IntKey a0, IMP::Int a1)
9257 add_attribute(State self, FloatsKey a0, IMP::Floats a1)
9258 add_attribute(State self, IntsKey a0, IMP::Ints a1)
9259 add_attribute(State self, StringKey a0, IMP::String a1)
9260 add_attribute(State self, ParticleIndexKey a0, Particle a1)
9261 add_attribute(State self, ObjectKey a0, Object a1)
9262 add_attribute(State self, SparseFloatKey a0, IMP::Float a1)
9263 add_attribute(State self, SparseIntKey a0, IMP::Int a1)
9264 add_attribute(State self, SparseStringKey a0, IMP::String a1)
9265 add_attribute(State self, SparseParticleIndexKey a0, ParticleIndex a1)
9267 return _IMP_atom.State_add_attribute(self, *args)
9269 def get_value(self, *args):
9271 get_value(State self, FloatKey a0) -> IMP::Float
9272 get_value(State self, IntKey a0) -> IMP::Int
9273 get_value(State self, FloatsKey a0) -> IMP::Floats
9274 get_value(State self, IntsKey a0) -> IMP::Ints
9275 get_value(State self, StringKey a0) -> IMP::String
9276 get_value(State self, ParticleIndexKey a0) -> Particle
9277 get_value(State self, ObjectKey a0) -> Object
9278 get_value(State self, SparseFloatKey a0) -> IMP::Float
9279 get_value(State self, SparseIntKey a0) -> IMP::Int
9280 get_value(State self, SparseStringKey a0) -> IMP::String
9281 get_value(State self, SparseParticleIndexKey a0) -> ParticleIndex
9283 return _IMP_atom.State_get_value(self, *args)
9285 def set_value(self, *args):
9287 set_value(State self, FloatKey a0, IMP::Float a1)
9288 set_value(State self, IntKey a0, IMP::Int a1)
9289 set_value(State self, FloatsKey a0, IMP::Floats a1)
9290 set_value(State self, IntsKey a0, IMP::Ints a1)
9291 set_value(State self, StringKey a0, IMP::String a1)
9292 set_value(State self, ParticleIndexKey a0, Particle a1)
9293 set_value(State self, ObjectKey a0, Object a1)
9294 set_value(State self, SparseFloatKey a0, IMP::Float a1)
9295 set_value(State self, SparseIntKey a0, IMP::Int a1)
9296 set_value(State self, SparseStringKey a0, IMP::String a1)
9297 set_value(State self, SparseParticleIndexKey a0, ParticleIndex a1)
9299 return _IMP_atom.State_set_value(self, *args)
9301 def remove_attribute(self, *args):
9303 remove_attribute(State self, FloatKey a0)
9304 remove_attribute(State self, IntKey a0)
9305 remove_attribute(State self, FloatsKey a0)
9306 remove_attribute(State self, IntsKey a0)
9307 remove_attribute(State self, StringKey a0)
9308 remove_attribute(State self, ParticleIndexKey a0)
9309 remove_attribute(State self, ObjectKey a0)
9310 remove_attribute(State self, SparseFloatKey a0)
9311 remove_attribute(State self, SparseIntKey a0)
9312 remove_attribute(State self, SparseStringKey a0)
9313 remove_attribute(State self, SparseParticleIndexKey a0)
9315 return _IMP_atom.State_remove_attribute(self, *args)
9317 def has_attribute(self, *args):
9319 has_attribute(State self, FloatKey a0) -> bool
9320 has_attribute(State self, IntKey a0) -> bool
9321 has_attribute(State self, FloatsKey a0) -> bool
9322 has_attribute(State self, IntsKey a0) -> bool
9323 has_attribute(State self, StringKey a0) -> bool
9324 has_attribute(State self, ParticleIndexKey a0) -> bool
9325 has_attribute(State self, ObjectKey a0) -> bool
9326 has_attribute(State self, SparseFloatKey a0) -> bool
9327 has_attribute(State self, SparseIntKey a0) -> bool
9328 has_attribute(State self, SparseStringKey a0) -> bool
9329 has_attribute(State self, SparseParticleIndexKey a0) -> bool
9331 return _IMP_atom.State_has_attribute(self, *args)
9333 def get_derivative(self, a0):
9334 r"""get_derivative(State self, FloatKey a0) -> double"""
9335 return _IMP_atom.State_get_derivative(self, a0)
9338 r"""get_name(State self) -> std::string"""
9339 return _IMP_atom.State_get_name(self)
9341 def clear_caches(self):
9342 r"""clear_caches(State self)"""
9343 return _IMP_atom.State_clear_caches(self)
9345 def set_name(self, a0):
9346 r"""set_name(State self, std::string a0)"""
9347 return _IMP_atom.State_set_name(self, a0)
9350 r"""set_check_level(State self, IMP::CheckLevel a0)"""
9351 return _IMP_atom.State_set_check_level(self, a0)
9353 def add_to_derivative(self, a0, a1, a2):
9354 r"""add_to_derivative(State self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
9355 return _IMP_atom.State_add_to_derivative(self, a0, a1, a2)
9357 def set_is_optimized(self, a0, a1):
9358 r"""set_is_optimized(State self, FloatKey a0, bool a1)"""
9359 return _IMP_atom.State_set_is_optimized(self, a0, a1)
9361 def get_is_optimized(self, a0):
9362 r"""get_is_optimized(State self, FloatKey a0) -> bool"""
9363 return _IMP_atom.State_get_is_optimized(self, a0)
9366 r"""get_check_level(State self) -> IMP::CheckLevel"""
9367 return _IMP_atom.State_get_check_level(self)
9369 def __eq__(self, *args):
9371 __eq__(State self, State o) -> bool
9372 __eq__(State self, Particle d) -> bool
9374 return _IMP_atom.State___eq__(self, *args)
9376 def __ne__(self, *args):
9378 __ne__(State self, State o) -> bool
9379 __ne__(State self, Particle d) -> bool
9381 return _IMP_atom.State___ne__(self, *args)
9383 def __le__(self, *args):
9385 __le__(State self, State o) -> bool
9386 __le__(State self, Particle d) -> bool
9388 return _IMP_atom.State___le__(self, *args)
9390 def __lt__(self, *args):
9392 __lt__(State self, State o) -> bool
9393 __lt__(State self, Particle d) -> bool
9395 return _IMP_atom.State___lt__(self, *args)
9397 def __ge__(self, *args):
9399 __ge__(State self, State o) -> bool
9400 __ge__(State self, Particle d) -> bool
9402 return _IMP_atom.State___ge__(self, *args)
9404 def __gt__(self, *args):
9406 __gt__(State self, State o) -> bool
9407 __gt__(State self, Particle d) -> bool
9409 return _IMP_atom.State___gt__(self, *args)
9412 r"""__hash__(State self) -> std::size_t"""
9413 return _IMP_atom.State___hash__(self)
9416 r"""__str__(State self) -> std::string"""
9417 return _IMP_atom.State___str__(self)
9420 r"""__repr__(State self) -> std::string"""
9421 return _IMP_atom.State___repr__(self)
9423 def _get_as_binary(self):
9424 r"""_get_as_binary(State self) -> PyObject *"""
9425 return _IMP_atom.State__get_as_binary(self)
9427 def _set_from_binary(self, p):
9428 r"""_set_from_binary(State self, PyObject * p)"""
9429 return _IMP_atom.State__set_from_binary(self, p)
9431 def __getstate__(self):
9432 p = self._get_as_binary()
9433 if len(self.__dict__) > 1:
9434 d = self.__dict__.copy()
9439 def __setstate__(self, p):
9440 if not hasattr(self,
'this'):
9442 if isinstance(p, tuple):
9444 self.__dict__.update(d)
9445 return self._set_from_binary(p)
9447 __swig_destroy__ = _IMP_atom.delete_State
9450 _IMP_atom.State_swigregister(State)
9453 r"""get_state_index(Hierarchy h) -> int"""
9454 return _IMP_atom.get_state_index(h)
9457 r"""get_phi_dihedral_atoms(Residue rd) -> IMP::atom::Atoms"""
9458 return _IMP_atom.get_phi_dihedral_atoms(rd)
9461 r"""get_psi_dihedral_atoms(Residue rd) -> IMP::atom::Atoms"""
9462 return _IMP_atom.get_psi_dihedral_atoms(rd)
9465 r"""get_omega_dihedral_atoms(Residue rd) -> IMP::atom::Atoms"""
9466 return _IMP_atom.get_omega_dihedral_atoms(rd)
9469 r"""get_chi_dihedral_atom_types(ResidueType rt) -> IMP::Vector< IMP::atom::AtomTypes >"""
9470 return _IMP_atom.get_chi_dihedral_atom_types(rt)
9473 r"""get_chi_dihedral_atoms(Residue rd) -> IMP::Vector< IMP::atom::Atoms >"""
9474 return _IMP_atom.get_chi_dihedral_atoms(rd)
9477 r"""get_chi_dihedral_particle_indexes(Residue rd) -> IMP::ParticleIndexQuads"""
9478 return _IMP_atom.get_chi_dihedral_particle_indexes(rd)
9479 class Molecule(Hierarchy):
9480 r"""Proxy of C++ IMP::atom::Molecule class."""
9482 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9484 def __init__(self, *args):
9486 __init__(Molecule self) -> Molecule
9487 __init__(Molecule self, Model m, ParticleIndex id) -> Molecule
9488 __init__(Molecule self, _ParticleAdaptor d) -> Molecule
9490 _IMP_atom.Molecule_swiginit(self, _IMP_atom.new_Molecule(*args))
9492 def show(self, *args):
9493 r"""show(Molecule self, _ostream out=std::cout)"""
9494 return _IMP_atom.Molecule_show(self, *args)
9497 def setup_particle(*args):
9499 setup_particle(Model m, ParticleIndex pi) -> Molecule
9500 setup_particle(_ParticleAdaptor pa) -> Molecule
9501 setup_particle(Model m, ParticleIndex pi, Molecule other) -> Molecule
9502 setup_particle(_ParticleAdaptor pa, Molecule other) -> Molecule
9504 return _IMP_atom.Molecule_setup_particle(*args)
9507 def get_is_setup(*args):
9509 get_is_setup(_ParticleAdaptor p) -> bool
9510 get_is_setup(Model m, ParticleIndex pi) -> bool
9512 return _IMP_atom.Molecule_get_is_setup(*args)
9514 def add_attribute(self, *args):
9516 add_attribute(Molecule self, FloatKey k, IMP::Float v, bool opt)
9517 add_attribute(Molecule self, FloatKey a0, IMP::Float a1)
9518 add_attribute(Molecule self, IntKey a0, IMP::Int a1)
9519 add_attribute(Molecule self, FloatsKey a0, IMP::Floats a1)
9520 add_attribute(Molecule self, IntsKey a0, IMP::Ints a1)
9521 add_attribute(Molecule self, StringKey a0, IMP::String a1)
9522 add_attribute(Molecule self, ParticleIndexKey a0, Particle a1)
9523 add_attribute(Molecule self, ObjectKey a0, Object a1)
9524 add_attribute(Molecule self, SparseFloatKey a0, IMP::Float a1)
9525 add_attribute(Molecule self, SparseIntKey a0, IMP::Int a1)
9526 add_attribute(Molecule self, SparseStringKey a0, IMP::String a1)
9527 add_attribute(Molecule self, SparseParticleIndexKey a0, ParticleIndex a1)
9529 return _IMP_atom.Molecule_add_attribute(self, *args)
9531 def get_value(self, *args):
9533 get_value(Molecule self, FloatKey a0) -> IMP::Float
9534 get_value(Molecule self, IntKey a0) -> IMP::Int
9535 get_value(Molecule self, FloatsKey a0) -> IMP::Floats
9536 get_value(Molecule self, IntsKey a0) -> IMP::Ints
9537 get_value(Molecule self, StringKey a0) -> IMP::String
9538 get_value(Molecule self, ParticleIndexKey a0) -> Particle
9539 get_value(Molecule self, ObjectKey a0) -> Object
9540 get_value(Molecule self, SparseFloatKey a0) -> IMP::Float
9541 get_value(Molecule self, SparseIntKey a0) -> IMP::Int
9542 get_value(Molecule self, SparseStringKey a0) -> IMP::String
9543 get_value(Molecule self, SparseParticleIndexKey a0) -> ParticleIndex
9545 return _IMP_atom.Molecule_get_value(self, *args)
9547 def set_value(self, *args):
9549 set_value(Molecule self, FloatKey a0, IMP::Float a1)
9550 set_value(Molecule self, IntKey a0, IMP::Int a1)
9551 set_value(Molecule self, FloatsKey a0, IMP::Floats a1)
9552 set_value(Molecule self, IntsKey a0, IMP::Ints a1)
9553 set_value(Molecule self, StringKey a0, IMP::String a1)
9554 set_value(Molecule self, ParticleIndexKey a0, Particle a1)
9555 set_value(Molecule self, ObjectKey a0, Object a1)
9556 set_value(Molecule self, SparseFloatKey a0, IMP::Float a1)
9557 set_value(Molecule self, SparseIntKey a0, IMP::Int a1)
9558 set_value(Molecule self, SparseStringKey a0, IMP::String a1)
9559 set_value(Molecule self, SparseParticleIndexKey a0, ParticleIndex a1)
9561 return _IMP_atom.Molecule_set_value(self, *args)
9563 def remove_attribute(self, *args):
9565 remove_attribute(Molecule self, FloatKey a0)
9566 remove_attribute(Molecule self, IntKey a0)
9567 remove_attribute(Molecule self, FloatsKey a0)
9568 remove_attribute(Molecule self, IntsKey a0)
9569 remove_attribute(Molecule self, StringKey a0)
9570 remove_attribute(Molecule self, ParticleIndexKey a0)
9571 remove_attribute(Molecule self, ObjectKey a0)
9572 remove_attribute(Molecule self, SparseFloatKey a0)
9573 remove_attribute(Molecule self, SparseIntKey a0)
9574 remove_attribute(Molecule self, SparseStringKey a0)
9575 remove_attribute(Molecule self, SparseParticleIndexKey a0)
9577 return _IMP_atom.Molecule_remove_attribute(self, *args)
9579 def has_attribute(self, *args):
9581 has_attribute(Molecule self, FloatKey a0) -> bool
9582 has_attribute(Molecule self, IntKey a0) -> bool
9583 has_attribute(Molecule self, FloatsKey a0) -> bool
9584 has_attribute(Molecule self, IntsKey a0) -> bool
9585 has_attribute(Molecule self, StringKey a0) -> bool
9586 has_attribute(Molecule self, ParticleIndexKey a0) -> bool
9587 has_attribute(Molecule self, ObjectKey a0) -> bool
9588 has_attribute(Molecule self, SparseFloatKey a0) -> bool
9589 has_attribute(Molecule self, SparseIntKey a0) -> bool
9590 has_attribute(Molecule self, SparseStringKey a0) -> bool
9591 has_attribute(Molecule self, SparseParticleIndexKey a0) -> bool
9593 return _IMP_atom.Molecule_has_attribute(self, *args)
9595 def get_derivative(self, a0):
9596 r"""get_derivative(Molecule self, FloatKey a0) -> double"""
9597 return _IMP_atom.Molecule_get_derivative(self, a0)
9600 r"""get_name(Molecule self) -> std::string"""
9601 return _IMP_atom.Molecule_get_name(self)
9603 def clear_caches(self):
9604 r"""clear_caches(Molecule self)"""
9605 return _IMP_atom.Molecule_clear_caches(self)
9607 def set_name(self, a0):
9608 r"""set_name(Molecule self, std::string a0)"""
9609 return _IMP_atom.Molecule_set_name(self, a0)
9612 r"""set_check_level(Molecule self, IMP::CheckLevel a0)"""
9613 return _IMP_atom.Molecule_set_check_level(self, a0)
9615 def add_to_derivative(self, a0, a1, a2):
9616 r"""add_to_derivative(Molecule self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
9617 return _IMP_atom.Molecule_add_to_derivative(self, a0, a1, a2)
9619 def set_is_optimized(self, a0, a1):
9620 r"""set_is_optimized(Molecule self, FloatKey a0, bool a1)"""
9621 return _IMP_atom.Molecule_set_is_optimized(self, a0, a1)
9623 def get_is_optimized(self, a0):
9624 r"""get_is_optimized(Molecule self, FloatKey a0) -> bool"""
9625 return _IMP_atom.Molecule_get_is_optimized(self, a0)
9628 r"""get_check_level(Molecule self) -> IMP::CheckLevel"""
9629 return _IMP_atom.Molecule_get_check_level(self)
9631 def __eq__(self, *args):
9633 __eq__(Molecule self, Molecule o) -> bool
9634 __eq__(Molecule self, Particle d) -> bool
9636 return _IMP_atom.Molecule___eq__(self, *args)
9638 def __ne__(self, *args):
9640 __ne__(Molecule self, Molecule o) -> bool
9641 __ne__(Molecule self, Particle d) -> bool
9643 return _IMP_atom.Molecule___ne__(self, *args)
9645 def __le__(self, *args):
9647 __le__(Molecule self, Molecule o) -> bool
9648 __le__(Molecule self, Particle d) -> bool
9650 return _IMP_atom.Molecule___le__(self, *args)
9652 def __lt__(self, *args):
9654 __lt__(Molecule self, Molecule o) -> bool
9655 __lt__(Molecule self, Particle d) -> bool
9657 return _IMP_atom.Molecule___lt__(self, *args)
9659 def __ge__(self, *args):
9661 __ge__(Molecule self, Molecule o) -> bool
9662 __ge__(Molecule self, Particle d) -> bool
9664 return _IMP_atom.Molecule___ge__(self, *args)
9666 def __gt__(self, *args):
9668 __gt__(Molecule self, Molecule o) -> bool
9669 __gt__(Molecule self, Particle d) -> bool
9671 return _IMP_atom.Molecule___gt__(self, *args)
9674 r"""__hash__(Molecule self) -> std::size_t"""
9675 return _IMP_atom.Molecule___hash__(self)
9678 r"""__str__(Molecule self) -> std::string"""
9679 return _IMP_atom.Molecule___str__(self)
9682 r"""__repr__(Molecule self) -> std::string"""
9683 return _IMP_atom.Molecule___repr__(self)
9685 def _get_as_binary(self):
9686 r"""_get_as_binary(Molecule self) -> PyObject *"""
9687 return _IMP_atom.Molecule__get_as_binary(self)
9689 def _set_from_binary(self, p):
9690 r"""_set_from_binary(Molecule self, PyObject * p)"""
9691 return _IMP_atom.Molecule__set_from_binary(self, p)
9693 def __getstate__(self):
9694 p = self._get_as_binary()
9695 if len(self.__dict__) > 1:
9696 d = self.__dict__.copy()
9701 def __setstate__(self, p):
9702 if not hasattr(self,
'this'):
9704 if isinstance(p, tuple):
9706 self.__dict__.update(d)
9707 return self._set_from_binary(p)
9709 __swig_destroy__ = _IMP_atom.delete_Molecule
9712 _IMP_atom.Molecule_swigregister(Molecule)
9715 r"""get_molecule_name(Hierarchy h) -> std::string"""
9716 return _IMP_atom.get_molecule_name(h)
9717 class Copy(Molecule):
9718 r"""Proxy of C++ IMP::atom::Copy class."""
9720 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9723 def get_copy_index_key():
9724 r"""get_copy_index_key() -> IntKey"""
9725 return _IMP_atom.Copy_get_copy_index_key()
9727 def __init__(self, *args):
9729 __init__(Copy self) -> Copy
9730 __init__(Copy self, Model m, ParticleIndex id) -> Copy
9731 __init__(Copy self, _ParticleAdaptor d) -> Copy
9733 _IMP_atom.Copy_swiginit(self, _IMP_atom.new_Copy(*args))
9735 def show(self, *args):
9736 r"""show(Copy self, _ostream out=std::cout)"""
9737 return _IMP_atom.Copy_show(self, *args)
9740 def setup_particle(*args):
9742 setup_particle(Model m, ParticleIndex pi, IMP::Int number) -> Copy
9743 setup_particle(_ParticleAdaptor pa, IMP::Int number) -> Copy
9745 return _IMP_atom.Copy_setup_particle(*args)
9748 def get_is_setup(*args):
9750 get_is_setup(_ParticleAdaptor p) -> bool
9751 get_is_setup(Model m, ParticleIndex pi) -> bool
9753 return _IMP_atom.Copy_get_is_setup(*args)
9756 r"""get_copy_index(Copy self) -> int"""
9757 return _IMP_atom.Copy_get_copy_index(self)
9759 def add_attribute(self, *args):
9761 add_attribute(Copy self, FloatKey k, IMP::Float v, bool opt)
9762 add_attribute(Copy self, FloatKey a0, IMP::Float a1)
9763 add_attribute(Copy self, IntKey a0, IMP::Int a1)
9764 add_attribute(Copy self, FloatsKey a0, IMP::Floats a1)
9765 add_attribute(Copy self, IntsKey a0, IMP::Ints a1)
9766 add_attribute(Copy self, StringKey a0, IMP::String a1)
9767 add_attribute(Copy self, ParticleIndexKey a0, Particle a1)
9768 add_attribute(Copy self, ObjectKey a0, Object a1)
9769 add_attribute(Copy self, SparseFloatKey a0, IMP::Float a1)
9770 add_attribute(Copy self, SparseIntKey a0, IMP::Int a1)
9771 add_attribute(Copy self, SparseStringKey a0, IMP::String a1)
9772 add_attribute(Copy self, SparseParticleIndexKey a0, ParticleIndex a1)
9774 return _IMP_atom.Copy_add_attribute(self, *args)
9776 def get_value(self, *args):
9778 get_value(Copy self, FloatKey a0) -> IMP::Float
9779 get_value(Copy self, IntKey a0) -> IMP::Int
9780 get_value(Copy self, FloatsKey a0) -> IMP::Floats
9781 get_value(Copy self, IntsKey a0) -> IMP::Ints
9782 get_value(Copy self, StringKey a0) -> IMP::String
9783 get_value(Copy self, ParticleIndexKey a0) -> Particle
9784 get_value(Copy self, ObjectKey a0) -> Object
9785 get_value(Copy self, SparseFloatKey a0) -> IMP::Float
9786 get_value(Copy self, SparseIntKey a0) -> IMP::Int
9787 get_value(Copy self, SparseStringKey a0) -> IMP::String
9788 get_value(Copy self, SparseParticleIndexKey a0) -> ParticleIndex
9790 return _IMP_atom.Copy_get_value(self, *args)
9792 def set_value(self, *args):
9794 set_value(Copy self, FloatKey a0, IMP::Float a1)
9795 set_value(Copy self, IntKey a0, IMP::Int a1)
9796 set_value(Copy self, FloatsKey a0, IMP::Floats a1)
9797 set_value(Copy self, IntsKey a0, IMP::Ints a1)
9798 set_value(Copy self, StringKey a0, IMP::String a1)
9799 set_value(Copy self, ParticleIndexKey a0, Particle a1)
9800 set_value(Copy self, ObjectKey a0, Object a1)
9801 set_value(Copy self, SparseFloatKey a0, IMP::Float a1)
9802 set_value(Copy self, SparseIntKey a0, IMP::Int a1)
9803 set_value(Copy self, SparseStringKey a0, IMP::String a1)
9804 set_value(Copy self, SparseParticleIndexKey a0, ParticleIndex a1)
9806 return _IMP_atom.Copy_set_value(self, *args)
9808 def remove_attribute(self, *args):
9810 remove_attribute(Copy self, FloatKey a0)
9811 remove_attribute(Copy self, IntKey a0)
9812 remove_attribute(Copy self, FloatsKey a0)
9813 remove_attribute(Copy self, IntsKey a0)
9814 remove_attribute(Copy self, StringKey a0)
9815 remove_attribute(Copy self, ParticleIndexKey a0)
9816 remove_attribute(Copy self, ObjectKey a0)
9817 remove_attribute(Copy self, SparseFloatKey a0)
9818 remove_attribute(Copy self, SparseIntKey a0)
9819 remove_attribute(Copy self, SparseStringKey a0)
9820 remove_attribute(Copy self, SparseParticleIndexKey a0)
9822 return _IMP_atom.Copy_remove_attribute(self, *args)
9824 def has_attribute(self, *args):
9826 has_attribute(Copy self, FloatKey a0) -> bool
9827 has_attribute(Copy self, IntKey a0) -> bool
9828 has_attribute(Copy self, FloatsKey a0) -> bool
9829 has_attribute(Copy self, IntsKey a0) -> bool
9830 has_attribute(Copy self, StringKey a0) -> bool
9831 has_attribute(Copy self, ParticleIndexKey a0) -> bool
9832 has_attribute(Copy self, ObjectKey a0) -> bool
9833 has_attribute(Copy self, SparseFloatKey a0) -> bool
9834 has_attribute(Copy self, SparseIntKey a0) -> bool
9835 has_attribute(Copy self, SparseStringKey a0) -> bool
9836 has_attribute(Copy self, SparseParticleIndexKey a0) -> bool
9838 return _IMP_atom.Copy_has_attribute(self, *args)
9840 def get_derivative(self, a0):
9841 r"""get_derivative(Copy self, FloatKey a0) -> double"""
9842 return _IMP_atom.Copy_get_derivative(self, a0)
9845 r"""get_name(Copy self) -> std::string"""
9846 return _IMP_atom.Copy_get_name(self)
9848 def clear_caches(self):
9849 r"""clear_caches(Copy self)"""
9850 return _IMP_atom.Copy_clear_caches(self)
9852 def set_name(self, a0):
9853 r"""set_name(Copy self, std::string a0)"""
9854 return _IMP_atom.Copy_set_name(self, a0)
9857 r"""set_check_level(Copy self, IMP::CheckLevel a0)"""
9858 return _IMP_atom.Copy_set_check_level(self, a0)
9860 def add_to_derivative(self, a0, a1, a2):
9861 r"""add_to_derivative(Copy self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
9862 return _IMP_atom.Copy_add_to_derivative(self, a0, a1, a2)
9864 def set_is_optimized(self, a0, a1):
9865 r"""set_is_optimized(Copy self, FloatKey a0, bool a1)"""
9866 return _IMP_atom.Copy_set_is_optimized(self, a0, a1)
9868 def get_is_optimized(self, a0):
9869 r"""get_is_optimized(Copy self, FloatKey a0) -> bool"""
9870 return _IMP_atom.Copy_get_is_optimized(self, a0)
9873 r"""get_check_level(Copy self) -> IMP::CheckLevel"""
9874 return _IMP_atom.Copy_get_check_level(self)
9876 def __eq__(self, *args):
9878 __eq__(Copy self, Copy o) -> bool
9879 __eq__(Copy self, Particle d) -> bool
9881 return _IMP_atom.Copy___eq__(self, *args)
9883 def __ne__(self, *args):
9885 __ne__(Copy self, Copy o) -> bool
9886 __ne__(Copy self, Particle d) -> bool
9888 return _IMP_atom.Copy___ne__(self, *args)
9890 def __le__(self, *args):
9892 __le__(Copy self, Copy o) -> bool
9893 __le__(Copy self, Particle d) -> bool
9895 return _IMP_atom.Copy___le__(self, *args)
9897 def __lt__(self, *args):
9899 __lt__(Copy self, Copy o) -> bool
9900 __lt__(Copy self, Particle d) -> bool
9902 return _IMP_atom.Copy___lt__(self, *args)
9904 def __ge__(self, *args):
9906 __ge__(Copy self, Copy o) -> bool
9907 __ge__(Copy self, Particle d) -> bool
9909 return _IMP_atom.Copy___ge__(self, *args)
9911 def __gt__(self, *args):
9913 __gt__(Copy self, Copy o) -> bool
9914 __gt__(Copy self, Particle d) -> bool
9916 return _IMP_atom.Copy___gt__(self, *args)
9919 r"""__hash__(Copy self) -> std::size_t"""
9920 return _IMP_atom.Copy___hash__(self)
9923 r"""__str__(Copy self) -> std::string"""
9924 return _IMP_atom.Copy___str__(self)
9927 r"""__repr__(Copy self) -> std::string"""
9928 return _IMP_atom.Copy___repr__(self)
9930 def _get_as_binary(self):
9931 r"""_get_as_binary(Copy self) -> PyObject *"""
9932 return _IMP_atom.Copy__get_as_binary(self)
9934 def _set_from_binary(self, p):
9935 r"""_set_from_binary(Copy self, PyObject * p)"""
9936 return _IMP_atom.Copy__set_from_binary(self, p)
9938 def __getstate__(self):
9939 p = self._get_as_binary()
9940 if len(self.__dict__) > 1:
9941 d = self.__dict__.copy()
9946 def __setstate__(self, p):
9947 if not hasattr(self,
'this'):
9949 if isinstance(p, tuple):
9951 self.__dict__.update(d)
9952 return self._set_from_binary(p)
9954 __swig_destroy__ = _IMP_atom.delete_Copy
9957 _IMP_atom.Copy_swigregister(Copy)
9960 r"""get_copy_index(Hierarchy h) -> int"""
9961 return _IMP_atom.get_copy_index(h)
9962 class Chain(Hierarchy):
9963 r"""Proxy of C++ IMP::atom::Chain class."""
9965 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9967 def __init__(self, *args):
9969 __init__(Chain self) -> Chain
9970 __init__(Chain self, Model m, ParticleIndex id) -> Chain
9971 __init__(Chain self, _ParticleAdaptor d) -> Chain
9973 _IMP_atom.Chain_swiginit(self, _IMP_atom.new_Chain(*args))
9975 def show(self, *args):
9976 r"""show(Chain self, _ostream out=std::cout)"""
9977 return _IMP_atom.Chain_show(self, *args)
9980 def setup_particle(*args):
9982 setup_particle(Model m, ParticleIndex pi, std::string id) -> Chain
9983 setup_particle(_ParticleAdaptor pa, std::string id) -> Chain
9984 setup_particle(Model m, ParticleIndex pi, char id) -> Chain
9985 setup_particle(_ParticleAdaptor pa, char id) -> Chain
9986 setup_particle(Model m, ParticleIndex pi, Chain other) -> Chain
9987 setup_particle(_ParticleAdaptor pa, Chain other) -> Chain
9989 return _IMP_atom.Chain_setup_particle(*args)
9992 def get_is_setup(*args):
9994 get_is_setup(_ParticleAdaptor p) -> bool
9995 get_is_setup(Model m, ParticleIndex pi) -> bool
9997 return _IMP_atom.Chain_get_is_setup(*args)
10000 r"""get_id(Chain self) -> std::string"""
10001 return _IMP_atom.Chain_get_id(self)
10003 def set_id(self, c):
10004 r"""set_id(Chain self, std::string c)"""
10005 return _IMP_atom.Chain_set_id(self, c)
10007 def get_label_asym_id(self):
10008 r"""get_label_asym_id(Chain self) -> std::string"""
10009 return _IMP_atom.Chain_get_label_asym_id(self)
10011 def set_label_asym_id(self, c):
10012 r"""set_label_asym_id(Chain self, std::string c)"""
10013 return _IMP_atom.Chain_set_label_asym_id(self, c)
10015 def get_sequence(self):
10016 r"""get_sequence(Chain self) -> std::string"""
10017 return _IMP_atom.Chain_get_sequence(self)
10019 def set_sequence(self, sequence):
10020 r"""set_sequence(Chain self, std::string sequence)"""
10021 return _IMP_atom.Chain_set_sequence(self, sequence)
10023 def get_sequence_offset(self):
10024 r"""get_sequence_offset(Chain self) -> int"""
10025 return _IMP_atom.Chain_get_sequence_offset(self)
10027 def set_sequence_offset(self, offset):
10028 r"""set_sequence_offset(Chain self, int offset)"""
10029 return _IMP_atom.Chain_set_sequence_offset(self, offset)
10031 def get_uniprot_accession(self):
10032 r"""get_uniprot_accession(Chain self) -> std::string"""
10033 return _IMP_atom.Chain_get_uniprot_accession(self)
10035 def set_uniprot_accession(self, accession):
10036 r"""set_uniprot_accession(Chain self, std::string accession)"""
10037 return _IMP_atom.Chain_set_uniprot_accession(self, accession)
10039 def get_chain_type(self):
10040 r"""get_chain_type(Chain self) -> ChainType"""
10041 return _IMP_atom.Chain_get_chain_type(self)
10043 def set_chain_type(self, t):
10044 r"""set_chain_type(Chain self, ChainType t)"""
10045 return _IMP_atom.Chain_set_chain_type(self, t)
10049 r"""get_id_key() -> SparseStringKey"""
10050 return _IMP_atom.Chain_get_id_key()
10053 def get_label_asym_id_key():
10054 r"""get_label_asym_id_key() -> SparseStringKey"""
10055 return _IMP_atom.Chain_get_label_asym_id_key()
10058 def get_sequence_key():
10059 r"""get_sequence_key() -> SparseStringKey"""
10060 return _IMP_atom.Chain_get_sequence_key()
10063 def get_sequence_offset_key():
10064 r"""get_sequence_offset_key() -> SparseIntKey"""
10065 return _IMP_atom.Chain_get_sequence_offset_key()
10068 def get_uniprot_accession_key():
10069 r"""get_uniprot_accession_key() -> SparseStringKey"""
10070 return _IMP_atom.Chain_get_uniprot_accession_key()
10073 def get_chain_type_key():
10074 r"""get_chain_type_key() -> SparseIntKey"""
10075 return _IMP_atom.Chain_get_chain_type_key()
10077 def add_attribute(self, *args):
10079 add_attribute(Chain self, FloatKey k, IMP::Float v, bool opt)
10080 add_attribute(Chain self, FloatKey a0, IMP::Float a1)
10081 add_attribute(Chain self, IntKey a0, IMP::Int a1)
10082 add_attribute(Chain self, FloatsKey a0, IMP::Floats a1)
10083 add_attribute(Chain self, IntsKey a0, IMP::Ints a1)
10084 add_attribute(Chain self, StringKey a0, IMP::String a1)
10085 add_attribute(Chain self, ParticleIndexKey a0, Particle a1)
10086 add_attribute(Chain self, ObjectKey a0, Object a1)
10087 add_attribute(Chain self, SparseFloatKey a0, IMP::Float a1)
10088 add_attribute(Chain self, SparseIntKey a0, IMP::Int a1)
10089 add_attribute(Chain self, SparseStringKey a0, IMP::String a1)
10090 add_attribute(Chain self, SparseParticleIndexKey a0, ParticleIndex a1)
10092 return _IMP_atom.Chain_add_attribute(self, *args)
10094 def get_value(self, *args):
10096 get_value(Chain self, FloatKey a0) -> IMP::Float
10097 get_value(Chain self, IntKey a0) -> IMP::Int
10098 get_value(Chain self, FloatsKey a0) -> IMP::Floats
10099 get_value(Chain self, IntsKey a0) -> IMP::Ints
10100 get_value(Chain self, StringKey a0) -> IMP::String
10101 get_value(Chain self, ParticleIndexKey a0) -> Particle
10102 get_value(Chain self, ObjectKey a0) -> Object
10103 get_value(Chain self, SparseFloatKey a0) -> IMP::Float
10104 get_value(Chain self, SparseIntKey a0) -> IMP::Int
10105 get_value(Chain self, SparseStringKey a0) -> IMP::String
10106 get_value(Chain self, SparseParticleIndexKey a0) -> ParticleIndex
10108 return _IMP_atom.Chain_get_value(self, *args)
10110 def set_value(self, *args):
10112 set_value(Chain self, FloatKey a0, IMP::Float a1)
10113 set_value(Chain self, IntKey a0, IMP::Int a1)
10114 set_value(Chain self, FloatsKey a0, IMP::Floats a1)
10115 set_value(Chain self, IntsKey a0, IMP::Ints a1)
10116 set_value(Chain self, StringKey a0, IMP::String a1)
10117 set_value(Chain self, ParticleIndexKey a0, Particle a1)
10118 set_value(Chain self, ObjectKey a0, Object a1)
10119 set_value(Chain self, SparseFloatKey a0, IMP::Float a1)
10120 set_value(Chain self, SparseIntKey a0, IMP::Int a1)
10121 set_value(Chain self, SparseStringKey a0, IMP::String a1)
10122 set_value(Chain self, SparseParticleIndexKey a0, ParticleIndex a1)
10124 return _IMP_atom.Chain_set_value(self, *args)
10126 def remove_attribute(self, *args):
10128 remove_attribute(Chain self, FloatKey a0)
10129 remove_attribute(Chain self, IntKey a0)
10130 remove_attribute(Chain self, FloatsKey a0)
10131 remove_attribute(Chain self, IntsKey a0)
10132 remove_attribute(Chain self, StringKey a0)
10133 remove_attribute(Chain self, ParticleIndexKey a0)
10134 remove_attribute(Chain self, ObjectKey a0)
10135 remove_attribute(Chain self, SparseFloatKey a0)
10136 remove_attribute(Chain self, SparseIntKey a0)
10137 remove_attribute(Chain self, SparseStringKey a0)
10138 remove_attribute(Chain self, SparseParticleIndexKey a0)
10140 return _IMP_atom.Chain_remove_attribute(self, *args)
10142 def has_attribute(self, *args):
10144 has_attribute(Chain self, FloatKey a0) -> bool
10145 has_attribute(Chain self, IntKey a0) -> bool
10146 has_attribute(Chain self, FloatsKey a0) -> bool
10147 has_attribute(Chain self, IntsKey a0) -> bool
10148 has_attribute(Chain self, StringKey a0) -> bool
10149 has_attribute(Chain self, ParticleIndexKey a0) -> bool
10150 has_attribute(Chain self, ObjectKey a0) -> bool
10151 has_attribute(Chain self, SparseFloatKey a0) -> bool
10152 has_attribute(Chain self, SparseIntKey a0) -> bool
10153 has_attribute(Chain self, SparseStringKey a0) -> bool
10154 has_attribute(Chain self, SparseParticleIndexKey a0) -> bool
10156 return _IMP_atom.Chain_has_attribute(self, *args)
10158 def get_derivative(self, a0):
10159 r"""get_derivative(Chain self, FloatKey a0) -> double"""
10160 return _IMP_atom.Chain_get_derivative(self, a0)
10162 def get_name(self):
10163 r"""get_name(Chain self) -> std::string"""
10164 return _IMP_atom.Chain_get_name(self)
10166 def clear_caches(self):
10167 r"""clear_caches(Chain self)"""
10168 return _IMP_atom.Chain_clear_caches(self)
10170 def set_name(self, a0):
10171 r"""set_name(Chain self, std::string a0)"""
10172 return _IMP_atom.Chain_set_name(self, a0)
10175 r"""set_check_level(Chain self, IMP::CheckLevel a0)"""
10176 return _IMP_atom.Chain_set_check_level(self, a0)
10178 def add_to_derivative(self, a0, a1, a2):
10179 r"""add_to_derivative(Chain self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
10180 return _IMP_atom.Chain_add_to_derivative(self, a0, a1, a2)
10182 def set_is_optimized(self, a0, a1):
10183 r"""set_is_optimized(Chain self, FloatKey a0, bool a1)"""
10184 return _IMP_atom.Chain_set_is_optimized(self, a0, a1)
10186 def get_is_optimized(self, a0):
10187 r"""get_is_optimized(Chain self, FloatKey a0) -> bool"""
10188 return _IMP_atom.Chain_get_is_optimized(self, a0)
10191 r"""get_check_level(Chain self) -> IMP::CheckLevel"""
10192 return _IMP_atom.Chain_get_check_level(self)
10194 def __eq__(self, *args):
10196 __eq__(Chain self, Chain o) -> bool
10197 __eq__(Chain self, Particle d) -> bool
10199 return _IMP_atom.Chain___eq__(self, *args)
10201 def __ne__(self, *args):
10203 __ne__(Chain self, Chain o) -> bool
10204 __ne__(Chain self, Particle d) -> bool
10206 return _IMP_atom.Chain___ne__(self, *args)
10208 def __le__(self, *args):
10210 __le__(Chain self, Chain o) -> bool
10211 __le__(Chain self, Particle d) -> bool
10213 return _IMP_atom.Chain___le__(self, *args)
10215 def __lt__(self, *args):
10217 __lt__(Chain self, Chain o) -> bool
10218 __lt__(Chain self, Particle d) -> bool
10220 return _IMP_atom.Chain___lt__(self, *args)
10222 def __ge__(self, *args):
10224 __ge__(Chain self, Chain o) -> bool
10225 __ge__(Chain self, Particle d) -> bool
10227 return _IMP_atom.Chain___ge__(self, *args)
10229 def __gt__(self, *args):
10231 __gt__(Chain self, Chain o) -> bool
10232 __gt__(Chain self, Particle d) -> bool
10234 return _IMP_atom.Chain___gt__(self, *args)
10236 def __hash__(self):
10237 r"""__hash__(Chain self) -> std::size_t"""
10238 return _IMP_atom.Chain___hash__(self)
10241 r"""__str__(Chain self) -> std::string"""
10242 return _IMP_atom.Chain___str__(self)
10244 def __repr__(self):
10245 r"""__repr__(Chain self) -> std::string"""
10246 return _IMP_atom.Chain___repr__(self)
10248 def _get_as_binary(self):
10249 r"""_get_as_binary(Chain self) -> PyObject *"""
10250 return _IMP_atom.Chain__get_as_binary(self)
10252 def _set_from_binary(self, p):
10253 r"""_set_from_binary(Chain self, PyObject * p)"""
10254 return _IMP_atom.Chain__set_from_binary(self, p)
10256 def __getstate__(self):
10257 p = self._get_as_binary()
10258 if len(self.__dict__) > 1:
10259 d = self.__dict__.copy()
10264 def __setstate__(self, p):
10265 if not hasattr(self,
'this'):
10267 if isinstance(p, tuple):
10269 self.__dict__.update(d)
10270 return self._set_from_binary(p)
10272 __swig_destroy__ = _IMP_atom.delete_Chain
10275 _IMP_atom.Chain_swigregister(Chain)
10276 UnknownChainType = cvar.UnknownChainType
10277 DPolypeptide = cvar.DPolypeptide
10278 LPolypeptide = cvar.LPolypeptide
10279 Polydeoxyribonucleotide = cvar.Polydeoxyribonucleotide
10280 Polyribonucleotide = cvar.Polyribonucleotide
10281 DPolysaccharide = cvar.DPolysaccharide
10282 LPolysaccharide = cvar.LPolysaccharide
10283 Protein = cvar.Protein
10289 r"""get_chain(Hierarchy h) -> Chain"""
10290 return _IMP_atom.get_chain(h)
10293 r"""get_chain_id(Hierarchy h) -> std::string"""
10294 return _IMP_atom.get_chain_id(h)
10295 class Selection(IMP._ParticleIndexesAdaptor):
10296 r"""Proxy of C++ IMP::atom::Selection class."""
10298 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10299 NONE = _IMP_atom.Selection_NONE
10301 C = _IMP_atom.Selection_C
10303 N = _IMP_atom.Selection_N
10306 def __init__(self, *args):
10308 __init__(Selection self) -> Selection
10309 __init__(Selection self, Hierarchy h) -> Selection
10310 __init__(Selection self, Particle h) -> Selection
10311 __init__(Selection self, Model m, IMP::ParticleIndexes const & pis) -> Selection
10312 __init__(Selection self, IMP::ParticlesTemp const & h) -> Selection
10314 _IMP_atom.Selection_swiginit(self, _IMP_atom.new_Selection(*args))
10317 r"""create_clone(Selection self) -> Selection"""
10318 return _IMP_atom.Selection_create_clone(self)
10320 def get_hierarchies(self):
10321 r"""get_hierarchies(Selection self) -> IMP::atom::Hierarchies"""
10322 return _IMP_atom.Selection_get_hierarchies(self)
10324 def set_molecules(self, mols):
10325 r"""set_molecules(Selection self, IMP::Strings mols)"""
10326 return _IMP_atom.Selection_set_molecules(self, mols)
10328 def set_resolution(self, r):
10329 r"""set_resolution(Selection self, double r)"""
10330 return _IMP_atom.Selection_set_resolution(self, r)
10332 def set_representation_type(self, t):
10333 r"""set_representation_type(Selection self, IMP::atom::RepresentationType t)"""
10334 return _IMP_atom.Selection_set_representation_type(self, t)
10336 def set_state_index(self, state):
10337 r"""set_state_index(Selection self, int state)"""
10338 return _IMP_atom.Selection_set_state_index(self, state)
10340 def set_state_indexes(self, states):
10341 r"""set_state_indexes(Selection self, IMP::Ints states)"""
10342 return _IMP_atom.Selection_set_state_indexes(self, states)
10344 def set_terminus(self, t):
10345 r"""set_terminus(Selection self, IMP::atom::Selection::Terminus t)"""
10346 return _IMP_atom.Selection_set_terminus(self, t)
10348 def set_element(self, e):
10349 r"""set_element(Selection self, IMP::atom::Element e)"""
10350 return _IMP_atom.Selection_set_element(self, e)
10352 def set_chain_ids(self, chains):
10353 r"""set_chain_ids(Selection self, IMP::Strings chains)"""
10354 return _IMP_atom.Selection_set_chain_ids(self, chains)
10356 def set_chains(self, chains):
10357 r"""set_chains(Selection self, IMP::Strings chains)"""
10358 return _IMP_atom.Selection_set_chains(self, chains)
10360 def set_residue_indexes(self, indexes):
10361 r"""set_residue_indexes(Selection self, IMP::Ints indexes)"""
10362 return _IMP_atom.Selection_set_residue_indexes(self, indexes)
10364 def set_atom_types(self, types):
10365 r"""set_atom_types(Selection self, IMP::atom::AtomTypes types)"""
10366 return _IMP_atom.Selection_set_atom_types(self, types)
10368 def set_residue_types(self, types):
10369 r"""set_residue_types(Selection self, IMP::atom::ResidueTypes types)"""
10370 return _IMP_atom.Selection_set_residue_types(self, types)
10372 def set_domains(self, names):
10373 r"""set_domains(Selection self, IMP::Strings names)"""
10374 return _IMP_atom.Selection_set_domains(self, names)
10376 def set_molecule(self, mol):
10377 r"""set_molecule(Selection self, std::string mol)"""
10378 return _IMP_atom.Selection_set_molecule(self, mol)
10380 def set_chain_id(self, c):
10381 r"""set_chain_id(Selection self, std::string c)"""
10382 return _IMP_atom.Selection_set_chain_id(self, c)
10384 def set_chain(self, c):
10385 r"""set_chain(Selection self, std::string c)"""
10386 return _IMP_atom.Selection_set_chain(self, c)
10388 def set_residue_index(self, i):
10389 r"""set_residue_index(Selection self, int i)"""
10390 return _IMP_atom.Selection_set_residue_index(self, i)
10392 def set_atom_type(self, types):
10393 r"""set_atom_type(Selection self, AtomType types)"""
10394 return _IMP_atom.Selection_set_atom_type(self, types)
10396 def set_residue_type(self, type):
10397 r"""set_residue_type(Selection self, ResidueType type)"""
10398 return _IMP_atom.Selection_set_residue_type(self, type)
10400 def set_domain(self, name):
10401 r"""set_domain(Selection self, std::string name)"""
10402 return _IMP_atom.Selection_set_domain(self, name)
10404 def set_copy_index(self, copy):
10405 r"""set_copy_index(Selection self, unsigned int copy)"""
10406 return _IMP_atom.Selection_set_copy_index(self, copy)
10408 def set_copy_indexes(self, copies):
10409 r"""set_copy_indexes(Selection self, IMP::Ints copies)"""
10410 return _IMP_atom.Selection_set_copy_indexes(self, copies)
10412 def set_particle_type(self, t):
10413 r"""set_particle_type(Selection self, ParticleType t)"""
10414 return _IMP_atom.Selection_set_particle_type(self, t)
10416 def set_particle_types(self, t):
10417 r"""set_particle_types(Selection self, IMP::core::ParticleTypes t)"""
10418 return _IMP_atom.Selection_set_particle_types(self, t)
10420 def set_hierarchy_types(self, types):
10421 r"""set_hierarchy_types(Selection self, IMP::Ints types)"""
10422 return _IMP_atom.Selection_set_hierarchy_types(self, types)
10424 def set_intersection(self, s):
10425 r"""set_intersection(Selection self, Selection s)"""
10426 return _IMP_atom.Selection_set_intersection(self, s)
10428 def set_union(self, s):
10429 r"""set_union(Selection self, Selection s)"""
10430 return _IMP_atom.Selection_set_union(self, s)
10432 def set_symmetric_difference(self, s):
10433 r"""set_symmetric_difference(Selection self, Selection s)"""
10434 return _IMP_atom.Selection_set_symmetric_difference(self, s)
10436 def set_difference(self, s):
10437 r"""set_difference(Selection self, Selection s)"""
10438 return _IMP_atom.Selection_set_difference(self, s)
10440 def get_selected_particles(self, with_representation=True):
10441 r"""get_selected_particles(Selection self, bool with_representation=True) -> IMP::ParticlesTemp"""
10442 return _IMP_atom.Selection_get_selected_particles(self, with_representation)
10444 def get_selected_particle_indexes(self, with_representation=True):
10445 r"""get_selected_particle_indexes(Selection self, bool with_representation=True) -> IMP::ParticleIndexes"""
10446 return _IMP_atom.Selection_get_selected_particle_indexes(self, with_representation)
10448 def show(self, *args):
10449 r"""show(Selection self, _ostream out=std::cout)"""
10450 return _IMP_atom.Selection_show(self, *args)
10453 r"""__str__(Selection self) -> std::string"""
10454 return _IMP_atom.Selection___str__(self)
10456 def __repr__(self):
10457 r"""__repr__(Selection self) -> std::string"""
10458 return _IMP_atom.Selection___repr__(self)
10460 def __init__(self, hierarchy=None,
10461 hierarchies=
None, **params):
10462 if hierarchy
and hierarchies:
10463 raise RuntimeError(
"You can't pass both hierarchy and hierarchies to Selection")
10465 this = _IMP_atom.new_Selection(hierarchy)
10466 try: self.this.append(this)
10467 except: self.this = this
10469 this = _IMP_atom.new_Selection(hierarchies)
10470 try: self.this.append(this)
10471 except: self.this = this
10473 raise ValueError(
"Either hierarchy or hierarchies must be provided.")
10474 for k
in params.keys():
10475 eval(
"self.set_%s(params[k])"%k)
10477 def union(self, s):
10478 news = self.create_clone()
10479 news.union_update(s)
10481 def intersection(self, s):
10482 news = self.create_clone()
10483 news.intersection_update(s)
10485 def symmetric_difference(self, s):
10486 news = self.create_clone()
10487 news.symmetric_difference_update(s)
10489 def difference(self, s):
10490 news = self.create_clone()
10491 news.difference_update(s)
10493 def union_update(self, s):
10496 def intersection_update(self, s):
10497 self.set_intersection(s)
10499 def symmetric_difference_update(self, s):
10500 self.set_symmetric_difference(s)
10502 def difference_update(self, s):
10503 self.set_difference(s)
10506 __and__ = intersection
10507 __xor__ = symmetric_difference
10508 __sub__ = difference
10509 __ior__ = union_update
10510 __iand__ = intersection_update
10511 __ixor__ = symmetric_difference_update
10512 __isub__ = difference_update
10514 __swig_destroy__ = _IMP_atom.delete_Selection
10517 _IMP_atom.Selection_swigregister(Selection)
10520 r"""create_distance_restraint(Selection n0, Selection n1, double x0, double k, std::string name="Distance%1%") -> Restraint"""
10521 return _IMP_atom.create_distance_restraint(*args)
10525 create_connectivity_restraint(IMP::atom::Selections const & s, double k, std::string name="Connectivity%1%") -> Restraint
10526 create_connectivity_restraint(IMP::atom::Selections const & s, double x0, double k, std::string name="Connectivity%1%") -> Restraint
10528 return _IMP_atom.create_connectivity_restraint(*args)
10532 create_internal_connectivity_restraint(Selection s, double k, std::string name="Connectivity%1%") -> Restraint
10533 create_internal_connectivity_restraint(Selection s, double x0, double k, std::string name="Connectivity%1%") -> Restraint
10535 return _IMP_atom.create_internal_connectivity_restraint(*args)
10538 r"""create_cover(Selection s, std::string name=std::string()) -> XYZR"""
10539 return _IMP_atom.create_cover(*args)
10543 get_mass(ResidueType c) -> double
10544 get_mass(Selection s) -> double
10546 return _IMP_atom.get_mass(*args)
10549 r"""get_volume(Selection s) -> double"""
10550 return _IMP_atom.get_volume(s)
10553 r"""get_surface_area(Selection s) -> double"""
10554 return _IMP_atom.get_surface_area(s)
10558 get_leaves(Hierarchy h) -> IMP::atom::Hierarchies
10559 get_leaves(IMP::atom::Hierarchies const & h) -> IMP::atom::Hierarchies
10560 get_leaves(Selection h) -> IMP::atom::Hierarchies
10562 return _IMP_atom.get_leaves(*args)
10564 r"""Proxy of C++ IMP::atom::SelectionGeometry class."""
10566 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10568 def __init__(self, *args):
10569 r"""__init__(SelectionGeometry self, Selection d, std::string name="Selection") -> SelectionGeometry"""
10570 _IMP_atom.SelectionGeometry_swiginit(self, _IMP_atom.new_SelectionGeometry(*args))
10572 def get_version_info(self):
10573 r"""get_version_info(SelectionGeometry self) -> VersionInfo"""
10574 return _IMP_atom.SelectionGeometry_get_version_info(self)
10575 __swig_destroy__ = _IMP_atom.delete_SelectionGeometry
10578 r"""__str__(SelectionGeometry self) -> std::string"""
10579 return _IMP_atom.SelectionGeometry___str__(self)
10581 def __repr__(self):
10582 r"""__repr__(SelectionGeometry self) -> std::string"""
10583 return _IMP_atom.SelectionGeometry___repr__(self)
10587 return _object_cast_to_SelectionGeometry(o)
10591 _IMP_atom.SelectionGeometry_swigregister(SelectionGeometry)
10595 get_rmsd(IMP::core::XYZs const & s0, IMP::core::XYZs const & s1) -> double
10596 get_rmsd(Selection s0, Selection s1) -> double
10598 return _IMP_atom.get_rmsd(*args)
10602 get_rmsd_transforming_first(Transformation3D tr, IMP::core::XYZs const & s0, IMP::core::XYZs const & s1) -> double
10603 get_rmsd_transforming_first(Transformation3D tr, Selection s0, Selection s1) -> double
10605 return _IMP_atom.get_rmsd_transforming_first(*args)
10608 r"""get_placement_score(IMP::core::XYZs const & source, IMP::core::XYZs const & target) -> IMP::FloatPair"""
10609 return _IMP_atom.get_placement_score(source, target)
10612 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"""
10613 return _IMP_atom.get_component_placement_score(ref1, ref2, mdl1, mdl2)
10616 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"""
10617 return _IMP_atom.get_pairwise_rmsd_score(ref1, ref2, mdl1, mdl2)
10621 get_radius_of_gyration(Selection s) -> double
10622 get_radius_of_gyration(IMP::ParticlesTemp const & ps, bool weighted=True) -> double
10624 return _IMP_atom.get_radius_of_gyration(*args)
10626 r"""Proxy of C++ IMP::atom::ForceFieldParameters class."""
10628 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10630 def __init__(self):
10631 r"""__init__(ForceFieldParameters self) -> ForceFieldParameters"""
10632 _IMP_atom.ForceFieldParameters_swiginit(self, _IMP_atom.new_ForceFieldParameters())
10634 def get_radius(self, atom):
10635 r"""get_radius(ForceFieldParameters self, Atom atom) -> IMP::Float"""
10636 return _IMP_atom.ForceFieldParameters_get_radius(self, atom)
10638 def get_epsilon(self, atom):
10639 r"""get_epsilon(ForceFieldParameters self, Atom atom) -> IMP::Float"""
10640 return _IMP_atom.ForceFieldParameters_get_epsilon(self, atom)
10643 r"""add_radii(ForceFieldParameters self, Hierarchy mhd, double scale=1.0, FloatKey radius_key=IMP::FloatKey("radius"))"""
10644 return _IMP_atom.ForceFieldParameters_add_radii(self, *args)
10646 def add_lennard_jones_types(self, mhd):
10647 r"""add_lennard_jones_types(ForceFieldParameters self, Hierarchy mhd)"""
10648 return _IMP_atom.ForceFieldParameters_add_lennard_jones_types(self, mhd)
10651 r"""add_bonds(ForceFieldParameters self, Hierarchy mhd)"""
10652 return _IMP_atom.ForceFieldParameters_add_bonds(self, mhd)
10653 __swig_destroy__ = _IMP_atom.delete_ForceFieldParameters
10656 r"""__str__(ForceFieldParameters self) -> std::string"""
10657 return _IMP_atom.ForceFieldParameters___str__(self)
10659 def __repr__(self):
10660 r"""__repr__(ForceFieldParameters self) -> std::string"""
10661 return _IMP_atom.ForceFieldParameters___repr__(self)
10665 return _object_cast_to_ForceFieldParameters(o)
10669 _IMP_atom.ForceFieldParameters_swigregister(ForceFieldParameters)
10670 class CHARMMAtomTopology(object):
10671 r"""Proxy of C++ IMP::atom::CHARMMAtomTopology class."""
10673 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10675 def __init__(self, *args):
10677 __init__(CHARMMAtomTopology self) -> CHARMMAtomTopology
10678 __init__(CHARMMAtomTopology self, std::string name) -> CHARMMAtomTopology
10679 __init__(CHARMMAtomTopology self, std::string name, CHARMMAtomTopology other) -> CHARMMAtomTopology
10681 _IMP_atom.CHARMMAtomTopology_swiginit(self, _IMP_atom.new_CHARMMAtomTopology(*args))
10683 def get_name(self):
10684 r"""get_name(CHARMMAtomTopology self) -> std::string"""
10685 return _IMP_atom.CHARMMAtomTopology_get_name(self)
10687 def get_charmm_type(self):
10688 r"""get_charmm_type(CHARMMAtomTopology self) -> std::string"""
10689 return _IMP_atom.CHARMMAtomTopology_get_charmm_type(self)
10691 def get_charge(self):
10692 r"""get_charge(CHARMMAtomTopology self) -> double"""
10693 return _IMP_atom.CHARMMAtomTopology_get_charge(self)
10695 def set_charmm_type(self, charmm_type):
10696 r"""set_charmm_type(CHARMMAtomTopology self, std::string charmm_type)"""
10697 return _IMP_atom.CHARMMAtomTopology_set_charmm_type(self, charmm_type)
10699 def set_charge(self, charge):
10700 r"""set_charge(CHARMMAtomTopology self, double charge)"""
10701 return _IMP_atom.CHARMMAtomTopology_set_charge(self, charge)
10703 def show(self, *args):
10704 r"""show(CHARMMAtomTopology self, _ostream out=std::cout)"""
10705 return _IMP_atom.CHARMMAtomTopology_show(self, *args)
10708 r"""__str__(CHARMMAtomTopology self) -> std::string"""
10709 return _IMP_atom.CHARMMAtomTopology___str__(self)
10711 def __repr__(self):
10712 r"""__repr__(CHARMMAtomTopology self) -> std::string"""
10713 return _IMP_atom.CHARMMAtomTopology___repr__(self)
10715 def _get_as_binary(self):
10716 r"""_get_as_binary(CHARMMAtomTopology self) -> PyObject *"""
10717 return _IMP_atom.CHARMMAtomTopology__get_as_binary(self)
10719 def _set_from_binary(self, p):
10720 r"""_set_from_binary(CHARMMAtomTopology self, PyObject * p)"""
10721 return _IMP_atom.CHARMMAtomTopology__set_from_binary(self, p)
10723 def __getstate__(self):
10724 p = self._get_as_binary()
10725 if len(self.__dict__) > 1:
10726 d = self.__dict__.copy()
10731 def __setstate__(self, p):
10732 if not hasattr(self,
'this'):
10734 if isinstance(p, tuple):
10736 self.__dict__.update(d)
10737 return self._set_from_binary(p)
10739 __swig_destroy__ = _IMP_atom.delete_CHARMMAtomTopology
10742 _IMP_atom.CHARMMAtomTopology_swigregister(CHARMMAtomTopology)
10743 class CHARMMBondEndpoint(object):
10744 r"""Proxy of C++ IMP::atom::CHARMMBondEndpoint class."""
10746 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10748 def __init__(self, atom_name, residue=None):
10749 r"""__init__(CHARMMBondEndpoint self, std::string atom_name, CHARMMResidueTopology residue=None) -> CHARMMBondEndpoint"""
10750 _IMP_atom.CHARMMBondEndpoint_swiginit(self, _IMP_atom.new_CHARMMBondEndpoint(atom_name, residue))
10752 def get_atom_name(self):
10753 r"""get_atom_name(CHARMMBondEndpoint self) -> std::string"""
10754 return _IMP_atom.CHARMMBondEndpoint_get_atom_name(self)
10756 def get_atom(self, current_residue, previous_residue, next_residue, resmap):
10757 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"""
10758 return _IMP_atom.CHARMMBondEndpoint_get_atom(self, current_residue, previous_residue, next_residue, resmap)
10760 def show(self, *args):
10761 r"""show(CHARMMBondEndpoint self, _ostream out=std::cout)"""
10762 return _IMP_atom.CHARMMBondEndpoint_show(self, *args)
10765 r"""__str__(CHARMMBondEndpoint self) -> std::string"""
10766 return _IMP_atom.CHARMMBondEndpoint___str__(self)
10768 def __repr__(self):
10769 r"""__repr__(CHARMMBondEndpoint self) -> std::string"""
10770 return _IMP_atom.CHARMMBondEndpoint___repr__(self)
10771 __swig_destroy__ = _IMP_atom.delete_CHARMMBondEndpoint
10774 _IMP_atom.CHARMMBondEndpoint_swigregister(CHARMMBondEndpoint)
10775 class CHARMMDihedral(object):
10776 r"""Proxy of C++ IMP::atom::CHARMMConnection< 4 > class."""
10778 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10779 __repr__ = _swig_repr
10781 def __init__(self, atoms):
10782 r"""__init__(CHARMMDihedral self, IMP::Strings const & atoms) -> CHARMMDihedral"""
10783 _IMP_atom.CHARMMDihedral_swiginit(self, _IMP_atom.new_CHARMMDihedral(atoms))
10785 def get_endpoint(self, i):
10786 r"""get_endpoint(CHARMMDihedral self, unsigned int i) -> CHARMMBondEndpoint"""
10787 return _IMP_atom.CHARMMDihedral_get_endpoint(self, i)
10789 def get_contains_atom(self, name):
10790 r"""get_contains_atom(CHARMMDihedral self, std::string name) -> bool"""
10791 return _IMP_atom.CHARMMDihedral_get_contains_atom(self, name)
10793 def show(self, *args):
10794 r"""show(CHARMMDihedral self, _ostream out=std::cout)"""
10795 return _IMP_atom.CHARMMDihedral_show(self, *args)
10796 __swig_destroy__ = _IMP_atom.delete_CHARMMDihedral
10799 _IMP_atom.CHARMMDihedral_swigregister(CHARMMDihedral)
10800 class CHARMMInternalCoordinate(CHARMMDihedral):
10801 r"""Proxy of C++ IMP::atom::CHARMMInternalCoordinate class."""
10803 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10805 def __init__(self, *args):
10807 __init__(CHARMMInternalCoordinate self, IMP::Strings const & atoms, float first_distance, float first_angle, float dihedral, float second_angle, float second_distance, bool improper) -> CHARMMInternalCoordinate
10808 __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
10810 _IMP_atom.CHARMMInternalCoordinate_swiginit(self, _IMP_atom.new_CHARMMInternalCoordinate(*args))
10812 def get_first_distance(self):
10813 r"""get_first_distance(CHARMMInternalCoordinate self) -> float"""
10814 return _IMP_atom.CHARMMInternalCoordinate_get_first_distance(self)
10816 def get_second_distance(self):
10817 r"""get_second_distance(CHARMMInternalCoordinate self) -> float"""
10818 return _IMP_atom.CHARMMInternalCoordinate_get_second_distance(self)
10820 def get_first_angle(self):
10821 r"""get_first_angle(CHARMMInternalCoordinate self) -> float"""
10822 return _IMP_atom.CHARMMInternalCoordinate_get_first_angle(self)
10824 def get_second_angle(self):
10825 r"""get_second_angle(CHARMMInternalCoordinate self) -> float"""
10826 return _IMP_atom.CHARMMInternalCoordinate_get_second_angle(self)
10829 r"""get_dihedral(CHARMMInternalCoordinate self) -> float"""
10830 return _IMP_atom.CHARMMInternalCoordinate_get_dihedral(self)
10832 def get_improper(self):
10833 r"""get_improper(CHARMMInternalCoordinate self) -> bool"""
10834 return _IMP_atom.CHARMMInternalCoordinate_get_improper(self)
10836 def show(self, *args):
10837 r"""show(CHARMMInternalCoordinate self, _ostream out=std::cout)"""
10838 return _IMP_atom.CHARMMInternalCoordinate_show(self, *args)
10841 r"""__str__(CHARMMInternalCoordinate self) -> std::string"""
10842 return _IMP_atom.CHARMMInternalCoordinate___str__(self)
10844 def __repr__(self):
10845 r"""__repr__(CHARMMInternalCoordinate self) -> std::string"""
10846 return _IMP_atom.CHARMMInternalCoordinate___repr__(self)
10847 __swig_destroy__ = _IMP_atom.delete_CHARMMInternalCoordinate
10850 _IMP_atom.CHARMMInternalCoordinate_swigregister(CHARMMInternalCoordinate)
10851 class CHARMMResidueTopologyBase(
IMP.Object):
10852 r"""Proxy of C++ IMP::atom::CHARMMResidueTopologyBase class."""
10854 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10856 def __init__(self, *args, **kwargs):
10857 raise AttributeError(
"No constructor defined")
10859 def get_type(self):
10860 r"""get_type(CHARMMResidueTopologyBase self) -> std::string"""
10861 return _IMP_atom.CHARMMResidueTopologyBase_get_type(self)
10863 def get_number_of_atoms(self):
10864 r"""get_number_of_atoms(CHARMMResidueTopologyBase self) -> unsigned int"""
10865 return _IMP_atom.CHARMMResidueTopologyBase_get_number_of_atoms(self)
10867 def add_atom(self, atom):
10868 r"""add_atom(CHARMMResidueTopologyBase self, CHARMMAtomTopology atom)"""
10869 return _IMP_atom.CHARMMResidueTopologyBase_add_atom(self, atom)
10873 get_atom(CHARMMResidueTopologyBase self, unsigned int i) -> CHARMMAtomTopology
10874 get_atom(CHARMMResidueTopologyBase self, AtomType type) -> CHARMMAtomTopology
10875 get_atom(CHARMMResidueTopologyBase self, std::string name) -> CHARMMAtomTopology
10877 return _IMP_atom.CHARMMResidueTopologyBase_get_atom(self, *args)
10879 def get_number_of_bonds(self):
10880 r"""get_number_of_bonds(CHARMMResidueTopologyBase self) -> unsigned int"""
10881 return _IMP_atom.CHARMMResidueTopologyBase_get_number_of_bonds(self)
10883 def add_bond(self, bond):
10884 r"""add_bond(CHARMMResidueTopologyBase self, CHARMMBond bond)"""
10885 return _IMP_atom.CHARMMResidueTopologyBase_add_bond(self, bond)
10887 def get_number_of_angles(self):
10888 r"""get_number_of_angles(CHARMMResidueTopologyBase self) -> unsigned int"""
10889 return _IMP_atom.CHARMMResidueTopologyBase_get_number_of_angles(self)
10891 def add_angle(self, bond):
10892 r"""add_angle(CHARMMResidueTopologyBase self, CHARMMAngle bond)"""
10893 return _IMP_atom.CHARMMResidueTopologyBase_add_angle(self, bond)
10895 def get_number_of_dihedrals(self):
10896 r"""get_number_of_dihedrals(CHARMMResidueTopologyBase self) -> unsigned int"""
10897 return _IMP_atom.CHARMMResidueTopologyBase_get_number_of_dihedrals(self)
10899 def add_dihedral(self, bond):
10900 r"""add_dihedral(CHARMMResidueTopologyBase self, CHARMMDihedral bond)"""
10901 return _IMP_atom.CHARMMResidueTopologyBase_add_dihedral(self, bond)
10903 def get_number_of_impropers(self):
10904 r"""get_number_of_impropers(CHARMMResidueTopologyBase self) -> unsigned int"""
10905 return _IMP_atom.CHARMMResidueTopologyBase_get_number_of_impropers(self)
10907 def add_improper(self, bond):
10908 r"""add_improper(CHARMMResidueTopologyBase self, CHARMMDihedral bond)"""
10909 return _IMP_atom.CHARMMResidueTopologyBase_add_improper(self, bond)
10911 def get_number_of_internal_coordinates(self):
10912 r"""get_number_of_internal_coordinates(CHARMMResidueTopologyBase self) -> unsigned int"""
10913 return _IMP_atom.CHARMMResidueTopologyBase_get_number_of_internal_coordinates(self)
10915 def add_internal_coordinate(self, ic):
10916 r"""add_internal_coordinate(CHARMMResidueTopologyBase self, CHARMMInternalCoordinate ic)"""
10917 return _IMP_atom.CHARMMResidueTopologyBase_add_internal_coordinate(self, ic)
10919 def get_internal_coordinate(self, index):
10920 r"""get_internal_coordinate(CHARMMResidueTopologyBase self, unsigned int index) -> CHARMMInternalCoordinate"""
10921 return _IMP_atom.CHARMMResidueTopologyBase_get_internal_coordinate(self, index)
10924 r"""get_bond(CHARMMResidueTopologyBase self, unsigned int index) -> CHARMMBond"""
10925 return _IMP_atom.CHARMMResidueTopologyBase_get_bond(self, index)
10928 r"""get_angle(CHARMMResidueTopologyBase self, unsigned int index) -> CHARMMAngle"""
10929 return _IMP_atom.CHARMMResidueTopologyBase_get_angle(self, index)
10932 r"""get_dihedral(CHARMMResidueTopologyBase self, unsigned int index) -> CHARMMDihedral"""
10933 return _IMP_atom.CHARMMResidueTopologyBase_get_dihedral(self, index)
10935 def get_improper(self, index):
10936 r"""get_improper(CHARMMResidueTopologyBase self, unsigned int index) -> CHARMMDihedral"""
10937 return _IMP_atom.CHARMMResidueTopologyBase_get_improper(self, index)
10939 def get_version_info(self):
10940 r"""get_version_info(CHARMMResidueTopologyBase self) -> VersionInfo"""
10941 return _IMP_atom.CHARMMResidueTopologyBase_get_version_info(self)
10942 __swig_destroy__ = _IMP_atom.delete_CHARMMResidueTopologyBase
10945 r"""__str__(CHARMMResidueTopologyBase self) -> std::string"""
10946 return _IMP_atom.CHARMMResidueTopologyBase___str__(self)
10948 def __repr__(self):
10949 r"""__repr__(CHARMMResidueTopologyBase self) -> std::string"""
10950 return _IMP_atom.CHARMMResidueTopologyBase___repr__(self)
10954 return _object_cast_to_CHARMMResidueTopologyBase(o)
10958 _IMP_atom.CHARMMResidueTopologyBase_swigregister(CHARMMResidueTopologyBase)
10959 class CHARMMIdealResidueTopology(CHARMMResidueTopologyBase):
10960 r"""Proxy of C++ IMP::atom::CHARMMIdealResidueTopology class."""
10962 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10964 def __init__(self, *args):
10966 __init__(CHARMMIdealResidueTopology self, std::string type) -> CHARMMIdealResidueTopology
10967 __init__(CHARMMIdealResidueTopology self, ResidueType type) -> CHARMMIdealResidueTopology
10969 _IMP_atom.CHARMMIdealResidueTopology_swiginit(self, _IMP_atom.new_CHARMMIdealResidueTopology(*args))
10971 def remove_atom(self, name):
10972 r"""remove_atom(CHARMMIdealResidueTopology self, std::string name)"""
10973 return _IMP_atom.CHARMMIdealResidueTopology_remove_atom(self, name)
10975 def set_default_first_patch(self, patch):
10976 r"""set_default_first_patch(CHARMMIdealResidueTopology self, std::string patch)"""
10977 return _IMP_atom.CHARMMIdealResidueTopology_set_default_first_patch(self, patch)
10979 def set_default_last_patch(self, patch):
10980 r"""set_default_last_patch(CHARMMIdealResidueTopology self, std::string patch)"""
10981 return _IMP_atom.CHARMMIdealResidueTopology_set_default_last_patch(self, patch)
10983 def get_default_first_patch(self):
10984 r"""get_default_first_patch(CHARMMIdealResidueTopology self) -> std::string"""
10985 return _IMP_atom.CHARMMIdealResidueTopology_get_default_first_patch(self)
10987 def get_default_last_patch(self):
10988 r"""get_default_last_patch(CHARMMIdealResidueTopology self) -> std::string"""
10989 return _IMP_atom.CHARMMIdealResidueTopology_get_default_last_patch(self)
10990 __swig_destroy__ = _IMP_atom.delete_CHARMMIdealResidueTopology
10993 r"""__str__(CHARMMIdealResidueTopology self) -> std::string"""
10994 return _IMP_atom.CHARMMIdealResidueTopology___str__(self)
10996 def __repr__(self):
10997 r"""__repr__(CHARMMIdealResidueTopology self) -> std::string"""
10998 return _IMP_atom.CHARMMIdealResidueTopology___repr__(self)
11002 return _object_cast_to_CHARMMIdealResidueTopology(o)
11006 _IMP_atom.CHARMMIdealResidueTopology_swigregister(CHARMMIdealResidueTopology)
11007 class CHARMMPatch(CHARMMResidueTopologyBase):
11008 r"""Proxy of C++ IMP::atom::CHARMMPatch class."""
11010 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11012 def __init__(self, type):
11013 r"""__init__(CHARMMPatch self, std::string type) -> CHARMMPatch"""
11014 _IMP_atom.CHARMMPatch_swiginit(self, _IMP_atom.new_CHARMMPatch(type))
11016 def add_removed_atom(self, name):
11017 r"""add_removed_atom(CHARMMPatch self, std::string name)"""
11018 return _IMP_atom.CHARMMPatch_add_removed_atom(self, name)
11020 def get_number_of_removed_atoms(self):
11021 r"""get_number_of_removed_atoms(CHARMMPatch self) -> unsigned int"""
11022 return _IMP_atom.CHARMMPatch_get_number_of_removed_atoms(self)
11024 def get_removed_atom(self, i):
11025 r"""get_removed_atom(CHARMMPatch self, unsigned int i) -> std::string"""
11026 return _IMP_atom.CHARMMPatch_get_removed_atom(self, i)
11028 def apply(self, *args):
11030 apply(CHARMMPatch self, CHARMMResidueTopology res)
11031 apply(CHARMMPatch self, CHARMMResidueTopology res1, CHARMMResidueTopology res2)
11033 return _IMP_atom.CHARMMPatch_apply(self, *args)
11034 __swig_destroy__ = _IMP_atom.delete_CHARMMPatch
11037 r"""__str__(CHARMMPatch self) -> std::string"""
11038 return _IMP_atom.CHARMMPatch___str__(self)
11040 def __repr__(self):
11041 r"""__repr__(CHARMMPatch self) -> std::string"""
11042 return _IMP_atom.CHARMMPatch___repr__(self)
11046 return _object_cast_to_CHARMMPatch(o)
11050 _IMP_atom.CHARMMPatch_swigregister(CHARMMPatch)
11051 class CHARMMResidueTopology(CHARMMIdealResidueTopology):
11052 r"""Proxy of C++ IMP::atom::CHARMMResidueTopology class."""
11054 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11056 def __init__(self, *args):
11058 __init__(CHARMMResidueTopology self, ResidueType type) -> CHARMMResidueTopology
11059 __init__(CHARMMResidueTopology self, CHARMMIdealResidueTopology ideal) -> CHARMMResidueTopology
11061 _IMP_atom.CHARMMResidueTopology_swiginit(self, _IMP_atom.new_CHARMMResidueTopology(*args))
11063 def get_patched(self):
11064 r"""get_patched(CHARMMResidueTopology self) -> bool"""
11065 return _IMP_atom.CHARMMResidueTopology_get_patched(self)
11067 def set_patched(self, patched):
11068 r"""set_patched(CHARMMResidueTopology self, bool patched)"""
11069 return _IMP_atom.CHARMMResidueTopology_set_patched(self, patched)
11070 __swig_destroy__ = _IMP_atom.delete_CHARMMResidueTopology
11073 r"""__str__(CHARMMResidueTopology self) -> std::string"""
11074 return _IMP_atom.CHARMMResidueTopology___str__(self)
11076 def __repr__(self):
11077 r"""__repr__(CHARMMResidueTopology self) -> std::string"""
11078 return _IMP_atom.CHARMMResidueTopology___repr__(self)
11082 return _object_cast_to_CHARMMResidueTopology(o)
11086 _IMP_atom.CHARMMResidueTopology_swigregister(CHARMMResidueTopology)
11087 class CHARMMAtom(Atom):
11088 r"""Proxy of C++ IMP::atom::CHARMMAtom class."""
11090 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11092 def __init__(self, *args):
11094 __init__(CHARMMAtom self) -> CHARMMAtom
11095 __init__(CHARMMAtom self, Model m, ParticleIndex id) -> CHARMMAtom
11096 __init__(CHARMMAtom self, _ParticleAdaptor d) -> CHARMMAtom
11098 _IMP_atom.CHARMMAtom_swiginit(self, _IMP_atom.new_CHARMMAtom(*args))
11100 def show(self, *args):
11101 r"""show(CHARMMAtom self, _ostream out=std::cout)"""
11102 return _IMP_atom.CHARMMAtom_show(self, *args)
11105 def setup_particle(*args):
11107 setup_particle(Model m, ParticleIndex pi, IMP::String charmm_type) -> CHARMMAtom
11108 setup_particle(_ParticleAdaptor pa, IMP::String charmm_type) -> CHARMMAtom
11110 return _IMP_atom.CHARMMAtom_setup_particle(*args)
11112 def get_charmm_type(self):
11113 r"""get_charmm_type(CHARMMAtom self) -> IMP::String"""
11114 return _IMP_atom.CHARMMAtom_get_charmm_type(self)
11116 def set_charmm_type(self, t):
11117 r"""set_charmm_type(CHARMMAtom self, IMP::String t)"""
11118 return _IMP_atom.CHARMMAtom_set_charmm_type(self, t)
11121 def get_is_setup(*args):
11123 get_is_setup(_ParticleAdaptor p) -> bool
11124 get_is_setup(Model m, ParticleIndex pi) -> bool
11126 return _IMP_atom.CHARMMAtom_get_is_setup(*args)
11129 def get_charmm_type_key():
11130 r"""get_charmm_type_key() -> StringKey"""
11131 return _IMP_atom.CHARMMAtom_get_charmm_type_key()
11133 def add_attribute(self, *args):
11135 add_attribute(CHARMMAtom self, FloatKey k, IMP::Float v, bool opt)
11136 add_attribute(CHARMMAtom self, FloatKey a0, IMP::Float a1)
11137 add_attribute(CHARMMAtom self, IntKey a0, IMP::Int a1)
11138 add_attribute(CHARMMAtom self, FloatsKey a0, IMP::Floats a1)
11139 add_attribute(CHARMMAtom self, IntsKey a0, IMP::Ints a1)
11140 add_attribute(CHARMMAtom self, StringKey a0, IMP::String a1)
11141 add_attribute(CHARMMAtom self, ParticleIndexKey a0, Particle a1)
11142 add_attribute(CHARMMAtom self, ObjectKey a0, Object a1)
11143 add_attribute(CHARMMAtom self, SparseFloatKey a0, IMP::Float a1)
11144 add_attribute(CHARMMAtom self, SparseIntKey a0, IMP::Int a1)
11145 add_attribute(CHARMMAtom self, SparseStringKey a0, IMP::String a1)
11146 add_attribute(CHARMMAtom self, SparseParticleIndexKey a0, ParticleIndex a1)
11148 return _IMP_atom.CHARMMAtom_add_attribute(self, *args)
11150 def get_value(self, *args):
11152 get_value(CHARMMAtom self, FloatKey a0) -> IMP::Float
11153 get_value(CHARMMAtom self, IntKey a0) -> IMP::Int
11154 get_value(CHARMMAtom self, FloatsKey a0) -> IMP::Floats
11155 get_value(CHARMMAtom self, IntsKey a0) -> IMP::Ints
11156 get_value(CHARMMAtom self, StringKey a0) -> IMP::String
11157 get_value(CHARMMAtom self, ParticleIndexKey a0) -> Particle
11158 get_value(CHARMMAtom self, ObjectKey a0) -> Object
11159 get_value(CHARMMAtom self, SparseFloatKey a0) -> IMP::Float
11160 get_value(CHARMMAtom self, SparseIntKey a0) -> IMP::Int
11161 get_value(CHARMMAtom self, SparseStringKey a0) -> IMP::String
11162 get_value(CHARMMAtom self, SparseParticleIndexKey a0) -> ParticleIndex
11164 return _IMP_atom.CHARMMAtom_get_value(self, *args)
11166 def set_value(self, *args):
11168 set_value(CHARMMAtom self, FloatKey a0, IMP::Float a1)
11169 set_value(CHARMMAtom self, IntKey a0, IMP::Int a1)
11170 set_value(CHARMMAtom self, FloatsKey a0, IMP::Floats a1)
11171 set_value(CHARMMAtom self, IntsKey a0, IMP::Ints a1)
11172 set_value(CHARMMAtom self, StringKey a0, IMP::String a1)
11173 set_value(CHARMMAtom self, ParticleIndexKey a0, Particle a1)
11174 set_value(CHARMMAtom self, ObjectKey a0, Object a1)
11175 set_value(CHARMMAtom self, SparseFloatKey a0, IMP::Float a1)
11176 set_value(CHARMMAtom self, SparseIntKey a0, IMP::Int a1)
11177 set_value(CHARMMAtom self, SparseStringKey a0, IMP::String a1)
11178 set_value(CHARMMAtom self, SparseParticleIndexKey a0, ParticleIndex a1)
11180 return _IMP_atom.CHARMMAtom_set_value(self, *args)
11182 def remove_attribute(self, *args):
11184 remove_attribute(CHARMMAtom self, FloatKey a0)
11185 remove_attribute(CHARMMAtom self, IntKey a0)
11186 remove_attribute(CHARMMAtom self, FloatsKey a0)
11187 remove_attribute(CHARMMAtom self, IntsKey a0)
11188 remove_attribute(CHARMMAtom self, StringKey a0)
11189 remove_attribute(CHARMMAtom self, ParticleIndexKey a0)
11190 remove_attribute(CHARMMAtom self, ObjectKey a0)
11191 remove_attribute(CHARMMAtom self, SparseFloatKey a0)
11192 remove_attribute(CHARMMAtom self, SparseIntKey a0)
11193 remove_attribute(CHARMMAtom self, SparseStringKey a0)
11194 remove_attribute(CHARMMAtom self, SparseParticleIndexKey a0)
11196 return _IMP_atom.CHARMMAtom_remove_attribute(self, *args)
11198 def has_attribute(self, *args):
11200 has_attribute(CHARMMAtom self, FloatKey a0) -> bool
11201 has_attribute(CHARMMAtom self, IntKey a0) -> bool
11202 has_attribute(CHARMMAtom self, FloatsKey a0) -> bool
11203 has_attribute(CHARMMAtom self, IntsKey a0) -> bool
11204 has_attribute(CHARMMAtom self, StringKey a0) -> bool
11205 has_attribute(CHARMMAtom self, ParticleIndexKey a0) -> bool
11206 has_attribute(CHARMMAtom self, ObjectKey a0) -> bool
11207 has_attribute(CHARMMAtom self, SparseFloatKey a0) -> bool
11208 has_attribute(CHARMMAtom self, SparseIntKey a0) -> bool
11209 has_attribute(CHARMMAtom self, SparseStringKey a0) -> bool
11210 has_attribute(CHARMMAtom self, SparseParticleIndexKey a0) -> bool
11212 return _IMP_atom.CHARMMAtom_has_attribute(self, *args)
11214 def get_derivative(self, a0):
11215 r"""get_derivative(CHARMMAtom self, FloatKey a0) -> double"""
11216 return _IMP_atom.CHARMMAtom_get_derivative(self, a0)
11218 def get_name(self):
11219 r"""get_name(CHARMMAtom self) -> std::string"""
11220 return _IMP_atom.CHARMMAtom_get_name(self)
11222 def clear_caches(self):
11223 r"""clear_caches(CHARMMAtom self)"""
11224 return _IMP_atom.CHARMMAtom_clear_caches(self)
11226 def set_name(self, a0):
11227 r"""set_name(CHARMMAtom self, std::string a0)"""
11228 return _IMP_atom.CHARMMAtom_set_name(self, a0)
11231 r"""set_check_level(CHARMMAtom self, IMP::CheckLevel a0)"""
11232 return _IMP_atom.CHARMMAtom_set_check_level(self, a0)
11234 def add_to_derivative(self, a0, a1, a2):
11235 r"""add_to_derivative(CHARMMAtom self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
11236 return _IMP_atom.CHARMMAtom_add_to_derivative(self, a0, a1, a2)
11238 def set_is_optimized(self, a0, a1):
11239 r"""set_is_optimized(CHARMMAtom self, FloatKey a0, bool a1)"""
11240 return _IMP_atom.CHARMMAtom_set_is_optimized(self, a0, a1)
11242 def get_is_optimized(self, a0):
11243 r"""get_is_optimized(CHARMMAtom self, FloatKey a0) -> bool"""
11244 return _IMP_atom.CHARMMAtom_get_is_optimized(self, a0)
11247 r"""get_check_level(CHARMMAtom self) -> IMP::CheckLevel"""
11248 return _IMP_atom.CHARMMAtom_get_check_level(self)
11250 def __eq__(self, *args):
11252 __eq__(CHARMMAtom self, CHARMMAtom o) -> bool
11253 __eq__(CHARMMAtom self, Particle d) -> bool
11255 return _IMP_atom.CHARMMAtom___eq__(self, *args)
11257 def __ne__(self, *args):
11259 __ne__(CHARMMAtom self, CHARMMAtom o) -> bool
11260 __ne__(CHARMMAtom self, Particle d) -> bool
11262 return _IMP_atom.CHARMMAtom___ne__(self, *args)
11264 def __le__(self, *args):
11266 __le__(CHARMMAtom self, CHARMMAtom o) -> bool
11267 __le__(CHARMMAtom self, Particle d) -> bool
11269 return _IMP_atom.CHARMMAtom___le__(self, *args)
11271 def __lt__(self, *args):
11273 __lt__(CHARMMAtom self, CHARMMAtom o) -> bool
11274 __lt__(CHARMMAtom self, Particle d) -> bool
11276 return _IMP_atom.CHARMMAtom___lt__(self, *args)
11278 def __ge__(self, *args):
11280 __ge__(CHARMMAtom self, CHARMMAtom o) -> bool
11281 __ge__(CHARMMAtom self, Particle d) -> bool
11283 return _IMP_atom.CHARMMAtom___ge__(self, *args)
11285 def __gt__(self, *args):
11287 __gt__(CHARMMAtom self, CHARMMAtom o) -> bool
11288 __gt__(CHARMMAtom self, Particle d) -> bool
11290 return _IMP_atom.CHARMMAtom___gt__(self, *args)
11292 def __hash__(self):
11293 r"""__hash__(CHARMMAtom self) -> std::size_t"""
11294 return _IMP_atom.CHARMMAtom___hash__(self)
11297 r"""__str__(CHARMMAtom self) -> std::string"""
11298 return _IMP_atom.CHARMMAtom___str__(self)
11300 def __repr__(self):
11301 r"""__repr__(CHARMMAtom self) -> std::string"""
11302 return _IMP_atom.CHARMMAtom___repr__(self)
11304 def _get_as_binary(self):
11305 r"""_get_as_binary(CHARMMAtom self) -> PyObject *"""
11306 return _IMP_atom.CHARMMAtom__get_as_binary(self)
11308 def _set_from_binary(self, p):
11309 r"""_set_from_binary(CHARMMAtom self, PyObject * p)"""
11310 return _IMP_atom.CHARMMAtom__set_from_binary(self, p)
11312 def __getstate__(self):
11313 p = self._get_as_binary()
11314 if len(self.__dict__) > 1:
11315 d = self.__dict__.copy()
11320 def __setstate__(self, p):
11321 if not hasattr(self,
'this'):
11323 if isinstance(p, tuple):
11325 self.__dict__.update(d)
11326 return self._set_from_binary(p)
11328 __swig_destroy__ = _IMP_atom.delete_CHARMMAtom
11331 _IMP_atom.CHARMMAtom_swigregister(CHARMMAtom)
11334 r"""get_charmm_untyped_atoms(Hierarchy hierarchy) -> IMP::atom::Atoms"""
11335 return _IMP_atom.get_charmm_untyped_atoms(hierarchy)
11338 r"""remove_charmm_untyped_atoms(Hierarchy hierarchy)"""
11339 return _IMP_atom.remove_charmm_untyped_atoms(hierarchy)
11340 class CHARMMBondParameters(object):
11341 r"""Proxy of C++ IMP::atom::CHARMMBondParameters class."""
11343 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11344 force_constant = property(_IMP_atom.CHARMMBondParameters_force_constant_get, _IMP_atom.CHARMMBondParameters_force_constant_set, doc=
r"""force_constant : double""")
11345 ideal = property(_IMP_atom.CHARMMBondParameters_ideal_get, _IMP_atom.CHARMMBondParameters_ideal_set, doc=
r"""ideal : double""")
11347 def __init__(self):
11348 r"""__init__(CHARMMBondParameters self) -> CHARMMBondParameters"""
11349 _IMP_atom.CHARMMBondParameters_swiginit(self, _IMP_atom.new_CHARMMBondParameters())
11351 def show(self, *args):
11352 r"""show(CHARMMBondParameters self, _ostream out=std::cout)"""
11353 return _IMP_atom.CHARMMBondParameters_show(self, *args)
11356 r"""__str__(CHARMMBondParameters self) -> std::string"""
11357 return _IMP_atom.CHARMMBondParameters___str__(self)
11359 def __repr__(self):
11360 r"""__repr__(CHARMMBondParameters self) -> std::string"""
11361 return _IMP_atom.CHARMMBondParameters___repr__(self)
11363 def _get_as_binary(self):
11364 r"""_get_as_binary(CHARMMBondParameters self) -> PyObject *"""
11365 return _IMP_atom.CHARMMBondParameters__get_as_binary(self)
11367 def _set_from_binary(self, p):
11368 r"""_set_from_binary(CHARMMBondParameters self, PyObject * p)"""
11369 return _IMP_atom.CHARMMBondParameters__set_from_binary(self, p)
11371 def __getstate__(self):
11372 p = self._get_as_binary()
11373 if len(self.__dict__) > 1:
11374 d = self.__dict__.copy()
11379 def __setstate__(self, p):
11380 if not hasattr(self,
'this'):
11382 if isinstance(p, tuple):
11384 self.__dict__.update(d)
11385 return self._set_from_binary(p)
11387 __swig_destroy__ = _IMP_atom.delete_CHARMMBondParameters
11390 _IMP_atom.CHARMMBondParameters_swigregister(CHARMMBondParameters)
11391 class CHARMMDihedralParameters(object):
11392 r"""Proxy of C++ IMP::atom::CHARMMDihedralParameters class."""
11394 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11395 force_constant = property(_IMP_atom.CHARMMDihedralParameters_force_constant_get, _IMP_atom.CHARMMDihedralParameters_force_constant_set, doc=
r"""force_constant : double""")
11396 multiplicity = property(_IMP_atom.CHARMMDihedralParameters_multiplicity_get, _IMP_atom.CHARMMDihedralParameters_multiplicity_set, doc=
r"""multiplicity : int""")
11397 ideal = property(_IMP_atom.CHARMMDihedralParameters_ideal_get, _IMP_atom.CHARMMDihedralParameters_ideal_set, doc=
r"""ideal : double""")
11399 def __init__(self):
11400 r"""__init__(CHARMMDihedralParameters self) -> CHARMMDihedralParameters"""
11401 _IMP_atom.CHARMMDihedralParameters_swiginit(self, _IMP_atom.new_CHARMMDihedralParameters())
11403 def show(self, *args):
11404 r"""show(CHARMMDihedralParameters self, _ostream out=std::cout)"""
11405 return _IMP_atom.CHARMMDihedralParameters_show(self, *args)
11408 r"""__str__(CHARMMDihedralParameters self) -> std::string"""
11409 return _IMP_atom.CHARMMDihedralParameters___str__(self)
11411 def __repr__(self):
11412 r"""__repr__(CHARMMDihedralParameters self) -> std::string"""
11413 return _IMP_atom.CHARMMDihedralParameters___repr__(self)
11415 def _get_as_binary(self):
11416 r"""_get_as_binary(CHARMMDihedralParameters self) -> PyObject *"""
11417 return _IMP_atom.CHARMMDihedralParameters__get_as_binary(self)
11419 def _set_from_binary(self, p):
11420 r"""_set_from_binary(CHARMMDihedralParameters self, PyObject * p)"""
11421 return _IMP_atom.CHARMMDihedralParameters__set_from_binary(self, p)
11423 def __getstate__(self):
11424 p = self._get_as_binary()
11425 if len(self.__dict__) > 1:
11426 d = self.__dict__.copy()
11431 def __setstate__(self, p):
11432 if not hasattr(self,
'this'):
11434 if isinstance(p, tuple):
11436 self.__dict__.update(d)
11437 return self._set_from_binary(p)
11439 __swig_destroy__ = _IMP_atom.delete_CHARMMDihedralParameters
11442 _IMP_atom.CHARMMDihedralParameters_swigregister(CHARMMDihedralParameters)
11443 class CHARMMParameters(ForceFieldParameters):
11444 r"""Proxy of C++ IMP::atom::CHARMMParameters class."""
11446 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11448 def __init__(self, *args):
11449 r"""__init__(CHARMMParameters self, TextInput topology_file_name, TextInput par_file_name=IMP::TextInput(), bool translate_names_to_pdb=False) -> CHARMMParameters"""
11450 _IMP_atom.CHARMMParameters_swiginit(self, _IMP_atom.new_CHARMMParameters(*args))
11452 def add_residue_topology(self, res):
11453 r"""add_residue_topology(CHARMMParameters self, CHARMMIdealResidueTopology res)"""
11454 return _IMP_atom.CHARMMParameters_add_residue_topology(self, res)
11456 def get_residue_topology(self, type):
11457 r"""get_residue_topology(CHARMMParameters self, ResidueType type) -> CHARMMIdealResidueTopology"""
11458 return _IMP_atom.CHARMMParameters_get_residue_topology(self, type)
11460 def add_patch(self, patch):
11461 r"""add_patch(CHARMMParameters self, CHARMMPatch patch)"""
11462 return _IMP_atom.CHARMMParameters_add_patch(self, patch)
11464 def get_patch(self, name):
11465 r"""get_patch(CHARMMParameters self, std::string name) -> CHARMMPatch"""
11466 return _IMP_atom.CHARMMParameters_get_patch(self, name)
11468 def create_topology(self, hierarchy):
11469 r"""create_topology(CHARMMParameters self, Hierarchy hierarchy) -> CHARMMTopology"""
11470 return _IMP_atom.CHARMMParameters_create_topology(self, hierarchy)
11472 def get_bond_parameters(self, type1, type2):
11473 r"""get_bond_parameters(CHARMMParameters self, std::string type1, std::string type2) -> CHARMMBondParameters"""
11474 return _IMP_atom.CHARMMParameters_get_bond_parameters(self, type1, type2)
11476 def get_angle_parameters(self, type1, type2, type3):
11477 r"""get_angle_parameters(CHARMMParameters self, std::string type1, std::string type2, std::string type3) -> CHARMMBondParameters"""
11478 return _IMP_atom.CHARMMParameters_get_angle_parameters(self, type1, type2, type3)
11480 def get_dihedral_parameters(self, type1, type2, type3, type4):
11481 r"""get_dihedral_parameters(CHARMMParameters self, std::string type1, std::string type2, std::string type3, std::string type4) -> IMP::atom::CHARMMDihedralParametersList"""
11482 return _IMP_atom.CHARMMParameters_get_dihedral_parameters(self, type1, type2, type3, type4)
11484 def get_improper_parameters(self, type1, type2, type3, type4):
11485 r"""get_improper_parameters(CHARMMParameters self, std::string type1, std::string type2, std::string type3, std::string type4) -> CHARMMDihedralParameters"""
11486 return _IMP_atom.CHARMMParameters_get_improper_parameters(self, type1, type2, type3, type4)
11488 def create_angles(self, bonds):
11489 r"""create_angles(CHARMMParameters self, IMP::Particles bonds) -> IMP::Particles"""
11490 return _IMP_atom.CHARMMParameters_create_angles(self, bonds)
11492 def create_dihedrals(self, bonds):
11493 r"""create_dihedrals(CHARMMParameters self, IMP::Particles bonds) -> IMP::Particles"""
11494 return _IMP_atom.CHARMMParameters_create_dihedrals(self, bonds)
11496 def get_version_info(self):
11497 r"""get_version_info(CHARMMParameters self) -> VersionInfo"""
11498 return _IMP_atom.CHARMMParameters_get_version_info(self)
11499 __swig_destroy__ = _IMP_atom.delete_CHARMMParameters
11502 r"""__str__(CHARMMParameters self) -> std::string"""
11503 return _IMP_atom.CHARMMParameters___str__(self)
11505 def __repr__(self):
11506 r"""__repr__(CHARMMParameters self) -> std::string"""
11507 return _IMP_atom.CHARMMParameters___repr__(self)
11511 return _object_cast_to_CHARMMParameters(o)
11515 _IMP_atom.CHARMMParameters_swigregister(CHARMMParameters)
11518 r"""get_heavy_atom_CHARMM_parameters() -> CHARMMParameters"""
11519 return _IMP_atom.get_heavy_atom_CHARMM_parameters()
11522 r"""get_all_atom_CHARMM_parameters() -> CHARMMParameters"""
11523 return _IMP_atom.get_all_atom_CHARMM_parameters()
11525 r"""Proxy of C++ IMP::atom::CHARMMSegmentTopology class."""
11527 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11528 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)
11529 def __set_residues(self, obj): IMP._list_util.set_varlist(self.residues, obj)
11530 def __del_residues(self): IMP._list_util.del_varlist(self.residues)
11531 residues = property(__get_residues, __set_residues, __del_residues, doc=
"List of ##ucnames")
11533 def remove_residue(self, d):
11534 r"""remove_residue(CHARMMSegmentTopology self, CHARMMResidueTopology d)"""
11535 return _IMP_atom.CHARMMSegmentTopology_remove_residue(self, d)
11537 def _python_index_residue(self, d, start, stop):
11538 r"""_python_index_residue(CHARMMSegmentTopology self, CHARMMResidueTopology d, unsigned int start, unsigned int stop) -> unsigned int"""
11539 return _IMP_atom.CHARMMSegmentTopology__python_index_residue(self, d, start, stop)
11541 def remove_residues(self, d):
11542 r"""remove_residues(CHARMMSegmentTopology self, IMP::atom::CHARMMResidueTopologies const & d)"""
11543 return _IMP_atom.CHARMMSegmentTopology_remove_residues(self, d)
11545 def set_residues(self, ps):
11546 r"""set_residues(CHARMMSegmentTopology self, IMP::atom::CHARMMResidueTopologies const & ps)"""
11547 return _IMP_atom.CHARMMSegmentTopology_set_residues(self, ps)
11549 def set_residues_order(self, objs):
11550 r"""set_residues_order(CHARMMSegmentTopology self, IMP::atom::CHARMMResidueTopologies const & objs)"""
11551 return _IMP_atom.CHARMMSegmentTopology_set_residues_order(self, objs)
11553 def add_residue(self, obj):
11554 r"""add_residue(CHARMMSegmentTopology self, CHARMMResidueTopology obj) -> unsigned int"""
11555 return _IMP_atom.CHARMMSegmentTopology_add_residue(self, obj)
11557 def add_residues(self, objs):
11558 r"""add_residues(CHARMMSegmentTopology self, IMP::atom::CHARMMResidueTopologies const & objs)"""
11559 return _IMP_atom.CHARMMSegmentTopology_add_residues(self, objs)
11561 def clear_residues(self):
11562 r"""clear_residues(CHARMMSegmentTopology self)"""
11563 return _IMP_atom.CHARMMSegmentTopology_clear_residues(self)
11565 def get_number_of_residues(self):
11566 r"""get_number_of_residues(CHARMMSegmentTopology self) -> unsigned int"""
11567 return _IMP_atom.CHARMMSegmentTopology_get_number_of_residues(self)
11569 def get_has_residues(self):
11570 r"""get_has_residues(CHARMMSegmentTopology self) -> bool"""
11571 return _IMP_atom.CHARMMSegmentTopology_get_has_residues(self)
11574 r"""get_residue(CHARMMSegmentTopology self, unsigned int i) -> CHARMMResidueTopology"""
11575 return _IMP_atom.CHARMMSegmentTopology_get_residue(self, i)
11577 def get_residues(self):
11578 r"""get_residues(CHARMMSegmentTopology self) -> IMP::atom::CHARMMResidueTopologies"""
11579 return _IMP_atom.CHARMMSegmentTopology_get_residues(self)
11581 def erase_residue(self, i):
11582 r"""erase_residue(CHARMMSegmentTopology self, unsigned int i)"""
11583 return _IMP_atom.CHARMMSegmentTopology_erase_residue(self, i)
11585 def reserve_residues(self, sz):
11586 r"""reserve_residues(CHARMMSegmentTopology self, unsigned int sz)"""
11587 return _IMP_atom.CHARMMSegmentTopology_reserve_residues(self, sz)
11589 def get_version_info(self):
11590 r"""get_version_info(CHARMMSegmentTopology self) -> VersionInfo"""
11591 return _IMP_atom.CHARMMSegmentTopology_get_version_info(self)
11592 __swig_destroy__ = _IMP_atom.delete_CHARMMSegmentTopology
11594 def __init__(self, *args):
11595 r"""__init__(CHARMMSegmentTopology self, std::string name="CHARMM segment topology %1%") -> CHARMMSegmentTopology"""
11596 _IMP_atom.CHARMMSegmentTopology_swiginit(self, _IMP_atom.new_CHARMMSegmentTopology(*args))
11598 def apply_default_patches(self, ff):
11599 r"""apply_default_patches(CHARMMSegmentTopology self, CHARMMParameters ff)"""
11600 return _IMP_atom.CHARMMSegmentTopology_apply_default_patches(self, ff)
11603 r"""__str__(CHARMMSegmentTopology self) -> std::string"""
11604 return _IMP_atom.CHARMMSegmentTopology___str__(self)
11606 def __repr__(self):
11607 r"""__repr__(CHARMMSegmentTopology self) -> std::string"""
11608 return _IMP_atom.CHARMMSegmentTopology___repr__(self)
11612 return _object_cast_to_CHARMMSegmentTopology(o)
11616 _IMP_atom.CHARMMSegmentTopology_swigregister(CHARMMSegmentTopology)
11618 r"""Proxy of C++ IMP::atom::CHARMMTopology class."""
11620 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11622 def __init__(self, *args):
11623 r"""__init__(CHARMMTopology self, CHARMMParameters force_field, std::string name="CHARMM topology %1%") -> CHARMMTopology"""
11624 _IMP_atom.CHARMMTopology_swiginit(self, _IMP_atom.new_CHARMMTopology(*args))
11626 def get_parameters(self):
11627 r"""get_parameters(CHARMMTopology self) -> CHARMMParameters"""
11628 return _IMP_atom.CHARMMTopology_get_parameters(self)
11630 def add_sequence(self, sequence):
11631 r"""add_sequence(CHARMMTopology self, std::string sequence)"""
11632 return _IMP_atom.CHARMMTopology_add_sequence(self, sequence)
11634 def apply_default_patches(self):
11635 r"""apply_default_patches(CHARMMTopology self)"""
11636 return _IMP_atom.CHARMMTopology_apply_default_patches(self)
11638 def create_hierarchy(self, model):
11639 r"""create_hierarchy(CHARMMTopology self, Model model) -> Hierarchy"""
11640 return _IMP_atom.CHARMMTopology_create_hierarchy(self, model)
11642 def add_atom_types(self, hierarchy):
11643 r"""add_atom_types(CHARMMTopology self, Hierarchy hierarchy)"""
11644 return _IMP_atom.CHARMMTopology_add_atom_types(self, hierarchy)
11646 def add_coordinates(self, hierarchy):
11647 r"""add_coordinates(CHARMMTopology self, Hierarchy hierarchy)"""
11648 return _IMP_atom.CHARMMTopology_add_coordinates(self, hierarchy)
11650 def add_missing_atoms(self, hierarchy):
11651 r"""add_missing_atoms(CHARMMTopology self, Hierarchy hierarchy)"""
11652 return _IMP_atom.CHARMMTopology_add_missing_atoms(self, hierarchy)
11654 def setup_hierarchy(self, hierarchy):
11655 r"""setup_hierarchy(CHARMMTopology self, Hierarchy hierarchy)"""
11656 return _IMP_atom.CHARMMTopology_setup_hierarchy(self, hierarchy)
11658 def add_charges(self, hierarchy):
11659 r"""add_charges(CHARMMTopology self, Hierarchy hierarchy)"""
11660 return _IMP_atom.CHARMMTopology_add_charges(self, hierarchy)
11663 r"""add_bonds(CHARMMTopology self, Hierarchy hierarchy) -> IMP::Particles"""
11664 return _IMP_atom.CHARMMTopology_add_bonds(self, hierarchy)
11666 def add_dihedrals(self, hierarchy):
11667 r"""add_dihedrals(CHARMMTopology self, Hierarchy hierarchy) -> IMP::Particles"""
11668 return _IMP_atom.CHARMMTopology_add_dihedrals(self, hierarchy)
11670 def add_impropers(self, hierarchy):
11671 r"""add_impropers(CHARMMTopology self, Hierarchy hierarchy) -> IMP::Particles"""
11672 return _IMP_atom.CHARMMTopology_add_impropers(self, hierarchy)
11673 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)
11674 def __set_segments(self, obj): IMP._list_util.set_varlist(self.segments, obj)
11675 def __del_segments(self): IMP._list_util.del_varlist(self.segments)
11676 segments = property(__get_segments, __set_segments, __del_segments, doc=
"List of ##ucnames")
11678 def remove_segment(self, d):
11679 r"""remove_segment(CHARMMTopology self, CHARMMSegmentTopology d)"""
11680 return _IMP_atom.CHARMMTopology_remove_segment(self, d)
11682 def _python_index_segment(self, d, start, stop):
11683 r"""_python_index_segment(CHARMMTopology self, CHARMMSegmentTopology d, unsigned int start, unsigned int stop) -> unsigned int"""
11684 return _IMP_atom.CHARMMTopology__python_index_segment(self, d, start, stop)
11686 def remove_segments(self, d):
11687 r"""remove_segments(CHARMMTopology self, IMP::atom::CHARMMSegmentTopologies const & d)"""
11688 return _IMP_atom.CHARMMTopology_remove_segments(self, d)
11690 def set_segments(self, ps):
11691 r"""set_segments(CHARMMTopology self, IMP::atom::CHARMMSegmentTopologies const & ps)"""
11692 return _IMP_atom.CHARMMTopology_set_segments(self, ps)
11694 def set_segments_order(self, objs):
11695 r"""set_segments_order(CHARMMTopology self, IMP::atom::CHARMMSegmentTopologies const & objs)"""
11696 return _IMP_atom.CHARMMTopology_set_segments_order(self, objs)
11698 def add_segment(self, obj):
11699 r"""add_segment(CHARMMTopology self, CHARMMSegmentTopology obj) -> unsigned int"""
11700 return _IMP_atom.CHARMMTopology_add_segment(self, obj)
11702 def add_segments(self, objs):
11703 r"""add_segments(CHARMMTopology self, IMP::atom::CHARMMSegmentTopologies const & objs)"""
11704 return _IMP_atom.CHARMMTopology_add_segments(self, objs)
11706 def clear_segments(self):
11707 r"""clear_segments(CHARMMTopology self)"""
11708 return _IMP_atom.CHARMMTopology_clear_segments(self)
11710 def get_number_of_segments(self):
11711 r"""get_number_of_segments(CHARMMTopology self) -> unsigned int"""
11712 return _IMP_atom.CHARMMTopology_get_number_of_segments(self)
11714 def get_has_segments(self):
11715 r"""get_has_segments(CHARMMTopology self) -> bool"""
11716 return _IMP_atom.CHARMMTopology_get_has_segments(self)
11719 r"""get_segment(CHARMMTopology self, unsigned int i) -> CHARMMSegmentTopology"""
11720 return _IMP_atom.CHARMMTopology_get_segment(self, i)
11722 def get_segments(self):
11723 r"""get_segments(CHARMMTopology self) -> IMP::atom::CHARMMSegmentTopologies"""
11724 return _IMP_atom.CHARMMTopology_get_segments(self)
11726 def erase_segment(self, i):
11727 r"""erase_segment(CHARMMTopology self, unsigned int i)"""
11728 return _IMP_atom.CHARMMTopology_erase_segment(self, i)
11730 def reserve_segments(self, sz):
11731 r"""reserve_segments(CHARMMTopology self, unsigned int sz)"""
11732 return _IMP_atom.CHARMMTopology_reserve_segments(self, sz)
11734 def get_version_info(self):
11735 r"""get_version_info(CHARMMTopology self) -> VersionInfo"""
11736 return _IMP_atom.CHARMMTopology_get_version_info(self)
11737 __swig_destroy__ = _IMP_atom.delete_CHARMMTopology
11740 r"""__str__(CHARMMTopology self) -> std::string"""
11741 return _IMP_atom.CHARMMTopology___str__(self)
11743 def __repr__(self):
11744 r"""__repr__(CHARMMTopology self) -> std::string"""
11745 return _IMP_atom.CHARMMTopology___repr__(self)
11749 return _object_cast_to_CHARMMTopology(o)
11753 _IMP_atom.CHARMMTopology_swigregister(CHARMMTopology)
11755 r"""Proxy of C++ IMP::atom::CHARMMStereochemistryRestraint class."""
11757 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11759 def __init__(self, *args):
11761 __init__(CHARMMStereochemistryRestraint self, Hierarchy h, CHARMMTopology topology) -> CHARMMStereochemistryRestraint
11762 __init__(CHARMMStereochemistryRestraint self, Hierarchy h, CHARMMTopology topology, IMP::ParticlesTemp limit_to_these_particles) -> CHARMMStereochemistryRestraint
11764 _IMP_atom.CHARMMStereochemistryRestraint_swiginit(self, _IMP_atom.new_CHARMMStereochemistryRestraint(*args))
11766 def get_pair_filter(self):
11767 r"""get_pair_filter(CHARMMStereochemistryRestraint self) -> StereochemistryPairFilter"""
11768 return _IMP_atom.CHARMMStereochemistryRestraint_get_pair_filter(self)
11770 def get_full_pair_filter(self):
11771 r"""get_full_pair_filter(CHARMMStereochemistryRestraint self) -> StereochemistryPairFilter"""
11772 return _IMP_atom.CHARMMStereochemistryRestraint_get_full_pair_filter(self)
11774 def do_get_inputs(self):
11775 r"""do_get_inputs(CHARMMStereochemistryRestraint self) -> IMP::ModelObjectsTemp"""
11776 return _IMP_atom.CHARMMStereochemistryRestraint_do_get_inputs(self)
11778 def get_version_info(self):
11779 r"""get_version_info(CHARMMStereochemistryRestraint self) -> VersionInfo"""
11780 return _IMP_atom.CHARMMStereochemistryRestraint_get_version_info(self)
11781 __swig_destroy__ = _IMP_atom.delete_CHARMMStereochemistryRestraint
11784 r"""__str__(CHARMMStereochemistryRestraint self) -> std::string"""
11785 return _IMP_atom.CHARMMStereochemistryRestraint___str__(self)
11787 def __repr__(self):
11788 r"""__repr__(CHARMMStereochemistryRestraint self) -> std::string"""
11789 return _IMP_atom.CHARMMStereochemistryRestraint___repr__(self)
11793 return _object_cast_to_CHARMMStereochemistryRestraint(o)
11797 _IMP_atom.CHARMMStereochemistryRestraint_swigregister(CHARMMStereochemistryRestraint)
11800 r"""add_bonds(Hierarchy d, ForceFieldParameters ffp=IMP::atom::get_all_atom_CHARMM_parameters())"""
11801 return _IMP_atom.add_bonds(*args)
11804 r"""add_radii(Hierarchy d, ForceFieldParameters ffp=IMP::atom::get_all_atom_CHARMM_parameters(), FloatKey radius_key=IMP::FloatKey("radius"))"""
11805 return _IMP_atom.add_radii(*args)
11806 ALBER = _IMP_atom.ALBER
11808 HARPAZ = _IMP_atom.HARPAZ
11810 ANDERSSON = _IMP_atom.ANDERSSON
11812 TSAI = _IMP_atom.TSAI
11814 QUILLIN = _IMP_atom.QUILLIN
11816 SQUIRE = _IMP_atom.SQUIRE
11820 r"""get_protein_density_from_reference(IMP::atom::ProteinDensityReference densityReference) -> double"""
11821 return _IMP_atom.get_protein_density_from_reference(densityReference)
11824 r"""get_volume_from_mass(double m, IMP::atom::ProteinDensityReference ref=ALBER) -> double"""
11825 return _IMP_atom.get_volume_from_mass(*args)
11828 r"""get_mass_from_volume(double v, IMP::atom::ProteinDensityReference ref=ALBER) -> double"""
11829 return _IMP_atom.get_mass_from_volume(*args)
11832 r"""get_mass_from_number_of_residues(unsigned int num_aa) -> double"""
11833 return _IMP_atom.get_mass_from_number_of_residues(num_aa)
11836 r"""get_volume_from_residue_type(ResidueType rt) -> double"""
11837 return _IMP_atom.get_volume_from_residue_type(rt)
11840 r"""get_molarity(double n, double volume) -> double"""
11841 return _IMP_atom.get_molarity(n, volume)
11843 def get_kd(na, nb, nab, volume):
11844 r"""get_kd(double na, double nb, double nab, double volume) -> double"""
11845 return _IMP_atom.get_kd(na, nb, nab, volume)
11848 r"""get_einstein_diffusion_coefficient(double r, double temp=-1) -> double"""
11849 return _IMP_atom.get_einstein_diffusion_coefficient(r, temp)
11852 r"""get_einstein_rotational_diffusion_coefficient(double r, double temp=-1) -> double"""
11853 return _IMP_atom.get_einstein_rotational_diffusion_coefficient(r, temp)
11857 get_diffusion_length(double D, double t) -> double
11858 get_diffusion_length(double D, double force, double t, double temp=-1) -> double
11860 return _IMP_atom.get_diffusion_length(*args)
11863 r"""get_diffusion_angle(double D, double dtfs) -> double"""
11864 return _IMP_atom.get_diffusion_angle(D, dtfs)
11868 get_diffusion_coefficient(IMP::algebra::Vector3Ds const & displacements, double dt) -> double
11869 get_diffusion_coefficient(IMP::algebra::Vector3Ds const & displacements, IMP::Floats const & dts) -> double
11871 return _IMP_atom.get_diffusion_coefficient(*args)
11874 r"""get_rotational_diffusion_coefficient(IMP::algebra::Rotation3Ds const & orientations, double dt) -> double"""
11875 return _IMP_atom.get_rotational_diffusion_coefficient(orientations, dt)
11877 def get_energy_in_femto_joules(energy_in_kcal_per_mol):
11878 r"""get_energy_in_femto_joules(double energy_in_kcal_per_mol) -> double"""
11879 return _IMP_atom.get_energy_in_femto_joules(energy_in_kcal_per_mol)
11882 r"""get_force_in_femto_newtons(double force_in_kcal_per_mol_per_angstrom) -> double"""
11883 return _IMP_atom.get_force_in_femto_newtons(force_in_kcal_per_mol_per_angstrom)
11886 r"""get_spring_constant_in_femto_newtons_per_angstrom(double k_in_kcal_per_mol_per_angstrom_square) -> double"""
11887 return _IMP_atom.get_spring_constant_in_femto_newtons_per_angstrom(k_in_kcal_per_mol_per_angstrom_square)
11889 r"""Proxy of C++ IMP::atom::EzRestraint class."""
11891 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11893 def __init__(self, m, ps):
11894 r"""__init__(EzRestraint self, Model m, _ParticleIndexesAdaptor ps) -> EzRestraint"""
11895 _IMP_atom.EzRestraint_swiginit(self, _IMP_atom.new_EzRestraint(m, ps))
11897 def get_version_info(self):
11898 r"""get_version_info(EzRestraint self) -> VersionInfo"""
11899 return _IMP_atom.EzRestraint_get_version_info(self)
11900 __swig_destroy__ = _IMP_atom.delete_EzRestraint
11903 r"""__str__(EzRestraint self) -> std::string"""
11904 return _IMP_atom.EzRestraint___str__(self)
11906 def __repr__(self):
11907 r"""__repr__(EzRestraint self) -> std::string"""
11908 return _IMP_atom.EzRestraint___repr__(self)
11912 return _object_cast_to_EzRestraint(o)
11916 _IMP_atom.EzRestraint_swigregister(EzRestraint)
11920 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
11921 create_protein(Model m, std::string name, double target_radius, IMP::Ints const domain_boundaries) -> Hierarchy
11923 return _IMP_atom.create_protein(*args)
11927 create_simplified_along_backbone(Hierarchy input, int num_res, bool keep_detailed=False, Model m=None) -> Hierarchy
11928 create_simplified_along_backbone(Chain input, IMP::IntRanges const & residue_segments, bool keep_detailed=False, Model m=None) -> Hierarchy
11930 return _IMP_atom.create_simplified_along_backbone(*args)
11933 r"""create_simplified_from_volume(Hierarchy h, double resolution) -> Hierarchy"""
11934 return _IMP_atom.create_simplified_from_volume(h, resolution)
11937 r"""create_simplified_assembly_from_volume(Hierarchy h, double resolution) -> Hierarchy"""
11938 return _IMP_atom.create_simplified_assembly_from_volume(h, resolution)
11940 def get_residue_indexes(h):
11941 r"""get_residue_indexes(Hierarchy h) -> IMP::Ints"""
11942 return _IMP_atom.get_residue_indexes(h)
11944 def get_residue_type(*args):
11946 get_residue_type(char c) -> ResidueType
11947 get_residue_type(Hierarchy h) -> ResidueType
11949 return _IMP_atom.get_residue_type(*args)
11951 def get_atom_type(h):
11952 r"""get_atom_type(Hierarchy h) -> AtomType"""
11953 return _IMP_atom.get_atom_type(h)
11955 def get_domain_name(h):
11956 r"""get_domain_name(Hierarchy h) -> std::string"""
11957 return _IMP_atom.get_domain_name(h)
11961 create_excluded_volume_restraint(IMP::atom::Selections const & s) -> Restraint
11962 create_excluded_volume_restraint(IMP::atom::Hierarchies const & hs, double resolution=-1) -> Restraint
11964 return _IMP_atom.create_excluded_volume_restraint(*args)
11968 setup_as_approximation(Particle h, IMP::ParticlesTemp const & other, double resolution=-1)
11969 setup_as_approximation(Hierarchy h, double resolution=-1)
11971 return _IMP_atom.setup_as_approximation(*args)
11972 class _HierarchyTreeVertexIndex(object):
11973 r"""Proxy of C++ IMP::atom::HierarchyTreeVertexIndex class."""
11975 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11976 __repr__ = _swig_repr
11978 def __init__(self):
11979 r"""__init__(_HierarchyTreeVertexIndex self) -> _HierarchyTreeVertexIndex"""
11980 _IMP_atom._HierarchyTreeVertexIndex_swiginit(self, _IMP_atom.new__HierarchyTreeVertexIndex())
11981 __swig_destroy__ = _IMP_atom.delete__HierarchyTreeVertexIndex
11984 _IMP_atom._HierarchyTreeVertexIndex_swigregister(_HierarchyTreeVertexIndex)
11986 def show_as_graphviz(name, out):
11987 r"""show_as_graphviz(IMP::atom::HierarchyTree const & name, TextOutput out)"""
11988 return _IMP_atom.show_as_graphviz(name, out)
11990 def get_vertex_index(g):
11991 r"""get_vertex_index(IMP::atom::HierarchyTree const & g) -> _HierarchyTreeVertexIndex"""
11992 return _IMP_atom.get_vertex_index(g)
11995 r"""get_hierarchy_tree(Hierarchy h) -> IMP::atom::HierarchyTree"""
11996 return _IMP_atom.get_hierarchy_tree(h)
11998 r"""Proxy of C++ IMP::atom::HierarchyGeometry class."""
12000 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12002 def __init__(self, d, resolution=0):
12003 r"""__init__(HierarchyGeometry self, Hierarchy d, double resolution=0) -> HierarchyGeometry"""
12004 _IMP_atom.HierarchyGeometry_swiginit(self, _IMP_atom.new_HierarchyGeometry(d, resolution))
12006 def get_version_info(self):
12007 r"""get_version_info(HierarchyGeometry self) -> VersionInfo"""
12008 return _IMP_atom.HierarchyGeometry_get_version_info(self)
12009 __swig_destroy__ = _IMP_atom.delete_HierarchyGeometry
12012 r"""__str__(HierarchyGeometry self) -> std::string"""
12013 return _IMP_atom.HierarchyGeometry___str__(self)
12015 def __repr__(self):
12016 r"""__repr__(HierarchyGeometry self) -> std::string"""
12017 return _IMP_atom.HierarchyGeometry___repr__(self)
12021 return _object_cast_to_HierarchyGeometry(o)
12025 _IMP_atom.HierarchyGeometry_swigregister(HierarchyGeometry)
12027 r"""Proxy of C++ IMP::atom::HierarchiesGeometry class."""
12029 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12031 def __init__(self, sc, resolution=-1):
12032 r"""__init__(HierarchiesGeometry self, SingletonContainer sc, double resolution=-1) -> HierarchiesGeometry"""
12033 _IMP_atom.HierarchiesGeometry_swiginit(self, _IMP_atom.new_HierarchiesGeometry(sc, resolution))
12035 def get_version_info(self):
12036 r"""get_version_info(HierarchiesGeometry self) -> VersionInfo"""
12037 return _IMP_atom.HierarchiesGeometry_get_version_info(self)
12038 __swig_destroy__ = _IMP_atom.delete_HierarchiesGeometry
12041 r"""__str__(HierarchiesGeometry self) -> std::string"""
12042 return _IMP_atom.HierarchiesGeometry___str__(self)
12044 def __repr__(self):
12045 r"""__repr__(HierarchiesGeometry self) -> std::string"""
12046 return _IMP_atom.HierarchiesGeometry___repr__(self)
12050 return _object_cast_to_HierarchiesGeometry(o)
12054 _IMP_atom.HierarchiesGeometry_swigregister(HierarchiesGeometry)
12058 transform(Hierarchy h, Transformation3D tr)
12059 transform(Hierarchy h, Transformation3D tr)
12061 return _IMP_atom.transform(*args)
12062 class DopePairScore(_ADopeBase):
12063 r"""Proxy of C++ IMP::atom::DopePairScore class."""
12065 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12067 def __init__(self, *args):
12069 __init__(DopePairScore self, double threshold=std::numeric_limits< double >::max()) -> DopePairScore
12070 __init__(DopePairScore self, double threshold, TextInput data_file) -> DopePairScore
12072 _IMP_atom.DopePairScore_swiginit(self, _IMP_atom.new_DopePairScore(*args))
12073 __swig_destroy__ = _IMP_atom.delete_DopePairScore
12076 r"""__str__(DopePairScore self) -> std::string"""
12077 return _IMP_atom.DopePairScore___str__(self)
12079 def __repr__(self):
12080 r"""__repr__(DopePairScore self) -> std::string"""
12081 return _IMP_atom.DopePairScore___repr__(self)
12085 return _object_cast_to_DopePairScore(o)
12088 def _get_jax(self, m, indexes, space):
12091 import jax.numpy
as jnp
12092 from IMP.core._jax_util
import _spline
12093 def score_one(jm, index, minrange, maxrange, spacing, values,
12096 xyz = jm[
'xyz'][index]
12097 dr = space.distance(xyz[1] - xyz[0])
12098 dope_type_pair = jm[
'dope atom type']
12100 i = jnp.max(dope_type_pair[index])
12101 j = jnp.min(dope_type_pair[index])
12102 dope_type = i * (i + 1) // 2 + j
12105 x = dr - 0.5 * spacing
12107 lowbin = jnp.array((x - minrange) / spacing, dtype=int)
12108 spline_score = _spline(x, minrange, lowbin, lowbin + 1, spacing,
12109 values[dope_type], second_derivs[dope_type])
12111 dr <= minrange, 0.,
12112 jnp.where(dr >= maxrange, 0., spline_score))
12113 sf = self.get_score_functor()
12114 if sf.get_is_bipartite()
or not sf.get_is_interpolated():
12115 raise TypeError(
"Only implemented for unipartite splines")
12116 ntyp = sf.get_number_of_particle_types()[0]
12121 for i
in range(ntyp):
12122 for j
in range(0, i + 1):
12123 values.append(sf.get_values(i, j))
12124 second_derivs.append(sf.get_second_derivatives(i, j))
12125 values = np.vstack(values)
12126 second_derivs = np.vstack(second_derivs)
12127 f = functools.partial(
12128 score_one, minrange=sf.get_offset(),
12129 maxrange=min(sf.get_max(), sf.get_threshold()),
12130 spacing=sf.get_spacing(), values=jnp.asarray(values),
12131 second_derivs=jnp.asarray(second_derivs))
12134 vf = jax.vmap(f, in_axes=(
None, 0), out_axes=-1)
12135 return self._wrap_jax(m,
lambda jm: vf(jm, indexes),
12136 keys=(sf.get_dope_type_key(),))
12140 _IMP_atom.DopePairScore_swigregister(DopePairScore)
12143 r"""add_dope_score_data(Hierarchy h)"""
12144 return _IMP_atom.add_dope_score_data(h)
12145 class LoopStatisticalPairScore(_ALoopStatisticalBase):
12146 r"""Proxy of C++ IMP::atom::LoopStatisticalPairScore class."""
12148 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12150 def __init__(self, *args):
12152 __init__(LoopStatisticalPairScore self, double threshold=std::numeric_limits< double >::max()) -> LoopStatisticalPairScore
12153 __init__(LoopStatisticalPairScore self, double threshold, TextInput data_file) -> LoopStatisticalPairScore
12155 _IMP_atom.LoopStatisticalPairScore_swiginit(self, _IMP_atom.new_LoopStatisticalPairScore(*args))
12158 r"""__str__(LoopStatisticalPairScore self) -> std::string"""
12159 return _IMP_atom.LoopStatisticalPairScore___str__(self)
12161 def __repr__(self):
12162 r"""__repr__(LoopStatisticalPairScore self) -> std::string"""
12163 return _IMP_atom.LoopStatisticalPairScore___repr__(self)
12167 return _object_cast_to_LoopStatisticalPairScore(o)
12169 __swig_destroy__ = _IMP_atom.delete_LoopStatisticalPairScore
12172 _IMP_atom.LoopStatisticalPairScore_swigregister(LoopStatisticalPairScore)
12175 r"""add_loop_statistical_score_data(Hierarchy h)"""
12176 return _IMP_atom.add_loop_statistical_score_data(h)
12177 class OrientedSoapPairScore(_OrientedSoapBase):
12178 r"""Proxy of C++ IMP::atom::OrientedSoapPairScore class."""
12180 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12182 def __init__(self, library):
12183 r"""__init__(OrientedSoapPairScore self, std::string library) -> OrientedSoapPairScore"""
12184 _IMP_atom.OrientedSoapPairScore_swiginit(self, _IMP_atom.new_OrientedSoapPairScore(library))
12186 def get_pair_filter(self):
12187 r"""get_pair_filter(OrientedSoapPairScore self) -> SoapPairFilter"""
12188 return _IMP_atom.OrientedSoapPairScore_get_pair_filter(self)
12191 r"""__str__(OrientedSoapPairScore self) -> std::string"""
12192 return _IMP_atom.OrientedSoapPairScore___str__(self)
12194 def __repr__(self):
12195 r"""__repr__(OrientedSoapPairScore self) -> std::string"""
12196 return _IMP_atom.OrientedSoapPairScore___repr__(self)
12200 return _object_cast_to_OrientedSoapPairScore(o)
12202 __swig_destroy__ = _IMP_atom.delete_OrientedSoapPairScore
12205 _IMP_atom.OrientedSoapPairScore_swigregister(OrientedSoapPairScore)
12207 r"""Proxy of C++ IMP::atom::SameResiduePairFilter class."""
12209 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12211 def __init__(self):
12212 r"""__init__(SameResiduePairFilter self) -> SameResiduePairFilter"""
12213 _IMP_atom.SameResiduePairFilter_swiginit(self, _IMP_atom.new_SameResiduePairFilter())
12215 def do_get_inputs(self, m, pis):
12216 r"""do_get_inputs(SameResiduePairFilter self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
12217 return _IMP_atom.SameResiduePairFilter_do_get_inputs(self, m, pis)
12219 def get_value(self, *args):
12221 get_value(SameResiduePairFilter self, IMP::ParticlePair const & a) -> int
12222 get_value(SameResiduePairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
12224 return _IMP_atom.SameResiduePairFilter_get_value(self, *args)
12226 def get_value_index(self, *args):
12228 get_value_index(SameResiduePairFilter self, Model m, IMP::ParticleIndexPair const & p) -> int
12229 get_value_index(SameResiduePairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
12231 return _IMP_atom.SameResiduePairFilter_get_value_index(self, *args)
12233 def get_version_info(self):
12234 r"""get_version_info(SameResiduePairFilter self) -> VersionInfo"""
12235 return _IMP_atom.SameResiduePairFilter_get_version_info(self)
12236 __swig_destroy__ = _IMP_atom.delete_SameResiduePairFilter
12239 r"""__str__(SameResiduePairFilter self) -> std::string"""
12240 return _IMP_atom.SameResiduePairFilter___str__(self)
12242 def __repr__(self):
12243 r"""__repr__(SameResiduePairFilter self) -> std::string"""
12244 return _IMP_atom.SameResiduePairFilter___repr__(self)
12248 return _object_cast_to_SameResiduePairFilter(o)
12252 _IMP_atom.SameResiduePairFilter_swigregister(SameResiduePairFilter)
12254 r"""Proxy of C++ IMP::atom::RemoveRigidMotionOptimizerState class."""
12256 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12258 def __init__(self, m, pis):
12259 r"""__init__(RemoveRigidMotionOptimizerState self, Model m, _ParticleIndexesAdaptor pis) -> RemoveRigidMotionOptimizerState"""
12260 _IMP_atom.RemoveRigidMotionOptimizerState_swiginit(self, _IMP_atom.new_RemoveRigidMotionOptimizerState(m, pis))
12262 def set_particles(self, pis):
12263 r"""set_particles(RemoveRigidMotionOptimizerState self, IMP::Particles const & pis)"""
12264 return _IMP_atom.RemoveRigidMotionOptimizerState_set_particles(self, pis)
12266 def remove_rigid_motion(self):
12267 r"""remove_rigid_motion(RemoveRigidMotionOptimizerState self)"""
12268 return _IMP_atom.RemoveRigidMotionOptimizerState_remove_rigid_motion(self)
12270 def get_version_info(self):
12271 r"""get_version_info(RemoveRigidMotionOptimizerState self) -> VersionInfo"""
12272 return _IMP_atom.RemoveRigidMotionOptimizerState_get_version_info(self)
12273 __swig_destroy__ = _IMP_atom.delete_RemoveRigidMotionOptimizerState
12276 r"""__str__(RemoveRigidMotionOptimizerState self) -> std::string"""
12277 return _IMP_atom.RemoveRigidMotionOptimizerState___str__(self)
12279 def __repr__(self):
12280 r"""__repr__(RemoveRigidMotionOptimizerState self) -> std::string"""
12281 return _IMP_atom.RemoveRigidMotionOptimizerState___repr__(self)
12285 return _object_cast_to_RemoveRigidMotionOptimizerState(o)
12289 _IMP_atom.RemoveRigidMotionOptimizerState_swigregister(RemoveRigidMotionOptimizerState)
12291 r"""Proxy of C++ IMP::atom::BerendsenThermostatOptimizerState class."""
12293 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12295 def __init__(self, pis, temperature, tau):
12296 r"""__init__(BerendsenThermostatOptimizerState self, IMP::Particles const & pis, double temperature, double tau) -> BerendsenThermostatOptimizerState"""
12297 _IMP_atom.BerendsenThermostatOptimizerState_swiginit(self, _IMP_atom.new_BerendsenThermostatOptimizerState(pis, temperature, tau))
12299 def set_particles(self, pis):
12300 r"""set_particles(BerendsenThermostatOptimizerState self, IMP::Particles const & pis)"""
12301 return _IMP_atom.BerendsenThermostatOptimizerState_set_particles(self, pis)
12304 r"""get_particles(BerendsenThermostatOptimizerState self) -> IMP::Particles"""
12305 return _IMP_atom.BerendsenThermostatOptimizerState_get_particles(self)
12307 def get_temperature(self):
12308 r"""get_temperature(BerendsenThermostatOptimizerState self) -> double"""
12309 return _IMP_atom.BerendsenThermostatOptimizerState_get_temperature(self)
12312 r"""get_tau(BerendsenThermostatOptimizerState self) -> double"""
12313 return _IMP_atom.BerendsenThermostatOptimizerState_get_tau(self)
12315 def set_temperature(self, temperature):
12316 r"""set_temperature(BerendsenThermostatOptimizerState self, double temperature)"""
12317 return _IMP_atom.BerendsenThermostatOptimizerState_set_temperature(self, temperature)
12319 def set_tau(self, tau):
12320 r"""set_tau(BerendsenThermostatOptimizerState self, double tau)"""
12321 return _IMP_atom.BerendsenThermostatOptimizerState_set_tau(self, tau)
12323 def rescale_velocities(self):
12324 r"""rescale_velocities(BerendsenThermostatOptimizerState self)"""
12325 return _IMP_atom.BerendsenThermostatOptimizerState_rescale_velocities(self)
12327 def get_version_info(self):
12328 r"""get_version_info(BerendsenThermostatOptimizerState self) -> VersionInfo"""
12329 return _IMP_atom.BerendsenThermostatOptimizerState_get_version_info(self)
12330 __swig_destroy__ = _IMP_atom.delete_BerendsenThermostatOptimizerState
12333 r"""__str__(BerendsenThermostatOptimizerState self) -> std::string"""
12334 return _IMP_atom.BerendsenThermostatOptimizerState___str__(self)
12336 def __repr__(self):
12337 r"""__repr__(BerendsenThermostatOptimizerState self) -> std::string"""
12338 return _IMP_atom.BerendsenThermostatOptimizerState___repr__(self)
12342 return _object_cast_to_BerendsenThermostatOptimizerState(o)
12345 def _get_jax(self, state_index):
12347 import jax.numpy
as jnp
12349 def scale_velocities(linvel, factor, indexes):
12350 return linvel.at[indexes].
multiply(factor)
12352 def apply_func(md, temperature, tau, indexes):
12353 ekinetic = md.get_kinetic_energy()
12354 tkinetic = md.get_kinetic_temperature(ekinetic)
12355 factor = jnp.sqrt(1.0 + (md.time_step / tau)
12356 * (temperature / tkinetic - 1.0))
12357 scale = scale_velocities
12358 if hasattr(tkinetic,
'ndim')
and tkinetic.ndim >= 1:
12359 scale = jax.vmap(scale_velocities, in_axes=(0, 0,
None))
12360 md.jm[
'linvel'] = scale(md.jm[
'linvel'], factor, indexes)
12363 f = functools.partial(
12364 apply_func, temperature=self.get_temperature(),
12365 tau=self.get_tau(),
12367 return self._wrap_jax(
lambda x: x, f)
12371 _IMP_atom.BerendsenThermostatOptimizerState_swigregister(BerendsenThermostatOptimizerState)
12373 r"""Proxy of C++ IMP::atom::LangevinThermostatOptimizerState class."""
12375 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12377 def __init__(self, m, pis, temperature, gamma):
12378 r"""__init__(LangevinThermostatOptimizerState self, Model m, _ParticleIndexesAdaptor pis, double temperature, double gamma) -> LangevinThermostatOptimizerState"""
12379 _IMP_atom.LangevinThermostatOptimizerState_swiginit(self, _IMP_atom.new_LangevinThermostatOptimizerState(m, pis, temperature, gamma))
12381 def set_particles(self, pis):
12382 r"""set_particles(LangevinThermostatOptimizerState self, IMP::Particles const & pis)"""
12383 return _IMP_atom.LangevinThermostatOptimizerState_set_particles(self, pis)
12386 r"""get_particles(LangevinThermostatOptimizerState self) -> IMP::Particles"""
12387 return _IMP_atom.LangevinThermostatOptimizerState_get_particles(self)
12389 def get_temperature(self):
12390 r"""get_temperature(LangevinThermostatOptimizerState self) -> double"""
12391 return _IMP_atom.LangevinThermostatOptimizerState_get_temperature(self)
12393 def get_gamma(self):
12394 r"""get_gamma(LangevinThermostatOptimizerState self) -> double"""
12395 return _IMP_atom.LangevinThermostatOptimizerState_get_gamma(self)
12397 def set_temperature(self, temperature):
12398 r"""set_temperature(LangevinThermostatOptimizerState self, double temperature)"""
12399 return _IMP_atom.LangevinThermostatOptimizerState_set_temperature(self, temperature)
12401 def set_gamma(self, gamma):
12402 r"""set_gamma(LangevinThermostatOptimizerState self, double gamma)"""
12403 return _IMP_atom.LangevinThermostatOptimizerState_set_gamma(self, gamma)
12405 def rescale_velocities(self):
12406 r"""rescale_velocities(LangevinThermostatOptimizerState self)"""
12407 return _IMP_atom.LangevinThermostatOptimizerState_rescale_velocities(self)
12409 def get_version_info(self):
12410 r"""get_version_info(LangevinThermostatOptimizerState self) -> VersionInfo"""
12411 return _IMP_atom.LangevinThermostatOptimizerState_get_version_info(self)
12412 __swig_destroy__ = _IMP_atom.delete_LangevinThermostatOptimizerState
12415 r"""__str__(LangevinThermostatOptimizerState self) -> std::string"""
12416 return _IMP_atom.LangevinThermostatOptimizerState___str__(self)
12418 def __repr__(self):
12419 r"""__repr__(LangevinThermostatOptimizerState self) -> std::string"""
12420 return _IMP_atom.LangevinThermostatOptimizerState___repr__(self)
12424 return _object_cast_to_LangevinThermostatOptimizerState(o)
12427 def _get_jax(self, state_index):
12428 import jax.numpy
as jnp
12430 gas_constant = 8.31441e-7
12434 md.rkey, subkey = jax.random.split(md.rkey)
12435 md.optimizer_states[state_index] = subkey
12438 def apply_func(md, temperature, gamma, indexes):
12439 c1 = jnp.exp(-gamma * md.time_step)
12440 c2 = jnp.sqrt((1.0 - c1) * gas_constant * temperature)
12441 md.optimizer_states[state_index], subkey = jax.random.split(
12442 md.optimizer_states[state_index])
12443 indshape = md.jm[
'linvel'].shape[:-2] + (len(indexes),)
12444 sample = jax.random.normal(subkey, shape=indshape + (3,))
12445 mass = md.jm[
'mass'][..., indexes]
12446 linvel = md.jm[
'linvel'].at[..., indexes, :]
12447 md.jm[
'linvel'] = linvel.set(
12449 + c2 * jnp.sqrt((c1 + 1.0) / mass)[:, jnp.newaxis] * sample)
12452 f = functools.partial(
12453 apply_func, temperature=self.get_temperature(),
12454 gamma=self.get_gamma(),
12456 return self._wrap_jax(init_func, f)
12460 _IMP_atom.LangevinThermostatOptimizerState_swigregister(LangevinThermostatOptimizerState)
12461 class PDBRecord(IMP._Value):
12462 r"""Proxy of C++ IMP::atom::PDBRecord class."""
12464 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12466 def __init__(self):
12467 r"""__init__(PDBRecord self) -> PDBRecord"""
12468 _IMP_atom.PDBRecord_swiginit(self, _IMP_atom.new_PDBRecord())
12470 def get_alt_loc_indicator(self):
12471 r"""get_alt_loc_indicator(PDBRecord self) -> std::string"""
12472 return _IMP_atom.PDBRecord_get_alt_loc_indicator(self)
12474 def get_is_atom(self):
12475 r"""get_is_atom(PDBRecord self) -> bool"""
12476 return _IMP_atom.PDBRecord_get_is_atom(self)
12478 def get_trimmed_atom_name(self):
12479 r"""get_trimmed_atom_name(PDBRecord self) -> std::string"""
12480 return _IMP_atom.PDBRecord_get_trimmed_atom_name(self)
12482 def get_padded_atom_name(self):
12483 r"""get_padded_atom_name(PDBRecord self) -> std::string"""
12484 return _IMP_atom.PDBRecord_get_padded_atom_name(self)
12486 def get_residue_name(self):
12487 r"""get_residue_name(PDBRecord self) -> std::string"""
12488 return _IMP_atom.PDBRecord_get_residue_name(self)
12491 r"""get_chain_id(PDBRecord self) -> std::string"""
12492 return _IMP_atom.PDBRecord_get_chain_id(self)
12494 def get_element(self):
12495 r"""get_element(PDBRecord self) -> std::string"""
12496 return _IMP_atom.PDBRecord_get_element(self)
12498 def get_residue_number(self):
12499 r"""get_residue_number(PDBRecord self) -> int"""
12500 return _IMP_atom.PDBRecord_get_residue_number(self)
12502 def show(self, *args):
12503 r"""show(PDBRecord self, _ostream out=std::cout)"""
12504 return _IMP_atom.PDBRecord_show(self, *args)
12507 r"""__str__(PDBRecord self) -> std::string"""
12508 return _IMP_atom.PDBRecord___str__(self)
12510 def __repr__(self):
12511 r"""__repr__(PDBRecord self) -> std::string"""
12512 return _IMP_atom.PDBRecord___repr__(self)
12513 __swig_destroy__ = _IMP_atom.delete_PDBRecord
12516 _IMP_atom.PDBRecord_swigregister(PDBRecord)
12518 r"""Proxy of C++ IMP::atom::PDBSelector class."""
12520 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12522 def __init__(self, name):
12523 r"""__init__(PDBSelector self, std::string name) -> PDBSelector"""
12524 if self.__class__ == PDBSelector:
12528 _IMP_atom.PDBSelector_swiginit(self, _IMP_atom.new_PDBSelector(_self, name))
12530 if self.__class__ != PDBSelector:
12531 _director_objects.register(self)
12536 def get_is_selected(self, record):
12537 r"""get_is_selected(PDBSelector self, PDBRecord record) -> bool"""
12538 return _IMP_atom.PDBSelector_get_is_selected(self, record)
12539 __swig_destroy__ = _IMP_atom.delete_PDBSelector
12542 r"""__str__(PDBSelector self) -> std::string"""
12543 return _IMP_atom.PDBSelector___str__(self)
12545 def __repr__(self):
12546 r"""__repr__(PDBSelector self) -> std::string"""
12547 return _IMP_atom.PDBSelector___repr__(self)
12551 return _object_cast_to_PDBSelector(o)
12554 def do_show(self, out):
12559 return _object_cast_to_PDBSelector(o)
12562 def __and__(self, s):
12563 return AndPDBSelector(self, s)
12564 def __or__(self, s):
12565 return OrPDBSelector(self, s)
12566 def __xor__(self, s):
12567 return XorPDBSelector(self, s)
12568 def __invert__(self):
12569 return NotPDBSelector(self)
12570 def __sub__(self, s):
12571 return AndPDBSelector(self, NotPDBSelector(s))
12573 def __disown__(self):
12575 _IMP_atom.disown_PDBSelector(self)
12576 return weakref.proxy(self)
12578 def do_destroy(self):
12579 r"""do_destroy(PDBSelector self)"""
12580 return _IMP_atom.PDBSelector_do_destroy(self)
12583 _IMP_atom.PDBSelector_swigregister(PDBSelector)
12584 class NonAlternativePDBSelector(PDBSelector):
12585 r"""Proxy of C++ IMP::atom::NonAlternativePDBSelector class."""
12587 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12589 def __init__(self, *args):
12590 r"""__init__(NonAlternativePDBSelector self, std::string name="NonAlternativePDBSelector%1%") -> NonAlternativePDBSelector"""
12591 _IMP_atom.NonAlternativePDBSelector_swiginit(self, _IMP_atom.new_NonAlternativePDBSelector(*args))
12593 def get_version_info(self):
12594 r"""get_version_info(NonAlternativePDBSelector self) -> VersionInfo"""
12595 return _IMP_atom.NonAlternativePDBSelector_get_version_info(self)
12596 __swig_destroy__ = _IMP_atom.delete_NonAlternativePDBSelector
12599 r"""__str__(NonAlternativePDBSelector self) -> std::string"""
12600 return _IMP_atom.NonAlternativePDBSelector___str__(self)
12602 def __repr__(self):
12603 r"""__repr__(NonAlternativePDBSelector self) -> std::string"""
12604 return _IMP_atom.NonAlternativePDBSelector___repr__(self)
12608 return _object_cast_to_NonAlternativePDBSelector(o)
12612 _IMP_atom.NonAlternativePDBSelector_swigregister(NonAlternativePDBSelector)
12613 class ATOMPDBSelector(NonAlternativePDBSelector):
12614 r"""Proxy of C++ IMP::atom::ATOMPDBSelector class."""
12616 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12618 def __init__(self, *args):
12619 r"""__init__(ATOMPDBSelector self, std::string name="ATOMPDBSelector%1%") -> ATOMPDBSelector"""
12620 _IMP_atom.ATOMPDBSelector_swiginit(self, _IMP_atom.new_ATOMPDBSelector(*args))
12621 __swig_destroy__ = _IMP_atom.delete_ATOMPDBSelector
12624 r"""__str__(ATOMPDBSelector self) -> std::string"""
12625 return _IMP_atom.ATOMPDBSelector___str__(self)
12627 def __repr__(self):
12628 r"""__repr__(ATOMPDBSelector self) -> std::string"""
12629 return _IMP_atom.ATOMPDBSelector___repr__(self)
12633 return _object_cast_to_ATOMPDBSelector(o)
12637 _IMP_atom.ATOMPDBSelector_swigregister(ATOMPDBSelector)
12638 class CAlphaPDBSelector(NonAlternativePDBSelector):
12639 r"""Proxy of C++ IMP::atom::CAlphaPDBSelector class."""
12641 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12643 def __init__(self, *args):
12644 r"""__init__(CAlphaPDBSelector self, std::string name="CAlphaPDBSelector%1%") -> CAlphaPDBSelector"""
12645 _IMP_atom.CAlphaPDBSelector_swiginit(self, _IMP_atom.new_CAlphaPDBSelector(*args))
12646 __swig_destroy__ = _IMP_atom.delete_CAlphaPDBSelector
12649 r"""__str__(CAlphaPDBSelector self) -> std::string"""
12650 return _IMP_atom.CAlphaPDBSelector___str__(self)
12652 def __repr__(self):
12653 r"""__repr__(CAlphaPDBSelector self) -> std::string"""
12654 return _IMP_atom.CAlphaPDBSelector___repr__(self)
12658 return _object_cast_to_CAlphaPDBSelector(o)
12662 _IMP_atom.CAlphaPDBSelector_swigregister(CAlphaPDBSelector)
12663 class CBetaPDBSelector(NonAlternativePDBSelector):
12664 r"""Proxy of C++ IMP::atom::CBetaPDBSelector class."""
12666 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12668 def __init__(self, *args):
12669 r"""__init__(CBetaPDBSelector self, std::string name="CBetaPDBSelector%1%") -> CBetaPDBSelector"""
12670 _IMP_atom.CBetaPDBSelector_swiginit(self, _IMP_atom.new_CBetaPDBSelector(*args))
12671 __swig_destroy__ = _IMP_atom.delete_CBetaPDBSelector
12674 r"""__str__(CBetaPDBSelector self) -> std::string"""
12675 return _IMP_atom.CBetaPDBSelector___str__(self)
12677 def __repr__(self):
12678 r"""__repr__(CBetaPDBSelector self) -> std::string"""
12679 return _IMP_atom.CBetaPDBSelector___repr__(self)
12683 return _object_cast_to_CBetaPDBSelector(o)
12687 _IMP_atom.CBetaPDBSelector_swigregister(CBetaPDBSelector)
12688 class AtomTypePDBSelector(PDBSelector):
12689 r"""Proxy of C++ IMP::atom::AtomTypePDBSelector class."""
12691 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12693 def __init__(self, *args):
12694 r"""__init__(AtomTypePDBSelector self, IMP::Strings atom_types, std::string name="AtomTypePDBSelector%1%") -> AtomTypePDBSelector"""
12695 _IMP_atom.AtomTypePDBSelector_swiginit(self, _IMP_atom.new_AtomTypePDBSelector(*args))
12697 def get_version_info(self):
12698 r"""get_version_info(AtomTypePDBSelector self) -> VersionInfo"""
12699 return _IMP_atom.AtomTypePDBSelector_get_version_info(self)
12700 __swig_destroy__ = _IMP_atom.delete_AtomTypePDBSelector
12703 r"""__str__(AtomTypePDBSelector self) -> std::string"""
12704 return _IMP_atom.AtomTypePDBSelector___str__(self)
12706 def __repr__(self):
12707 r"""__repr__(AtomTypePDBSelector self) -> std::string"""
12708 return _IMP_atom.AtomTypePDBSelector___repr__(self)
12712 return _object_cast_to_AtomTypePDBSelector(o)
12716 _IMP_atom.AtomTypePDBSelector_swigregister(AtomTypePDBSelector)
12717 class ResidueTypePDBSelector(PDBSelector):
12718 r"""Proxy of C++ IMP::atom::ResidueTypePDBSelector class."""
12720 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12722 def __init__(self, *args):
12723 r"""__init__(ResidueTypePDBSelector self, IMP::Strings residue_types, std::string name="ResidueTypePDBSelector%1%") -> ResidueTypePDBSelector"""
12724 _IMP_atom.ResidueTypePDBSelector_swiginit(self, _IMP_atom.new_ResidueTypePDBSelector(*args))
12726 def get_version_info(self):
12727 r"""get_version_info(ResidueTypePDBSelector self) -> VersionInfo"""
12728 return _IMP_atom.ResidueTypePDBSelector_get_version_info(self)
12729 __swig_destroy__ = _IMP_atom.delete_ResidueTypePDBSelector
12732 r"""__str__(ResidueTypePDBSelector self) -> std::string"""
12733 return _IMP_atom.ResidueTypePDBSelector___str__(self)
12735 def __repr__(self):
12736 r"""__repr__(ResidueTypePDBSelector self) -> std::string"""
12737 return _IMP_atom.ResidueTypePDBSelector___repr__(self)
12741 return _object_cast_to_ResidueTypePDBSelector(o)
12745 _IMP_atom.ResidueTypePDBSelector_swigregister(ResidueTypePDBSelector)
12746 class CPDBSelector(NonAlternativePDBSelector):
12747 r"""Proxy of C++ IMP::atom::CPDBSelector class."""
12749 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12751 def __init__(self, *args):
12752 r"""__init__(CPDBSelector self, std::string name="CPDBSelector%1%") -> CPDBSelector"""
12753 _IMP_atom.CPDBSelector_swiginit(self, _IMP_atom.new_CPDBSelector(*args))
12754 __swig_destroy__ = _IMP_atom.delete_CPDBSelector
12757 r"""__str__(CPDBSelector self) -> std::string"""
12758 return _IMP_atom.CPDBSelector___str__(self)
12760 def __repr__(self):
12761 r"""__repr__(CPDBSelector self) -> std::string"""
12762 return _IMP_atom.CPDBSelector___repr__(self)
12766 return _object_cast_to_CPDBSelector(o)
12770 _IMP_atom.CPDBSelector_swigregister(CPDBSelector)
12771 class NPDBSelector(NonAlternativePDBSelector):
12772 r"""Proxy of C++ IMP::atom::NPDBSelector class."""
12774 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12776 def __init__(self, *args):
12777 r"""__init__(NPDBSelector self, std::string name="NPDBSelector%1%") -> NPDBSelector"""
12778 _IMP_atom.NPDBSelector_swiginit(self, _IMP_atom.new_NPDBSelector(*args))
12779 __swig_destroy__ = _IMP_atom.delete_NPDBSelector
12782 r"""__str__(NPDBSelector self) -> std::string"""
12783 return _IMP_atom.NPDBSelector___str__(self)
12785 def __repr__(self):
12786 r"""__repr__(NPDBSelector self) -> std::string"""
12787 return _IMP_atom.NPDBSelector___repr__(self)
12791 return _object_cast_to_NPDBSelector(o)
12795 _IMP_atom.NPDBSelector_swigregister(NPDBSelector)
12796 class AllPDBSelector(PDBSelector):
12797 r"""Proxy of C++ IMP::atom::AllPDBSelector class."""
12799 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12801 def __init__(self, *args):
12802 r"""__init__(AllPDBSelector self, std::string name="AllPDBSelector%1%") -> AllPDBSelector"""
12803 _IMP_atom.AllPDBSelector_swiginit(self, _IMP_atom.new_AllPDBSelector(*args))
12805 def get_version_info(self):
12806 r"""get_version_info(AllPDBSelector self) -> VersionInfo"""
12807 return _IMP_atom.AllPDBSelector_get_version_info(self)
12808 __swig_destroy__ = _IMP_atom.delete_AllPDBSelector
12811 r"""__str__(AllPDBSelector self) -> std::string"""
12812 return _IMP_atom.AllPDBSelector___str__(self)
12814 def __repr__(self):
12815 r"""__repr__(AllPDBSelector self) -> std::string"""
12816 return _IMP_atom.AllPDBSelector___repr__(self)
12820 return _object_cast_to_AllPDBSelector(o)
12824 _IMP_atom.AllPDBSelector_swigregister(AllPDBSelector)
12825 class ChainPDBSelector(NonAlternativePDBSelector):
12826 r"""Proxy of C++ IMP::atom::ChainPDBSelector class."""
12828 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12829 __swig_destroy__ = _IMP_atom.delete_ChainPDBSelector
12831 def __init__(self, *args):
12832 r"""__init__(ChainPDBSelector self, IMP::Strings chains, std::string name="ChainPDBSelector%1%") -> ChainPDBSelector"""
12833 _IMP_atom.ChainPDBSelector_swiginit(self, _IMP_atom.new_ChainPDBSelector(*args))
12836 r"""__str__(ChainPDBSelector self) -> std::string"""
12837 return _IMP_atom.ChainPDBSelector___str__(self)
12839 def __repr__(self):
12840 r"""__repr__(ChainPDBSelector self) -> std::string"""
12841 return _IMP_atom.ChainPDBSelector___repr__(self)
12845 return _object_cast_to_ChainPDBSelector(o)
12849 _IMP_atom.ChainPDBSelector_swigregister(ChainPDBSelector)
12850 class WaterPDBSelector(NonAlternativePDBSelector):
12851 r"""Proxy of C++ IMP::atom::WaterPDBSelector class."""
12853 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12855 def __init__(self, *args):
12856 r"""__init__(WaterPDBSelector self, std::string name="WaterPDBSelector%1%") -> WaterPDBSelector"""
12857 _IMP_atom.WaterPDBSelector_swiginit(self, _IMP_atom.new_WaterPDBSelector(*args))
12858 __swig_destroy__ = _IMP_atom.delete_WaterPDBSelector
12861 r"""__str__(WaterPDBSelector self) -> std::string"""
12862 return _IMP_atom.WaterPDBSelector___str__(self)
12864 def __repr__(self):
12865 r"""__repr__(WaterPDBSelector self) -> std::string"""
12866 return _IMP_atom.WaterPDBSelector___repr__(self)
12870 return _object_cast_to_WaterPDBSelector(o)
12874 _IMP_atom.WaterPDBSelector_swigregister(WaterPDBSelector)
12875 class HydrogenPDBSelector(NonAlternativePDBSelector):
12876 r"""Proxy of C++ IMP::atom::HydrogenPDBSelector class."""
12878 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12880 def __init__(self, *args):
12881 r"""__init__(HydrogenPDBSelector self, std::string name="HydrogenPDBSelector%1%") -> HydrogenPDBSelector"""
12882 _IMP_atom.HydrogenPDBSelector_swiginit(self, _IMP_atom.new_HydrogenPDBSelector(*args))
12883 __swig_destroy__ = _IMP_atom.delete_HydrogenPDBSelector
12886 r"""__str__(HydrogenPDBSelector self) -> std::string"""
12887 return _IMP_atom.HydrogenPDBSelector___str__(self)
12889 def __repr__(self):
12890 r"""__repr__(HydrogenPDBSelector self) -> std::string"""
12891 return _IMP_atom.HydrogenPDBSelector___repr__(self)
12895 return _object_cast_to_HydrogenPDBSelector(o)
12899 _IMP_atom.HydrogenPDBSelector_swigregister(HydrogenPDBSelector)
12900 class NonWaterNonHydrogenPDBSelector(NonAlternativePDBSelector):
12901 r"""Proxy of C++ IMP::atom::NonWaterNonHydrogenPDBSelector class."""
12903 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12904 __swig_destroy__ = _IMP_atom.delete_NonWaterNonHydrogenPDBSelector
12906 def __init__(self, *args):
12908 __init__(NonWaterNonHydrogenPDBSelector self, std::string name) -> NonWaterNonHydrogenPDBSelector
12909 __init__(NonWaterNonHydrogenPDBSelector self) -> NonWaterNonHydrogenPDBSelector
12911 _IMP_atom.NonWaterNonHydrogenPDBSelector_swiginit(self, _IMP_atom.new_NonWaterNonHydrogenPDBSelector(*args))
12914 r"""__str__(NonWaterNonHydrogenPDBSelector self) -> std::string"""
12915 return _IMP_atom.NonWaterNonHydrogenPDBSelector___str__(self)
12917 def __repr__(self):
12918 r"""__repr__(NonWaterNonHydrogenPDBSelector self) -> std::string"""
12919 return _IMP_atom.NonWaterNonHydrogenPDBSelector___repr__(self)
12923 return _object_cast_to_NonWaterNonHydrogenPDBSelector(o)
12927 _IMP_atom.NonWaterNonHydrogenPDBSelector_swigregister(NonWaterNonHydrogenPDBSelector)
12928 class NonHydrogenPDBSelector(NonAlternativePDBSelector):
12929 r"""Proxy of C++ IMP::atom::NonHydrogenPDBSelector class."""
12931 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12932 __swig_destroy__ = _IMP_atom.delete_NonHydrogenPDBSelector
12934 def __init__(self, *args):
12936 __init__(NonHydrogenPDBSelector self, std::string name) -> NonHydrogenPDBSelector
12937 __init__(NonHydrogenPDBSelector self) -> NonHydrogenPDBSelector
12939 _IMP_atom.NonHydrogenPDBSelector_swiginit(self, _IMP_atom.new_NonHydrogenPDBSelector(*args))
12942 r"""__str__(NonHydrogenPDBSelector self) -> std::string"""
12943 return _IMP_atom.NonHydrogenPDBSelector___str__(self)
12945 def __repr__(self):
12946 r"""__repr__(NonHydrogenPDBSelector self) -> std::string"""
12947 return _IMP_atom.NonHydrogenPDBSelector___repr__(self)
12951 return _object_cast_to_NonHydrogenPDBSelector(o)
12955 _IMP_atom.NonHydrogenPDBSelector_swigregister(NonHydrogenPDBSelector)
12956 class NonWaterPDBSelector(NonAlternativePDBSelector):
12957 r"""Proxy of C++ IMP::atom::NonWaterPDBSelector class."""
12959 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12960 __swig_destroy__ = _IMP_atom.delete_NonWaterPDBSelector
12962 def __init__(self, *args):
12964 __init__(NonWaterPDBSelector self, std::string name) -> NonWaterPDBSelector
12965 __init__(NonWaterPDBSelector self) -> NonWaterPDBSelector
12967 _IMP_atom.NonWaterPDBSelector_swiginit(self, _IMP_atom.new_NonWaterPDBSelector(*args))
12970 r"""__str__(NonWaterPDBSelector self) -> std::string"""
12971 return _IMP_atom.NonWaterPDBSelector___str__(self)
12973 def __repr__(self):
12974 r"""__repr__(NonWaterPDBSelector self) -> std::string"""
12975 return _IMP_atom.NonWaterPDBSelector___repr__(self)
12979 return _object_cast_to_NonWaterPDBSelector(o)
12983 _IMP_atom.NonWaterPDBSelector_swigregister(NonWaterPDBSelector)
12984 class BackbonePDBSelector(NonWaterNonHydrogenPDBSelector):
12985 r"""Proxy of C++ IMP::atom::BackbonePDBSelector class."""
12987 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12989 def __init__(self, *args):
12990 r"""__init__(BackbonePDBSelector self, std::string name="BackbonePDBSelector%1%") -> BackbonePDBSelector"""
12991 _IMP_atom.BackbonePDBSelector_swiginit(self, _IMP_atom.new_BackbonePDBSelector(*args))
12992 __swig_destroy__ = _IMP_atom.delete_BackbonePDBSelector
12995 r"""__str__(BackbonePDBSelector self) -> std::string"""
12996 return _IMP_atom.BackbonePDBSelector___str__(self)
12998 def __repr__(self):
12999 r"""__repr__(BackbonePDBSelector self) -> std::string"""
13000 return _IMP_atom.BackbonePDBSelector___repr__(self)
13004 return _object_cast_to_BackbonePDBSelector(o)
13008 _IMP_atom.BackbonePDBSelector_swigregister(BackbonePDBSelector)
13009 class PPDBSelector(NonAlternativePDBSelector):
13010 r"""Proxy of C++ IMP::atom::PPDBSelector class."""
13012 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13014 def __init__(self, *args):
13015 r"""__init__(PPDBSelector self, std::string name="PPDBSelector%1%") -> PPDBSelector"""
13016 _IMP_atom.PPDBSelector_swiginit(self, _IMP_atom.new_PPDBSelector(*args))
13017 __swig_destroy__ = _IMP_atom.delete_PPDBSelector
13020 r"""__str__(PPDBSelector self) -> std::string"""
13021 return _IMP_atom.PPDBSelector___str__(self)
13023 def __repr__(self):
13024 r"""__repr__(PPDBSelector self) -> std::string"""
13025 return _IMP_atom.PPDBSelector___repr__(self)
13029 return _object_cast_to_PPDBSelector(o)
13033 _IMP_atom.PPDBSelector_swigregister(PPDBSelector)
13034 class ResidueRangePDBSelector(PDBSelector):
13035 r"""Proxy of C++ IMP::atom::ResidueRangePDBSelector class."""
13037 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13039 def __init__(self, *args):
13040 r"""__init__(ResidueRangePDBSelector self, int low, int high=std::numeric_limits< int >::max(), std::string name="ResidueRangePDBSelector%1%") -> ResidueRangePDBSelector"""
13041 _IMP_atom.ResidueRangePDBSelector_swiginit(self, _IMP_atom.new_ResidueRangePDBSelector(*args))
13043 def get_version_info(self):
13044 r"""get_version_info(ResidueRangePDBSelector self) -> VersionInfo"""
13045 return _IMP_atom.ResidueRangePDBSelector_get_version_info(self)
13046 __swig_destroy__ = _IMP_atom.delete_ResidueRangePDBSelector
13049 r"""__str__(ResidueRangePDBSelector self) -> std::string"""
13050 return _IMP_atom.ResidueRangePDBSelector___str__(self)
13052 def __repr__(self):
13053 r"""__repr__(ResidueRangePDBSelector self) -> std::string"""
13054 return _IMP_atom.ResidueRangePDBSelector___repr__(self)
13058 return _object_cast_to_ResidueRangePDBSelector(o)
13062 _IMP_atom.ResidueRangePDBSelector_swigregister(ResidueRangePDBSelector)
13063 class AndPDBSelector(PDBSelector):
13064 r"""Proxy of C++ IMP::atom::AndPDBSelector class."""
13066 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13068 def get_version_info(self):
13069 r"""get_version_info(AndPDBSelector self) -> VersionInfo"""
13070 return _IMP_atom.AndPDBSelector_get_version_info(self)
13071 __swig_destroy__ = _IMP_atom.delete_AndPDBSelector
13073 def __init__(self, a, b):
13074 r"""__init__(AndPDBSelector self, PDBSelector a, PDBSelector b) -> AndPDBSelector"""
13075 _IMP_atom.AndPDBSelector_swiginit(self, _IMP_atom.new_AndPDBSelector(a, b))
13078 r"""__str__(AndPDBSelector self) -> std::string"""
13079 return _IMP_atom.AndPDBSelector___str__(self)
13081 def __repr__(self):
13082 r"""__repr__(AndPDBSelector self) -> std::string"""
13083 return _IMP_atom.AndPDBSelector___repr__(self)
13087 return _object_cast_to_AndPDBSelector(o)
13091 _IMP_atom.AndPDBSelector_swigregister(AndPDBSelector)
13092 class OrPDBSelector(PDBSelector):
13093 r"""Proxy of C++ IMP::atom::OrPDBSelector class."""
13095 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13097 def get_version_info(self):
13098 r"""get_version_info(OrPDBSelector self) -> VersionInfo"""
13099 return _IMP_atom.OrPDBSelector_get_version_info(self)
13100 __swig_destroy__ = _IMP_atom.delete_OrPDBSelector
13102 def __init__(self, a, b):
13103 r"""__init__(OrPDBSelector self, PDBSelector a, PDBSelector b) -> OrPDBSelector"""
13104 _IMP_atom.OrPDBSelector_swiginit(self, _IMP_atom.new_OrPDBSelector(a, b))
13107 r"""__str__(OrPDBSelector self) -> std::string"""
13108 return _IMP_atom.OrPDBSelector___str__(self)
13110 def __repr__(self):
13111 r"""__repr__(OrPDBSelector self) -> std::string"""
13112 return _IMP_atom.OrPDBSelector___repr__(self)
13116 return _object_cast_to_OrPDBSelector(o)
13120 _IMP_atom.OrPDBSelector_swigregister(OrPDBSelector)
13121 class XorPDBSelector(PDBSelector):
13122 r"""Proxy of C++ IMP::atom::XorPDBSelector class."""
13124 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13126 def get_version_info(self):
13127 r"""get_version_info(XorPDBSelector self) -> VersionInfo"""
13128 return _IMP_atom.XorPDBSelector_get_version_info(self)
13129 __swig_destroy__ = _IMP_atom.delete_XorPDBSelector
13131 def __init__(self, a, b):
13132 r"""__init__(XorPDBSelector self, PDBSelector a, PDBSelector b) -> XorPDBSelector"""
13133 _IMP_atom.XorPDBSelector_swiginit(self, _IMP_atom.new_XorPDBSelector(a, b))
13136 r"""__str__(XorPDBSelector self) -> std::string"""
13137 return _IMP_atom.XorPDBSelector___str__(self)
13139 def __repr__(self):
13140 r"""__repr__(XorPDBSelector self) -> std::string"""
13141 return _IMP_atom.XorPDBSelector___repr__(self)
13145 return _object_cast_to_XorPDBSelector(o)
13149 _IMP_atom.XorPDBSelector_swigregister(XorPDBSelector)
13150 class NotPDBSelector(PDBSelector):
13151 r"""Proxy of C++ IMP::atom::NotPDBSelector class."""
13153 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13155 def get_version_info(self):
13156 r"""get_version_info(NotPDBSelector self) -> VersionInfo"""
13157 return _IMP_atom.NotPDBSelector_get_version_info(self)
13158 __swig_destroy__ = _IMP_atom.delete_NotPDBSelector
13160 def __init__(self, a):
13161 r"""__init__(NotPDBSelector self, PDBSelector a) -> NotPDBSelector"""
13162 _IMP_atom.NotPDBSelector_swiginit(self, _IMP_atom.new_NotPDBSelector(a))
13165 r"""__str__(NotPDBSelector self) -> std::string"""
13166 return _IMP_atom.NotPDBSelector___str__(self)
13168 def __repr__(self):
13169 r"""__repr__(NotPDBSelector self) -> std::string"""
13170 return _IMP_atom.NotPDBSelector___repr__(self)
13174 return _object_cast_to_NotPDBSelector(o)
13178 _IMP_atom.NotPDBSelector_swigregister(NotPDBSelector)
13180 def get_default_pdb_selector():
13181 r"""get_default_pdb_selector() -> PDBSelector"""
13182 return _IMP_atom.get_default_pdb_selector()
13186 read_pdb(TextInput input, Model model, PDBSelector selector=IMP::atom::get_default_pdb_selector(), bool select_first_model=True, bool no_radii=False) -> Hierarchy
13187 read_pdb(TextInput input, int model, Hierarchy h)
13189 return _IMP_atom.read_pdb(*args)
13192 r"""read_multimodel_pdb(TextInput input, Model model, PDBSelector selector=IMP::atom::get_default_pdb_selector(), bool noradii=False) -> IMP::atom::Hierarchies"""
13193 return _IMP_atom.read_multimodel_pdb(*args)
13196 r"""write_pdb(Selection mhd, TextOutput out, unsigned int model=1)"""
13197 return _IMP_atom.write_pdb(mhd, out, model)
13200 r"""write_pdb_of_c_alphas(Selection mhd, TextOutput out, unsigned int model=1)"""
13201 return _IMP_atom.write_pdb_of_c_alphas(mhd, out, model)
13204 r"""write_multimodel_pdb(IMP::atom::Hierarchies const & mhd, TextOutput out)"""
13205 return _IMP_atom.write_multimodel_pdb(mhd, out)
13207 def get_pdb_string(*args):
13208 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"""
13209 return _IMP_atom.get_pdb_string(*args)
13211 def get_pdb_conect_record_string(arg1, arg2):
13212 r"""get_pdb_conect_record_string(int arg1, int arg2) -> std::string"""
13213 return _IMP_atom.get_pdb_conect_record_string(arg1, arg2)
13215 r"""Proxy of C++ IMP::atom::WritePDBOptimizerState class."""
13217 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13219 def __init__(self, *args):
13221 __init__(WritePDBOptimizerState self, Model m, _ParticleIndexesAdaptor pis, std::string filename) -> WritePDBOptimizerState
13222 __init__(WritePDBOptimizerState self, IMP::atom::Hierarchies const mh, std::string filename) -> WritePDBOptimizerState
13223 __init__(WritePDBOptimizerState self) -> WritePDBOptimizerState
13225 _IMP_atom.WritePDBOptimizerState_swiginit(self, _IMP_atom.new_WritePDBOptimizerState(*args))
13227 def get_version_info(self):
13228 r"""get_version_info(WritePDBOptimizerState self) -> VersionInfo"""
13229 return _IMP_atom.WritePDBOptimizerState_get_version_info(self)
13230 __swig_destroy__ = _IMP_atom.delete_WritePDBOptimizerState
13233 r"""__str__(WritePDBOptimizerState self) -> std::string"""
13234 return _IMP_atom.WritePDBOptimizerState___str__(self)
13236 def __repr__(self):
13237 r"""__repr__(WritePDBOptimizerState self) -> std::string"""
13238 return _IMP_atom.WritePDBOptimizerState___repr__(self)
13242 return _object_cast_to_WritePDBOptimizerState(o)
13245 def _get_as_binary(self):
13246 r"""_get_as_binary(WritePDBOptimizerState self) -> PyObject *"""
13247 return _IMP_atom.WritePDBOptimizerState__get_as_binary(self)
13249 def _set_from_binary(self, p):
13250 r"""_set_from_binary(WritePDBOptimizerState self, PyObject * p)"""
13251 return _IMP_atom.WritePDBOptimizerState__set_from_binary(self, p)
13253 def __getstate__(self):
13254 p = self._get_as_binary()
13255 if len(self.__dict__) > 1:
13256 d = self.__dict__.copy()
13261 def __setstate__(self, p):
13262 if not hasattr(self,
'this'):
13264 if isinstance(p, tuple):
13266 self.__dict__.update(d)
13267 return self._set_from_binary(p)
13271 _IMP_atom.WritePDBOptimizerState_swigregister(WritePDBOptimizerState)
13274 r"""read_multimodel_mmcif(TextInput input, Model model, PDBSelector selector=IMP::atom::get_default_pdb_selector(), bool noradii=False) -> IMP::atom::Hierarchies"""
13275 return _IMP_atom.read_multimodel_mmcif(*args)
13278 r"""read_mmcif(TextInput input, Model model, PDBSelector selector=IMP::atom::get_default_pdb_selector(), bool select_first_model=True, bool noradii=False) -> Hierarchy"""
13279 return _IMP_atom.read_mmcif(*args)
13282 r"""read_multimodel_bcif(TextInput input, Model model, PDBSelector selector=IMP::atom::get_default_pdb_selector(), bool noradii=False) -> IMP::atom::Hierarchies"""
13283 return _IMP_atom.read_multimodel_bcif(*args)
13286 r"""read_bcif(TextInput input, Model model, PDBSelector selector=IMP::atom::get_default_pdb_selector(), bool select_first_model=True, bool noradii=False) -> Hierarchy"""
13287 return _IMP_atom.read_bcif(*args)
13290 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"""
13291 return _IMP_atom.read_pdb_any(*args)
13294 r"""read_multimodel_pdb_any(TextInput input, Model model, PDBSelector selector=IMP::atom::get_default_pdb_selector(), bool noradii=False) -> IMP::atom::Hierarchies"""
13295 return _IMP_atom.read_multimodel_pdb_any(*args)
13298 r"""get_kt(double T) -> double"""
13299 return _IMP_atom.get_kt(T)
13301 r"""Proxy of C++ IMP::atom::CAAngleRestraint class."""
13303 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13305 def __init__(self, m, p1, p2, p3, phi0, score):
13306 r"""__init__(CAAngleRestraint self, Model m, _ParticleIndexAdaptor p1, _ParticleIndexAdaptor p2, _ParticleIndexAdaptor p3, IMP::Floats phi0, IMP::Floats score) -> CAAngleRestraint"""
13307 _IMP_atom.CAAngleRestraint_swiginit(self, _IMP_atom.new_CAAngleRestraint(m, p1, p2, p3, phi0, score))
13309 def do_get_inputs(self):
13310 r"""do_get_inputs(CAAngleRestraint self) -> IMP::ModelObjectsTemp"""
13311 return _IMP_atom.CAAngleRestraint_do_get_inputs(self)
13313 def get_version_info(self):
13314 r"""get_version_info(CAAngleRestraint self) -> VersionInfo"""
13315 return _IMP_atom.CAAngleRestraint_get_version_info(self)
13316 __swig_destroy__ = _IMP_atom.delete_CAAngleRestraint
13319 r"""__str__(CAAngleRestraint self) -> std::string"""
13320 return _IMP_atom.CAAngleRestraint___str__(self)
13322 def __repr__(self):
13323 r"""__repr__(CAAngleRestraint self) -> std::string"""
13324 return _IMP_atom.CAAngleRestraint___repr__(self)
13328 return _object_cast_to_CAAngleRestraint(o)
13332 _IMP_atom.CAAngleRestraint_swigregister(CAAngleRestraint)
13334 r"""Proxy of C++ IMP::atom::CADihedralRestraint class."""
13336 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13338 def __init__(self, m, p1, p2, p3, p4, p5, phi0, phi1, score):
13339 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"""
13340 _IMP_atom.CADihedralRestraint_swiginit(self, _IMP_atom.new_CADihedralRestraint(m, p1, p2, p3, p4, p5, phi0, phi1, score))
13342 def do_get_inputs(self):
13343 r"""do_get_inputs(CADihedralRestraint self) -> IMP::ModelObjectsTemp"""
13344 return _IMP_atom.CADihedralRestraint_do_get_inputs(self)
13346 def get_version_info(self):
13347 r"""get_version_info(CADihedralRestraint self) -> VersionInfo"""
13348 return _IMP_atom.CADihedralRestraint_get_version_info(self)
13349 __swig_destroy__ = _IMP_atom.delete_CADihedralRestraint
13352 r"""__str__(CADihedralRestraint self) -> std::string"""
13353 return _IMP_atom.CADihedralRestraint___str__(self)
13355 def __repr__(self):
13356 r"""__repr__(CADihedralRestraint self) -> std::string"""
13357 return _IMP_atom.CADihedralRestraint___repr__(self)
13361 return _object_cast_to_CADihedralRestraint(o)
13365 _IMP_atom.CADihedralRestraint_swigregister(CADihedralRestraint)
13367 r"""Proxy of C++ IMP::atom::StructureSource class."""
13369 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13371 def get_source_id(self):
13372 r"""get_source_id(StructureSource self) -> std::string"""
13373 return _IMP_atom.StructureSource_get_source_id(self)
13375 def get_source_chain_id(self):
13376 r"""get_source_chain_id(StructureSource self) -> std::string"""
13377 return _IMP_atom.StructureSource_get_source_chain_id(self)
13379 def set_source_id(self, source_id):
13380 r"""set_source_id(StructureSource self, std::string source_id)"""
13381 return _IMP_atom.StructureSource_set_source_id(self, source_id)
13383 def set_source_chain_id(self, source_chain_id):
13384 r"""set_source_chain_id(StructureSource self, std::string source_chain_id)"""
13385 return _IMP_atom.StructureSource_set_source_chain_id(self, source_chain_id)
13387 def __init__(self, *args):
13389 __init__(StructureSource self) -> StructureSource
13390 __init__(StructureSource self, Model m, ParticleIndex id) -> StructureSource
13391 __init__(StructureSource self, _ParticleAdaptor d) -> StructureSource
13393 _IMP_atom.StructureSource_swiginit(self, _IMP_atom.new_StructureSource(*args))
13396 def get_is_setup(*args):
13398 get_is_setup(Model m, ParticleIndex pi) -> bool
13399 get_is_setup(_ParticleAdaptor p) -> bool
13401 return _IMP_atom.StructureSource_get_is_setup(*args)
13403 def show(self, *args):
13404 r"""show(StructureSource self, _ostream out=std::cout)"""
13405 return _IMP_atom.StructureSource_show(self, *args)
13408 def setup_particle(*args):
13410 setup_particle(Model m, ParticleIndex pi, std::string source_id, std::string source_chain_id) -> StructureSource
13411 setup_particle(_ParticleAdaptor pa, std::string source_id, std::string source_chain_id) -> StructureSource
13413 return _IMP_atom.StructureSource_setup_particle(*args)
13415 def add_attribute(self, *args):
13417 add_attribute(StructureSource self, FloatKey k, IMP::Float v, bool opt)
13418 add_attribute(StructureSource self, FloatKey a0, IMP::Float a1)
13419 add_attribute(StructureSource self, IntKey a0, IMP::Int a1)
13420 add_attribute(StructureSource self, FloatsKey a0, IMP::Floats a1)
13421 add_attribute(StructureSource self, IntsKey a0, IMP::Ints a1)
13422 add_attribute(StructureSource self, StringKey a0, IMP::String a1)
13423 add_attribute(StructureSource self, ParticleIndexKey a0, Particle a1)
13424 add_attribute(StructureSource self, ObjectKey a0, Object a1)
13425 add_attribute(StructureSource self, SparseFloatKey a0, IMP::Float a1)
13426 add_attribute(StructureSource self, SparseIntKey a0, IMP::Int a1)
13427 add_attribute(StructureSource self, SparseStringKey a0, IMP::String a1)
13428 add_attribute(StructureSource self, SparseParticleIndexKey a0, ParticleIndex a1)
13430 return _IMP_atom.StructureSource_add_attribute(self, *args)
13432 def get_value(self, *args):
13434 get_value(StructureSource self, FloatKey a0) -> IMP::Float
13435 get_value(StructureSource self, IntKey a0) -> IMP::Int
13436 get_value(StructureSource self, FloatsKey a0) -> IMP::Floats
13437 get_value(StructureSource self, IntsKey a0) -> IMP::Ints
13438 get_value(StructureSource self, StringKey a0) -> IMP::String
13439 get_value(StructureSource self, ParticleIndexKey a0) -> Particle
13440 get_value(StructureSource self, ObjectKey a0) -> Object
13441 get_value(StructureSource self, SparseFloatKey a0) -> IMP::Float
13442 get_value(StructureSource self, SparseIntKey a0) -> IMP::Int
13443 get_value(StructureSource self, SparseStringKey a0) -> IMP::String
13444 get_value(StructureSource self, SparseParticleIndexKey a0) -> ParticleIndex
13446 return _IMP_atom.StructureSource_get_value(self, *args)
13448 def set_value(self, *args):
13450 set_value(StructureSource self, FloatKey a0, IMP::Float a1)
13451 set_value(StructureSource self, IntKey a0, IMP::Int a1)
13452 set_value(StructureSource self, FloatsKey a0, IMP::Floats a1)
13453 set_value(StructureSource self, IntsKey a0, IMP::Ints a1)
13454 set_value(StructureSource self, StringKey a0, IMP::String a1)
13455 set_value(StructureSource self, ParticleIndexKey a0, Particle a1)
13456 set_value(StructureSource self, ObjectKey a0, Object a1)
13457 set_value(StructureSource self, SparseFloatKey a0, IMP::Float a1)
13458 set_value(StructureSource self, SparseIntKey a0, IMP::Int a1)
13459 set_value(StructureSource self, SparseStringKey a0, IMP::String a1)
13460 set_value(StructureSource self, SparseParticleIndexKey a0, ParticleIndex a1)
13462 return _IMP_atom.StructureSource_set_value(self, *args)
13464 def remove_attribute(self, *args):
13466 remove_attribute(StructureSource self, FloatKey a0)
13467 remove_attribute(StructureSource self, IntKey a0)
13468 remove_attribute(StructureSource self, FloatsKey a0)
13469 remove_attribute(StructureSource self, IntsKey a0)
13470 remove_attribute(StructureSource self, StringKey a0)
13471 remove_attribute(StructureSource self, ParticleIndexKey a0)
13472 remove_attribute(StructureSource self, ObjectKey a0)
13473 remove_attribute(StructureSource self, SparseFloatKey a0)
13474 remove_attribute(StructureSource self, SparseIntKey a0)
13475 remove_attribute(StructureSource self, SparseStringKey a0)
13476 remove_attribute(StructureSource self, SparseParticleIndexKey a0)
13478 return _IMP_atom.StructureSource_remove_attribute(self, *args)
13480 def has_attribute(self, *args):
13482 has_attribute(StructureSource self, FloatKey a0) -> bool
13483 has_attribute(StructureSource self, IntKey a0) -> bool
13484 has_attribute(StructureSource self, FloatsKey a0) -> bool
13485 has_attribute(StructureSource self, IntsKey a0) -> bool
13486 has_attribute(StructureSource self, StringKey a0) -> bool
13487 has_attribute(StructureSource self, ParticleIndexKey a0) -> bool
13488 has_attribute(StructureSource self, ObjectKey a0) -> bool
13489 has_attribute(StructureSource self, SparseFloatKey a0) -> bool
13490 has_attribute(StructureSource self, SparseIntKey a0) -> bool
13491 has_attribute(StructureSource self, SparseStringKey a0) -> bool
13492 has_attribute(StructureSource self, SparseParticleIndexKey a0) -> bool
13494 return _IMP_atom.StructureSource_has_attribute(self, *args)
13496 def get_derivative(self, a0):
13497 r"""get_derivative(StructureSource self, FloatKey a0) -> double"""
13498 return _IMP_atom.StructureSource_get_derivative(self, a0)
13500 def get_name(self):
13501 r"""get_name(StructureSource self) -> std::string"""
13502 return _IMP_atom.StructureSource_get_name(self)
13504 def clear_caches(self):
13505 r"""clear_caches(StructureSource self)"""
13506 return _IMP_atom.StructureSource_clear_caches(self)
13508 def set_name(self, a0):
13509 r"""set_name(StructureSource self, std::string a0)"""
13510 return _IMP_atom.StructureSource_set_name(self, a0)
13513 r"""set_check_level(StructureSource self, IMP::CheckLevel a0)"""
13514 return _IMP_atom.StructureSource_set_check_level(self, a0)
13516 def add_to_derivative(self, a0, a1, a2):
13517 r"""add_to_derivative(StructureSource self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13518 return _IMP_atom.StructureSource_add_to_derivative(self, a0, a1, a2)
13520 def set_is_optimized(self, a0, a1):
13521 r"""set_is_optimized(StructureSource self, FloatKey a0, bool a1)"""
13522 return _IMP_atom.StructureSource_set_is_optimized(self, a0, a1)
13524 def get_is_optimized(self, a0):
13525 r"""get_is_optimized(StructureSource self, FloatKey a0) -> bool"""
13526 return _IMP_atom.StructureSource_get_is_optimized(self, a0)
13529 r"""get_check_level(StructureSource self) -> IMP::CheckLevel"""
13530 return _IMP_atom.StructureSource_get_check_level(self)
13532 def __eq__(self, *args):
13534 __eq__(StructureSource self, StructureSource o) -> bool
13535 __eq__(StructureSource self, Particle d) -> bool
13537 return _IMP_atom.StructureSource___eq__(self, *args)
13539 def __ne__(self, *args):
13541 __ne__(StructureSource self, StructureSource o) -> bool
13542 __ne__(StructureSource self, Particle d) -> bool
13544 return _IMP_atom.StructureSource___ne__(self, *args)
13546 def __le__(self, *args):
13548 __le__(StructureSource self, StructureSource o) -> bool
13549 __le__(StructureSource self, Particle d) -> bool
13551 return _IMP_atom.StructureSource___le__(self, *args)
13553 def __lt__(self, *args):
13555 __lt__(StructureSource self, StructureSource o) -> bool
13556 __lt__(StructureSource self, Particle d) -> bool
13558 return _IMP_atom.StructureSource___lt__(self, *args)
13560 def __ge__(self, *args):
13562 __ge__(StructureSource self, StructureSource o) -> bool
13563 __ge__(StructureSource self, Particle d) -> bool
13565 return _IMP_atom.StructureSource___ge__(self, *args)
13567 def __gt__(self, *args):
13569 __gt__(StructureSource self, StructureSource o) -> bool
13570 __gt__(StructureSource self, Particle d) -> bool
13572 return _IMP_atom.StructureSource___gt__(self, *args)
13574 def __hash__(self):
13575 r"""__hash__(StructureSource self) -> std::size_t"""
13576 return _IMP_atom.StructureSource___hash__(self)
13579 r"""__str__(StructureSource self) -> std::string"""
13580 return _IMP_atom.StructureSource___str__(self)
13582 def __repr__(self):
13583 r"""__repr__(StructureSource self) -> std::string"""
13584 return _IMP_atom.StructureSource___repr__(self)
13586 def _get_as_binary(self):
13587 r"""_get_as_binary(StructureSource self) -> PyObject *"""
13588 return _IMP_atom.StructureSource__get_as_binary(self)
13590 def _set_from_binary(self, p):
13591 r"""_set_from_binary(StructureSource self, PyObject * p)"""
13592 return _IMP_atom.StructureSource__set_from_binary(self, p)
13594 def __getstate__(self):
13595 p = self._get_as_binary()
13596 if len(self.__dict__) > 1:
13597 d = self.__dict__.copy()
13602 def __setstate__(self, p):
13603 if not hasattr(self,
'this'):
13605 if isinstance(p, tuple):
13607 self.__dict__.update(d)
13608 return self._set_from_binary(p)
13610 __swig_destroy__ = _IMP_atom.delete_StructureSource
13613 _IMP_atom.StructureSource_swigregister(StructureSource)
13615 def __lshift__(*args):
13617 __lshift__(_ostream out, Bonded n) -> _ostream
13618 __lshift__(_ostream out, Bond n) -> _ostream
13619 __lshift__(_ostream out, Hierarchy n) -> _ostream
13620 __lshift__(_ostream out, Angle n) -> _ostream
13621 __lshift__(_ostream out, Dihedral n) -> _ostream
13622 __lshift__(_ostream out, CenterOfMass n) -> _ostream
13623 __lshift__(_ostream out, Diffusion n) -> _ostream
13624 __lshift__(_ostream out, RigidBodyDiffusion n) -> _ostream
13625 __lshift__(_ostream out, TAMDParticle n) -> _ostream
13626 __lshift__(_ostream out, Charged n) -> _ostream
13627 __lshift__(_ostream out, Domain n) -> _ostream
13628 __lshift__(_ostream out, LennardJonesTyped n) -> _ostream
13629 __lshift__(_ostream out, Fragment n) -> _ostream
13630 __lshift__(_ostream out, SecondaryStructureResidue n) -> _ostream
13631 __lshift__(_ostream out, Atom n) -> _ostream
13632 __lshift__(_ostream out, Residue n) -> _ostream
13633 __lshift__(_ostream out, Representation n) -> _ostream
13634 __lshift__(_ostream out, State n) -> _ostream
13635 __lshift__(_ostream out, Molecule n) -> _ostream
13636 __lshift__(_ostream out, Copy n) -> _ostream
13637 __lshift__(_ostream out, Chain n) -> _ostream
13638 __lshift__(_ostream out, StructureSource n) -> _ostream
13640 return _IMP_atom.__lshift__(*args)
13642 r"""Proxy of C++ IMP::atom::HelixRestraint class."""
13644 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13646 def __init__(self, rs, ideal=True):
13647 r"""__init__(HelixRestraint self, IMP::atom::Residues rs, bool ideal=True) -> HelixRestraint"""
13648 _IMP_atom.HelixRestraint_swiginit(self, _IMP_atom.new_HelixRestraint(rs, ideal))
13650 def get_number_of_bonds(self):
13651 r"""get_number_of_bonds(HelixRestraint self) -> int"""
13652 return _IMP_atom.HelixRestraint_get_number_of_bonds(self)
13654 def get_number_of_dihedrals(self):
13655 r"""get_number_of_dihedrals(HelixRestraint self) -> int"""
13656 return _IMP_atom.HelixRestraint_get_number_of_dihedrals(self)
13658 def do_get_inputs(self):
13659 r"""do_get_inputs(HelixRestraint self) -> IMP::ModelObjectsTemp"""
13660 return _IMP_atom.HelixRestraint_do_get_inputs(self)
13662 def get_version_info(self):
13663 r"""get_version_info(HelixRestraint self) -> VersionInfo"""
13664 return _IMP_atom.HelixRestraint_get_version_info(self)
13665 __swig_destroy__ = _IMP_atom.delete_HelixRestraint
13668 r"""__str__(HelixRestraint self) -> std::string"""
13669 return _IMP_atom.HelixRestraint___str__(self)
13671 def __repr__(self):
13672 r"""__repr__(HelixRestraint self) -> std::string"""
13673 return _IMP_atom.HelixRestraint___repr__(self)
13677 return _object_cast_to_HelixRestraint(o)
13681 _IMP_atom.HelixRestraint_swigregister(HelixRestraint)
13684 r"""get_transformation_aligning_first_to_second(Selection s1, Selection s2) -> Transformation3D"""
13685 return _IMP_atom.get_transformation_aligning_first_to_second(s1, s2)
13688 r"""show_molecular_hierarchy(Hierarchy h, _ostream out=std::cout) -> _ostream"""
13689 return _IMP_atom.show_molecular_hierarchy(*args)
13690 class CHARMMBond(object):
13691 r"""Proxy of C++ IMP::atom::CHARMMConnection< 2 > class."""
13693 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13694 __repr__ = _swig_repr
13696 def __init__(self, atoms):
13697 r"""__init__(CHARMMBond self, IMP::Strings const & atoms) -> CHARMMBond"""
13698 _IMP_atom.CHARMMBond_swiginit(self, _IMP_atom.new_CHARMMBond(atoms))
13700 def get_endpoint(self, i):
13701 r"""get_endpoint(CHARMMBond self, unsigned int i) -> CHARMMBondEndpoint"""
13702 return _IMP_atom.CHARMMBond_get_endpoint(self, i)
13704 def get_contains_atom(self, name):
13705 r"""get_contains_atom(CHARMMBond self, std::string name) -> bool"""
13706 return _IMP_atom.CHARMMBond_get_contains_atom(self, name)
13708 def show(self, *args):
13709 r"""show(CHARMMBond self, _ostream out=std::cout)"""
13710 return _IMP_atom.CHARMMBond_show(self, *args)
13711 __swig_destroy__ = _IMP_atom.delete_CHARMMBond
13714 _IMP_atom.CHARMMBond_swigregister(CHARMMBond)
13715 class CHARMMAngle(object):
13716 r"""Proxy of C++ IMP::atom::CHARMMConnection< 3 > class."""
13718 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13719 __repr__ = _swig_repr
13721 def __init__(self, atoms):
13722 r"""__init__(CHARMMAngle self, IMP::Strings const & atoms) -> CHARMMAngle"""
13723 _IMP_atom.CHARMMAngle_swiginit(self, _IMP_atom.new_CHARMMAngle(atoms))
13725 def get_endpoint(self, i):
13726 r"""get_endpoint(CHARMMAngle self, unsigned int i) -> CHARMMBondEndpoint"""
13727 return _IMP_atom.CHARMMAngle_get_endpoint(self, i)
13729 def get_contains_atom(self, name):
13730 r"""get_contains_atom(CHARMMAngle self, std::string name) -> bool"""
13731 return _IMP_atom.CHARMMAngle_get_contains_atom(self, name)
13733 def show(self, *args):
13734 r"""show(CHARMMAngle self, _ostream out=std::cout)"""
13735 return _IMP_atom.CHARMMAngle_show(self, *args)
13736 __swig_destroy__ = _IMP_atom.delete_CHARMMAngle
13739 _IMP_atom.CHARMMAngle_swigregister(CHARMMAngle)
13741 def _get_native_overlap_cpp(m1, m2, threshold):
13742 r"""_get_native_overlap_cpp(IMP::Vector< IMP::VectorD< 3 >,std::allocator< IMP::VectorD< 3 > > > const & m1, IMP::Vector< IMP::VectorD< 3 >,std::allocator< IMP::VectorD< 3 > > > const & m2, double threshold) -> double"""
13743 return _IMP_atom._get_native_overlap_cpp(m1, m2, threshold)
13745 def _get_drmsd_cpp(m0, m1):
13746 r"""_get_drmsd_cpp(IMP::Vector< IMP::VectorD< 3 >,std::allocator< IMP::VectorD< 3 > > > const & m0, IMP::Vector< IMP::VectorD< 3 >,std::allocator< IMP::VectorD< 3 > > > const & m1) -> double"""
13747 return _IMP_atom._get_drmsd_cpp(m0, m1)
13749 def _get_drmsd_Q_cpp(m0, m1, threshold):
13750 r"""_get_drmsd_Q_cpp(IMP::Vector< IMP::VectorD< 3 >,std::allocator< IMP::VectorD< 3 > > > const & m0, IMP::Vector< IMP::VectorD< 3 >,std::allocator< IMP::VectorD< 3 > > > const & m1, double threshold) -> double"""
13751 return _IMP_atom._get_drmsd_Q_cpp(m0, m1, threshold)
13753 def _get_drms_cpp(m1, m2):
13754 r"""_get_drms_cpp(IMP::Vector< IMP::VectorD< 3 >,std::allocator< IMP::VectorD< 3 > > > const & m1, IMP::Vector< IMP::VectorD< 3 >,std::allocator< IMP::VectorD< 3 > > > const & m2) -> double"""
13755 return _IMP_atom._get_drms_cpp(m1, m2)
13757 def _get_rigid_bodies_drms_cpp(m1, m2, ranges):
13758 r"""_get_rigid_bodies_drms_cpp(IMP::Vector< IMP::VectorD< 3 >,std::allocator< IMP::VectorD< 3 > > > const & m1, IMP::Vector< IMP::VectorD< 3 >,std::allocator< IMP::VectorD< 3 > > > const & m2, IMP::IntRanges const & ranges) -> double"""
13759 return _IMP_atom._get_rigid_bodies_drms_cpp(m1, m2, ranges)
13762 va= [IMP.algebra.get_vector(x)
for x
in a]
13763 vb= [IMP.algebra.get_vector(x)
for x
in b]
13764 return _get_native_overlap_cpp(va, vb, d)
13767 va= [IMP.algebra.get_vector(x)
for x
in a]
13768 vb= [IMP.algebra.get_vector(x)
for x
in b]
13769 return _get_drmsd_cpp(va, vb)
13772 va= [IMP.algebra.get_vector(x)
for x
in a]
13773 vb= [IMP.algebra.get_vector(x)
for x
in b]
13774 return _get_drms_cpp(va, vb)
13777 va= [IMP.algebra.get_vector(x)
for x
in a]
13778 vb= [IMP.algebra.get_vector(x)
for x
in b]
13779 return _get_drmsd_Q_cpp(va, vb, t)
13782 va= [IMP.algebra.get_vector(x)
for x
in a]
13783 vb= [IMP.algebra.get_vector(x)
for x
in b]
13785 return _get_rigid_bodies_drms_cpp(va, vb, ranges)
13789 r"""Proxy of C++ IMP::atom::LennardJonesTypedPairScore< IMP::atom::SmoothingFunction > class."""
13791 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13792 __repr__ = _swig_repr
13794 def __init__(self, f):
13795 r"""__init__(_LennardJonesTypedPairScore self, SmoothingFunction f) -> _LennardJonesTypedPairScore"""
13796 _IMP_atom._LennardJonesTypedPairScore_swiginit(self, _IMP_atom.new__LennardJonesTypedPairScore(f))
13798 def set_repulsive_weight(self, repulsive_weight):
13799 r"""set_repulsive_weight(_LennardJonesTypedPairScore self, double repulsive_weight)"""
13800 return _IMP_atom._LennardJonesTypedPairScore_set_repulsive_weight(self, repulsive_weight)
13802 def get_repulsive_weight(self):
13803 r"""get_repulsive_weight(_LennardJonesTypedPairScore self) -> double"""
13804 return _IMP_atom._LennardJonesTypedPairScore_get_repulsive_weight(self)
13806 def set_attractive_weight(self, attractive_weight):
13807 r"""set_attractive_weight(_LennardJonesTypedPairScore self, double attractive_weight)"""
13808 return _IMP_atom._LennardJonesTypedPairScore_set_attractive_weight(self, attractive_weight)
13810 def get_attractive_weight(self):
13811 r"""get_attractive_weight(_LennardJonesTypedPairScore self) -> double"""
13812 return _IMP_atom._LennardJonesTypedPairScore_get_attractive_weight(self)
13814 def get_repulsive_type_factors(self):
13815 r"""get_repulsive_type_factors(_LennardJonesTypedPairScore self) -> IMP::Floats"""
13816 return _IMP_atom._LennardJonesTypedPairScore_get_repulsive_type_factors(self)
13818 def get_attractive_type_factors(self):
13819 r"""get_attractive_type_factors(_LennardJonesTypedPairScore self) -> IMP::Floats"""
13820 return _IMP_atom._LennardJonesTypedPairScore_get_attractive_type_factors(self)
13822 def get_smoothing_function(self):
13823 r"""get_smoothing_function(_LennardJonesTypedPairScore self) -> SmoothingFunction"""
13824 return _IMP_atom._LennardJonesTypedPairScore_get_smoothing_function(self)
13826 def do_get_inputs(self, m, pis):
13827 r"""do_get_inputs(_LennardJonesTypedPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
13828 return _IMP_atom._LennardJonesTypedPairScore_do_get_inputs(self, m, pis)
13830 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
13831 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"""
13832 return _IMP_atom._LennardJonesTypedPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
13834 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
13835 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"""
13836 return _IMP_atom._LennardJonesTypedPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
13838 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
13839 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"""
13840 return _IMP_atom._LennardJonesTypedPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
13842 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
13843 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"""
13844 return _IMP_atom._LennardJonesTypedPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
13846 def get_version_info(self):
13847 r"""get_version_info(_LennardJonesTypedPairScore self) -> VersionInfo"""
13848 return _IMP_atom._LennardJonesTypedPairScore_get_version_info(self)
13849 __swig_destroy__ = _IMP_atom.delete__LennardJonesTypedPairScore
13853 return _object_cast_to__LennardJonesTypedPairScore(o)
13856 def _get_jax(self, m, indexes, space):
13857 import IMP.atom._jax_util
13858 score = IMP.atom._jax_util._get_lennard_jones_score(
13859 self, indexes, space)
13860 return self._wrap_jax(m, score, keys=[LennardJonesTyped.get_type_key()])
13864 _IMP_atom._LennardJonesTypedPairScore_swigregister(_LennardJonesTypedPairScore)
13866 r"""Proxy of C++ IMP::atom::LennardJonesTypedPairScore< IMP::atom::ForceSwitch > class."""
13868 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13869 __repr__ = _swig_repr
13871 def __init__(self, f):
13872 r"""__init__(_SwitchedLennardJonesTypedPairScore self, ForceSwitch f) -> _SwitchedLennardJonesTypedPairScore"""
13873 _IMP_atom._SwitchedLennardJonesTypedPairScore_swiginit(self, _IMP_atom.new__SwitchedLennardJonesTypedPairScore(f))
13875 def set_repulsive_weight(self, repulsive_weight):
13876 r"""set_repulsive_weight(_SwitchedLennardJonesTypedPairScore self, double repulsive_weight)"""
13877 return _IMP_atom._SwitchedLennardJonesTypedPairScore_set_repulsive_weight(self, repulsive_weight)
13879 def get_repulsive_weight(self):
13880 r"""get_repulsive_weight(_SwitchedLennardJonesTypedPairScore self) -> double"""
13881 return _IMP_atom._SwitchedLennardJonesTypedPairScore_get_repulsive_weight(self)
13883 def set_attractive_weight(self, attractive_weight):
13884 r"""set_attractive_weight(_SwitchedLennardJonesTypedPairScore self, double attractive_weight)"""
13885 return _IMP_atom._SwitchedLennardJonesTypedPairScore_set_attractive_weight(self, attractive_weight)
13887 def get_attractive_weight(self):
13888 r"""get_attractive_weight(_SwitchedLennardJonesTypedPairScore self) -> double"""
13889 return _IMP_atom._SwitchedLennardJonesTypedPairScore_get_attractive_weight(self)
13891 def get_repulsive_type_factors(self):
13892 r"""get_repulsive_type_factors(_SwitchedLennardJonesTypedPairScore self) -> IMP::Floats"""
13893 return _IMP_atom._SwitchedLennardJonesTypedPairScore_get_repulsive_type_factors(self)
13895 def get_attractive_type_factors(self):
13896 r"""get_attractive_type_factors(_SwitchedLennardJonesTypedPairScore self) -> IMP::Floats"""
13897 return _IMP_atom._SwitchedLennardJonesTypedPairScore_get_attractive_type_factors(self)
13899 def get_smoothing_function(self):
13900 r"""get_smoothing_function(_SwitchedLennardJonesTypedPairScore self) -> ForceSwitch"""
13901 return _IMP_atom._SwitchedLennardJonesTypedPairScore_get_smoothing_function(self)
13903 def do_get_inputs(self, m, pis):
13904 r"""do_get_inputs(_SwitchedLennardJonesTypedPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
13905 return _IMP_atom._SwitchedLennardJonesTypedPairScore_do_get_inputs(self, m, pis)
13907 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
13908 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"""
13909 return _IMP_atom._SwitchedLennardJonesTypedPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
13911 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
13912 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"""
13913 return _IMP_atom._SwitchedLennardJonesTypedPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
13915 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
13916 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"""
13917 return _IMP_atom._SwitchedLennardJonesTypedPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
13919 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
13920 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"""
13921 return _IMP_atom._SwitchedLennardJonesTypedPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
13923 def get_version_info(self):
13924 r"""get_version_info(_SwitchedLennardJonesTypedPairScore self) -> VersionInfo"""
13925 return _IMP_atom._SwitchedLennardJonesTypedPairScore_get_version_info(self)
13926 __swig_destroy__ = _IMP_atom.delete__SwitchedLennardJonesTypedPairScore
13930 return _object_cast_to__SwitchedLennardJonesTypedPairScore(o)
13933 def _get_jax(self, m, indexes, space):
13934 import IMP.atom._jax_util
13935 score = IMP.atom._jax_util._get_lennard_jones_score(
13936 self, indexes, space)
13937 return self._wrap_jax(m, score, keys=[LennardJonesTyped.get_type_key()])
13941 _IMP_atom._SwitchedLennardJonesTypedPairScore_swigregister(_SwitchedLennardJonesTypedPairScore)
13943 class LennardJonesTypedPairScore(_SwitchedLennardJonesTypedPairScore.__bases__[0]):
13944 def __init__(self, f):
13945 if isinstance(f, ForceSwitch):
13946 p = _SwitchedLennardJonesTypedPairScore(f)
13948 p = _LennardJonesTypedPairScore(f)
13949 self.__dict__[
'_proxied'] = p
13950 def __getattr__(self, key):
13951 return getattr(self._proxied, key)
13952 def __setattr__(self, key, val):
13953 return setattr(self._proxied, key, val)
13955 def _get_jax(self, *args, **kwargs):
13956 return self._proxied._get_jax(*args, **kwargs)
13961 p = _SwitchedLennardJonesTypedPairScore.get_from(o)
13963 p = _LennardJonesTypedPairScore.get_from(o)
13964 obj = object.__new__(LennardJonesTypedPairScore)
13965 obj.__dict__[
'_proxied'] = p
13969 def get_module_name():
13970 r"""get_module_name() -> std::string const"""
13971 return _IMP_atom.get_module_name()
13974 r"""get_module_version() -> std::string const"""
13975 return _IMP_atom.get_module_version()
13978 r"""get_example_path(std::string fname) -> std::string"""
13979 return _IMP_atom.get_example_path(fname)
13982 r"""get_data_path(std::string fname) -> std::string"""
13983 return _IMP_atom.get_data_path(fname)
13985 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.
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.
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.
Hierarchy create_simplified_along_backbone(Hierarchy input, int num_res, bool keep_detailed=false, Model *m=nullptr)
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.
ParticleIndexPairs get_indexes(const ParticlePairsTemp &ps)
Get the indexes from a list of particle pairs.
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)
double get_radius_of_gyration(const Vector3Ds &ps)
Return the radius of gyration of a set of points.
Common base class for heavy weight IMP objects.
DensityMap * multiply(const DensityMap *m1, const DensityMap *m2)
Return a density map for which voxel i contains the result of m1[i]*m2[i].
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.
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())
Provenance create_clone(Provenance p, Model *m=nullptr)
Clone provenance (including previous provenance)
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.