17 from sys
import version_info
as _swig_python_version_info
21 import builtins
as __builtin__
27 strthis =
"proxy of " + self.this.__repr__()
28 except __builtin__.Exception:
30 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
33 def _swig_setattr_nondynamic_instance_variable(set):
34 def set_instance_attr(self, name, value):
36 set(self, name, value)
37 elif name ==
"thisown":
39 elif hasattr(self, name)
and isinstance(getattr(type(self), name), property):
40 set(self, name, value)
42 raise AttributeError(
"You cannot add instance attributes to %s" % self)
43 return set_instance_attr
46 def _swig_setattr_nondynamic_class_variable(set):
47 def set_class_attr(cls, name, value):
48 if hasattr(cls, name)
and not isinstance(getattr(cls, name), property):
51 raise AttributeError(
"You cannot add class attributes to %s" % cls)
55 def _swig_add_metaclass(metaclass):
56 """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
58 return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
62 class _SwigNonDynamicMeta(type):
63 """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
64 __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
69 class IMP_ATOM_SwigPyIterator(object):
70 r"""Proxy of C++ swig::IMP_ATOM_SwigPyIterator class."""
72 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
74 def __init__(self, *args, **kwargs):
75 raise AttributeError(
"No constructor defined - class is abstract")
77 __swig_destroy__ = _IMP_atom.delete_IMP_ATOM_SwigPyIterator
80 r"""value(IMP_ATOM_SwigPyIterator self) -> PyObject *"""
81 return _IMP_atom.IMP_ATOM_SwigPyIterator_value(self)
84 r"""incr(IMP_ATOM_SwigPyIterator self, size_t n=1) -> IMP_ATOM_SwigPyIterator"""
85 return _IMP_atom.IMP_ATOM_SwigPyIterator_incr(self, n)
88 r"""decr(IMP_ATOM_SwigPyIterator self, size_t n=1) -> IMP_ATOM_SwigPyIterator"""
89 return _IMP_atom.IMP_ATOM_SwigPyIterator_decr(self, n)
91 def distance(self, x):
92 r"""distance(IMP_ATOM_SwigPyIterator self, IMP_ATOM_SwigPyIterator x) -> ptrdiff_t"""
93 return _IMP_atom.IMP_ATOM_SwigPyIterator_distance(self, x)
96 r"""equal(IMP_ATOM_SwigPyIterator self, IMP_ATOM_SwigPyIterator x) -> bool"""
97 return _IMP_atom.IMP_ATOM_SwigPyIterator_equal(self, x)
100 r"""copy(IMP_ATOM_SwigPyIterator self) -> IMP_ATOM_SwigPyIterator"""
101 return _IMP_atom.IMP_ATOM_SwigPyIterator_copy(self)
104 r"""next(IMP_ATOM_SwigPyIterator self) -> PyObject *"""
105 return _IMP_atom.IMP_ATOM_SwigPyIterator_next(self)
108 r"""__next__(IMP_ATOM_SwigPyIterator self) -> PyObject *"""
109 return _IMP_atom.IMP_ATOM_SwigPyIterator___next__(self)
112 r"""previous(IMP_ATOM_SwigPyIterator self) -> PyObject *"""
113 return _IMP_atom.IMP_ATOM_SwigPyIterator_previous(self)
115 def advance(self, n):
116 r"""advance(IMP_ATOM_SwigPyIterator self, ptrdiff_t n) -> IMP_ATOM_SwigPyIterator"""
117 return _IMP_atom.IMP_ATOM_SwigPyIterator_advance(self, n)
120 r"""__eq__(IMP_ATOM_SwigPyIterator self, IMP_ATOM_SwigPyIterator x) -> bool"""
121 return _IMP_atom.IMP_ATOM_SwigPyIterator___eq__(self, x)
124 r"""__ne__(IMP_ATOM_SwigPyIterator self, IMP_ATOM_SwigPyIterator x) -> bool"""
125 return _IMP_atom.IMP_ATOM_SwigPyIterator___ne__(self, x)
127 def __iadd__(self, n):
128 r"""__iadd__(IMP_ATOM_SwigPyIterator self, ptrdiff_t n) -> IMP_ATOM_SwigPyIterator"""
129 return _IMP_atom.IMP_ATOM_SwigPyIterator___iadd__(self, n)
131 def __isub__(self, n):
132 r"""__isub__(IMP_ATOM_SwigPyIterator self, ptrdiff_t n) -> IMP_ATOM_SwigPyIterator"""
133 return _IMP_atom.IMP_ATOM_SwigPyIterator___isub__(self, n)
135 def __add__(self, n):
136 r"""__add__(IMP_ATOM_SwigPyIterator self, ptrdiff_t n) -> IMP_ATOM_SwigPyIterator"""
137 return _IMP_atom.IMP_ATOM_SwigPyIterator___add__(self, n)
139 def __sub__(self, *args):
141 __sub__(IMP_ATOM_SwigPyIterator self, ptrdiff_t n) -> IMP_ATOM_SwigPyIterator
142 __sub__(IMP_ATOM_SwigPyIterator self, IMP_ATOM_SwigPyIterator x) -> ptrdiff_t
144 return _IMP_atom.IMP_ATOM_SwigPyIterator___sub__(self, *args)
149 _IMP_atom.IMP_ATOM_SwigPyIterator_swigregister(IMP_ATOM_SwigPyIterator)
156 IMP_DEBUG = _IMP_atom.IMP_DEBUG
158 IMP_RELEASE = _IMP_atom.IMP_RELEASE
160 IMP_SILENT = _IMP_atom.IMP_SILENT
162 IMP_PROGRESS = _IMP_atom.IMP_PROGRESS
164 IMP_TERSE = _IMP_atom.IMP_TERSE
166 IMP_VERBOSE = _IMP_atom.IMP_VERBOSE
168 IMP_MEMORY = _IMP_atom.IMP_MEMORY
170 IMP_NONE = _IMP_atom.IMP_NONE
172 IMP_USAGE = _IMP_atom.IMP_USAGE
174 IMP_INTERNAL = _IMP_atom.IMP_INTERNAL
176 IMP_KERNEL_HAS_LOG4CXX = _IMP_atom.IMP_KERNEL_HAS_LOG4CXX
178 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_atom.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
180 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_atom.IMP_COMPILER_HAS_DEBUG_VECTOR
182 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_atom.IMP_COMPILER_HAS_RANDOM_SHUFFLE
184 IMP_COMPILER_HAS_THREE_WAY = _IMP_atom.IMP_COMPILER_HAS_THREE_WAY
186 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_atom.IMP_KERNEL_HAS_BOOST_RANDOM
188 IMP_KERNEL_HAS_NUMPY = _IMP_atom.IMP_KERNEL_HAS_NUMPY
190 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_atom.IMP_KERNEL_HAS_BOOST_SYSTEM
192 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_atom.IMP_KERNEL_HAS_GPERFTOOLS
194 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_atom.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
196 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_atom.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
198 IMPKERNEL_SHOW_WARNINGS = _IMP_atom.IMPKERNEL_SHOW_WARNINGS
202 class _DirectorObjects:
203 """@internal Simple class to keep references to director objects
204 to prevent premature deletion."""
207 def register(self, obj):
208 """Take a reference to a director object; will only work for
209 refcounted C++ classes"""
210 if hasattr(obj,
'get_ref_count'):
211 self._objects.append(obj)
213 """Only drop our reference and allow cleanup by Python if no other
214 Python references exist (we hold 3 references: one in self._objects,
215 one in x, and one in the argument list for getrefcount) *and* no
216 other C++ references exist (the Python object always holds one)"""
217 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
218 or x.get_ref_count() > 1]
222 def get_object_count(self):
223 """Get number of director objects (useful for testing only)"""
224 return len(self._objects)
225 _director_objects = _DirectorObjects()
227 class _ostream(object):
228 r"""Proxy of C++ std::ostream class."""
230 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
232 def __init__(self, *args, **kwargs):
233 raise AttributeError(
"No constructor defined")
234 __repr__ = _swig_repr
236 def write(self, osa_buf):
237 r"""write(_ostream self, char const * osa_buf)"""
238 return _IMP_atom._ostream_write(self, osa_buf)
241 _IMP_atom._ostream_swigregister(_ostream)
242 IMP_C_OPEN_BINARY = _IMP_atom.IMP_C_OPEN_BINARY
245 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_atom.IMP_CGAL_HAS_BOOST_FILESYSTEM
247 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_atom.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
249 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_atom.IMP_CGAL_HAS_BOOST_RANDOM
251 IMP_CGAL_HAS_NUMPY = _IMP_atom.IMP_CGAL_HAS_NUMPY
253 IMPCGAL_SHOW_WARNINGS = _IMP_atom.IMPCGAL_SHOW_WARNINGS
256 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_atom.IMP_ALGEBRA_HAS_IMP_CGAL
258 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_atom.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
260 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_atom.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
262 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_atom.IMP_ALGEBRA_HAS_BOOST_RANDOM
264 IMP_ALGEBRA_HAS_CGAL = _IMP_atom.IMP_ALGEBRA_HAS_CGAL
266 IMP_ALGEBRA_HAS_NUMPY = _IMP_atom.IMP_ALGEBRA_HAS_NUMPY
268 IMP_ALGEBRA_HAS_ANN = _IMP_atom.IMP_ALGEBRA_HAS_ANN
270 IMPALGEBRA_SHOW_WARNINGS = _IMP_atom.IMPALGEBRA_SHOW_WARNINGS
273 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_atom.IMP_DISPLAY_HAS_IMP_CGAL
275 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_atom.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
277 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_atom.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
279 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_atom.IMP_DISPLAY_HAS_BOOST_RANDOM
281 IMP_DISPLAY_HAS_CGAL = _IMP_atom.IMP_DISPLAY_HAS_CGAL
283 IMP_DISPLAY_HAS_NUMPY = _IMP_atom.IMP_DISPLAY_HAS_NUMPY
285 IMPDISPLAY_SHOW_WARNINGS = _IMP_atom.IMPDISPLAY_SHOW_WARNINGS
288 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_atom.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
290 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_atom.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
292 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_atom.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
294 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_atom.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
296 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_atom.IMP_SCORE_FUNCTOR_HAS_CGAL
298 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_atom.IMP_SCORE_FUNCTOR_HAS_HDF5
300 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_atom.IMP_SCORE_FUNCTOR_HAS_NUMPY
302 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_atom.IMPSCOREFUNCTOR_SHOW_WARNINGS
305 IMP_CORE_HAS_IMP_CGAL = _IMP_atom.IMP_CORE_HAS_IMP_CGAL
307 IMP_CORE_HAS_IMP_KERNEL = _IMP_atom.IMP_CORE_HAS_IMP_KERNEL
309 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_atom.IMP_CORE_HAS_BOOST_FILESYSTEM
311 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_atom.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
313 IMP_CORE_HAS_BOOST_RANDOM = _IMP_atom.IMP_CORE_HAS_BOOST_RANDOM
315 IMP_CORE_HAS_CGAL = _IMP_atom.IMP_CORE_HAS_CGAL
317 IMP_CORE_HAS_HDF5 = _IMP_atom.IMP_CORE_HAS_HDF5
319 IMP_CORE_HAS_NUMPY = _IMP_atom.IMP_CORE_HAS_NUMPY
321 IMPCORE_SHOW_WARNINGS = _IMP_atom.IMPCORE_SHOW_WARNINGS
324 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_atom.IMP_CONTAINER_HAS_IMP_ALGEBRA
326 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_atom.IMP_CONTAINER_HAS_IMP_CGAL
328 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_atom.IMP_CONTAINER_HAS_IMP_DISPLAY
330 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_atom.IMP_CONTAINER_HAS_IMP_KERNEL
332 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_atom.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
334 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_atom.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
336 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_atom.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
338 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_atom.IMP_CONTAINER_HAS_BOOST_RANDOM
340 IMP_CONTAINER_HAS_CGAL = _IMP_atom.IMP_CONTAINER_HAS_CGAL
342 IMP_CONTAINER_HAS_HDF5 = _IMP_atom.IMP_CONTAINER_HAS_HDF5
344 IMP_CONTAINER_HAS_NUMPY = _IMP_atom.IMP_CONTAINER_HAS_NUMPY
346 IMP_CONTAINER_HAS_PYTHON_IHM = _IMP_atom.IMP_CONTAINER_HAS_PYTHON_IHM
348 IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP = _IMP_atom.IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP
350 IMP_CONTAINER_HAS_ROBIN_MAP = _IMP_atom.IMP_CONTAINER_HAS_ROBIN_MAP
352 IMPCONTAINER_SHOW_WARNINGS = _IMP_atom.IMPCONTAINER_SHOW_WARNINGS
355 IMP_ATOM_HAS_IMP_CGAL = _IMP_atom.IMP_ATOM_HAS_IMP_CGAL
357 IMP_ATOM_HAS_IMP_KERNEL = _IMP_atom.IMP_ATOM_HAS_IMP_KERNEL
359 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_atom.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
361 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_atom.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
363 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_atom.IMP_ATOM_HAS_BOOST_RANDOM
365 IMP_ATOM_HAS_BOOST_REGEX = _IMP_atom.IMP_ATOM_HAS_BOOST_REGEX
367 IMP_ATOM_HAS_CGAL = _IMP_atom.IMP_ATOM_HAS_CGAL
369 IMP_ATOM_HAS_HDF5 = _IMP_atom.IMP_ATOM_HAS_HDF5
371 IMP_ATOM_HAS_NUMPY = _IMP_atom.IMP_ATOM_HAS_NUMPY
373 IMP_ATOM_HAS_PYTHON_IHM = _IMP_atom.IMP_ATOM_HAS_PYTHON_IHM
375 IMPATOM_SHOW_WARNINGS = _IMP_atom.IMPATOM_SHOW_WARNINGS
377 IMP_ATOM_TYPE_INDEX = _IMP_atom.IMP_ATOM_TYPE_INDEX
379 IMP_RESIDUE_TYPE_INDEX = _IMP_atom.IMP_RESIDUE_TYPE_INDEX
381 IMP_HIERARCHY_TYPE_INDEX = _IMP_atom.IMP_HIERARCHY_TYPE_INDEX
383 IMP_CHAIN_TYPE_INDEX = _IMP_atom.IMP_CHAIN_TYPE_INDEX
386 r"""Proxy of C++ IMP::internal::BoostDigraph< IMP::atom::HierarchyTree,IMP::atom::Hierarchy,IMP::atom::ShowHierarchyTreeVertex > class."""
388 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
389 __repr__ = _swig_repr
392 r"""__init__(HierarchyTree self) -> HierarchyTree"""
393 _IMP_atom.HierarchyTree_swiginit(self, _IMP_atom.new_HierarchyTree())
396 r"""get_graph(HierarchyTree self) -> IMP::atom::HierarchyTree const &"""
397 return _IMP_atom.HierarchyTree_get_graph(self)
400 r"""get_vertices(HierarchyTree self) -> IMP::internal::BoostDigraph< IMP::atom::HierarchyTree,IMP::atom::Hierarchy,IMP::atom::ShowHierarchyTreeVertex >::VertexDescriptors"""
401 return _IMP_atom.HierarchyTree_get_vertices(self)
403 def get_vertex_name(self, i):
404 r"""get_vertex_name(HierarchyTree self, IMP::internal::BoostDigraph< IMP::atom::HierarchyTree,IMP::atom::Hierarchy,IMP::atom::ShowHierarchyTreeVertex >::VertexDescriptor i) -> Hierarchy"""
405 return _IMP_atom.HierarchyTree_get_vertex_name(self, i)
407 def get_in_neighbors(self, v):
408 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"""
409 return _IMP_atom.HierarchyTree_get_in_neighbors(self, v)
411 def get_out_neighbors(self, v):
412 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"""
413 return _IMP_atom.HierarchyTree_get_out_neighbors(self, v)
416 r"""show_graphviz(HierarchyTree self, _ostream out=std::cout)"""
417 return _IMP_atom.HierarchyTree_show_graphviz(self, *args)
419 def get_graphviz_string(self):
420 r"""get_graphviz_string(HierarchyTree self) -> std::string"""
421 return _IMP_atom.HierarchyTree_get_graphviz_string(self)
423 def add_edge(self, v0, v1):
424 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)"""
425 return _IMP_atom.HierarchyTree_add_edge(self, v0, v1)
427 def add_vertex(self, l):
428 r"""add_vertex(HierarchyTree self, Hierarchy l) -> IMP::internal::BoostDigraph< IMP::atom::HierarchyTree,IMP::atom::Hierarchy,IMP::atom::ShowHierarchyTreeVertex >::VertexDescriptor"""
429 return _IMP_atom.HierarchyTree_add_vertex(self, l)
431 def remove_vertex(self, l):
432 r"""remove_vertex(HierarchyTree self, IMP::internal::BoostDigraph< IMP::atom::HierarchyTree,IMP::atom::Hierarchy,IMP::atom::ShowHierarchyTreeVertex >::VertexDescriptor l)"""
433 return _IMP_atom.HierarchyTree_remove_vertex(self, l)
434 __swig_destroy__ = _IMP_atom.delete_HierarchyTree
437 _IMP_atom.HierarchyTree_swigregister(HierarchyTree)
439 _value_types.append(
"HierarchyTree")
443 _plural_types.append(
"PDBRecords")
444 _value_types.append(
"PDBRecord")
447 _object_types.append(
"LennardJonesType")
450 def _object_cast_to_LennardJonesType(o):
451 r"""_object_cast_to_LennardJonesType(Object o) -> LennardJonesType"""
452 return _IMP_atom._object_cast_to_LennardJonesType(o)
454 _object_types.append(
"PDBSelector")
457 def _object_cast_to_PDBSelector(o):
458 r"""_object_cast_to_PDBSelector(Object o) -> PDBSelector"""
459 return _IMP_atom._object_cast_to_PDBSelector(o)
462 return [Angle(x)
for x
in l]
463 _plural_types.append(
"Angles")
466 _value_types.append(
"Angle")
470 return [Atom(x)
for x
in l]
471 _plural_types.append(
"Atoms")
474 _value_types.append(
"Atom")
478 return [Bond(x)
for x
in l]
479 _plural_types.append(
"Bonds")
482 _value_types.append(
"Bond")
486 return [Bonded(x)
for x
in l]
487 _plural_types.append(
"Bondeds")
490 _value_types.append(
"Bonded")
493 def CHARMMAtomList(l=[]):
494 return [CHARMMAtom(x)
for x
in l]
495 _plural_types.append(
"CHARMMAtomList")
498 _value_types.append(
"CHARMMAtom")
502 return [Chain(x)
for x
in l]
503 _plural_types.append(
"Chains")
506 _value_types.append(
"Chain")
509 def CenterOfMasses(l=[]):
510 return [CenterOfMass(x)
for x
in l]
511 _plural_types.append(
"CenterOfMasses")
514 _value_types.append(
"CenterOfMass")
518 return [Charged(x)
for x
in l]
519 _plural_types.append(
"Chargeds")
522 _value_types.append(
"Charged")
525 def Diffusions(l=[]):
526 return [Diffusion(x)
for x
in l]
527 _plural_types.append(
"Diffusions")
530 _value_types.append(
"Diffusion")
533 def RigidBodyDiffusions(l=[]):
534 return [RigidBodyDiffusion(x)
for x
in l]
535 _plural_types.append(
"RigidBodyDiffusions")
538 _value_types.append(
"RigidBodyDiffusion")
541 def TAMDParticles(l=[]):
542 return [TAMDParticle(x)
for x
in l]
543 _plural_types.append(
"TAMDParticles")
546 _value_types.append(
"TAMDParticle")
549 def TAMDCentroids(l=[]):
550 return [TAMDCentroid(x)
for x
in l]
551 _plural_types.append(
"TAMDCentroids")
554 _value_types.append(
"TAMDCentroid")
558 return [Dihedral(x)
for x
in l]
559 _plural_types.append(
"Dihedrals")
562 _value_types.append(
"Dihedral")
566 return [Domain(x)
for x
in l]
567 _plural_types.append(
"Domains")
570 _value_types.append(
"Domain")
574 return [Fragment(x)
for x
in l]
575 _plural_types.append(
"Fragments")
578 _value_types.append(
"Fragment")
581 def Hierarchies(l=[]):
582 return [Hierarchy(x)
for x
in l]
583 _plural_types.append(
"Hierarchies")
586 _value_types.append(
"Hierarchy")
589 def LennardJonesTypeds(l=[]):
590 return [LennardJonesTyped(x)
for x
in l]
591 _plural_types.append(
"LennardJonesTypeds")
594 _value_types.append(
"LennardJonesTyped")
598 return [Mass(x)
for x
in l]
599 _plural_types.append(
"Masses")
602 _value_types.append(
"Mass")
605 def LinearVelocities(l=[]):
606 return [LinearVelocity(x)
for x
in l]
607 _plural_types.append(
"LinearVelocities")
610 _value_types.append(
"LinearVelocity")
613 def AngularVelocities(l=[]):
614 return [AngularVelocity(x)
for x
in l]
615 _plural_types.append(
"AngularVelocities")
618 _value_types.append(
"AngularVelocity")
622 return [Molecule(x)
for x
in l]
623 _plural_types.append(
"Molecules")
626 _value_types.append(
"Molecule")
630 return [Residue(x)
for x
in l]
631 _plural_types.append(
"Residues")
634 _value_types.append(
"Residue")
637 def Representations(l=[]):
638 return [Representation(x)
for x
in l]
639 _plural_types.append(
"Representations")
642 _value_types.append(
"Representation")
646 return [State(x)
for x
in l]
647 _plural_types.append(
"States")
650 _value_types.append(
"State")
654 return [Copy(x)
for x
in l]
655 _plural_types.append(
"Copies")
658 _value_types.append(
"Copy")
661 def SecondaryStructureResidues(l=[]):
662 return [SecondaryStructureResidue(x)
for x
in l]
663 _plural_types.append(
"SecondaryStructureResidues")
666 _value_types.append(
"SecondaryStructureResidue")
669 def StructureSources(l=[]):
670 return [StructureSource(x)
for x
in l]
671 _plural_types.append(
"StructureSources")
674 _value_types.append(
"StructureSource")
677 _object_types.append(
"Simulator")
680 def _object_cast_to_Simulator(o):
681 r"""_object_cast_to_Simulator(Object o) -> Simulator"""
682 return _IMP_atom._object_cast_to_Simulator(o)
684 _object_types.append(
"ATOMPDBSelector")
687 def _object_cast_to_ATOMPDBSelector(o):
688 r"""_object_cast_to_ATOMPDBSelector(Object o) -> ATOMPDBSelector"""
689 return _IMP_atom._object_cast_to_ATOMPDBSelector(o)
691 _object_types.append(
"AllMol2Selector")
694 def _object_cast_to_AllMol2Selector(o):
695 r"""_object_cast_to_AllMol2Selector(Object o) -> AllMol2Selector"""
696 return _IMP_atom._object_cast_to_AllMol2Selector(o)
698 _object_types.append(
"AllPDBSelector")
701 def _object_cast_to_AllPDBSelector(o):
702 r"""_object_cast_to_AllPDBSelector(Object o) -> AllPDBSelector"""
703 return _IMP_atom._object_cast_to_AllPDBSelector(o)
705 _object_types.append(
"AndPDBSelector")
708 def _object_cast_to_AndPDBSelector(o):
709 r"""_object_cast_to_AndPDBSelector(Object o) -> AndPDBSelector"""
710 return _IMP_atom._object_cast_to_AndPDBSelector(o)
712 _object_types.append(
"XorPDBSelector")
715 def _object_cast_to_XorPDBSelector(o):
716 r"""_object_cast_to_XorPDBSelector(Object o) -> XorPDBSelector"""
717 return _IMP_atom._object_cast_to_XorPDBSelector(o)
719 _object_types.append(
"ResidueTypePDBSelector")
722 def _object_cast_to_ResidueTypePDBSelector(o):
723 r"""_object_cast_to_ResidueTypePDBSelector(Object o) -> ResidueTypePDBSelector"""
724 return _IMP_atom._object_cast_to_ResidueTypePDBSelector(o)
726 _object_types.append(
"AtomTypePDBSelector")
729 def _object_cast_to_AtomTypePDBSelector(o):
730 r"""_object_cast_to_AtomTypePDBSelector(Object o) -> AtomTypePDBSelector"""
731 return _IMP_atom._object_cast_to_AtomTypePDBSelector(o)
733 _object_types.append(
"AngleSingletonScore")
736 def _object_cast_to_AngleSingletonScore(o):
737 r"""_object_cast_to_AngleSingletonScore(Object o) -> AngleSingletonScore"""
738 return _IMP_atom._object_cast_to_AngleSingletonScore(o)
740 _object_types.append(
"BondEndpointsRefiner")
743 def _object_cast_to_BondEndpointsRefiner(o):
744 r"""_object_cast_to_BondEndpointsRefiner(Object o) -> BondEndpointsRefiner"""
745 return _IMP_atom._object_cast_to_BondEndpointsRefiner(o)
747 _object_types.append(
"BondPairContainer")
750 def _object_cast_to_BondPairContainer(o):
751 r"""_object_cast_to_BondPairContainer(Object o) -> BondPairContainer"""
752 return _IMP_atom._object_cast_to_BondPairContainer(o)
754 _object_types.append(
"BondSingletonScore")
757 def _object_cast_to_BondSingletonScore(o):
758 r"""_object_cast_to_BondSingletonScore(Object o) -> BondSingletonScore"""
759 return _IMP_atom._object_cast_to_BondSingletonScore(o)
761 _object_types.append(
"BondedPairFilter")
764 def _object_cast_to_BondedPairFilter(o):
765 r"""_object_cast_to_BondedPairFilter(Object o) -> BondedPairFilter"""
766 return _IMP_atom._object_cast_to_BondedPairFilter(o)
768 _object_types.append(
"BrownianDynamics")
771 def _object_cast_to_BrownianDynamics(o):
772 r"""_object_cast_to_BrownianDynamics(Object o) -> BrownianDynamics"""
773 return _IMP_atom._object_cast_to_BrownianDynamics(o)
775 _object_types.append(
"BrownianDynamicsTAMD")
778 def _object_cast_to_BrownianDynamicsTAMD(o):
779 r"""_object_cast_to_BrownianDynamicsTAMD(Object o) -> BrownianDynamicsTAMD"""
780 return _IMP_atom._object_cast_to_BrownianDynamicsTAMD(o)
782 _object_types.append(
"CAlphaPDBSelector")
785 def _object_cast_to_CAlphaPDBSelector(o):
786 r"""_object_cast_to_CAlphaPDBSelector(Object o) -> CAlphaPDBSelector"""
787 return _IMP_atom._object_cast_to_CAlphaPDBSelector(o)
789 _object_types.append(
"CBetaPDBSelector")
792 def _object_cast_to_CBetaPDBSelector(o):
793 r"""_object_cast_to_CBetaPDBSelector(Object o) -> CBetaPDBSelector"""
794 return _IMP_atom._object_cast_to_CBetaPDBSelector(o)
796 _object_types.append(
"BackbonePDBSelector")
799 def _object_cast_to_BackbonePDBSelector(o):
800 r"""_object_cast_to_BackbonePDBSelector(Object o) -> BackbonePDBSelector"""
801 return _IMP_atom._object_cast_to_BackbonePDBSelector(o)
803 _object_types.append(
"CHARMMParameters")
806 def _object_cast_to_CHARMMParameters(o):
807 r"""_object_cast_to_CHARMMParameters(Object o) -> CHARMMParameters"""
808 return _IMP_atom._object_cast_to_CHARMMParameters(o)
810 _object_types.append(
"CHARMMResidueTopology")
813 def _object_cast_to_CHARMMResidueTopology(o):
814 r"""_object_cast_to_CHARMMResidueTopology(Object o) -> CHARMMResidueTopology"""
815 return _IMP_atom._object_cast_to_CHARMMResidueTopology(o)
817 _object_types.append(
"CHARMMSegmentTopology")
820 def _object_cast_to_CHARMMSegmentTopology(o):
821 r"""_object_cast_to_CHARMMSegmentTopology(Object o) -> CHARMMSegmentTopology"""
822 return _IMP_atom._object_cast_to_CHARMMSegmentTopology(o)
824 _object_types.append(
"CHARMMStereochemistryRestraint")
827 def _object_cast_to_CHARMMStereochemistryRestraint(o):
828 r"""_object_cast_to_CHARMMStereochemistryRestraint(Object o) -> CHARMMStereochemistryRestraint"""
829 return _IMP_atom._object_cast_to_CHARMMStereochemistryRestraint(o)
831 _object_types.append(
"CHARMMTopology")
834 def _object_cast_to_CHARMMTopology(o):
835 r"""_object_cast_to_CHARMMTopology(Object o) -> CHARMMTopology"""
836 return _IMP_atom._object_cast_to_CHARMMTopology(o)
838 _object_types.append(
"CPDBSelector")
841 def _object_cast_to_CPDBSelector(o):
842 r"""_object_cast_to_CPDBSelector(Object o) -> CPDBSelector"""
843 return _IMP_atom._object_cast_to_CPDBSelector(o)
845 _object_types.append(
"ChainPDBSelector")
848 def _object_cast_to_ChainPDBSelector(o):
849 r"""_object_cast_to_ChainPDBSelector(Object o) -> ChainPDBSelector"""
850 return _IMP_atom._object_cast_to_ChainPDBSelector(o)
852 _object_types.append(
"CoulombPairScore")
855 def _object_cast_to_CoulombPairScore(o):
856 r"""_object_cast_to_CoulombPairScore(Object o) -> CoulombPairScore"""
857 return _IMP_atom._object_cast_to_CoulombPairScore(o)
859 _object_types.append(
"CoverBond")
862 def _object_cast_to_CoverBond(o):
863 r"""_object_cast_to_CoverBond(Object o) -> CoverBond"""
864 return _IMP_atom._object_cast_to_CoverBond(o)
866 _object_types.append(
"DihedralSingletonScore")
869 def _object_cast_to_DihedralSingletonScore(o):
870 r"""_object_cast_to_DihedralSingletonScore(Object o) -> DihedralSingletonScore"""
871 return _IMP_atom._object_cast_to_DihedralSingletonScore(o)
873 _object_types.append(
"DopePairScore")
876 def _object_cast_to_DopePairScore(o):
877 r"""_object_cast_to_DopePairScore(Object o) -> DopePairScore"""
878 return _IMP_atom._object_cast_to_DopePairScore(o)
880 _object_types.append(
"LoopStatisticalPairScore")
883 def _object_cast_to_LoopStatisticalPairScore(o):
884 r"""_object_cast_to_LoopStatisticalPairScore(Object o) -> LoopStatisticalPairScore"""
885 return _IMP_atom._object_cast_to_LoopStatisticalPairScore(o)
887 _object_types.append(
"OrientedSoapPairScore")
890 def _object_cast_to_OrientedSoapPairScore(o):
891 r"""_object_cast_to_OrientedSoapPairScore(Object o) -> OrientedSoapPairScore"""
892 return _IMP_atom._object_cast_to_OrientedSoapPairScore(o)
894 _object_types.append(
"EzRestraint")
897 def _object_cast_to_EzRestraint(o):
898 r"""_object_cast_to_EzRestraint(Object o) -> EzRestraint"""
899 return _IMP_atom._object_cast_to_EzRestraint(o)
901 _object_types.append(
"ForceFieldParameters")
904 def _object_cast_to_ForceFieldParameters(o):
905 r"""_object_cast_to_ForceFieldParameters(Object o) -> ForceFieldParameters"""
906 return _IMP_atom._object_cast_to_ForceFieldParameters(o)
908 _object_types.append(
"ForceSwitch")
911 def _object_cast_to_ForceSwitch(o):
912 r"""_object_cast_to_ForceSwitch(Object o) -> ForceSwitch"""
913 return _IMP_atom._object_cast_to_ForceSwitch(o)
915 _object_types.append(
"HydrogenPDBSelector")
918 def _object_cast_to_HydrogenPDBSelector(o):
919 r"""_object_cast_to_HydrogenPDBSelector(Object o) -> HydrogenPDBSelector"""
920 return _IMP_atom._object_cast_to_HydrogenPDBSelector(o)
922 _object_types.append(
"ImproperSingletonScore")
925 def _object_cast_to_ImproperSingletonScore(o):
926 r"""_object_cast_to_ImproperSingletonScore(Object o) -> ImproperSingletonScore"""
927 return _IMP_atom._object_cast_to_ImproperSingletonScore(o)
929 _object_types.append(
"_LennardJonesTypedPairScore")
932 def _object_cast_to__LennardJonesTypedPairScore(o):
933 r"""_object_cast_to__LennardJonesTypedPairScore(Object o) -> _LennardJonesTypedPairScore"""
934 return _IMP_atom._object_cast_to__LennardJonesTypedPairScore(o)
936 _object_types.append(
"_SwitchedLennardJonesTypedPairScore")
939 def _object_cast_to__SwitchedLennardJonesTypedPairScore(o):
940 r"""_object_cast_to__SwitchedLennardJonesTypedPairScore(Object o) -> _SwitchedLennardJonesTypedPairScore"""
941 return _IMP_atom._object_cast_to__SwitchedLennardJonesTypedPairScore(o)
943 _object_types.append(
"Mol2Selector")
946 def _object_cast_to_Mol2Selector(o):
947 r"""_object_cast_to_Mol2Selector(Object o) -> Mol2Selector"""
948 return _IMP_atom._object_cast_to_Mol2Selector(o)
950 _object_types.append(
"MolecularDynamics")
953 def _object_cast_to_MolecularDynamics(o):
954 r"""_object_cast_to_MolecularDynamics(Object o) -> MolecularDynamics"""
955 return _IMP_atom._object_cast_to_MolecularDynamics(o)
957 _object_types.append(
"NPDBSelector")
960 def _object_cast_to_NPDBSelector(o):
961 r"""_object_cast_to_NPDBSelector(Object o) -> NPDBSelector"""
962 return _IMP_atom._object_cast_to_NPDBSelector(o)
964 _object_types.append(
"NonAlternativePDBSelector")
967 def _object_cast_to_NonAlternativePDBSelector(o):
968 r"""_object_cast_to_NonAlternativePDBSelector(Object o) -> NonAlternativePDBSelector"""
969 return _IMP_atom._object_cast_to_NonAlternativePDBSelector(o)
971 _object_types.append(
"NonHydrogenMol2Selector")
974 def _object_cast_to_NonHydrogenMol2Selector(o):
975 r"""_object_cast_to_NonHydrogenMol2Selector(Object o) -> NonHydrogenMol2Selector"""
976 return _IMP_atom._object_cast_to_NonHydrogenMol2Selector(o)
978 _object_types.append(
"NonHydrogenPDBSelector")
981 def _object_cast_to_NonHydrogenPDBSelector(o):
982 r"""_object_cast_to_NonHydrogenPDBSelector(Object o) -> NonHydrogenPDBSelector"""
983 return _IMP_atom._object_cast_to_NonHydrogenPDBSelector(o)
985 _object_types.append(
"NonWaterNonHydrogenPDBSelector")
988 def _object_cast_to_NonWaterNonHydrogenPDBSelector(o):
989 r"""_object_cast_to_NonWaterNonHydrogenPDBSelector(Object o) -> NonWaterNonHydrogenPDBSelector"""
990 return _IMP_atom._object_cast_to_NonWaterNonHydrogenPDBSelector(o)
992 _object_types.append(
"NonWaterPDBSelector")
995 def _object_cast_to_NonWaterPDBSelector(o):
996 r"""_object_cast_to_NonWaterPDBSelector(Object o) -> NonWaterPDBSelector"""
997 return _IMP_atom._object_cast_to_NonWaterPDBSelector(o)
999 _object_types.append(
"NotPDBSelector")
1002 def _object_cast_to_NotPDBSelector(o):
1003 r"""_object_cast_to_NotPDBSelector(Object o) -> NotPDBSelector"""
1004 return _IMP_atom._object_cast_to_NotPDBSelector(o)
1006 _object_types.append(
"OrPDBSelector")
1009 def _object_cast_to_OrPDBSelector(o):
1010 r"""_object_cast_to_OrPDBSelector(Object o) -> OrPDBSelector"""
1011 return _IMP_atom._object_cast_to_OrPDBSelector(o)
1013 _object_types.append(
"PPDBSelector")
1016 def _object_cast_to_PPDBSelector(o):
1017 r"""_object_cast_to_PPDBSelector(Object o) -> PPDBSelector"""
1018 return _IMP_atom._object_cast_to_PPDBSelector(o)
1020 _object_types.append(
"ProteinLigandAtomPairScore")
1023 def _object_cast_to_ProteinLigandAtomPairScore(o):
1024 r"""_object_cast_to_ProteinLigandAtomPairScore(Object o) -> ProteinLigandAtomPairScore"""
1025 return _IMP_atom._object_cast_to_ProteinLigandAtomPairScore(o)
1027 _object_types.append(
"ProteinLigandRestraint")
1030 def _object_cast_to_ProteinLigandRestraint(o):
1031 r"""_object_cast_to_ProteinLigandRestraint(Object o) -> ProteinLigandRestraint"""
1032 return _IMP_atom._object_cast_to_ProteinLigandRestraint(o)
1034 _object_types.append(
"SameResiduePairFilter")
1037 def _object_cast_to_SameResiduePairFilter(o):
1038 r"""_object_cast_to_SameResiduePairFilter(Object o) -> SameResiduePairFilter"""
1039 return _IMP_atom._object_cast_to_SameResiduePairFilter(o)
1041 _object_types.append(
"SoapPairFilter")
1044 def _object_cast_to_SoapPairFilter(o):
1045 r"""_object_cast_to_SoapPairFilter(Object o) -> SoapPairFilter"""
1046 return _IMP_atom._object_cast_to_SoapPairFilter(o)
1048 _object_types.append(
"SmoothingFunction")
1051 def _object_cast_to_SmoothingFunction(o):
1052 r"""_object_cast_to_SmoothingFunction(Object o) -> SmoothingFunction"""
1053 return _IMP_atom._object_cast_to_SmoothingFunction(o)
1055 _object_types.append(
"StereochemistryPairFilter")
1058 def _object_cast_to_StereochemistryPairFilter(o):
1059 r"""_object_cast_to_StereochemistryPairFilter(Object o) -> StereochemistryPairFilter"""
1060 return _IMP_atom._object_cast_to_StereochemistryPairFilter(o)
1062 _object_types.append(
"VelocityScalingOptimizerState")
1065 def _object_cast_to_VelocityScalingOptimizerState(o):
1066 r"""_object_cast_to_VelocityScalingOptimizerState(Object o) -> VelocityScalingOptimizerState"""
1067 return _IMP_atom._object_cast_to_VelocityScalingOptimizerState(o)
1069 _object_types.append(
"WaterPDBSelector")
1072 def _object_cast_to_WaterPDBSelector(o):
1073 r"""_object_cast_to_WaterPDBSelector(Object o) -> WaterPDBSelector"""
1074 return _IMP_atom._object_cast_to_WaterPDBSelector(o)
1076 _object_types.append(
"WritePDBOptimizerState")
1079 def _object_cast_to_WritePDBOptimizerState(o):
1080 r"""_object_cast_to_WritePDBOptimizerState(Object o) -> WritePDBOptimizerState"""
1081 return _IMP_atom._object_cast_to_WritePDBOptimizerState(o)
1084 _plural_types.append(
"AtomTypes")
1085 _value_types.append(
"AtomType")
1088 CHARMMAtomTopologies=list
1089 _plural_types.append(
"CHARMMAtomTopologies")
1090 _value_types.append(
"CHARMMAtomTopology")
1093 CHARMMBondEndpoints=list
1094 _plural_types.append(
"CHARMMBondEndpoints")
1095 _value_types.append(
"CHARMMBondEndpoint")
1098 CHARMMBondParametersList=list
1099 _plural_types.append(
"CHARMMBondParametersList")
1100 _value_types.append(
"CHARMMBondParameters")
1103 CHARMMDihedralParametersList=list
1104 _plural_types.append(
"CHARMMDihedralParametersList")
1105 _value_types.append(
"CHARMMDihedralParameters")
1108 _object_types.append(
"CHARMMIdealResidueTopology")
1111 def _object_cast_to_CHARMMIdealResidueTopology(o):
1112 r"""_object_cast_to_CHARMMIdealResidueTopology(Object o) -> CHARMMIdealResidueTopology"""
1113 return _IMP_atom._object_cast_to_CHARMMIdealResidueTopology(o)
1115 CHARMMInternalCoordinates=list
1116 _plural_types.append(
"CHARMMInternalCoordinates")
1117 _value_types.append(
"CHARMMInternalCoordinate")
1120 _object_types.append(
"CHARMMPatch")
1123 def _object_cast_to_CHARMMPatch(o):
1124 r"""_object_cast_to_CHARMMPatch(Object o) -> CHARMMPatch"""
1125 return _IMP_atom._object_cast_to_CHARMMPatch(o)
1127 _object_types.append(
"CHARMMResidueTopologyBase")
1130 def _object_cast_to_CHARMMResidueTopologyBase(o):
1131 r"""_object_cast_to_CHARMMResidueTopologyBase(Object o) -> CHARMMResidueTopologyBase"""
1132 return _IMP_atom._object_cast_to_CHARMMResidueTopologyBase(o)
1135 _plural_types.append(
"ResidueTypes")
1136 _value_types.append(
"ResidueType")
1140 _plural_types.append(
"ChainTypes")
1141 _value_types.append(
"ChainType")
1145 _plural_types.append(
"Selections")
1146 _value_types.append(
"Selection")
1149 _object_types.append(
"RemoveRigidMotionOptimizerState")
1152 def _object_cast_to_RemoveRigidMotionOptimizerState(o):
1153 r"""_object_cast_to_RemoveRigidMotionOptimizerState(Object o) -> RemoveRigidMotionOptimizerState"""
1154 return _IMP_atom._object_cast_to_RemoveRigidMotionOptimizerState(o)
1156 _object_types.append(
"BerendsenThermostatOptimizerState")
1159 def _object_cast_to_BerendsenThermostatOptimizerState(o):
1160 r"""_object_cast_to_BerendsenThermostatOptimizerState(Object o) -> BerendsenThermostatOptimizerState"""
1161 return _IMP_atom._object_cast_to_BerendsenThermostatOptimizerState(o)
1163 _object_types.append(
"LangevinThermostatOptimizerState")
1166 def _object_cast_to_LangevinThermostatOptimizerState(o):
1167 r"""_object_cast_to_LangevinThermostatOptimizerState(Object o) -> LangevinThermostatOptimizerState"""
1168 return _IMP_atom._object_cast_to_LangevinThermostatOptimizerState(o)
1170 _object_types.append(
"SelectionGeometry")
1173 def _object_cast_to_SelectionGeometry(o):
1174 r"""_object_cast_to_SelectionGeometry(Object o) -> SelectionGeometry"""
1175 return _IMP_atom._object_cast_to_SelectionGeometry(o)
1177 _object_types.append(
"HierarchyGeometry")
1180 def _object_cast_to_HierarchyGeometry(o):
1181 r"""_object_cast_to_HierarchyGeometry(Object o) -> HierarchyGeometry"""
1182 return _IMP_atom._object_cast_to_HierarchyGeometry(o)
1184 _object_types.append(
"HierarchiesGeometry")
1187 def _object_cast_to_HierarchiesGeometry(o):
1188 r"""_object_cast_to_HierarchiesGeometry(Object o) -> HierarchiesGeometry"""
1189 return _IMP_atom._object_cast_to_HierarchiesGeometry(o)
1191 _object_types.append(
"BondGeometry")
1194 def _object_cast_to_BondGeometry(o):
1195 r"""_object_cast_to_BondGeometry(Object o) -> BondGeometry"""
1196 return _IMP_atom._object_cast_to_BondGeometry(o)
1198 _object_types.append(
"BondsGeometry")
1201 def _object_cast_to_BondsGeometry(o):
1202 r"""_object_cast_to_BondsGeometry(Object o) -> BondsGeometry"""
1203 return _IMP_atom._object_cast_to_BondsGeometry(o)
1205 _object_types.append(
"CAAngleRestraint")
1208 def _object_cast_to_CAAngleRestraint(o):
1209 r"""_object_cast_to_CAAngleRestraint(Object o) -> CAAngleRestraint"""
1210 return _IMP_atom._object_cast_to_CAAngleRestraint(o)
1212 _object_types.append(
"CADihedralRestraint")
1215 def _object_cast_to_CADihedralRestraint(o):
1216 r"""_object_cast_to_CADihedralRestraint(Object o) -> CADihedralRestraint"""
1217 return _IMP_atom._object_cast_to_CADihedralRestraint(o)
1219 _object_types.append(
"HelixRestraint")
1222 def _object_cast_to_HelixRestraint(o):
1223 r"""_object_cast_to_HelixRestraint(Object o) -> HelixRestraint"""
1224 return _IMP_atom._object_cast_to_HelixRestraint(o)
1226 CHARMMDihedrals=list
1227 _plural_types.append(
"CHARMMDihedrals")
1228 _value_types.append(
"CHARMMDihedral")
1232 _plural_types.append(
"CHARMMBonds")
1233 _value_types.append(
"CHARMMBond")
1237 _plural_types.append(
"CHARMMAngles")
1238 _value_types.append(
"CHARMMAngle")
1241 r"""Proxy of C++ IMP::atom::Bond class."""
1243 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1245 def __init__(self, *args):
1247 __init__(Bond self) -> Bond
1248 __init__(Bond self, Model m, ParticleIndex id) -> Bond
1249 __init__(Bond self, _ParticleAdaptor d) -> Bond
1251 _IMP_atom.Bond_swiginit(self, _IMP_atom.new_Bond(*args))
1253 def show(self, *args):
1254 r"""show(Bond self, _ostream out=std::cout)"""
1255 return _IMP_atom.Bond_show(self, *args)
1258 def get_is_setup(*args):
1260 get_is_setup(_ParticleAdaptor p) -> bool
1261 get_is_setup(Model m, ParticleIndex pi) -> bool
1263 return _IMP_atom.Bond_get_is_setup(*args)
1264 UNKNOWN = _IMP_atom.Bond_UNKNOWN
1266 NONBIOLOGICAL = _IMP_atom.Bond_NONBIOLOGICAL
1268 SINGLE = _IMP_atom.Bond_SINGLE
1270 DOUBLE = _IMP_atom.Bond_DOUBLE
1272 TRIPLE = _IMP_atom.Bond_TRIPLE
1274 HYDROGEN = _IMP_atom.Bond_HYDROGEN
1276 SALT = _IMP_atom.Bond_SALT
1278 PEPTIDE = _IMP_atom.Bond_PEPTIDE
1280 AMIDE = _IMP_atom.Bond_AMIDE
1282 AROMATIC = _IMP_atom.Bond_AROMATIC
1285 def get_bonded(self, i):
1286 r"""get_bonded(Bond self, unsigned int i) -> Bonded"""
1287 return _IMP_atom.Bond_get_bonded(self, i)
1290 r"""get_type(Bond self) -> IMP::Int"""
1291 return _IMP_atom.Bond_get_type(self)
1293 def set_type(self, t):
1294 r"""set_type(Bond self, IMP::Int t)"""
1295 return _IMP_atom.Bond_set_type(self, t)
1298 r"""get_order(Bond self) -> IMP::Int"""
1299 return _IMP_atom.Bond_get_order(self)
1301 def set_order(self, t):
1302 r"""set_order(Bond self, IMP::Int t)"""
1303 return _IMP_atom.Bond_set_order(self, t)
1305 def get_length(self):
1306 r"""get_length(Bond self) -> IMP::Float"""
1307 return _IMP_atom.Bond_get_length(self)
1309 def set_length(self, t):
1310 r"""set_length(Bond self, IMP::Float t)"""
1311 return _IMP_atom.Bond_set_length(self, t)
1313 def get_stiffness(self):
1314 r"""get_stiffness(Bond self) -> IMP::Float"""
1315 return _IMP_atom.Bond_get_stiffness(self)
1317 def set_stiffness(self, t):
1318 r"""set_stiffness(Bond self, IMP::Float t)"""
1319 return _IMP_atom.Bond_set_stiffness(self, t)
1322 def get_length_key():
1323 r"""get_length_key() -> FloatKey"""
1324 return _IMP_atom.Bond_get_length_key()
1326 def add_attribute(self, *args):
1328 add_attribute(Bond self, FloatKey k, IMP::Float v, bool opt)
1329 add_attribute(Bond self, FloatKey a0, IMP::Float a1)
1330 add_attribute(Bond self, IntKey a0, IMP::Int a1)
1331 add_attribute(Bond self, FloatsKey a0, IMP::Floats a1)
1332 add_attribute(Bond self, IntsKey a0, IMP::Ints a1)
1333 add_attribute(Bond self, StringKey a0, IMP::String a1)
1334 add_attribute(Bond self, ParticleIndexKey a0, Particle a1)
1335 add_attribute(Bond self, ObjectKey a0, Object a1)
1336 add_attribute(Bond self, SparseFloatKey a0, IMP::Float a1)
1337 add_attribute(Bond self, SparseIntKey a0, IMP::Int a1)
1338 add_attribute(Bond self, SparseStringKey a0, IMP::String a1)
1339 add_attribute(Bond self, SparseParticleIndexKey a0, ParticleIndex a1)
1341 return _IMP_atom.Bond_add_attribute(self, *args)
1343 def get_value(self, *args):
1345 get_value(Bond self, FloatKey a0) -> IMP::Float
1346 get_value(Bond self, IntKey a0) -> IMP::Int
1347 get_value(Bond self, FloatsKey a0) -> IMP::Floats
1348 get_value(Bond self, IntsKey a0) -> IMP::Ints
1349 get_value(Bond self, StringKey a0) -> IMP::String
1350 get_value(Bond self, ParticleIndexKey a0) -> Particle
1351 get_value(Bond self, ObjectKey a0) -> Object
1352 get_value(Bond self, SparseFloatKey a0) -> IMP::Float
1353 get_value(Bond self, SparseIntKey a0) -> IMP::Int
1354 get_value(Bond self, SparseStringKey a0) -> IMP::String
1355 get_value(Bond self, SparseParticleIndexKey a0) -> ParticleIndex
1357 return _IMP_atom.Bond_get_value(self, *args)
1359 def set_value(self, *args):
1361 set_value(Bond self, FloatKey a0, IMP::Float a1)
1362 set_value(Bond self, IntKey a0, IMP::Int a1)
1363 set_value(Bond self, FloatsKey a0, IMP::Floats a1)
1364 set_value(Bond self, IntsKey a0, IMP::Ints a1)
1365 set_value(Bond self, StringKey a0, IMP::String a1)
1366 set_value(Bond self, ParticleIndexKey a0, Particle a1)
1367 set_value(Bond self, ObjectKey a0, Object a1)
1368 set_value(Bond self, SparseFloatKey a0, IMP::Float a1)
1369 set_value(Bond self, SparseIntKey a0, IMP::Int a1)
1370 set_value(Bond self, SparseStringKey a0, IMP::String a1)
1371 set_value(Bond self, SparseParticleIndexKey a0, ParticleIndex a1)
1373 return _IMP_atom.Bond_set_value(self, *args)
1375 def remove_attribute(self, *args):
1377 remove_attribute(Bond self, FloatKey a0)
1378 remove_attribute(Bond self, IntKey a0)
1379 remove_attribute(Bond self, FloatsKey a0)
1380 remove_attribute(Bond self, IntsKey a0)
1381 remove_attribute(Bond self, StringKey a0)
1382 remove_attribute(Bond self, ParticleIndexKey a0)
1383 remove_attribute(Bond self, ObjectKey a0)
1384 remove_attribute(Bond self, SparseFloatKey a0)
1385 remove_attribute(Bond self, SparseIntKey a0)
1386 remove_attribute(Bond self, SparseStringKey a0)
1387 remove_attribute(Bond self, SparseParticleIndexKey a0)
1389 return _IMP_atom.Bond_remove_attribute(self, *args)
1391 def has_attribute(self, *args):
1393 has_attribute(Bond self, FloatKey a0) -> bool
1394 has_attribute(Bond self, IntKey a0) -> bool
1395 has_attribute(Bond self, FloatsKey a0) -> bool
1396 has_attribute(Bond self, IntsKey a0) -> bool
1397 has_attribute(Bond self, StringKey a0) -> bool
1398 has_attribute(Bond self, ParticleIndexKey a0) -> bool
1399 has_attribute(Bond self, ObjectKey a0) -> bool
1400 has_attribute(Bond self, SparseFloatKey a0) -> bool
1401 has_attribute(Bond self, SparseIntKey a0) -> bool
1402 has_attribute(Bond self, SparseStringKey a0) -> bool
1403 has_attribute(Bond self, SparseParticleIndexKey a0) -> bool
1405 return _IMP_atom.Bond_has_attribute(self, *args)
1407 def get_derivative(self, a0):
1408 r"""get_derivative(Bond self, FloatKey a0) -> double"""
1409 return _IMP_atom.Bond_get_derivative(self, a0)
1412 r"""get_name(Bond self) -> std::string"""
1413 return _IMP_atom.Bond_get_name(self)
1415 def clear_caches(self):
1416 r"""clear_caches(Bond self)"""
1417 return _IMP_atom.Bond_clear_caches(self)
1419 def set_name(self, a0):
1420 r"""set_name(Bond self, std::string a0)"""
1421 return _IMP_atom.Bond_set_name(self, a0)
1424 r"""set_check_level(Bond self, IMP::CheckLevel a0)"""
1425 return _IMP_atom.Bond_set_check_level(self, a0)
1427 def add_to_derivative(self, a0, a1, a2):
1428 r"""add_to_derivative(Bond self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
1429 return _IMP_atom.Bond_add_to_derivative(self, a0, a1, a2)
1431 def set_is_optimized(self, a0, a1):
1432 r"""set_is_optimized(Bond self, FloatKey a0, bool a1)"""
1433 return _IMP_atom.Bond_set_is_optimized(self, a0, a1)
1435 def get_is_optimized(self, a0):
1436 r"""get_is_optimized(Bond self, FloatKey a0) -> bool"""
1437 return _IMP_atom.Bond_get_is_optimized(self, a0)
1440 r"""get_check_level(Bond self) -> IMP::CheckLevel"""
1441 return _IMP_atom.Bond_get_check_level(self)
1443 def __eq__(self, *args):
1445 __eq__(Bond self, Bond o) -> bool
1446 __eq__(Bond self, Particle d) -> bool
1448 return _IMP_atom.Bond___eq__(self, *args)
1450 def __ne__(self, *args):
1452 __ne__(Bond self, Bond o) -> bool
1453 __ne__(Bond self, Particle d) -> bool
1455 return _IMP_atom.Bond___ne__(self, *args)
1457 def __le__(self, *args):
1459 __le__(Bond self, Bond o) -> bool
1460 __le__(Bond self, Particle d) -> bool
1462 return _IMP_atom.Bond___le__(self, *args)
1464 def __lt__(self, *args):
1466 __lt__(Bond self, Bond o) -> bool
1467 __lt__(Bond self, Particle d) -> bool
1469 return _IMP_atom.Bond___lt__(self, *args)
1471 def __ge__(self, *args):
1473 __ge__(Bond self, Bond o) -> bool
1474 __ge__(Bond self, Particle d) -> bool
1476 return _IMP_atom.Bond___ge__(self, *args)
1478 def __gt__(self, *args):
1480 __gt__(Bond self, Bond o) -> bool
1481 __gt__(Bond self, Particle d) -> bool
1483 return _IMP_atom.Bond___gt__(self, *args)
1486 r"""__hash__(Bond self) -> std::size_t"""
1487 return _IMP_atom.Bond___hash__(self)
1490 r"""__str__(Bond self) -> std::string"""
1491 return _IMP_atom.Bond___str__(self)
1494 r"""__repr__(Bond self) -> std::string"""
1495 return _IMP_atom.Bond___repr__(self)
1497 def _get_as_binary(self):
1498 r"""_get_as_binary(Bond self) -> PyObject *"""
1499 return _IMP_atom.Bond__get_as_binary(self)
1501 def _set_from_binary(self, p):
1502 r"""_set_from_binary(Bond self, PyObject * p)"""
1503 return _IMP_atom.Bond__set_from_binary(self, p)
1505 def __getstate__(self):
1506 p = self._get_as_binary()
1507 if len(self.__dict__) > 1:
1508 d = self.__dict__.copy()
1513 def __setstate__(self, p):
1514 if not hasattr(self,
'this'):
1516 if isinstance(p, tuple):
1518 self.__dict__.update(d)
1519 return self._set_from_binary(p)
1521 __swig_destroy__ = _IMP_atom.delete_Bond
1524 _IMP_atom.Bond_swigregister(Bond)
1526 r"""Proxy of C++ IMP::atom::Bonded class."""
1528 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1530 def __init__(self, *args):
1532 __init__(Bonded self) -> Bonded
1533 __init__(Bonded self, Model m, ParticleIndex id) -> Bonded
1534 __init__(Bonded self, _ParticleAdaptor d) -> Bonded
1536 _IMP_atom.Bonded_swiginit(self, _IMP_atom.new_Bonded(*args))
1538 def show(self, *args):
1539 r"""show(Bonded self, _ostream out=std::cout)"""
1540 return _IMP_atom.Bonded_show(self, *args)
1543 def setup_particle(*args):
1545 setup_particle(Model m, ParticleIndex pi) -> Bonded
1546 setup_particle(_ParticleAdaptor pa) -> Bonded
1548 return _IMP_atom.Bonded_setup_particle(*args)
1551 def get_is_setup(*args):
1553 get_is_setup(_ParticleAdaptor p) -> bool
1554 get_is_setup(Model m, ParticleIndex pi) -> bool
1556 return _IMP_atom.Bonded_get_is_setup(*args)
1558 def get_number_of_bonds(self):
1559 r"""get_number_of_bonds(Bonded self) -> unsigned int"""
1560 return _IMP_atom.Bonded_get_number_of_bonds(self)
1562 def get_bond_indexes(self):
1563 r"""get_bond_indexes(Bonded self) -> IMP::ParticleIndexes"""
1564 return _IMP_atom.Bonded_get_bond_indexes(self)
1567 r"""get_bond(Bonded self, unsigned int i) -> Bond"""
1568 return _IMP_atom.Bonded_get_bond(self, i)
1570 def get_bonded(self, i):
1571 r"""get_bonded(Bonded self, unsigned int i) -> Bonded"""
1572 return _IMP_atom.Bonded_get_bonded(self, i)
1574 def add_attribute(self, *args):
1576 add_attribute(Bonded self, FloatKey k, IMP::Float v, bool opt)
1577 add_attribute(Bonded self, FloatKey a0, IMP::Float a1)
1578 add_attribute(Bonded self, IntKey a0, IMP::Int a1)
1579 add_attribute(Bonded self, FloatsKey a0, IMP::Floats a1)
1580 add_attribute(Bonded self, IntsKey a0, IMP::Ints a1)
1581 add_attribute(Bonded self, StringKey a0, IMP::String a1)
1582 add_attribute(Bonded self, ParticleIndexKey a0, Particle a1)
1583 add_attribute(Bonded self, ObjectKey a0, Object a1)
1584 add_attribute(Bonded self, SparseFloatKey a0, IMP::Float a1)
1585 add_attribute(Bonded self, SparseIntKey a0, IMP::Int a1)
1586 add_attribute(Bonded self, SparseStringKey a0, IMP::String a1)
1587 add_attribute(Bonded self, SparseParticleIndexKey a0, ParticleIndex a1)
1589 return _IMP_atom.Bonded_add_attribute(self, *args)
1591 def get_value(self, *args):
1593 get_value(Bonded self, FloatKey a0) -> IMP::Float
1594 get_value(Bonded self, IntKey a0) -> IMP::Int
1595 get_value(Bonded self, FloatsKey a0) -> IMP::Floats
1596 get_value(Bonded self, IntsKey a0) -> IMP::Ints
1597 get_value(Bonded self, StringKey a0) -> IMP::String
1598 get_value(Bonded self, ParticleIndexKey a0) -> Particle
1599 get_value(Bonded self, ObjectKey a0) -> Object
1600 get_value(Bonded self, SparseFloatKey a0) -> IMP::Float
1601 get_value(Bonded self, SparseIntKey a0) -> IMP::Int
1602 get_value(Bonded self, SparseStringKey a0) -> IMP::String
1603 get_value(Bonded self, SparseParticleIndexKey a0) -> ParticleIndex
1605 return _IMP_atom.Bonded_get_value(self, *args)
1607 def set_value(self, *args):
1609 set_value(Bonded self, FloatKey a0, IMP::Float a1)
1610 set_value(Bonded self, IntKey a0, IMP::Int a1)
1611 set_value(Bonded self, FloatsKey a0, IMP::Floats a1)
1612 set_value(Bonded self, IntsKey a0, IMP::Ints a1)
1613 set_value(Bonded self, StringKey a0, IMP::String a1)
1614 set_value(Bonded self, ParticleIndexKey a0, Particle a1)
1615 set_value(Bonded self, ObjectKey a0, Object a1)
1616 set_value(Bonded self, SparseFloatKey a0, IMP::Float a1)
1617 set_value(Bonded self, SparseIntKey a0, IMP::Int a1)
1618 set_value(Bonded self, SparseStringKey a0, IMP::String a1)
1619 set_value(Bonded self, SparseParticleIndexKey a0, ParticleIndex a1)
1621 return _IMP_atom.Bonded_set_value(self, *args)
1623 def remove_attribute(self, *args):
1625 remove_attribute(Bonded self, FloatKey a0)
1626 remove_attribute(Bonded self, IntKey a0)
1627 remove_attribute(Bonded self, FloatsKey a0)
1628 remove_attribute(Bonded self, IntsKey a0)
1629 remove_attribute(Bonded self, StringKey a0)
1630 remove_attribute(Bonded self, ParticleIndexKey a0)
1631 remove_attribute(Bonded self, ObjectKey a0)
1632 remove_attribute(Bonded self, SparseFloatKey a0)
1633 remove_attribute(Bonded self, SparseIntKey a0)
1634 remove_attribute(Bonded self, SparseStringKey a0)
1635 remove_attribute(Bonded self, SparseParticleIndexKey a0)
1637 return _IMP_atom.Bonded_remove_attribute(self, *args)
1639 def has_attribute(self, *args):
1641 has_attribute(Bonded self, FloatKey a0) -> bool
1642 has_attribute(Bonded self, IntKey a0) -> bool
1643 has_attribute(Bonded self, FloatsKey a0) -> bool
1644 has_attribute(Bonded self, IntsKey a0) -> bool
1645 has_attribute(Bonded self, StringKey a0) -> bool
1646 has_attribute(Bonded self, ParticleIndexKey a0) -> bool
1647 has_attribute(Bonded self, ObjectKey a0) -> bool
1648 has_attribute(Bonded self, SparseFloatKey a0) -> bool
1649 has_attribute(Bonded self, SparseIntKey a0) -> bool
1650 has_attribute(Bonded self, SparseStringKey a0) -> bool
1651 has_attribute(Bonded self, SparseParticleIndexKey a0) -> bool
1653 return _IMP_atom.Bonded_has_attribute(self, *args)
1655 def get_derivative(self, a0):
1656 r"""get_derivative(Bonded self, FloatKey a0) -> double"""
1657 return _IMP_atom.Bonded_get_derivative(self, a0)
1660 r"""get_name(Bonded self) -> std::string"""
1661 return _IMP_atom.Bonded_get_name(self)
1663 def clear_caches(self):
1664 r"""clear_caches(Bonded self)"""
1665 return _IMP_atom.Bonded_clear_caches(self)
1667 def set_name(self, a0):
1668 r"""set_name(Bonded self, std::string a0)"""
1669 return _IMP_atom.Bonded_set_name(self, a0)
1672 r"""set_check_level(Bonded self, IMP::CheckLevel a0)"""
1673 return _IMP_atom.Bonded_set_check_level(self, a0)
1675 def add_to_derivative(self, a0, a1, a2):
1676 r"""add_to_derivative(Bonded self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
1677 return _IMP_atom.Bonded_add_to_derivative(self, a0, a1, a2)
1679 def set_is_optimized(self, a0, a1):
1680 r"""set_is_optimized(Bonded self, FloatKey a0, bool a1)"""
1681 return _IMP_atom.Bonded_set_is_optimized(self, a0, a1)
1683 def get_is_optimized(self, a0):
1684 r"""get_is_optimized(Bonded self, FloatKey a0) -> bool"""
1685 return _IMP_atom.Bonded_get_is_optimized(self, a0)
1688 r"""get_check_level(Bonded self) -> IMP::CheckLevel"""
1689 return _IMP_atom.Bonded_get_check_level(self)
1691 def __eq__(self, *args):
1693 __eq__(Bonded self, Bonded o) -> bool
1694 __eq__(Bonded self, Particle d) -> bool
1696 return _IMP_atom.Bonded___eq__(self, *args)
1698 def __ne__(self, *args):
1700 __ne__(Bonded self, Bonded o) -> bool
1701 __ne__(Bonded self, Particle d) -> bool
1703 return _IMP_atom.Bonded___ne__(self, *args)
1705 def __le__(self, *args):
1707 __le__(Bonded self, Bonded o) -> bool
1708 __le__(Bonded self, Particle d) -> bool
1710 return _IMP_atom.Bonded___le__(self, *args)
1712 def __lt__(self, *args):
1714 __lt__(Bonded self, Bonded o) -> bool
1715 __lt__(Bonded self, Particle d) -> bool
1717 return _IMP_atom.Bonded___lt__(self, *args)
1719 def __ge__(self, *args):
1721 __ge__(Bonded self, Bonded o) -> bool
1722 __ge__(Bonded self, Particle d) -> bool
1724 return _IMP_atom.Bonded___ge__(self, *args)
1726 def __gt__(self, *args):
1728 __gt__(Bonded self, Bonded o) -> bool
1729 __gt__(Bonded self, Particle d) -> bool
1731 return _IMP_atom.Bonded___gt__(self, *args)
1734 r"""__hash__(Bonded self) -> std::size_t"""
1735 return _IMP_atom.Bonded___hash__(self)
1738 r"""__str__(Bonded self) -> std::string"""
1739 return _IMP_atom.Bonded___str__(self)
1742 r"""__repr__(Bonded self) -> std::string"""
1743 return _IMP_atom.Bonded___repr__(self)
1745 def _get_as_binary(self):
1746 r"""_get_as_binary(Bonded self) -> PyObject *"""
1747 return _IMP_atom.Bonded__get_as_binary(self)
1749 def _set_from_binary(self, p):
1750 r"""_set_from_binary(Bonded self, PyObject * p)"""
1751 return _IMP_atom.Bonded__set_from_binary(self, p)
1753 def __getstate__(self):
1754 p = self._get_as_binary()
1755 if len(self.__dict__) > 1:
1756 d = self.__dict__.copy()
1761 def __setstate__(self, p):
1762 if not hasattr(self,
'this'):
1764 if isinstance(p, tuple):
1766 self.__dict__.update(d)
1767 return self._set_from_binary(p)
1769 __swig_destroy__ = _IMP_atom.delete_Bonded
1772 _IMP_atom.Bonded_swigregister(Bonded)
1775 r"""create_custom_bond(Bonded a, Bonded b, IMP::Float length, IMP::Float stiffness=-1) -> Bond"""
1776 return _IMP_atom.create_custom_bond(a, b, length, stiffness)
1780 create_bond(Bonded a, Bonded b, IMP::Int t) -> Bond
1781 create_bond(Bonded a, Bonded b, Bond o) -> Bond
1783 return _IMP_atom.create_bond(*args)
1786 r"""destroy_bond(Bond b)"""
1787 return _IMP_atom.destroy_bond(b)
1790 r"""get_bond(Bonded a, Bonded b) -> Bond"""
1791 return _IMP_atom.get_bond(a, b)
1793 r"""Proxy of C++ IMP::atom::BondGeometry class."""
1795 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1797 def __init__(self, *args):
1799 __init__(BondGeometry self, Particle p) -> BondGeometry
1800 __init__(BondGeometry self, Bond d) -> BondGeometry
1802 _IMP_atom.BondGeometry_swiginit(self, _IMP_atom.new_BondGeometry(*args))
1804 def get_version_info(self):
1805 r"""get_version_info(BondGeometry self) -> VersionInfo"""
1806 return _IMP_atom.BondGeometry_get_version_info(self)
1807 __swig_destroy__ = _IMP_atom.delete_BondGeometry
1810 r"""__str__(BondGeometry self) -> std::string"""
1811 return _IMP_atom.BondGeometry___str__(self)
1814 r"""__repr__(BondGeometry self) -> std::string"""
1815 return _IMP_atom.BondGeometry___repr__(self)
1819 return _object_cast_to_BondGeometry(o)
1823 _IMP_atom.BondGeometry_swigregister(BondGeometry)
1825 r"""Proxy of C++ IMP::atom::BondsGeometry class."""
1827 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1829 def __init__(self, sc):
1830 r"""__init__(BondsGeometry self, SingletonContainer sc) -> BondsGeometry"""
1831 _IMP_atom.BondsGeometry_swiginit(self, _IMP_atom.new_BondsGeometry(sc))
1833 def get_version_info(self):
1834 r"""get_version_info(BondsGeometry self) -> VersionInfo"""
1835 return _IMP_atom.BondsGeometry_get_version_info(self)
1836 __swig_destroy__ = _IMP_atom.delete_BondsGeometry
1839 r"""__str__(BondsGeometry self) -> std::string"""
1840 return _IMP_atom.BondsGeometry___str__(self)
1843 r"""__repr__(BondsGeometry self) -> std::string"""
1844 return _IMP_atom.BondsGeometry___repr__(self)
1848 return _object_cast_to_BondsGeometry(o)
1852 _IMP_atom.BondsGeometry_swigregister(BondsGeometry)
1854 r"""Proxy of C++ IMP::atom::Hierarchy class."""
1856 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1858 def __init__(self, *args):
1860 __init__(Hierarchy self, Model m, ParticleIndex pi) -> Hierarchy
1861 __init__(Hierarchy self, _ParticleAdaptor pi) -> Hierarchy
1862 __init__(Hierarchy self) -> Hierarchy
1863 __init__(Hierarchy self, Hierarchy h) -> Hierarchy
1865 _IMP_atom.Hierarchy_swiginit(self, _IMP_atom.new_Hierarchy(*args))
1868 def setup_particle(*args):
1870 setup_particle(Particle p, _ParticleIndexesAdaptor children) -> Hierarchy
1871 setup_particle(Particle p) -> Hierarchy
1872 setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor children=IMP::ParticleIndexesAdaptor()) -> Hierarchy
1874 return _IMP_atom.Hierarchy_setup_particle(*args)
1877 def get_is_setup(*args):
1879 get_is_setup(Particle p) -> bool
1880 get_is_setup(Model m, ParticleIndex p) -> bool
1882 return _IMP_atom.Hierarchy_get_is_setup(*args)
1884 def get_is_valid(self, print_info=False):
1885 r"""get_is_valid(Hierarchy self, bool print_info=False) -> bool"""
1886 return _IMP_atom.Hierarchy_get_is_valid(self, print_info)
1888 def add_child(self, o):
1889 r"""add_child(Hierarchy self, Hierarchy o)"""
1890 return _IMP_atom.Hierarchy_add_child(self, o)
1892 def get_child(self, i):
1893 r"""get_child(Hierarchy self, unsigned int i) -> Hierarchy"""
1894 return _IMP_atom.Hierarchy_get_child(self, i)
1896 def get_children(self):
1897 r"""get_children(Hierarchy self) -> IMP::atom::Hierarchies"""
1898 return _IMP_atom.Hierarchy_get_children(self)
1900 def get_parent(self):
1901 r"""get_parent(Hierarchy self) -> Hierarchy"""
1902 return _IMP_atom.Hierarchy_get_parent(self)
1906 r"""get_traits() -> HierarchyTraits"""
1907 return _IMP_atom.Hierarchy_get_traits()
1909 def show(self, *args):
1911 show(Hierarchy self, _ostream out, std::string delimiter)
1912 show(Hierarchy self, _ostream out=std::cout)
1914 return _IMP_atom.Hierarchy_show(self, *args)
1916 def add_attribute(self, *args):
1918 add_attribute(Hierarchy self, FloatKey k, IMP::Float v, bool opt)
1919 add_attribute(Hierarchy self, FloatKey a0, IMP::Float a1)
1920 add_attribute(Hierarchy self, IntKey a0, IMP::Int a1)
1921 add_attribute(Hierarchy self, FloatsKey a0, IMP::Floats a1)
1922 add_attribute(Hierarchy self, IntsKey a0, IMP::Ints a1)
1923 add_attribute(Hierarchy self, StringKey a0, IMP::String a1)
1924 add_attribute(Hierarchy self, ParticleIndexKey a0, Particle a1)
1925 add_attribute(Hierarchy self, ObjectKey a0, Object a1)
1926 add_attribute(Hierarchy self, SparseFloatKey a0, IMP::Float a1)
1927 add_attribute(Hierarchy self, SparseIntKey a0, IMP::Int a1)
1928 add_attribute(Hierarchy self, SparseStringKey a0, IMP::String a1)
1929 add_attribute(Hierarchy self, SparseParticleIndexKey a0, ParticleIndex a1)
1931 return _IMP_atom.Hierarchy_add_attribute(self, *args)
1933 def get_value(self, *args):
1935 get_value(Hierarchy self, FloatKey a0) -> IMP::Float
1936 get_value(Hierarchy self, IntKey a0) -> IMP::Int
1937 get_value(Hierarchy self, FloatsKey a0) -> IMP::Floats
1938 get_value(Hierarchy self, IntsKey a0) -> IMP::Ints
1939 get_value(Hierarchy self, StringKey a0) -> IMP::String
1940 get_value(Hierarchy self, ParticleIndexKey a0) -> Particle
1941 get_value(Hierarchy self, ObjectKey a0) -> Object
1942 get_value(Hierarchy self, SparseFloatKey a0) -> IMP::Float
1943 get_value(Hierarchy self, SparseIntKey a0) -> IMP::Int
1944 get_value(Hierarchy self, SparseStringKey a0) -> IMP::String
1945 get_value(Hierarchy self, SparseParticleIndexKey a0) -> ParticleIndex
1947 return _IMP_atom.Hierarchy_get_value(self, *args)
1949 def set_value(self, *args):
1951 set_value(Hierarchy self, FloatKey a0, IMP::Float a1)
1952 set_value(Hierarchy self, IntKey a0, IMP::Int a1)
1953 set_value(Hierarchy self, FloatsKey a0, IMP::Floats a1)
1954 set_value(Hierarchy self, IntsKey a0, IMP::Ints a1)
1955 set_value(Hierarchy self, StringKey a0, IMP::String a1)
1956 set_value(Hierarchy self, ParticleIndexKey a0, Particle a1)
1957 set_value(Hierarchy self, ObjectKey a0, Object a1)
1958 set_value(Hierarchy self, SparseFloatKey a0, IMP::Float a1)
1959 set_value(Hierarchy self, SparseIntKey a0, IMP::Int a1)
1960 set_value(Hierarchy self, SparseStringKey a0, IMP::String a1)
1961 set_value(Hierarchy self, SparseParticleIndexKey a0, ParticleIndex a1)
1963 return _IMP_atom.Hierarchy_set_value(self, *args)
1965 def remove_attribute(self, *args):
1967 remove_attribute(Hierarchy self, FloatKey a0)
1968 remove_attribute(Hierarchy self, IntKey a0)
1969 remove_attribute(Hierarchy self, FloatsKey a0)
1970 remove_attribute(Hierarchy self, IntsKey a0)
1971 remove_attribute(Hierarchy self, StringKey a0)
1972 remove_attribute(Hierarchy self, ParticleIndexKey a0)
1973 remove_attribute(Hierarchy self, ObjectKey a0)
1974 remove_attribute(Hierarchy self, SparseFloatKey a0)
1975 remove_attribute(Hierarchy self, SparseIntKey a0)
1976 remove_attribute(Hierarchy self, SparseStringKey a0)
1977 remove_attribute(Hierarchy self, SparseParticleIndexKey a0)
1979 return _IMP_atom.Hierarchy_remove_attribute(self, *args)
1981 def has_attribute(self, *args):
1983 has_attribute(Hierarchy self, FloatKey a0) -> bool
1984 has_attribute(Hierarchy self, IntKey a0) -> bool
1985 has_attribute(Hierarchy self, FloatsKey a0) -> bool
1986 has_attribute(Hierarchy self, IntsKey a0) -> bool
1987 has_attribute(Hierarchy self, StringKey a0) -> bool
1988 has_attribute(Hierarchy self, ParticleIndexKey a0) -> bool
1989 has_attribute(Hierarchy self, ObjectKey a0) -> bool
1990 has_attribute(Hierarchy self, SparseFloatKey a0) -> bool
1991 has_attribute(Hierarchy self, SparseIntKey a0) -> bool
1992 has_attribute(Hierarchy self, SparseStringKey a0) -> bool
1993 has_attribute(Hierarchy self, SparseParticleIndexKey a0) -> bool
1995 return _IMP_atom.Hierarchy_has_attribute(self, *args)
1997 def get_derivative(self, a0):
1998 r"""get_derivative(Hierarchy self, FloatKey a0) -> double"""
1999 return _IMP_atom.Hierarchy_get_derivative(self, a0)
2002 r"""get_name(Hierarchy self) -> std::string"""
2003 return _IMP_atom.Hierarchy_get_name(self)
2005 def clear_caches(self):
2006 r"""clear_caches(Hierarchy self)"""
2007 return _IMP_atom.Hierarchy_clear_caches(self)
2009 def set_name(self, a0):
2010 r"""set_name(Hierarchy self, std::string a0)"""
2011 return _IMP_atom.Hierarchy_set_name(self, a0)
2014 r"""set_check_level(Hierarchy self, IMP::CheckLevel a0)"""
2015 return _IMP_atom.Hierarchy_set_check_level(self, a0)
2017 def add_to_derivative(self, a0, a1, a2):
2018 r"""add_to_derivative(Hierarchy self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2019 return _IMP_atom.Hierarchy_add_to_derivative(self, a0, a1, a2)
2021 def set_is_optimized(self, a0, a1):
2022 r"""set_is_optimized(Hierarchy self, FloatKey a0, bool a1)"""
2023 return _IMP_atom.Hierarchy_set_is_optimized(self, a0, a1)
2025 def get_is_optimized(self, a0):
2026 r"""get_is_optimized(Hierarchy self, FloatKey a0) -> bool"""
2027 return _IMP_atom.Hierarchy_get_is_optimized(self, a0)
2030 r"""get_check_level(Hierarchy self) -> IMP::CheckLevel"""
2031 return _IMP_atom.Hierarchy_get_check_level(self)
2033 def __eq__(self, *args):
2035 __eq__(Hierarchy self, Hierarchy o) -> bool
2036 __eq__(Hierarchy self, Particle d) -> bool
2038 return _IMP_atom.Hierarchy___eq__(self, *args)
2040 def __ne__(self, *args):
2042 __ne__(Hierarchy self, Hierarchy o) -> bool
2043 __ne__(Hierarchy self, Particle d) -> bool
2045 return _IMP_atom.Hierarchy___ne__(self, *args)
2047 def __le__(self, *args):
2049 __le__(Hierarchy self, Hierarchy o) -> bool
2050 __le__(Hierarchy self, Particle d) -> bool
2052 return _IMP_atom.Hierarchy___le__(self, *args)
2054 def __lt__(self, *args):
2056 __lt__(Hierarchy self, Hierarchy o) -> bool
2057 __lt__(Hierarchy self, Particle d) -> bool
2059 return _IMP_atom.Hierarchy___lt__(self, *args)
2061 def __ge__(self, *args):
2063 __ge__(Hierarchy self, Hierarchy o) -> bool
2064 __ge__(Hierarchy self, Particle d) -> bool
2066 return _IMP_atom.Hierarchy___ge__(self, *args)
2068 def __gt__(self, *args):
2070 __gt__(Hierarchy self, Hierarchy o) -> bool
2071 __gt__(Hierarchy self, Particle d) -> bool
2073 return _IMP_atom.Hierarchy___gt__(self, *args)
2076 r"""__hash__(Hierarchy self) -> std::size_t"""
2077 return _IMP_atom.Hierarchy___hash__(self)
2080 r"""__str__(Hierarchy self) -> std::string"""
2081 return _IMP_atom.Hierarchy___str__(self)
2084 r"""__repr__(Hierarchy self) -> std::string"""
2085 return _IMP_atom.Hierarchy___repr__(self)
2087 def _get_as_binary(self):
2088 r"""_get_as_binary(Hierarchy self) -> PyObject *"""
2089 return _IMP_atom.Hierarchy__get_as_binary(self)
2091 def _set_from_binary(self, p):
2092 r"""_set_from_binary(Hierarchy self, PyObject * p)"""
2093 return _IMP_atom.Hierarchy__set_from_binary(self, p)
2095 def __getstate__(self):
2096 p = self._get_as_binary()
2097 if len(self.__dict__) > 1:
2098 d = self.__dict__.copy()
2103 def __setstate__(self, p):
2104 if not hasattr(self,
'this'):
2106 if isinstance(p, tuple):
2108 self.__dict__.update(d)
2109 return self._set_from_binary(p)
2111 __swig_destroy__ = _IMP_atom.delete_Hierarchy
2114 _IMP_atom.Hierarchy_swigregister(Hierarchy)
2115 ATOM_TYPE = _IMP_atom.ATOM_TYPE
2117 RESIDUE_TYPE = _IMP_atom.RESIDUE_TYPE
2119 CHAIN_TYPE = _IMP_atom.CHAIN_TYPE
2121 MOLECULE_TYPE = _IMP_atom.MOLECULE_TYPE
2123 DOMAIN_TYPE = _IMP_atom.DOMAIN_TYPE
2125 FRAGMENT_TYPE = _IMP_atom.FRAGMENT_TYPE
2127 XYZ_TYPE = _IMP_atom.XYZ_TYPE
2129 XYZR_TYPE = _IMP_atom.XYZR_TYPE
2131 MASS_TYPE = _IMP_atom.MASS_TYPE
2133 STATE_TYPE = _IMP_atom.STATE_TYPE
2136 def get_by_type(mhd, t):
2137 r"""get_by_type(Hierarchy mhd, IMP::atom::GetByType t) -> IMP::atom::Hierarchies"""
2138 return _IMP_atom.get_by_type(mhd, t)
2140 def create_fragment(ps):
2141 r"""create_fragment(IMP::atom::Hierarchies const & ps) -> Hierarchy"""
2142 return _IMP_atom.create_fragment(ps)
2144 def get_internal_bonds(mhd, with_representations=False):
2145 r"""get_internal_bonds(Hierarchy mhd, bool with_representations=False) -> IMP::atom::Bonds"""
2146 return _IMP_atom.get_internal_bonds(mhd, with_representations)
2149 r"""get_root(Hierarchy h) -> Hierarchy"""
2150 return _IMP_atom.get_root(h)
2153 r"""show(Hierarchy h, _ostream out=std::cout)"""
2154 return _IMP_atom.show(*args)
2158 create_rigid_body(IMP::atom::Hierarchies const & h, std::string name=std::string("created rigid body")) -> RigidBody
2159 create_rigid_body(Hierarchy h) -> RigidBody
2161 return _IMP_atom.create_rigid_body(*args)
2164 r"""create_compatible_rigid_body(Hierarchy h, Hierarchy reference) -> RigidBody"""
2165 return _IMP_atom.create_compatible_rigid_body(h, reference)
2167 def get_is_heterogen(h):
2168 r"""get_is_heterogen(Hierarchy h) -> bool"""
2169 return _IMP_atom.get_is_heterogen(h)
2172 r"""create_clone(Hierarchy d) -> Hierarchy"""
2173 return _IMP_atom.create_clone(d)
2175 def create_clone_one(d):
2176 r"""create_clone_one(Hierarchy d) -> Hierarchy"""
2177 return _IMP_atom.create_clone_one(d)
2180 r"""destroy(Hierarchy d)"""
2181 return _IMP_atom.destroy(d)
2183 def get_bounding_box(h):
2184 r"""get_bounding_box(Hierarchy h) -> BoundingBox3D"""
2185 return _IMP_atom.get_bounding_box(h)
2187 def get_bounding_sphere(h):
2188 r"""get_bounding_sphere(Hierarchy h) -> Sphere3D"""
2189 return _IMP_atom.get_bounding_sphere(h)
2191 r"""Proxy of C++ IMP::atom::Angle class."""
2193 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2195 def __init__(self, *args):
2197 __init__(Angle self) -> Angle
2198 __init__(Angle self, Model m, ParticleIndex id) -> Angle
2199 __init__(Angle self, _ParticleAdaptor d) -> Angle
2201 _IMP_atom.Angle_swiginit(self, _IMP_atom.new_Angle(*args))
2203 def show(self, *args):
2204 r"""show(Angle self, _ostream out=std::cout)"""
2205 return _IMP_atom.Angle_show(self, *args)
2208 def setup_particle(*args):
2210 setup_particle(Model m, ParticleIndex pi, XYZ a, XYZ b, XYZ c) -> Angle
2211 setup_particle(_ParticleAdaptor pa, XYZ a, XYZ b, XYZ c) -> Angle
2213 return _IMP_atom.Angle_setup_particle(*args)
2216 def get_is_setup(*args):
2218 get_is_setup(_ParticleAdaptor p) -> bool
2219 get_is_setup(Model m, ParticleIndex pi) -> bool
2221 return _IMP_atom.Angle_get_is_setup(*args)
2223 def get_particle(self, *args):
2225 get_particle(Angle self) -> Particle
2226 get_particle(Angle self, unsigned int i) -> Particle
2228 return _IMP_atom.Angle_get_particle(self, *args)
2230 def get_ideal(self):
2231 r"""get_ideal(Angle self) -> IMP::Float"""
2232 return _IMP_atom.Angle_get_ideal(self)
2234 def set_ideal(self, t):
2235 r"""set_ideal(Angle self, IMP::Float t)"""
2236 return _IMP_atom.Angle_set_ideal(self, t)
2238 def get_stiffness(self):
2239 r"""get_stiffness(Angle self) -> IMP::Float"""
2240 return _IMP_atom.Angle_get_stiffness(self)
2242 def set_stiffness(self, t):
2243 r"""set_stiffness(Angle self, IMP::Float t)"""
2244 return _IMP_atom.Angle_set_stiffness(self, t)
2247 def get_particle_key(i):
2248 r"""get_particle_key(unsigned int i) -> ParticleIndexKey"""
2249 return _IMP_atom.Angle_get_particle_key(i)
2252 def get_ideal_key():
2253 r"""get_ideal_key() -> FloatKey"""
2254 return _IMP_atom.Angle_get_ideal_key()
2257 def get_stiffness_key():
2258 r"""get_stiffness_key() -> FloatKey"""
2259 return _IMP_atom.Angle_get_stiffness_key()
2261 def add_attribute(self, *args):
2263 add_attribute(Angle self, FloatKey k, IMP::Float v, bool opt)
2264 add_attribute(Angle self, FloatKey a0, IMP::Float a1)
2265 add_attribute(Angle self, IntKey a0, IMP::Int a1)
2266 add_attribute(Angle self, FloatsKey a0, IMP::Floats a1)
2267 add_attribute(Angle self, IntsKey a0, IMP::Ints a1)
2268 add_attribute(Angle self, StringKey a0, IMP::String a1)
2269 add_attribute(Angle self, ParticleIndexKey a0, Particle a1)
2270 add_attribute(Angle self, ObjectKey a0, Object a1)
2271 add_attribute(Angle self, SparseFloatKey a0, IMP::Float a1)
2272 add_attribute(Angle self, SparseIntKey a0, IMP::Int a1)
2273 add_attribute(Angle self, SparseStringKey a0, IMP::String a1)
2274 add_attribute(Angle self, SparseParticleIndexKey a0, ParticleIndex a1)
2276 return _IMP_atom.Angle_add_attribute(self, *args)
2278 def get_value(self, *args):
2280 get_value(Angle self, FloatKey a0) -> IMP::Float
2281 get_value(Angle self, IntKey a0) -> IMP::Int
2282 get_value(Angle self, FloatsKey a0) -> IMP::Floats
2283 get_value(Angle self, IntsKey a0) -> IMP::Ints
2284 get_value(Angle self, StringKey a0) -> IMP::String
2285 get_value(Angle self, ParticleIndexKey a0) -> Particle
2286 get_value(Angle self, ObjectKey a0) -> Object
2287 get_value(Angle self, SparseFloatKey a0) -> IMP::Float
2288 get_value(Angle self, SparseIntKey a0) -> IMP::Int
2289 get_value(Angle self, SparseStringKey a0) -> IMP::String
2290 get_value(Angle self, SparseParticleIndexKey a0) -> ParticleIndex
2292 return _IMP_atom.Angle_get_value(self, *args)
2294 def set_value(self, *args):
2296 set_value(Angle self, FloatKey a0, IMP::Float a1)
2297 set_value(Angle self, IntKey a0, IMP::Int a1)
2298 set_value(Angle self, FloatsKey a0, IMP::Floats a1)
2299 set_value(Angle self, IntsKey a0, IMP::Ints a1)
2300 set_value(Angle self, StringKey a0, IMP::String a1)
2301 set_value(Angle self, ParticleIndexKey a0, Particle a1)
2302 set_value(Angle self, ObjectKey a0, Object a1)
2303 set_value(Angle self, SparseFloatKey a0, IMP::Float a1)
2304 set_value(Angle self, SparseIntKey a0, IMP::Int a1)
2305 set_value(Angle self, SparseStringKey a0, IMP::String a1)
2306 set_value(Angle self, SparseParticleIndexKey a0, ParticleIndex a1)
2308 return _IMP_atom.Angle_set_value(self, *args)
2310 def remove_attribute(self, *args):
2312 remove_attribute(Angle self, FloatKey a0)
2313 remove_attribute(Angle self, IntKey a0)
2314 remove_attribute(Angle self, FloatsKey a0)
2315 remove_attribute(Angle self, IntsKey a0)
2316 remove_attribute(Angle self, StringKey a0)
2317 remove_attribute(Angle self, ParticleIndexKey a0)
2318 remove_attribute(Angle self, ObjectKey a0)
2319 remove_attribute(Angle self, SparseFloatKey a0)
2320 remove_attribute(Angle self, SparseIntKey a0)
2321 remove_attribute(Angle self, SparseStringKey a0)
2322 remove_attribute(Angle self, SparseParticleIndexKey a0)
2324 return _IMP_atom.Angle_remove_attribute(self, *args)
2326 def has_attribute(self, *args):
2328 has_attribute(Angle self, FloatKey a0) -> bool
2329 has_attribute(Angle self, IntKey a0) -> bool
2330 has_attribute(Angle self, FloatsKey a0) -> bool
2331 has_attribute(Angle self, IntsKey a0) -> bool
2332 has_attribute(Angle self, StringKey a0) -> bool
2333 has_attribute(Angle self, ParticleIndexKey a0) -> bool
2334 has_attribute(Angle self, ObjectKey a0) -> bool
2335 has_attribute(Angle self, SparseFloatKey a0) -> bool
2336 has_attribute(Angle self, SparseIntKey a0) -> bool
2337 has_attribute(Angle self, SparseStringKey a0) -> bool
2338 has_attribute(Angle self, SparseParticleIndexKey a0) -> bool
2340 return _IMP_atom.Angle_has_attribute(self, *args)
2342 def get_derivative(self, a0):
2343 r"""get_derivative(Angle self, FloatKey a0) -> double"""
2344 return _IMP_atom.Angle_get_derivative(self, a0)
2347 r"""get_name(Angle self) -> std::string"""
2348 return _IMP_atom.Angle_get_name(self)
2350 def clear_caches(self):
2351 r"""clear_caches(Angle self)"""
2352 return _IMP_atom.Angle_clear_caches(self)
2354 def set_name(self, a0):
2355 r"""set_name(Angle self, std::string a0)"""
2356 return _IMP_atom.Angle_set_name(self, a0)
2359 r"""set_check_level(Angle self, IMP::CheckLevel a0)"""
2360 return _IMP_atom.Angle_set_check_level(self, a0)
2362 def add_to_derivative(self, a0, a1, a2):
2363 r"""add_to_derivative(Angle self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2364 return _IMP_atom.Angle_add_to_derivative(self, a0, a1, a2)
2366 def set_is_optimized(self, a0, a1):
2367 r"""set_is_optimized(Angle self, FloatKey a0, bool a1)"""
2368 return _IMP_atom.Angle_set_is_optimized(self, a0, a1)
2370 def get_is_optimized(self, a0):
2371 r"""get_is_optimized(Angle self, FloatKey a0) -> bool"""
2372 return _IMP_atom.Angle_get_is_optimized(self, a0)
2375 r"""get_check_level(Angle self) -> IMP::CheckLevel"""
2376 return _IMP_atom.Angle_get_check_level(self)
2378 def __eq__(self, *args):
2380 __eq__(Angle self, Angle o) -> bool
2381 __eq__(Angle self, Particle d) -> bool
2383 return _IMP_atom.Angle___eq__(self, *args)
2385 def __ne__(self, *args):
2387 __ne__(Angle self, Angle o) -> bool
2388 __ne__(Angle self, Particle d) -> bool
2390 return _IMP_atom.Angle___ne__(self, *args)
2392 def __le__(self, *args):
2394 __le__(Angle self, Angle o) -> bool
2395 __le__(Angle self, Particle d) -> bool
2397 return _IMP_atom.Angle___le__(self, *args)
2399 def __lt__(self, *args):
2401 __lt__(Angle self, Angle o) -> bool
2402 __lt__(Angle self, Particle d) -> bool
2404 return _IMP_atom.Angle___lt__(self, *args)
2406 def __ge__(self, *args):
2408 __ge__(Angle self, Angle o) -> bool
2409 __ge__(Angle self, Particle d) -> bool
2411 return _IMP_atom.Angle___ge__(self, *args)
2413 def __gt__(self, *args):
2415 __gt__(Angle self, Angle o) -> bool
2416 __gt__(Angle self, Particle d) -> bool
2418 return _IMP_atom.Angle___gt__(self, *args)
2421 r"""__hash__(Angle self) -> std::size_t"""
2422 return _IMP_atom.Angle___hash__(self)
2425 r"""__str__(Angle self) -> std::string"""
2426 return _IMP_atom.Angle___str__(self)
2429 r"""__repr__(Angle self) -> std::string"""
2430 return _IMP_atom.Angle___repr__(self)
2432 def _get_as_binary(self):
2433 r"""_get_as_binary(Angle self) -> PyObject *"""
2434 return _IMP_atom.Angle__get_as_binary(self)
2436 def _set_from_binary(self, p):
2437 r"""_set_from_binary(Angle self, PyObject * p)"""
2438 return _IMP_atom.Angle__set_from_binary(self, p)
2440 def __getstate__(self):
2441 p = self._get_as_binary()
2442 if len(self.__dict__) > 1:
2443 d = self.__dict__.copy()
2448 def __setstate__(self, p):
2449 if not hasattr(self,
'this'):
2451 if isinstance(p, tuple):
2453 self.__dict__.update(d)
2454 return self._set_from_binary(p)
2456 __swig_destroy__ = _IMP_atom.delete_Angle
2459 _IMP_atom.Angle_swigregister(Angle)
2461 r"""Proxy of C++ IMP::atom::Dihedral class."""
2463 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2465 def __init__(self, *args):
2467 __init__(Dihedral self) -> Dihedral
2468 __init__(Dihedral self, Model m, ParticleIndex id) -> Dihedral
2469 __init__(Dihedral self, _ParticleAdaptor d) -> Dihedral
2471 _IMP_atom.Dihedral_swiginit(self, _IMP_atom.new_Dihedral(*args))
2473 def show(self, *args):
2474 r"""show(Dihedral self, _ostream out=std::cout)"""
2475 return _IMP_atom.Dihedral_show(self, *args)
2478 def setup_particle(*args):
2480 setup_particle(Model m, ParticleIndex pi, XYZ a, XYZ b, XYZ c, XYZ d) -> Dihedral
2481 setup_particle(_ParticleAdaptor pa, XYZ a, XYZ b, XYZ c, XYZ d) -> Dihedral
2483 return _IMP_atom.Dihedral_setup_particle(*args)
2486 def get_is_setup(*args):
2488 get_is_setup(_ParticleAdaptor p) -> bool
2489 get_is_setup(Model m, ParticleIndex pi) -> bool
2491 return _IMP_atom.Dihedral_get_is_setup(*args)
2493 def get_particle(self, *args):
2495 get_particle(Dihedral self) -> Particle
2496 get_particle(Dihedral self, unsigned int i) -> Particle
2498 return _IMP_atom.Dihedral_get_particle(self, *args)
2500 def get_ideal(self):
2501 r"""get_ideal(Dihedral self) -> IMP::Float"""
2502 return _IMP_atom.Dihedral_get_ideal(self)
2504 def set_ideal(self, t):
2505 r"""set_ideal(Dihedral self, IMP::Float t)"""
2506 return _IMP_atom.Dihedral_set_ideal(self, t)
2508 def get_multiplicity(self):
2509 r"""get_multiplicity(Dihedral self) -> IMP::Int"""
2510 return _IMP_atom.Dihedral_get_multiplicity(self)
2512 def set_multiplicity(self, t):
2513 r"""set_multiplicity(Dihedral self, IMP::Int t)"""
2514 return _IMP_atom.Dihedral_set_multiplicity(self, t)
2516 def get_stiffness(self):
2517 r"""get_stiffness(Dihedral self) -> IMP::Float"""
2518 return _IMP_atom.Dihedral_get_stiffness(self)
2520 def set_stiffness(self, t):
2521 r"""set_stiffness(Dihedral self, IMP::Float t)"""
2522 return _IMP_atom.Dihedral_set_stiffness(self, t)
2525 def get_particle_key(i):
2526 r"""get_particle_key(unsigned int i) -> ParticleIndexKey"""
2527 return _IMP_atom.Dihedral_get_particle_key(i)
2530 def get_ideal_key():
2531 r"""get_ideal_key() -> FloatKey"""
2532 return _IMP_atom.Dihedral_get_ideal_key()
2535 def get_multiplicity_key():
2536 r"""get_multiplicity_key() -> IntKey"""
2537 return _IMP_atom.Dihedral_get_multiplicity_key()
2540 def get_stiffness_key():
2541 r"""get_stiffness_key() -> FloatKey"""
2542 return _IMP_atom.Dihedral_get_stiffness_key()
2544 def add_attribute(self, *args):
2546 add_attribute(Dihedral self, FloatKey k, IMP::Float v, bool opt)
2547 add_attribute(Dihedral self, FloatKey a0, IMP::Float a1)
2548 add_attribute(Dihedral self, IntKey a0, IMP::Int a1)
2549 add_attribute(Dihedral self, FloatsKey a0, IMP::Floats a1)
2550 add_attribute(Dihedral self, IntsKey a0, IMP::Ints a1)
2551 add_attribute(Dihedral self, StringKey a0, IMP::String a1)
2552 add_attribute(Dihedral self, ParticleIndexKey a0, Particle a1)
2553 add_attribute(Dihedral self, ObjectKey a0, Object a1)
2554 add_attribute(Dihedral self, SparseFloatKey a0, IMP::Float a1)
2555 add_attribute(Dihedral self, SparseIntKey a0, IMP::Int a1)
2556 add_attribute(Dihedral self, SparseStringKey a0, IMP::String a1)
2557 add_attribute(Dihedral self, SparseParticleIndexKey a0, ParticleIndex a1)
2559 return _IMP_atom.Dihedral_add_attribute(self, *args)
2561 def get_value(self, *args):
2563 get_value(Dihedral self, FloatKey a0) -> IMP::Float
2564 get_value(Dihedral self, IntKey a0) -> IMP::Int
2565 get_value(Dihedral self, FloatsKey a0) -> IMP::Floats
2566 get_value(Dihedral self, IntsKey a0) -> IMP::Ints
2567 get_value(Dihedral self, StringKey a0) -> IMP::String
2568 get_value(Dihedral self, ParticleIndexKey a0) -> Particle
2569 get_value(Dihedral self, ObjectKey a0) -> Object
2570 get_value(Dihedral self, SparseFloatKey a0) -> IMP::Float
2571 get_value(Dihedral self, SparseIntKey a0) -> IMP::Int
2572 get_value(Dihedral self, SparseStringKey a0) -> IMP::String
2573 get_value(Dihedral self, SparseParticleIndexKey a0) -> ParticleIndex
2575 return _IMP_atom.Dihedral_get_value(self, *args)
2577 def set_value(self, *args):
2579 set_value(Dihedral self, FloatKey a0, IMP::Float a1)
2580 set_value(Dihedral self, IntKey a0, IMP::Int a1)
2581 set_value(Dihedral self, FloatsKey a0, IMP::Floats a1)
2582 set_value(Dihedral self, IntsKey a0, IMP::Ints a1)
2583 set_value(Dihedral self, StringKey a0, IMP::String a1)
2584 set_value(Dihedral self, ParticleIndexKey a0, Particle a1)
2585 set_value(Dihedral self, ObjectKey a0, Object a1)
2586 set_value(Dihedral self, SparseFloatKey a0, IMP::Float a1)
2587 set_value(Dihedral self, SparseIntKey a0, IMP::Int a1)
2588 set_value(Dihedral self, SparseStringKey a0, IMP::String a1)
2589 set_value(Dihedral self, SparseParticleIndexKey a0, ParticleIndex a1)
2591 return _IMP_atom.Dihedral_set_value(self, *args)
2593 def remove_attribute(self, *args):
2595 remove_attribute(Dihedral self, FloatKey a0)
2596 remove_attribute(Dihedral self, IntKey a0)
2597 remove_attribute(Dihedral self, FloatsKey a0)
2598 remove_attribute(Dihedral self, IntsKey a0)
2599 remove_attribute(Dihedral self, StringKey a0)
2600 remove_attribute(Dihedral self, ParticleIndexKey a0)
2601 remove_attribute(Dihedral self, ObjectKey a0)
2602 remove_attribute(Dihedral self, SparseFloatKey a0)
2603 remove_attribute(Dihedral self, SparseIntKey a0)
2604 remove_attribute(Dihedral self, SparseStringKey a0)
2605 remove_attribute(Dihedral self, SparseParticleIndexKey a0)
2607 return _IMP_atom.Dihedral_remove_attribute(self, *args)
2609 def has_attribute(self, *args):
2611 has_attribute(Dihedral self, FloatKey a0) -> bool
2612 has_attribute(Dihedral self, IntKey a0) -> bool
2613 has_attribute(Dihedral self, FloatsKey a0) -> bool
2614 has_attribute(Dihedral self, IntsKey a0) -> bool
2615 has_attribute(Dihedral self, StringKey a0) -> bool
2616 has_attribute(Dihedral self, ParticleIndexKey a0) -> bool
2617 has_attribute(Dihedral self, ObjectKey a0) -> bool
2618 has_attribute(Dihedral self, SparseFloatKey a0) -> bool
2619 has_attribute(Dihedral self, SparseIntKey a0) -> bool
2620 has_attribute(Dihedral self, SparseStringKey a0) -> bool
2621 has_attribute(Dihedral self, SparseParticleIndexKey a0) -> bool
2623 return _IMP_atom.Dihedral_has_attribute(self, *args)
2625 def get_derivative(self, a0):
2626 r"""get_derivative(Dihedral self, FloatKey a0) -> double"""
2627 return _IMP_atom.Dihedral_get_derivative(self, a0)
2630 r"""get_name(Dihedral self) -> std::string"""
2631 return _IMP_atom.Dihedral_get_name(self)
2633 def clear_caches(self):
2634 r"""clear_caches(Dihedral self)"""
2635 return _IMP_atom.Dihedral_clear_caches(self)
2637 def set_name(self, a0):
2638 r"""set_name(Dihedral self, std::string a0)"""
2639 return _IMP_atom.Dihedral_set_name(self, a0)
2642 r"""set_check_level(Dihedral self, IMP::CheckLevel a0)"""
2643 return _IMP_atom.Dihedral_set_check_level(self, a0)
2645 def add_to_derivative(self, a0, a1, a2):
2646 r"""add_to_derivative(Dihedral self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2647 return _IMP_atom.Dihedral_add_to_derivative(self, a0, a1, a2)
2649 def set_is_optimized(self, a0, a1):
2650 r"""set_is_optimized(Dihedral self, FloatKey a0, bool a1)"""
2651 return _IMP_atom.Dihedral_set_is_optimized(self, a0, a1)
2653 def get_is_optimized(self, a0):
2654 r"""get_is_optimized(Dihedral self, FloatKey a0) -> bool"""
2655 return _IMP_atom.Dihedral_get_is_optimized(self, a0)
2658 r"""get_check_level(Dihedral self) -> IMP::CheckLevel"""
2659 return _IMP_atom.Dihedral_get_check_level(self)
2661 def __eq__(self, *args):
2663 __eq__(Dihedral self, Dihedral o) -> bool
2664 __eq__(Dihedral self, Particle d) -> bool
2666 return _IMP_atom.Dihedral___eq__(self, *args)
2668 def __ne__(self, *args):
2670 __ne__(Dihedral self, Dihedral o) -> bool
2671 __ne__(Dihedral self, Particle d) -> bool
2673 return _IMP_atom.Dihedral___ne__(self, *args)
2675 def __le__(self, *args):
2677 __le__(Dihedral self, Dihedral o) -> bool
2678 __le__(Dihedral self, Particle d) -> bool
2680 return _IMP_atom.Dihedral___le__(self, *args)
2682 def __lt__(self, *args):
2684 __lt__(Dihedral self, Dihedral o) -> bool
2685 __lt__(Dihedral self, Particle d) -> bool
2687 return _IMP_atom.Dihedral___lt__(self, *args)
2689 def __ge__(self, *args):
2691 __ge__(Dihedral self, Dihedral o) -> bool
2692 __ge__(Dihedral self, Particle d) -> bool
2694 return _IMP_atom.Dihedral___ge__(self, *args)
2696 def __gt__(self, *args):
2698 __gt__(Dihedral self, Dihedral o) -> bool
2699 __gt__(Dihedral self, Particle d) -> bool
2701 return _IMP_atom.Dihedral___gt__(self, *args)
2704 r"""__hash__(Dihedral self) -> std::size_t"""
2705 return _IMP_atom.Dihedral___hash__(self)
2708 r"""__str__(Dihedral self) -> std::string"""
2709 return _IMP_atom.Dihedral___str__(self)
2712 r"""__repr__(Dihedral self) -> std::string"""
2713 return _IMP_atom.Dihedral___repr__(self)
2715 def _get_as_binary(self):
2716 r"""_get_as_binary(Dihedral self) -> PyObject *"""
2717 return _IMP_atom.Dihedral__get_as_binary(self)
2719 def _set_from_binary(self, p):
2720 r"""_set_from_binary(Dihedral self, PyObject * p)"""
2721 return _IMP_atom.Dihedral__set_from_binary(self, p)
2723 def __getstate__(self):
2724 p = self._get_as_binary()
2725 if len(self.__dict__) > 1:
2726 d = self.__dict__.copy()
2731 def __setstate__(self, p):
2732 if not hasattr(self,
'this'):
2734 if isinstance(p, tuple):
2736 self.__dict__.update(d)
2737 return self._set_from_binary(p)
2739 __swig_destroy__ = _IMP_atom.delete_Dihedral
2742 _IMP_atom.Dihedral_swigregister(Dihedral)
2744 r"""Proxy of C++ IMP::atom::SmoothingFunction class."""
2746 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2748 def __init__(self, *args, **kwargs):
2749 raise AttributeError(
"No constructor defined - class is abstract")
2751 def __call__(self, *args):
2753 __call__(SmoothingFunction self, double score, double distance) -> double
2754 __call__(SmoothingFunction self, double score, double deriv, double distance) -> IMP::DerivativePair
2756 return _IMP_atom.SmoothingFunction___call__(self, *args)
2757 __swig_destroy__ = _IMP_atom.delete_SmoothingFunction
2760 r"""__str__(SmoothingFunction self) -> std::string"""
2761 return _IMP_atom.SmoothingFunction___str__(self)
2764 r"""__repr__(SmoothingFunction self) -> std::string"""
2765 return _IMP_atom.SmoothingFunction___repr__(self)
2769 return _object_cast_to_SmoothingFunction(o)
2773 _IMP_atom.SmoothingFunction_swigregister(SmoothingFunction)
2774 class ForceSwitch(SmoothingFunction):
2775 r"""Proxy of C++ IMP::atom::ForceSwitch class."""
2777 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2779 def __init__(self, min_distance, max_distance):
2780 r"""__init__(ForceSwitch self, double min_distance, double max_distance) -> ForceSwitch"""
2781 _IMP_atom.ForceSwitch_swiginit(self, _IMP_atom.new_ForceSwitch(min_distance, max_distance))
2783 def get_min_distance(self):
2784 r"""get_min_distance(ForceSwitch self) -> double"""
2785 return _IMP_atom.ForceSwitch_get_min_distance(self)
2787 def get_max_distance(self):
2788 r"""get_max_distance(ForceSwitch self) -> double"""
2789 return _IMP_atom.ForceSwitch_get_max_distance(self)
2791 def __call__(self, *args):
2793 __call__(ForceSwitch self, double score, double distance) -> double
2794 __call__(ForceSwitch self, double score, double deriv, double distance) -> IMP::DerivativePair
2796 return _IMP_atom.ForceSwitch___call__(self, *args)
2798 def get_version_info(self):
2799 r"""get_version_info(ForceSwitch self) -> VersionInfo"""
2800 return _IMP_atom.ForceSwitch_get_version_info(self)
2801 __swig_destroy__ = _IMP_atom.delete_ForceSwitch
2804 r"""__str__(ForceSwitch self) -> std::string"""
2805 return _IMP_atom.ForceSwitch___str__(self)
2808 r"""__repr__(ForceSwitch self) -> std::string"""
2809 return _IMP_atom.ForceSwitch___repr__(self)
2813 return _object_cast_to_ForceSwitch(o)
2818 min_distance = self.get_min_distance()
2819 max_distance = self.get_max_distance()
2820 dist_dif = max_distance - min_distance
2821 value_prefactor = 1.0 / (dist_dif * dist_dif * dist_dif)
2822 deriv_prefactor = 6.0 * value_prefactor
2823 def mid_range_score(d):
2824 x = max_distance - d
2825 return (value_prefactor * x * x *
2826 (max_distance + 2.0 * d - 3.0 * min_distance))
2827 def not_short_range_score(d):
2828 return jax.lax.cond(d > max_distance,
lambda d: 0.0,
2830 def jax_func(score, d):
2831 factor = jax.lax.cond(d <= min_distance,
lambda d: 1.0,
2832 not_short_range_score, d)
2833 return score * factor
2838 _IMP_atom.ForceSwitch_swigregister(ForceSwitch)
2840 r"""Proxy of C++ IMP::atom::AngleSingletonScore class."""
2842 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2844 def __init__(self, f):
2845 r"""__init__(AngleSingletonScore self, UnaryFunction f) -> AngleSingletonScore"""
2846 _IMP_atom.AngleSingletonScore_swiginit(self, _IMP_atom.new_AngleSingletonScore(f))
2848 def get_unary_function(self):
2849 r"""get_unary_function(AngleSingletonScore self) -> UnaryFunction"""
2850 return _IMP_atom.AngleSingletonScore_get_unary_function(self)
2852 def do_get_inputs(self, m, pis):
2853 r"""do_get_inputs(AngleSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2854 return _IMP_atom.AngleSingletonScore_do_get_inputs(self, m, pis)
2856 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
2857 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"""
2858 return _IMP_atom.AngleSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
2860 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
2861 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"""
2862 return _IMP_atom.AngleSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
2864 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
2865 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"""
2866 return _IMP_atom.AngleSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
2868 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
2869 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"""
2870 return _IMP_atom.AngleSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
2872 def get_version_info(self):
2873 r"""get_version_info(AngleSingletonScore self) -> VersionInfo"""
2874 return _IMP_atom.AngleSingletonScore_get_version_info(self)
2875 __swig_destroy__ = _IMP_atom.delete_AngleSingletonScore
2878 r"""__str__(AngleSingletonScore self) -> std::string"""
2879 return _IMP_atom.AngleSingletonScore___str__(self)
2882 r"""__repr__(AngleSingletonScore self) -> std::string"""
2883 return _IMP_atom.AngleSingletonScore___repr__(self)
2887 return _object_cast_to_AngleSingletonScore(o)
2890 def _get_jax(self, m, indexes):
2891 import jax.numpy
as jnp
2892 import IMP.core._jax_util
2893 from IMP.atom._jax_util
import _get_angles
2894 def score(jm, angles, uf):
2895 xyzs = jm[
'xyz'][angles.bonded_indexes]
2896 rij = xyzs[:,0] - xyzs[:,1]
2897 rkj = xyzs[:,2] - xyzs[:,1]
2898 angle = IMP.core._jax_util._angle(rij, rkj)
2899 angle_diff = IMP.core._jax_util._get_angle_difference(
2900 angle, angles.ideal)
2901 return uf(angles.stiffness * angle_diff)
2902 uf = self.get_unary_function().get_derived_object()
2903 f = functools.partial(score, angles=_get_angles(m, indexes),
2905 return self._wrap_jax(m, f)
2909 _IMP_atom.AngleSingletonScore_swigregister(AngleSingletonScore)
2911 r"""Proxy of C++ IMP::atom::BondEndpointsRefiner class."""
2913 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2916 r"""__init__(BondEndpointsRefiner self) -> BondEndpointsRefiner"""
2917 _IMP_atom.BondEndpointsRefiner_swiginit(self, _IMP_atom.new_BondEndpointsRefiner())
2919 def do_get_inputs(self, m, pis):
2920 r"""do_get_inputs(BondEndpointsRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2921 return _IMP_atom.BondEndpointsRefiner_do_get_inputs(self, m, pis)
2923 def get_version_info(self):
2924 r"""get_version_info(BondEndpointsRefiner self) -> VersionInfo"""
2925 return _IMP_atom.BondEndpointsRefiner_get_version_info(self)
2926 __swig_destroy__ = _IMP_atom.delete_BondEndpointsRefiner
2929 r"""__str__(BondEndpointsRefiner self) -> std::string"""
2930 return _IMP_atom.BondEndpointsRefiner___str__(self)
2933 r"""__repr__(BondEndpointsRefiner self) -> std::string"""
2934 return _IMP_atom.BondEndpointsRefiner___repr__(self)
2938 return _object_cast_to_BondEndpointsRefiner(o)
2942 _IMP_atom.BondEndpointsRefiner_swigregister(BondEndpointsRefiner)
2944 r"""Proxy of C++ IMP::atom::BondPairContainer class."""
2946 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2948 def __init__(self, sc):
2949 r"""__init__(BondPairContainer self, SingletonContainer sc) -> BondPairContainer"""
2950 _IMP_atom.BondPairContainer_swiginit(self, _IMP_atom.new_BondPairContainer(sc))
2952 def do_get_inputs(self):
2953 r"""do_get_inputs(BondPairContainer self) -> IMP::ModelObjectsTemp"""
2954 return _IMP_atom.BondPairContainer_do_get_inputs(self)
2956 def do_apply(self, sm):
2957 r"""do_apply(BondPairContainer self, PairModifier sm)"""
2958 return _IMP_atom.BondPairContainer_do_apply(self, sm)
2960 def do_apply_moved(self, sm, moved_pis, reset_pis):
2961 r"""do_apply_moved(BondPairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
2962 return _IMP_atom.BondPairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
2964 def get_version_info(self):
2965 r"""get_version_info(BondPairContainer self) -> VersionInfo"""
2966 return _IMP_atom.BondPairContainer_get_version_info(self)
2967 __swig_destroy__ = _IMP_atom.delete_BondPairContainer
2970 r"""__str__(BondPairContainer self) -> std::string"""
2971 return _IMP_atom.BondPairContainer___str__(self)
2974 r"""__repr__(BondPairContainer self) -> std::string"""
2975 return _IMP_atom.BondPairContainer___repr__(self)
2979 return _object_cast_to_BondPairContainer(o)
2983 _IMP_atom.BondPairContainer_swigregister(BondPairContainer)
2985 r"""Proxy of C++ IMP::atom::BondSingletonScore class."""
2987 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2989 def __init__(self, f):
2990 r"""__init__(BondSingletonScore self, UnaryFunction f) -> BondSingletonScore"""
2991 _IMP_atom.BondSingletonScore_swiginit(self, _IMP_atom.new_BondSingletonScore(f))
2993 def get_unary_function(self):
2994 r"""get_unary_function(BondSingletonScore self) -> UnaryFunction"""
2995 return _IMP_atom.BondSingletonScore_get_unary_function(self)
2997 def do_get_inputs(self, m, pis):
2998 r"""do_get_inputs(BondSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2999 return _IMP_atom.BondSingletonScore_do_get_inputs(self, m, pis)
3001 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
3002 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"""
3003 return _IMP_atom.BondSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
3005 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
3006 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"""
3007 return _IMP_atom.BondSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
3009 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
3010 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"""
3011 return _IMP_atom.BondSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
3013 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
3014 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"""
3015 return _IMP_atom.BondSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
3017 def get_version_info(self):
3018 r"""get_version_info(BondSingletonScore self) -> VersionInfo"""
3019 return _IMP_atom.BondSingletonScore_get_version_info(self)
3020 __swig_destroy__ = _IMP_atom.delete_BondSingletonScore
3023 r"""__str__(BondSingletonScore self) -> std::string"""
3024 return _IMP_atom.BondSingletonScore___str__(self)
3027 r"""__repr__(BondSingletonScore self) -> std::string"""
3028 return _IMP_atom.BondSingletonScore___repr__(self)
3032 return _object_cast_to_BondSingletonScore(o)
3035 def _get_jax(self, m, indexes):
3036 import jax.numpy
as jnp
3037 from IMP.atom._jax_util
import _get_bonds
3038 def score(jm, bonds, uf):
3039 xyzs = jm[
'xyz'][bonds.bonded_indexes]
3040 diff = xyzs[:,0] - xyzs[:,1]
3041 drs = jnp.linalg.norm(diff, axis=1)
3042 return uf(bonds.stiffness * (drs - bonds.length))
3043 uf = self.get_unary_function().get_derived_object()
3044 f = functools.partial(score, bonds=_get_bonds(m, indexes),
3046 return self._wrap_jax(m, f)
3050 _IMP_atom.BondSingletonScore_swigregister(BondSingletonScore)
3052 r"""Proxy of C++ IMP::atom::DihedralSingletonScore class."""
3054 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3057 r"""__init__(DihedralSingletonScore self) -> DihedralSingletonScore"""
3058 _IMP_atom.DihedralSingletonScore_swiginit(self, _IMP_atom.new_DihedralSingletonScore())
3060 def do_get_inputs(self, m, pis):
3061 r"""do_get_inputs(DihedralSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3062 return _IMP_atom.DihedralSingletonScore_do_get_inputs(self, m, pis)
3064 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
3065 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"""
3066 return _IMP_atom.DihedralSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
3068 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
3069 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"""
3070 return _IMP_atom.DihedralSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
3072 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
3073 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"""
3074 return _IMP_atom.DihedralSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
3076 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
3077 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"""
3078 return _IMP_atom.DihedralSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
3080 def get_version_info(self):
3081 r"""get_version_info(DihedralSingletonScore self) -> VersionInfo"""
3082 return _IMP_atom.DihedralSingletonScore_get_version_info(self)
3083 __swig_destroy__ = _IMP_atom.delete_DihedralSingletonScore
3086 r"""__str__(DihedralSingletonScore self) -> std::string"""
3087 return _IMP_atom.DihedralSingletonScore___str__(self)
3090 r"""__repr__(DihedralSingletonScore self) -> std::string"""
3091 return _IMP_atom.DihedralSingletonScore___repr__(self)
3095 return _object_cast_to_DihedralSingletonScore(o)
3098 def _get_as_binary(self):
3099 r"""_get_as_binary(DihedralSingletonScore self) -> PyObject *"""
3100 return _IMP_atom.DihedralSingletonScore__get_as_binary(self)
3102 def _set_from_binary(self, p):
3103 r"""_set_from_binary(DihedralSingletonScore self, PyObject * p)"""
3104 return _IMP_atom.DihedralSingletonScore__set_from_binary(self, p)
3106 def __getstate__(self):
3107 p = self._get_as_binary()
3108 if len(self.__dict__) > 1:
3109 d = self.__dict__.copy()
3114 def __setstate__(self, p):
3115 if not hasattr(self,
'this'):
3117 if isinstance(p, tuple):
3119 self.__dict__.update(d)
3120 return self._set_from_binary(p)
3123 def _get_jax(self, m, indexes):
3124 import jax.numpy
as jnp
3125 import IMP.core._jax_util
3126 from IMP.atom._jax_util
import _get_dihedrals
3127 def score(jm, dihedrals):
3128 xyzs = jm[
'xyz'][dihedrals.bonded_indexes]
3129 rij = xyzs[:,0] - xyzs[:,1]
3130 rkj = xyzs[:,2] - xyzs[:,1]
3131 rkl = xyzs[:,2] - xyzs[:,3]
3132 dihedral = IMP.core._jax_util._dihedral(rij, rkj, rkl)
3133 b = 0.5 * dihedrals.stiffness * jnp.abs(dihedrals.stiffness)
3134 return jnp.abs(b) + b * jnp.cos(dihedral * dihedrals.multiplicity
3136 f = functools.partial(score, dihedrals=_get_dihedrals(m, indexes))
3137 return self._wrap_jax(m, f)
3141 _IMP_atom.DihedralSingletonScore_swigregister(DihedralSingletonScore)
3143 r"""Proxy of C++ IMP::atom::ImproperSingletonScore class."""
3145 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3147 def __init__(self, f):
3148 r"""__init__(ImproperSingletonScore self, UnaryFunction f) -> ImproperSingletonScore"""
3149 _IMP_atom.ImproperSingletonScore_swiginit(self, _IMP_atom.new_ImproperSingletonScore(f))
3151 def get_unary_function(self):
3152 r"""get_unary_function(ImproperSingletonScore self) -> UnaryFunction"""
3153 return _IMP_atom.ImproperSingletonScore_get_unary_function(self)
3155 def do_get_inputs(self, m, pis):
3156 r"""do_get_inputs(ImproperSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3157 return _IMP_atom.ImproperSingletonScore_do_get_inputs(self, m, pis)
3159 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
3160 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"""
3161 return _IMP_atom.ImproperSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
3163 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
3164 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"""
3165 return _IMP_atom.ImproperSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
3167 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
3168 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"""
3169 return _IMP_atom.ImproperSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
3171 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
3172 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"""
3173 return _IMP_atom.ImproperSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
3175 def get_version_info(self):
3176 r"""get_version_info(ImproperSingletonScore self) -> VersionInfo"""
3177 return _IMP_atom.ImproperSingletonScore_get_version_info(self)
3178 __swig_destroy__ = _IMP_atom.delete_ImproperSingletonScore
3181 r"""__str__(ImproperSingletonScore self) -> std::string"""
3182 return _IMP_atom.ImproperSingletonScore___str__(self)
3185 r"""__repr__(ImproperSingletonScore self) -> std::string"""
3186 return _IMP_atom.ImproperSingletonScore___repr__(self)
3190 return _object_cast_to_ImproperSingletonScore(o)
3193 def _get_jax(self, m, indexes):
3194 import jax.numpy
as jnp
3195 import IMP.core._jax_util
3196 from IMP.atom._jax_util
import _get_dihedrals
3197 def score(jm, dihedrals, uf):
3198 xyzs = jm[
'xyz'][dihedrals.bonded_indexes]
3199 rij = xyzs[:,0] - xyzs[:,1]
3200 rkj = xyzs[:,2] - xyzs[:,1]
3201 rkl = xyzs[:,2] - xyzs[:,3]
3202 dihedral = IMP.core._jax_util._dihedral(rij, rkj, rkl)
3203 angle_diff = IMP.core._jax_util._get_angle_difference(
3204 dihedral, dihedrals.ideal)
3205 return uf(dihedrals.stiffness * angle_diff)
3206 uf = self.get_unary_function().get_derived_object()
3207 f = functools.partial(score, dihedrals=_get_dihedrals(m, indexes),
3209 return self._wrap_jax(m, f)
3213 _IMP_atom.ImproperSingletonScore_swigregister(ImproperSingletonScore)
3215 r"""Proxy of C++ IMP::atom::CenterOfMass class."""
3217 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3219 def get_constraint(self):
3220 r"""get_constraint(CenterOfMass self) -> Constraint"""
3221 return _IMP_atom.CenterOfMass_get_constraint(self)
3224 r"""get_mass(CenterOfMass self) -> IMP::Float"""
3225 return _IMP_atom.CenterOfMass_get_mass(self)
3227 def get_coordinate(self, i):
3228 r"""get_coordinate(CenterOfMass self, int i) -> IMP::Float"""
3229 return _IMP_atom.CenterOfMass_get_coordinate(self, i)
3231 def get_coordinates(self):
3232 r"""get_coordinates(CenterOfMass self) -> Vector3D"""
3233 return _IMP_atom.CenterOfMass_get_coordinates(self)
3235 def __init__(self, *args):
3237 __init__(CenterOfMass self) -> CenterOfMass
3238 __init__(CenterOfMass self, Model m, ParticleIndex id) -> CenterOfMass
3239 __init__(CenterOfMass self, _ParticleAdaptor d) -> CenterOfMass
3241 _IMP_atom.CenterOfMass_swiginit(self, _IMP_atom.new_CenterOfMass(*args))
3243 def show(self, *args):
3244 r"""show(CenterOfMass self, _ostream out=std::cout)"""
3245 return _IMP_atom.CenterOfMass_show(self, *args)
3248 def setup_particle(*args):
3250 setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor members) -> CenterOfMass
3251 setup_particle(_ParticleAdaptor pa, _ParticleIndexesAdaptor members) -> CenterOfMass
3252 setup_particle(Model m, ParticleIndex pi, Refiner refiner) -> CenterOfMass
3253 setup_particle(_ParticleAdaptor pa, Refiner refiner) -> CenterOfMass
3255 return _IMP_atom.CenterOfMass_setup_particle(*args)
3258 def teardown_particle(com):
3259 r"""teardown_particle(CenterOfMass com)"""
3260 return _IMP_atom.CenterOfMass_teardown_particle(com)
3263 def get_is_setup(*args):
3265 get_is_setup(_ParticleAdaptor p) -> bool
3266 get_is_setup(Model m, ParticleIndex pi) -> bool
3268 return _IMP_atom.CenterOfMass_get_is_setup(*args)
3270 def add_attribute(self, *args):
3272 add_attribute(CenterOfMass self, FloatKey k, IMP::Float v, bool opt)
3273 add_attribute(CenterOfMass self, FloatKey a0, IMP::Float a1)
3274 add_attribute(CenterOfMass self, IntKey a0, IMP::Int a1)
3275 add_attribute(CenterOfMass self, FloatsKey a0, IMP::Floats a1)
3276 add_attribute(CenterOfMass self, IntsKey a0, IMP::Ints a1)
3277 add_attribute(CenterOfMass self, StringKey a0, IMP::String a1)
3278 add_attribute(CenterOfMass self, ParticleIndexKey a0, Particle a1)
3279 add_attribute(CenterOfMass self, ObjectKey a0, Object a1)
3280 add_attribute(CenterOfMass self, SparseFloatKey a0, IMP::Float a1)
3281 add_attribute(CenterOfMass self, SparseIntKey a0, IMP::Int a1)
3282 add_attribute(CenterOfMass self, SparseStringKey a0, IMP::String a1)
3283 add_attribute(CenterOfMass self, SparseParticleIndexKey a0, ParticleIndex a1)
3285 return _IMP_atom.CenterOfMass_add_attribute(self, *args)
3287 def get_value(self, *args):
3289 get_value(CenterOfMass self, FloatKey a0) -> IMP::Float
3290 get_value(CenterOfMass self, IntKey a0) -> IMP::Int
3291 get_value(CenterOfMass self, FloatsKey a0) -> IMP::Floats
3292 get_value(CenterOfMass self, IntsKey a0) -> IMP::Ints
3293 get_value(CenterOfMass self, StringKey a0) -> IMP::String
3294 get_value(CenterOfMass self, ParticleIndexKey a0) -> Particle
3295 get_value(CenterOfMass self, ObjectKey a0) -> Object
3296 get_value(CenterOfMass self, SparseFloatKey a0) -> IMP::Float
3297 get_value(CenterOfMass self, SparseIntKey a0) -> IMP::Int
3298 get_value(CenterOfMass self, SparseStringKey a0) -> IMP::String
3299 get_value(CenterOfMass self, SparseParticleIndexKey a0) -> ParticleIndex
3301 return _IMP_atom.CenterOfMass_get_value(self, *args)
3303 def set_value(self, *args):
3305 set_value(CenterOfMass self, FloatKey a0, IMP::Float a1)
3306 set_value(CenterOfMass self, IntKey a0, IMP::Int a1)
3307 set_value(CenterOfMass self, FloatsKey a0, IMP::Floats a1)
3308 set_value(CenterOfMass self, IntsKey a0, IMP::Ints a1)
3309 set_value(CenterOfMass self, StringKey a0, IMP::String a1)
3310 set_value(CenterOfMass self, ParticleIndexKey a0, Particle a1)
3311 set_value(CenterOfMass self, ObjectKey a0, Object a1)
3312 set_value(CenterOfMass self, SparseFloatKey a0, IMP::Float a1)
3313 set_value(CenterOfMass self, SparseIntKey a0, IMP::Int a1)
3314 set_value(CenterOfMass self, SparseStringKey a0, IMP::String a1)
3315 set_value(CenterOfMass self, SparseParticleIndexKey a0, ParticleIndex a1)
3317 return _IMP_atom.CenterOfMass_set_value(self, *args)
3319 def remove_attribute(self, *args):
3321 remove_attribute(CenterOfMass self, FloatKey a0)
3322 remove_attribute(CenterOfMass self, IntKey a0)
3323 remove_attribute(CenterOfMass self, FloatsKey a0)
3324 remove_attribute(CenterOfMass self, IntsKey a0)
3325 remove_attribute(CenterOfMass self, StringKey a0)
3326 remove_attribute(CenterOfMass self, ParticleIndexKey a0)
3327 remove_attribute(CenterOfMass self, ObjectKey a0)
3328 remove_attribute(CenterOfMass self, SparseFloatKey a0)
3329 remove_attribute(CenterOfMass self, SparseIntKey a0)
3330 remove_attribute(CenterOfMass self, SparseStringKey a0)
3331 remove_attribute(CenterOfMass self, SparseParticleIndexKey a0)
3333 return _IMP_atom.CenterOfMass_remove_attribute(self, *args)
3335 def has_attribute(self, *args):
3337 has_attribute(CenterOfMass self, FloatKey a0) -> bool
3338 has_attribute(CenterOfMass self, IntKey a0) -> bool
3339 has_attribute(CenterOfMass self, FloatsKey a0) -> bool
3340 has_attribute(CenterOfMass self, IntsKey a0) -> bool
3341 has_attribute(CenterOfMass self, StringKey a0) -> bool
3342 has_attribute(CenterOfMass self, ParticleIndexKey a0) -> bool
3343 has_attribute(CenterOfMass self, ObjectKey a0) -> bool
3344 has_attribute(CenterOfMass self, SparseFloatKey a0) -> bool
3345 has_attribute(CenterOfMass self, SparseIntKey a0) -> bool
3346 has_attribute(CenterOfMass self, SparseStringKey a0) -> bool
3347 has_attribute(CenterOfMass self, SparseParticleIndexKey a0) -> bool
3349 return _IMP_atom.CenterOfMass_has_attribute(self, *args)
3351 def get_derivative(self, a0):
3352 r"""get_derivative(CenterOfMass self, FloatKey a0) -> double"""
3353 return _IMP_atom.CenterOfMass_get_derivative(self, a0)
3356 r"""get_name(CenterOfMass self) -> std::string"""
3357 return _IMP_atom.CenterOfMass_get_name(self)
3359 def clear_caches(self):
3360 r"""clear_caches(CenterOfMass self)"""
3361 return _IMP_atom.CenterOfMass_clear_caches(self)
3363 def set_name(self, a0):
3364 r"""set_name(CenterOfMass self, std::string a0)"""
3365 return _IMP_atom.CenterOfMass_set_name(self, a0)
3368 r"""set_check_level(CenterOfMass self, IMP::CheckLevel a0)"""
3369 return _IMP_atom.CenterOfMass_set_check_level(self, a0)
3371 def add_to_derivative(self, a0, a1, a2):
3372 r"""add_to_derivative(CenterOfMass self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
3373 return _IMP_atom.CenterOfMass_add_to_derivative(self, a0, a1, a2)
3375 def set_is_optimized(self, a0, a1):
3376 r"""set_is_optimized(CenterOfMass self, FloatKey a0, bool a1)"""
3377 return _IMP_atom.CenterOfMass_set_is_optimized(self, a0, a1)
3379 def get_is_optimized(self, a0):
3380 r"""get_is_optimized(CenterOfMass self, FloatKey a0) -> bool"""
3381 return _IMP_atom.CenterOfMass_get_is_optimized(self, a0)
3384 r"""get_check_level(CenterOfMass self) -> IMP::CheckLevel"""
3385 return _IMP_atom.CenterOfMass_get_check_level(self)
3387 def __eq__(self, *args):
3389 __eq__(CenterOfMass self, CenterOfMass o) -> bool
3390 __eq__(CenterOfMass self, Particle d) -> bool
3392 return _IMP_atom.CenterOfMass___eq__(self, *args)
3394 def __ne__(self, *args):
3396 __ne__(CenterOfMass self, CenterOfMass o) -> bool
3397 __ne__(CenterOfMass self, Particle d) -> bool
3399 return _IMP_atom.CenterOfMass___ne__(self, *args)
3401 def __le__(self, *args):
3403 __le__(CenterOfMass self, CenterOfMass o) -> bool
3404 __le__(CenterOfMass self, Particle d) -> bool
3406 return _IMP_atom.CenterOfMass___le__(self, *args)
3408 def __lt__(self, *args):
3410 __lt__(CenterOfMass self, CenterOfMass o) -> bool
3411 __lt__(CenterOfMass self, Particle d) -> bool
3413 return _IMP_atom.CenterOfMass___lt__(self, *args)
3415 def __ge__(self, *args):
3417 __ge__(CenterOfMass self, CenterOfMass o) -> bool
3418 __ge__(CenterOfMass self, Particle d) -> bool
3420 return _IMP_atom.CenterOfMass___ge__(self, *args)
3422 def __gt__(self, *args):
3424 __gt__(CenterOfMass self, CenterOfMass o) -> bool
3425 __gt__(CenterOfMass self, Particle d) -> bool
3427 return _IMP_atom.CenterOfMass___gt__(self, *args)
3430 r"""__hash__(CenterOfMass self) -> std::size_t"""
3431 return _IMP_atom.CenterOfMass___hash__(self)
3434 r"""__str__(CenterOfMass self) -> std::string"""
3435 return _IMP_atom.CenterOfMass___str__(self)
3438 r"""__repr__(CenterOfMass self) -> std::string"""
3439 return _IMP_atom.CenterOfMass___repr__(self)
3441 def _get_as_binary(self):
3442 r"""_get_as_binary(CenterOfMass self) -> PyObject *"""
3443 return _IMP_atom.CenterOfMass__get_as_binary(self)
3445 def _set_from_binary(self, p):
3446 r"""_set_from_binary(CenterOfMass self, PyObject * p)"""
3447 return _IMP_atom.CenterOfMass__set_from_binary(self, p)
3449 def __getstate__(self):
3450 p = self._get_as_binary()
3451 if len(self.__dict__) > 1:
3452 d = self.__dict__.copy()
3457 def __setstate__(self, p):
3458 if not hasattr(self,
'this'):
3460 if isinstance(p, tuple):
3462 self.__dict__.update(d)
3463 return self._set_from_binary(p)
3465 __swig_destroy__ = _IMP_atom.delete_CenterOfMass
3468 _IMP_atom.CenterOfMass_swigregister(CenterOfMass)
3470 r"""Proxy of C++ IMP::atom::CoverBond class."""
3472 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3475 r"""__init__(CoverBond self) -> CoverBond"""
3476 _IMP_atom.CoverBond_swiginit(self, _IMP_atom.new_CoverBond())
3478 def do_get_inputs(self, m, pis):
3479 r"""do_get_inputs(CoverBond self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3480 return _IMP_atom.CoverBond_do_get_inputs(self, m, pis)
3482 def do_get_outputs(self, m, pis):
3483 r"""do_get_outputs(CoverBond self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3484 return _IMP_atom.CoverBond_do_get_outputs(self, m, pis)
3486 def get_version_info(self):
3487 r"""get_version_info(CoverBond self) -> VersionInfo"""
3488 return _IMP_atom.CoverBond_get_version_info(self)
3489 __swig_destroy__ = _IMP_atom.delete_CoverBond
3492 r"""__str__(CoverBond self) -> std::string"""
3493 return _IMP_atom.CoverBond___str__(self)
3496 r"""__repr__(CoverBond self) -> std::string"""
3497 return _IMP_atom.CoverBond___repr__(self)
3501 return _object_cast_to_CoverBond(o)
3505 _IMP_atom.CoverBond_swigregister(CoverBond)
3507 r"""Proxy of C++ IMP::atom::Simulator class."""
3509 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3511 def __init__(self, *args):
3512 r"""__init__(Simulator self, Model m, std::string name="Simulator %1%", double wave_factor=1.0) -> Simulator"""
3513 if self.__class__ == Simulator:
3517 _IMP_atom.Simulator_swiginit(self, _IMP_atom.new_Simulator(_self, *args))
3519 if self.__class__ != Simulator:
3520 _director_objects.register(self)
3525 def simulate(self, time_in_fs):
3526 r"""simulate(Simulator self, double time_in_fs) -> double"""
3527 return _IMP_atom.Simulator_simulate(self, time_in_fs)
3529 def simulate_wave(self, time_in_fs, max_time_step_factor=10.0, base=1.5):
3530 r"""simulate_wave(Simulator self, double time_in_fs, double max_time_step_factor=10.0, double base=1.5) -> double"""
3531 return _IMP_atom.Simulator_simulate_wave(self, time_in_fs, max_time_step_factor, base)
3533 def get_temperature(self):
3534 r"""get_temperature(Simulator self) -> double"""
3535 return _IMP_atom.Simulator_get_temperature(self)
3537 def set_temperature(self, d):
3538 r"""set_temperature(Simulator self, double d)"""
3539 return _IMP_atom.Simulator_set_temperature(self, d)
3541 def set_maximum_time_step(self, ts):
3542 r"""set_maximum_time_step(Simulator self, double ts)"""
3543 return _IMP_atom.Simulator_set_maximum_time_step(self, ts)
3545 def get_maximum_time_step(self):
3546 r"""get_maximum_time_step(Simulator self) -> double"""
3547 return _IMP_atom.Simulator_get_maximum_time_step(self)
3549 def get_last_time_step(self):
3550 r"""get_last_time_step(Simulator self) -> double"""
3551 return _IMP_atom.Simulator_get_last_time_step(self)
3553 def set_time_step(self, ts):
3554 r"""set_time_step(Simulator self, double ts)"""
3555 return _IMP_atom.Simulator_set_time_step(self, ts)
3558 r"""get_kt(Simulator self) -> double"""
3559 return _IMP_atom.Simulator_get_kt(self)
3561 def get_current_time(self):
3562 r"""get_current_time(Simulator self) -> double"""
3563 return _IMP_atom.Simulator_get_current_time(self)
3565 def set_current_time(self, ct):
3566 r"""set_current_time(Simulator self, double ct)"""
3567 return _IMP_atom.Simulator_set_current_time(self, ct)
3569 def get_simulation_particles(self):
3570 r"""get_simulation_particles(Simulator self) -> IMP::ParticlesTemp"""
3571 return _IMP_atom.Simulator_get_simulation_particles(self)
3573 def get_simulation_particle_indexes(self):
3574 r"""get_simulation_particle_indexes(Simulator self) -> IMP::ParticleIndexes"""
3575 return _IMP_atom.Simulator_get_simulation_particle_indexes(self)
3576 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)
3577 def __set_particles(self, obj): IMP._list_util.set_varlist(self.particles, obj)
3578 def __del_particles(self): IMP._list_util.del_varlist(self.particles)
3579 particles = property(__get_particles, __set_particles, __del_particles, doc=
"List of ##ucnames")
3581 def remove_particle(self, d):
3582 r"""remove_particle(Simulator self, Particle d)"""
3583 return _IMP_atom.Simulator_remove_particle(self, d)
3585 def _python_index_particle(self, d, start, stop):
3586 r"""_python_index_particle(Simulator self, Particle d, unsigned int start, unsigned int stop) -> unsigned int"""
3587 return _IMP_atom.Simulator__python_index_particle(self, d, start, stop)
3589 def remove_particles(self, d):
3590 r"""remove_particles(Simulator self, IMP::Particles const & d)"""
3591 return _IMP_atom.Simulator_remove_particles(self, d)
3593 def set_particles(self, ps):
3594 r"""set_particles(Simulator self, IMP::Particles const & ps)"""
3595 return _IMP_atom.Simulator_set_particles(self, ps)
3597 def set_particles_order(self, objs):
3598 r"""set_particles_order(Simulator self, IMP::Particles const & objs)"""
3599 return _IMP_atom.Simulator_set_particles_order(self, objs)
3602 r"""add_particle(Simulator self, Particle obj) -> unsigned int"""
3603 return _IMP_atom.Simulator_add_particle(self, obj)
3606 r"""add_particles(Simulator self, IMP::Particles const & objs)"""
3607 return _IMP_atom.Simulator_add_particles(self, objs)
3609 def clear_particles(self):
3610 r"""clear_particles(Simulator self)"""
3611 return _IMP_atom.Simulator_clear_particles(self)
3613 def get_number_of_particles(self):
3614 r"""get_number_of_particles(Simulator self) -> unsigned int"""
3615 return _IMP_atom.Simulator_get_number_of_particles(self)
3617 def get_has_particles(self):
3618 r"""get_has_particles(Simulator self) -> bool"""
3619 return _IMP_atom.Simulator_get_has_particles(self)
3621 def get_particle(self, i):
3622 r"""get_particle(Simulator self, unsigned int i) -> Particle"""
3623 return _IMP_atom.Simulator_get_particle(self, i)
3626 r"""get_particles(Simulator self) -> IMP::Particles"""
3627 return _IMP_atom.Simulator_get_particles(self)
3629 def erase_particle(self, i):
3630 r"""erase_particle(Simulator self, unsigned int i)"""
3631 return _IMP_atom.Simulator_erase_particle(self, i)
3633 def reserve_particles(self, sz):
3634 r"""reserve_particles(Simulator self, unsigned int sz)"""
3635 return _IMP_atom.Simulator_reserve_particles(self, sz)
3637 def do_optimize(self, max_steps):
3638 r"""do_optimize(Simulator self, unsigned int max_steps) -> IMP::Float"""
3639 return _IMP_atom.Simulator_do_optimize(self, max_steps)
3641 def setup(self, arg0):
3642 r"""setup(Simulator self, IMP::ParticleIndexes const & arg0)"""
3643 return _IMP_atom.Simulator_setup(self, arg0)
3645 def do_step(self, sc, dt):
3646 r"""do_step(Simulator self, IMP::ParticleIndexes const & sc, double dt) -> double"""
3647 return _IMP_atom.Simulator_do_step(self, sc, dt)
3649 def get_is_simulation_particle(self, p):
3650 r"""get_is_simulation_particle(Simulator self, ParticleIndex p) -> bool"""
3651 return _IMP_atom.Simulator_get_is_simulation_particle(self, p)
3653 def do_simulate(self, time):
3654 r"""do_simulate(Simulator self, double time) -> double"""
3655 return _IMP_atom.Simulator_do_simulate(self, time)
3657 def do_simulate_wave(self, time_in_fs, max_time_step_factor=10.0, base=1.5):
3658 r"""do_simulate_wave(Simulator self, double time_in_fs, double max_time_step_factor=10.0, double base=1.5) -> double"""
3659 return _IMP_atom.Simulator_do_simulate_wave(self, time_in_fs, max_time_step_factor, base)
3662 r"""__str__(Simulator self) -> std::string"""
3663 return _IMP_atom.Simulator___str__(self)
3666 r"""__repr__(Simulator self) -> std::string"""
3667 return _IMP_atom.Simulator___repr__(self)
3671 return _object_cast_to_Simulator(o)
3674 def do_show(self, out):
3679 return _object_cast_to_Simulator(o)
3681 __swig_destroy__ = _IMP_atom.delete_Simulator
3682 def __disown__(self):
3684 _IMP_atom.disown_Simulator(self)
3685 return weakref.proxy(self)
3687 def do_destroy(self):
3688 r"""do_destroy(Simulator self)"""
3689 return _IMP_atom.Simulator_do_destroy(self)
3691 def handle_set_has_required_score_states(self, arg0):
3692 r"""handle_set_has_required_score_states(Simulator self, bool arg0)"""
3693 return _IMP_atom.Simulator_handle_set_has_required_score_states(self, arg0)
3695 def do_get_inputs(self):
3696 r"""do_get_inputs(Simulator self) -> IMP::ModelObjectsTemp"""
3697 return _IMP_atom.Simulator_do_get_inputs(self)
3699 def do_get_outputs(self):
3700 r"""do_get_outputs(Simulator self) -> IMP::ModelObjectsTemp"""
3701 return _IMP_atom.Simulator_do_get_outputs(self)
3703 def do_get_interactions(self):
3704 r"""do_get_interactions(Simulator self) -> IMP::ModelObjectsTemps"""
3705 return _IMP_atom.Simulator_do_get_interactions(self)
3708 _IMP_atom.Simulator_swigregister(Simulator)
3709 IMP_ATOM_DEFAULT_BD_RANDOM_POOL_SIZE = _IMP_atom.IMP_ATOM_DEFAULT_BD_RANDOM_POOL_SIZE
3711 class BrownianDynamics(Simulator):
3712 r"""Proxy of C++ IMP::atom::BrownianDynamics class."""
3714 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3716 def __init__(self, *args):
3717 r"""__init__(BrownianDynamics self, Model m, std::string name="BrownianDynamics%1%", double wave_factor=1.0, unsigned int random_pool_size=10000) -> BrownianDynamics"""
3718 _IMP_atom.BrownianDynamics_swiginit(self, _IMP_atom.new_BrownianDynamics(*args))
3720 def set_maximum_move(self, ms_in_A):
3721 r"""set_maximum_move(BrownianDynamics self, double ms_in_A)"""
3722 return _IMP_atom.BrownianDynamics_set_maximum_move(self, ms_in_A)
3724 def set_use_stochastic_runge_kutta(self, tf):
3725 r"""set_use_stochastic_runge_kutta(BrownianDynamics self, bool tf)"""
3726 return _IMP_atom.BrownianDynamics_set_use_stochastic_runge_kutta(self, tf)
3728 def get_version_info(self):
3729 r"""get_version_info(BrownianDynamics self) -> VersionInfo"""
3730 return _IMP_atom.BrownianDynamics_get_version_info(self)
3731 __swig_destroy__ = _IMP_atom.delete_BrownianDynamics
3734 r"""__str__(BrownianDynamics self) -> std::string"""
3735 return _IMP_atom.BrownianDynamics___str__(self)
3738 r"""__repr__(BrownianDynamics self) -> std::string"""
3739 return _IMP_atom.BrownianDynamics___repr__(self)
3743 return _object_cast_to_BrownianDynamics(o)
3747 _IMP_atom.BrownianDynamics_swigregister(BrownianDynamics)
3750 r"""get_maximum_time_step_estimate(BrownianDynamics bd) -> double"""
3751 return _IMP_atom.get_maximum_time_step_estimate(bd)
3753 def get_harmonic_sigma(D, f):
3754 r"""get_harmonic_sigma(double D, double f) -> double"""
3755 return _IMP_atom.get_harmonic_sigma(D, f)
3756 class BrownianDynamicsTAMD(BrownianDynamics):
3757 r"""Proxy of C++ IMP::atom::BrownianDynamicsTAMD class."""
3759 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3761 def __init__(self, *args):
3762 r"""__init__(BrownianDynamicsTAMD self, Model m, std::string name="BrownianDynamicsTAMD%1%", double wave_factor=1.0) -> BrownianDynamicsTAMD"""
3763 _IMP_atom.BrownianDynamicsTAMD_swiginit(self, _IMP_atom.new_BrownianDynamicsTAMD(*args))
3766 r"""__str__(BrownianDynamicsTAMD self) -> std::string"""
3767 return _IMP_atom.BrownianDynamicsTAMD___str__(self)
3770 r"""__repr__(BrownianDynamicsTAMD self) -> std::string"""
3771 return _IMP_atom.BrownianDynamicsTAMD___repr__(self)
3775 return _object_cast_to_BrownianDynamicsTAMD(o)
3777 __swig_destroy__ = _IMP_atom.delete_BrownianDynamicsTAMD
3780 _IMP_atom.BrownianDynamicsTAMD_swigregister(BrownianDynamicsTAMD)
3782 r"""Proxy of C++ IMP::atom::Diffusion class."""
3784 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3786 def __init__(self, *args):
3788 __init__(Diffusion self) -> Diffusion
3789 __init__(Diffusion self, Model m, ParticleIndex id) -> Diffusion
3790 __init__(Diffusion self, _ParticleAdaptor d) -> Diffusion
3792 _IMP_atom.Diffusion_swiginit(self, _IMP_atom.new_Diffusion(*args))
3794 def show(self, *args):
3795 r"""show(Diffusion self, _ostream out=std::cout)"""
3796 return _IMP_atom.Diffusion_show(self, *args)
3799 def setup_particle(*args):
3801 setup_particle(Model m, ParticleIndex pi, IMP::Float D) -> Diffusion
3802 setup_particle(_ParticleAdaptor pa, IMP::Float D) -> Diffusion
3803 setup_particle(Model m, ParticleIndex pi, Vector3D v, IMP::Float D) -> Diffusion
3804 setup_particle(_ParticleAdaptor pa, Vector3D v, IMP::Float D) -> Diffusion
3805 setup_particle(Model m, ParticleIndex pi) -> Diffusion
3806 setup_particle(_ParticleAdaptor pa) -> Diffusion
3808 return _IMP_atom.Diffusion_setup_particle(*args)
3811 def get_is_setup(*args):
3813 get_is_setup(_ParticleAdaptor p) -> bool
3814 get_is_setup(Model m, ParticleIndex p) -> bool
3816 return _IMP_atom.Diffusion_get_is_setup(*args)
3818 def set_diffusion_coefficient(self, d):
3819 r"""set_diffusion_coefficient(Diffusion self, double d)"""
3820 return _IMP_atom.Diffusion_set_diffusion_coefficient(self, d)
3823 r"""get_diffusion_coefficient(Diffusion self) -> double"""
3824 return _IMP_atom.Diffusion_get_diffusion_coefficient(self)
3827 def get_diffusion_coefficient_key():
3828 r"""get_diffusion_coefficient_key() -> FloatKey"""
3829 return _IMP_atom.Diffusion_get_diffusion_coefficient_key()
3831 def add_attribute(self, *args):
3833 add_attribute(Diffusion self, FloatKey k, IMP::Float v, bool opt)
3834 add_attribute(Diffusion self, FloatKey a0, IMP::Float a1)
3835 add_attribute(Diffusion self, IntKey a0, IMP::Int a1)
3836 add_attribute(Diffusion self, FloatsKey a0, IMP::Floats a1)
3837 add_attribute(Diffusion self, IntsKey a0, IMP::Ints a1)
3838 add_attribute(Diffusion self, StringKey a0, IMP::String a1)
3839 add_attribute(Diffusion self, ParticleIndexKey a0, Particle a1)
3840 add_attribute(Diffusion self, ObjectKey a0, Object a1)
3841 add_attribute(Diffusion self, SparseFloatKey a0, IMP::Float a1)
3842 add_attribute(Diffusion self, SparseIntKey a0, IMP::Int a1)
3843 add_attribute(Diffusion self, SparseStringKey a0, IMP::String a1)
3844 add_attribute(Diffusion self, SparseParticleIndexKey a0, ParticleIndex a1)
3846 return _IMP_atom.Diffusion_add_attribute(self, *args)
3848 def get_value(self, *args):
3850 get_value(Diffusion self, FloatKey a0) -> IMP::Float
3851 get_value(Diffusion self, IntKey a0) -> IMP::Int
3852 get_value(Diffusion self, FloatsKey a0) -> IMP::Floats
3853 get_value(Diffusion self, IntsKey a0) -> IMP::Ints
3854 get_value(Diffusion self, StringKey a0) -> IMP::String
3855 get_value(Diffusion self, ParticleIndexKey a0) -> Particle
3856 get_value(Diffusion self, ObjectKey a0) -> Object
3857 get_value(Diffusion self, SparseFloatKey a0) -> IMP::Float
3858 get_value(Diffusion self, SparseIntKey a0) -> IMP::Int
3859 get_value(Diffusion self, SparseStringKey a0) -> IMP::String
3860 get_value(Diffusion self, SparseParticleIndexKey a0) -> ParticleIndex
3862 return _IMP_atom.Diffusion_get_value(self, *args)
3864 def set_value(self, *args):
3866 set_value(Diffusion self, FloatKey a0, IMP::Float a1)
3867 set_value(Diffusion self, IntKey a0, IMP::Int a1)
3868 set_value(Diffusion self, FloatsKey a0, IMP::Floats a1)
3869 set_value(Diffusion self, IntsKey a0, IMP::Ints a1)
3870 set_value(Diffusion self, StringKey a0, IMP::String a1)
3871 set_value(Diffusion self, ParticleIndexKey a0, Particle a1)
3872 set_value(Diffusion self, ObjectKey a0, Object a1)
3873 set_value(Diffusion self, SparseFloatKey a0, IMP::Float a1)
3874 set_value(Diffusion self, SparseIntKey a0, IMP::Int a1)
3875 set_value(Diffusion self, SparseStringKey a0, IMP::String a1)
3876 set_value(Diffusion self, SparseParticleIndexKey a0, ParticleIndex a1)
3878 return _IMP_atom.Diffusion_set_value(self, *args)
3880 def remove_attribute(self, *args):
3882 remove_attribute(Diffusion self, FloatKey a0)
3883 remove_attribute(Diffusion self, IntKey a0)
3884 remove_attribute(Diffusion self, FloatsKey a0)
3885 remove_attribute(Diffusion self, IntsKey a0)
3886 remove_attribute(Diffusion self, StringKey a0)
3887 remove_attribute(Diffusion self, ParticleIndexKey a0)
3888 remove_attribute(Diffusion self, ObjectKey a0)
3889 remove_attribute(Diffusion self, SparseFloatKey a0)
3890 remove_attribute(Diffusion self, SparseIntKey a0)
3891 remove_attribute(Diffusion self, SparseStringKey a0)
3892 remove_attribute(Diffusion self, SparseParticleIndexKey a0)
3894 return _IMP_atom.Diffusion_remove_attribute(self, *args)
3896 def has_attribute(self, *args):
3898 has_attribute(Diffusion self, FloatKey a0) -> bool
3899 has_attribute(Diffusion self, IntKey a0) -> bool
3900 has_attribute(Diffusion self, FloatsKey a0) -> bool
3901 has_attribute(Diffusion self, IntsKey a0) -> bool
3902 has_attribute(Diffusion self, StringKey a0) -> bool
3903 has_attribute(Diffusion self, ParticleIndexKey a0) -> bool
3904 has_attribute(Diffusion self, ObjectKey a0) -> bool
3905 has_attribute(Diffusion self, SparseFloatKey a0) -> bool
3906 has_attribute(Diffusion self, SparseIntKey a0) -> bool
3907 has_attribute(Diffusion self, SparseStringKey a0) -> bool
3908 has_attribute(Diffusion self, SparseParticleIndexKey a0) -> bool
3910 return _IMP_atom.Diffusion_has_attribute(self, *args)
3912 def get_derivative(self, a0):
3913 r"""get_derivative(Diffusion self, FloatKey a0) -> double"""
3914 return _IMP_atom.Diffusion_get_derivative(self, a0)
3917 r"""get_name(Diffusion self) -> std::string"""
3918 return _IMP_atom.Diffusion_get_name(self)
3920 def clear_caches(self):
3921 r"""clear_caches(Diffusion self)"""
3922 return _IMP_atom.Diffusion_clear_caches(self)
3924 def set_name(self, a0):
3925 r"""set_name(Diffusion self, std::string a0)"""
3926 return _IMP_atom.Diffusion_set_name(self, a0)
3929 r"""set_check_level(Diffusion self, IMP::CheckLevel a0)"""
3930 return _IMP_atom.Diffusion_set_check_level(self, a0)
3932 def add_to_derivative(self, a0, a1, a2):
3933 r"""add_to_derivative(Diffusion self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
3934 return _IMP_atom.Diffusion_add_to_derivative(self, a0, a1, a2)
3936 def set_is_optimized(self, a0, a1):
3937 r"""set_is_optimized(Diffusion self, FloatKey a0, bool a1)"""
3938 return _IMP_atom.Diffusion_set_is_optimized(self, a0, a1)
3940 def get_is_optimized(self, a0):
3941 r"""get_is_optimized(Diffusion self, FloatKey a0) -> bool"""
3942 return _IMP_atom.Diffusion_get_is_optimized(self, a0)
3945 r"""get_check_level(Diffusion self) -> IMP::CheckLevel"""
3946 return _IMP_atom.Diffusion_get_check_level(self)
3948 def __eq__(self, *args):
3950 __eq__(Diffusion self, Diffusion o) -> bool
3951 __eq__(Diffusion self, Particle d) -> bool
3953 return _IMP_atom.Diffusion___eq__(self, *args)
3955 def __ne__(self, *args):
3957 __ne__(Diffusion self, Diffusion o) -> bool
3958 __ne__(Diffusion self, Particle d) -> bool
3960 return _IMP_atom.Diffusion___ne__(self, *args)
3962 def __le__(self, *args):
3964 __le__(Diffusion self, Diffusion o) -> bool
3965 __le__(Diffusion self, Particle d) -> bool
3967 return _IMP_atom.Diffusion___le__(self, *args)
3969 def __lt__(self, *args):
3971 __lt__(Diffusion self, Diffusion o) -> bool
3972 __lt__(Diffusion self, Particle d) -> bool
3974 return _IMP_atom.Diffusion___lt__(self, *args)
3976 def __ge__(self, *args):
3978 __ge__(Diffusion self, Diffusion o) -> bool
3979 __ge__(Diffusion self, Particle d) -> bool
3981 return _IMP_atom.Diffusion___ge__(self, *args)
3983 def __gt__(self, *args):
3985 __gt__(Diffusion self, Diffusion o) -> bool
3986 __gt__(Diffusion self, Particle d) -> bool
3988 return _IMP_atom.Diffusion___gt__(self, *args)
3991 r"""__hash__(Diffusion self) -> std::size_t"""
3992 return _IMP_atom.Diffusion___hash__(self)
3995 r"""__str__(Diffusion self) -> std::string"""
3996 return _IMP_atom.Diffusion___str__(self)
3999 r"""__repr__(Diffusion self) -> std::string"""
4000 return _IMP_atom.Diffusion___repr__(self)
4002 def _get_as_binary(self):
4003 r"""_get_as_binary(Diffusion self) -> PyObject *"""
4004 return _IMP_atom.Diffusion__get_as_binary(self)
4006 def _set_from_binary(self, p):
4007 r"""_set_from_binary(Diffusion self, PyObject * p)"""
4008 return _IMP_atom.Diffusion__set_from_binary(self, p)
4010 def __getstate__(self):
4011 p = self._get_as_binary()
4012 if len(self.__dict__) > 1:
4013 d = self.__dict__.copy()
4018 def __setstate__(self, p):
4019 if not hasattr(self,
'this'):
4021 if isinstance(p, tuple):
4023 self.__dict__.update(d)
4024 return self._set_from_binary(p)
4026 __swig_destroy__ = _IMP_atom.delete_Diffusion
4029 _IMP_atom.Diffusion_swigregister(Diffusion)
4031 def get_diffusion_coefficient_from_cm2_per_second(din):
4032 r"""get_diffusion_coefficient_from_cm2_per_second(double din) -> double"""
4033 return _IMP_atom.get_diffusion_coefficient_from_cm2_per_second(din)
4034 class RigidBodyDiffusion(Diffusion):
4035 r"""Proxy of C++ IMP::atom::RigidBodyDiffusion class."""
4037 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4039 def __init__(self, *args):
4041 __init__(RigidBodyDiffusion self) -> RigidBodyDiffusion
4042 __init__(RigidBodyDiffusion self, Model m, ParticleIndex id) -> RigidBodyDiffusion
4043 __init__(RigidBodyDiffusion self, _ParticleAdaptor d) -> RigidBodyDiffusion
4045 _IMP_atom.RigidBodyDiffusion_swiginit(self, _IMP_atom.new_RigidBodyDiffusion(*args))
4047 def show(self, *args):
4048 r"""show(RigidBodyDiffusion self, _ostream out=std::cout)"""
4049 return _IMP_atom.RigidBodyDiffusion_show(self, *args)
4052 def setup_particle(*args):
4054 setup_particle(Model m, ParticleIndex pi) -> RigidBodyDiffusion
4055 setup_particle(_ParticleAdaptor pa) -> RigidBodyDiffusion
4057 return _IMP_atom.RigidBodyDiffusion_setup_particle(*args)
4060 r"""get_rotational_diffusion_coefficient(RigidBodyDiffusion self) -> double"""
4061 return _IMP_atom.RigidBodyDiffusion_get_rotational_diffusion_coefficient(self)
4063 def set_rotational_diffusion_coefficient(self, d):
4064 r"""set_rotational_diffusion_coefficient(RigidBodyDiffusion self, double d)"""
4065 return _IMP_atom.RigidBodyDiffusion_set_rotational_diffusion_coefficient(self, d)
4068 def get_is_setup(*args):
4070 get_is_setup(_ParticleAdaptor p) -> bool
4071 get_is_setup(Model m, ParticleIndex p) -> bool
4073 return _IMP_atom.RigidBodyDiffusion_get_is_setup(*args)
4076 def get_rotational_diffusion_coefficient_key():
4077 r"""get_rotational_diffusion_coefficient_key() -> FloatKey"""
4078 return _IMP_atom.RigidBodyDiffusion_get_rotational_diffusion_coefficient_key()
4080 def add_attribute(self, *args):
4082 add_attribute(RigidBodyDiffusion self, FloatKey k, IMP::Float v, bool opt)
4083 add_attribute(RigidBodyDiffusion self, FloatKey a0, IMP::Float a1)
4084 add_attribute(RigidBodyDiffusion self, IntKey a0, IMP::Int a1)
4085 add_attribute(RigidBodyDiffusion self, FloatsKey a0, IMP::Floats a1)
4086 add_attribute(RigidBodyDiffusion self, IntsKey a0, IMP::Ints a1)
4087 add_attribute(RigidBodyDiffusion self, StringKey a0, IMP::String a1)
4088 add_attribute(RigidBodyDiffusion self, ParticleIndexKey a0, Particle a1)
4089 add_attribute(RigidBodyDiffusion self, ObjectKey a0, Object a1)
4090 add_attribute(RigidBodyDiffusion self, SparseFloatKey a0, IMP::Float a1)
4091 add_attribute(RigidBodyDiffusion self, SparseIntKey a0, IMP::Int a1)
4092 add_attribute(RigidBodyDiffusion self, SparseStringKey a0, IMP::String a1)
4093 add_attribute(RigidBodyDiffusion self, SparseParticleIndexKey a0, ParticleIndex a1)
4095 return _IMP_atom.RigidBodyDiffusion_add_attribute(self, *args)
4097 def get_value(self, *args):
4099 get_value(RigidBodyDiffusion self, FloatKey a0) -> IMP::Float
4100 get_value(RigidBodyDiffusion self, IntKey a0) -> IMP::Int
4101 get_value(RigidBodyDiffusion self, FloatsKey a0) -> IMP::Floats
4102 get_value(RigidBodyDiffusion self, IntsKey a0) -> IMP::Ints
4103 get_value(RigidBodyDiffusion self, StringKey a0) -> IMP::String
4104 get_value(RigidBodyDiffusion self, ParticleIndexKey a0) -> Particle
4105 get_value(RigidBodyDiffusion self, ObjectKey a0) -> Object
4106 get_value(RigidBodyDiffusion self, SparseFloatKey a0) -> IMP::Float
4107 get_value(RigidBodyDiffusion self, SparseIntKey a0) -> IMP::Int
4108 get_value(RigidBodyDiffusion self, SparseStringKey a0) -> IMP::String
4109 get_value(RigidBodyDiffusion self, SparseParticleIndexKey a0) -> ParticleIndex
4111 return _IMP_atom.RigidBodyDiffusion_get_value(self, *args)
4113 def set_value(self, *args):
4115 set_value(RigidBodyDiffusion self, FloatKey a0, IMP::Float a1)
4116 set_value(RigidBodyDiffusion self, IntKey a0, IMP::Int a1)
4117 set_value(RigidBodyDiffusion self, FloatsKey a0, IMP::Floats a1)
4118 set_value(RigidBodyDiffusion self, IntsKey a0, IMP::Ints a1)
4119 set_value(RigidBodyDiffusion self, StringKey a0, IMP::String a1)
4120 set_value(RigidBodyDiffusion self, ParticleIndexKey a0, Particle a1)
4121 set_value(RigidBodyDiffusion self, ObjectKey a0, Object a1)
4122 set_value(RigidBodyDiffusion self, SparseFloatKey a0, IMP::Float a1)
4123 set_value(RigidBodyDiffusion self, SparseIntKey a0, IMP::Int a1)
4124 set_value(RigidBodyDiffusion self, SparseStringKey a0, IMP::String a1)
4125 set_value(RigidBodyDiffusion self, SparseParticleIndexKey a0, ParticleIndex a1)
4127 return _IMP_atom.RigidBodyDiffusion_set_value(self, *args)
4129 def remove_attribute(self, *args):
4131 remove_attribute(RigidBodyDiffusion self, FloatKey a0)
4132 remove_attribute(RigidBodyDiffusion self, IntKey a0)
4133 remove_attribute(RigidBodyDiffusion self, FloatsKey a0)
4134 remove_attribute(RigidBodyDiffusion self, IntsKey a0)
4135 remove_attribute(RigidBodyDiffusion self, StringKey a0)
4136 remove_attribute(RigidBodyDiffusion self, ParticleIndexKey a0)
4137 remove_attribute(RigidBodyDiffusion self, ObjectKey a0)
4138 remove_attribute(RigidBodyDiffusion self, SparseFloatKey a0)
4139 remove_attribute(RigidBodyDiffusion self, SparseIntKey a0)
4140 remove_attribute(RigidBodyDiffusion self, SparseStringKey a0)
4141 remove_attribute(RigidBodyDiffusion self, SparseParticleIndexKey a0)
4143 return _IMP_atom.RigidBodyDiffusion_remove_attribute(self, *args)
4145 def has_attribute(self, *args):
4147 has_attribute(RigidBodyDiffusion self, FloatKey a0) -> bool
4148 has_attribute(RigidBodyDiffusion self, IntKey a0) -> bool
4149 has_attribute(RigidBodyDiffusion self, FloatsKey a0) -> bool
4150 has_attribute(RigidBodyDiffusion self, IntsKey a0) -> bool
4151 has_attribute(RigidBodyDiffusion self, StringKey a0) -> bool
4152 has_attribute(RigidBodyDiffusion self, ParticleIndexKey a0) -> bool
4153 has_attribute(RigidBodyDiffusion self, ObjectKey a0) -> bool
4154 has_attribute(RigidBodyDiffusion self, SparseFloatKey a0) -> bool
4155 has_attribute(RigidBodyDiffusion self, SparseIntKey a0) -> bool
4156 has_attribute(RigidBodyDiffusion self, SparseStringKey a0) -> bool
4157 has_attribute(RigidBodyDiffusion self, SparseParticleIndexKey a0) -> bool
4159 return _IMP_atom.RigidBodyDiffusion_has_attribute(self, *args)
4161 def get_derivative(self, a0):
4162 r"""get_derivative(RigidBodyDiffusion self, FloatKey a0) -> double"""
4163 return _IMP_atom.RigidBodyDiffusion_get_derivative(self, a0)
4166 r"""get_name(RigidBodyDiffusion self) -> std::string"""
4167 return _IMP_atom.RigidBodyDiffusion_get_name(self)
4169 def clear_caches(self):
4170 r"""clear_caches(RigidBodyDiffusion self)"""
4171 return _IMP_atom.RigidBodyDiffusion_clear_caches(self)
4173 def set_name(self, a0):
4174 r"""set_name(RigidBodyDiffusion self, std::string a0)"""
4175 return _IMP_atom.RigidBodyDiffusion_set_name(self, a0)
4178 r"""set_check_level(RigidBodyDiffusion self, IMP::CheckLevel a0)"""
4179 return _IMP_atom.RigidBodyDiffusion_set_check_level(self, a0)
4181 def add_to_derivative(self, a0, a1, a2):
4182 r"""add_to_derivative(RigidBodyDiffusion self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
4183 return _IMP_atom.RigidBodyDiffusion_add_to_derivative(self, a0, a1, a2)
4185 def set_is_optimized(self, a0, a1):
4186 r"""set_is_optimized(RigidBodyDiffusion self, FloatKey a0, bool a1)"""
4187 return _IMP_atom.RigidBodyDiffusion_set_is_optimized(self, a0, a1)
4189 def get_is_optimized(self, a0):
4190 r"""get_is_optimized(RigidBodyDiffusion self, FloatKey a0) -> bool"""
4191 return _IMP_atom.RigidBodyDiffusion_get_is_optimized(self, a0)
4194 r"""get_check_level(RigidBodyDiffusion self) -> IMP::CheckLevel"""
4195 return _IMP_atom.RigidBodyDiffusion_get_check_level(self)
4197 def __eq__(self, *args):
4199 __eq__(RigidBodyDiffusion self, RigidBodyDiffusion o) -> bool
4200 __eq__(RigidBodyDiffusion self, Particle d) -> bool
4202 return _IMP_atom.RigidBodyDiffusion___eq__(self, *args)
4204 def __ne__(self, *args):
4206 __ne__(RigidBodyDiffusion self, RigidBodyDiffusion o) -> bool
4207 __ne__(RigidBodyDiffusion self, Particle d) -> bool
4209 return _IMP_atom.RigidBodyDiffusion___ne__(self, *args)
4211 def __le__(self, *args):
4213 __le__(RigidBodyDiffusion self, RigidBodyDiffusion o) -> bool
4214 __le__(RigidBodyDiffusion self, Particle d) -> bool
4216 return _IMP_atom.RigidBodyDiffusion___le__(self, *args)
4218 def __lt__(self, *args):
4220 __lt__(RigidBodyDiffusion self, RigidBodyDiffusion o) -> bool
4221 __lt__(RigidBodyDiffusion self, Particle d) -> bool
4223 return _IMP_atom.RigidBodyDiffusion___lt__(self, *args)
4225 def __ge__(self, *args):
4227 __ge__(RigidBodyDiffusion self, RigidBodyDiffusion o) -> bool
4228 __ge__(RigidBodyDiffusion self, Particle d) -> bool
4230 return _IMP_atom.RigidBodyDiffusion___ge__(self, *args)
4232 def __gt__(self, *args):
4234 __gt__(RigidBodyDiffusion self, RigidBodyDiffusion o) -> bool
4235 __gt__(RigidBodyDiffusion self, Particle d) -> bool
4237 return _IMP_atom.RigidBodyDiffusion___gt__(self, *args)
4240 r"""__hash__(RigidBodyDiffusion self) -> std::size_t"""
4241 return _IMP_atom.RigidBodyDiffusion___hash__(self)
4244 r"""__str__(RigidBodyDiffusion self) -> std::string"""
4245 return _IMP_atom.RigidBodyDiffusion___str__(self)
4248 r"""__repr__(RigidBodyDiffusion self) -> std::string"""
4249 return _IMP_atom.RigidBodyDiffusion___repr__(self)
4251 def _get_as_binary(self):
4252 r"""_get_as_binary(RigidBodyDiffusion self) -> PyObject *"""
4253 return _IMP_atom.RigidBodyDiffusion__get_as_binary(self)
4255 def _set_from_binary(self, p):
4256 r"""_set_from_binary(RigidBodyDiffusion self, PyObject * p)"""
4257 return _IMP_atom.RigidBodyDiffusion__set_from_binary(self, p)
4259 def __getstate__(self):
4260 p = self._get_as_binary()
4261 if len(self.__dict__) > 1:
4262 d = self.__dict__.copy()
4267 def __setstate__(self, p):
4268 if not hasattr(self,
'this'):
4270 if isinstance(p, tuple):
4272 self.__dict__.update(d)
4273 return self._set_from_binary(p)
4275 __swig_destroy__ = _IMP_atom.delete_RigidBodyDiffusion
4278 _IMP_atom.RigidBodyDiffusion_swigregister(RigidBodyDiffusion)
4280 r"""Proxy of C++ IMP::atom::TAMDParticle class."""
4282 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4284 def __init__(self, *args):
4286 __init__(TAMDParticle self) -> TAMDParticle
4287 __init__(TAMDParticle self, Model m, ParticleIndex id) -> TAMDParticle
4288 __init__(TAMDParticle self, _ParticleAdaptor d) -> TAMDParticle
4290 _IMP_atom.TAMDParticle_swiginit(self, _IMP_atom.new_TAMDParticle(*args))
4292 def show(self, *args):
4293 r"""show(TAMDParticle self, _ostream out=std::cout)"""
4294 return _IMP_atom.TAMDParticle_show(self, *args)
4297 def setup_particle(*args):
4299 setup_particle(Model m, ParticleIndex pi, ParticleIndex pi_ref, IMP::Float tsf, IMP::Float fsf) -> TAMDParticle
4300 setup_particle(_ParticleAdaptor pa, ParticleIndex pi_ref, IMP::Float tsf, IMP::Float fsf) -> TAMDParticle
4301 setup_particle(Model m, ParticleIndex pi, Particle p_ref, IMP::Float tsf, IMP::Float fsf) -> TAMDParticle
4302 setup_particle(_ParticleAdaptor pa, Particle p_ref, IMP::Float tsf, IMP::Float fsf) -> TAMDParticle
4304 return _IMP_atom.TAMDParticle_setup_particle(*args)
4307 def get_is_setup(*args):
4309 get_is_setup(_ParticleAdaptor p) -> bool
4310 get_is_setup(Model m, ParticleIndex p) -> bool
4312 return _IMP_atom.TAMDParticle_get_is_setup(*args)
4314 def get_reference_particle_index(self):
4315 r"""get_reference_particle_index(TAMDParticle self) -> ParticleIndex"""
4316 return _IMP_atom.TAMDParticle_get_reference_particle_index(self)
4318 def set_temperature_scale_factor(self, tsf):
4319 r"""set_temperature_scale_factor(TAMDParticle self, float tsf)"""
4320 return _IMP_atom.TAMDParticle_set_temperature_scale_factor(self, tsf)
4322 def get_temperature_scale_factor(self):
4323 r"""get_temperature_scale_factor(TAMDParticle self) -> double"""
4324 return _IMP_atom.TAMDParticle_get_temperature_scale_factor(self)
4326 def set_friction_scale_factor(self, tsf):
4327 r"""set_friction_scale_factor(TAMDParticle self, float tsf)"""
4328 return _IMP_atom.TAMDParticle_set_friction_scale_factor(self, tsf)
4330 def get_friction_scale_factor(self):
4331 r"""get_friction_scale_factor(TAMDParticle self) -> double"""
4332 return _IMP_atom.TAMDParticle_get_friction_scale_factor(self)
4334 def update_coordinates_from_ref(self):
4335 r"""update_coordinates_from_ref(TAMDParticle self)"""
4336 return _IMP_atom.TAMDParticle_update_coordinates_from_ref(self)
4339 def get_temperature_scale_factor_key():
4340 r"""get_temperature_scale_factor_key() -> FloatKey"""
4341 return _IMP_atom.TAMDParticle_get_temperature_scale_factor_key()
4344 def get_friction_scale_factor_key():
4345 r"""get_friction_scale_factor_key() -> FloatKey"""
4346 return _IMP_atom.TAMDParticle_get_friction_scale_factor_key()
4349 def get_reference_particle_index_key():
4350 r"""get_reference_particle_index_key() -> ParticleIndexKey"""
4351 return _IMP_atom.TAMDParticle_get_reference_particle_index_key()
4353 def add_attribute(self, *args):
4355 add_attribute(TAMDParticle self, FloatKey k, IMP::Float v, bool opt)
4356 add_attribute(TAMDParticle self, FloatKey a0, IMP::Float a1)
4357 add_attribute(TAMDParticle self, IntKey a0, IMP::Int a1)
4358 add_attribute(TAMDParticle self, FloatsKey a0, IMP::Floats a1)
4359 add_attribute(TAMDParticle self, IntsKey a0, IMP::Ints a1)
4360 add_attribute(TAMDParticle self, StringKey a0, IMP::String a1)
4361 add_attribute(TAMDParticle self, ParticleIndexKey a0, Particle a1)
4362 add_attribute(TAMDParticle self, ObjectKey a0, Object a1)
4363 add_attribute(TAMDParticle self, SparseFloatKey a0, IMP::Float a1)
4364 add_attribute(TAMDParticle self, SparseIntKey a0, IMP::Int a1)
4365 add_attribute(TAMDParticle self, SparseStringKey a0, IMP::String a1)
4366 add_attribute(TAMDParticle self, SparseParticleIndexKey a0, ParticleIndex a1)
4368 return _IMP_atom.TAMDParticle_add_attribute(self, *args)
4370 def get_value(self, *args):
4372 get_value(TAMDParticle self, FloatKey a0) -> IMP::Float
4373 get_value(TAMDParticle self, IntKey a0) -> IMP::Int
4374 get_value(TAMDParticle self, FloatsKey a0) -> IMP::Floats
4375 get_value(TAMDParticle self, IntsKey a0) -> IMP::Ints
4376 get_value(TAMDParticle self, StringKey a0) -> IMP::String
4377 get_value(TAMDParticle self, ParticleIndexKey a0) -> Particle
4378 get_value(TAMDParticle self, ObjectKey a0) -> Object
4379 get_value(TAMDParticle self, SparseFloatKey a0) -> IMP::Float
4380 get_value(TAMDParticle self, SparseIntKey a0) -> IMP::Int
4381 get_value(TAMDParticle self, SparseStringKey a0) -> IMP::String
4382 get_value(TAMDParticle self, SparseParticleIndexKey a0) -> ParticleIndex
4384 return _IMP_atom.TAMDParticle_get_value(self, *args)
4386 def set_value(self, *args):
4388 set_value(TAMDParticle self, FloatKey a0, IMP::Float a1)
4389 set_value(TAMDParticle self, IntKey a0, IMP::Int a1)
4390 set_value(TAMDParticle self, FloatsKey a0, IMP::Floats a1)
4391 set_value(TAMDParticle self, IntsKey a0, IMP::Ints a1)
4392 set_value(TAMDParticle self, StringKey a0, IMP::String a1)
4393 set_value(TAMDParticle self, ParticleIndexKey a0, Particle a1)
4394 set_value(TAMDParticle self, ObjectKey a0, Object a1)
4395 set_value(TAMDParticle self, SparseFloatKey a0, IMP::Float a1)
4396 set_value(TAMDParticle self, SparseIntKey a0, IMP::Int a1)
4397 set_value(TAMDParticle self, SparseStringKey a0, IMP::String a1)
4398 set_value(TAMDParticle self, SparseParticleIndexKey a0, ParticleIndex a1)
4400 return _IMP_atom.TAMDParticle_set_value(self, *args)
4402 def remove_attribute(self, *args):
4404 remove_attribute(TAMDParticle self, FloatKey a0)
4405 remove_attribute(TAMDParticle self, IntKey a0)
4406 remove_attribute(TAMDParticle self, FloatsKey a0)
4407 remove_attribute(TAMDParticle self, IntsKey a0)
4408 remove_attribute(TAMDParticle self, StringKey a0)
4409 remove_attribute(TAMDParticle self, ParticleIndexKey a0)
4410 remove_attribute(TAMDParticle self, ObjectKey a0)
4411 remove_attribute(TAMDParticle self, SparseFloatKey a0)
4412 remove_attribute(TAMDParticle self, SparseIntKey a0)
4413 remove_attribute(TAMDParticle self, SparseStringKey a0)
4414 remove_attribute(TAMDParticle self, SparseParticleIndexKey a0)
4416 return _IMP_atom.TAMDParticle_remove_attribute(self, *args)
4418 def has_attribute(self, *args):
4420 has_attribute(TAMDParticle self, FloatKey a0) -> bool
4421 has_attribute(TAMDParticle self, IntKey a0) -> bool
4422 has_attribute(TAMDParticle self, FloatsKey a0) -> bool
4423 has_attribute(TAMDParticle self, IntsKey a0) -> bool
4424 has_attribute(TAMDParticle self, StringKey a0) -> bool
4425 has_attribute(TAMDParticle self, ParticleIndexKey a0) -> bool
4426 has_attribute(TAMDParticle self, ObjectKey a0) -> bool
4427 has_attribute(TAMDParticle self, SparseFloatKey a0) -> bool
4428 has_attribute(TAMDParticle self, SparseIntKey a0) -> bool
4429 has_attribute(TAMDParticle self, SparseStringKey a0) -> bool
4430 has_attribute(TAMDParticle self, SparseParticleIndexKey a0) -> bool
4432 return _IMP_atom.TAMDParticle_has_attribute(self, *args)
4434 def get_derivative(self, a0):
4435 r"""get_derivative(TAMDParticle self, FloatKey a0) -> double"""
4436 return _IMP_atom.TAMDParticle_get_derivative(self, a0)
4439 r"""get_name(TAMDParticle self) -> std::string"""
4440 return _IMP_atom.TAMDParticle_get_name(self)
4442 def clear_caches(self):
4443 r"""clear_caches(TAMDParticle self)"""
4444 return _IMP_atom.TAMDParticle_clear_caches(self)
4446 def set_name(self, a0):
4447 r"""set_name(TAMDParticle self, std::string a0)"""
4448 return _IMP_atom.TAMDParticle_set_name(self, a0)
4451 r"""set_check_level(TAMDParticle self, IMP::CheckLevel a0)"""
4452 return _IMP_atom.TAMDParticle_set_check_level(self, a0)
4454 def add_to_derivative(self, a0, a1, a2):
4455 r"""add_to_derivative(TAMDParticle self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
4456 return _IMP_atom.TAMDParticle_add_to_derivative(self, a0, a1, a2)
4458 def set_is_optimized(self, a0, a1):
4459 r"""set_is_optimized(TAMDParticle self, FloatKey a0, bool a1)"""
4460 return _IMP_atom.TAMDParticle_set_is_optimized(self, a0, a1)
4462 def get_is_optimized(self, a0):
4463 r"""get_is_optimized(TAMDParticle self, FloatKey a0) -> bool"""
4464 return _IMP_atom.TAMDParticle_get_is_optimized(self, a0)
4467 r"""get_check_level(TAMDParticle self) -> IMP::CheckLevel"""
4468 return _IMP_atom.TAMDParticle_get_check_level(self)
4470 def __eq__(self, *args):
4472 __eq__(TAMDParticle self, TAMDParticle o) -> bool
4473 __eq__(TAMDParticle self, Particle d) -> bool
4475 return _IMP_atom.TAMDParticle___eq__(self, *args)
4477 def __ne__(self, *args):
4479 __ne__(TAMDParticle self, TAMDParticle o) -> bool
4480 __ne__(TAMDParticle self, Particle d) -> bool
4482 return _IMP_atom.TAMDParticle___ne__(self, *args)
4484 def __le__(self, *args):
4486 __le__(TAMDParticle self, TAMDParticle o) -> bool
4487 __le__(TAMDParticle self, Particle d) -> bool
4489 return _IMP_atom.TAMDParticle___le__(self, *args)
4491 def __lt__(self, *args):
4493 __lt__(TAMDParticle self, TAMDParticle o) -> bool
4494 __lt__(TAMDParticle self, Particle d) -> bool
4496 return _IMP_atom.TAMDParticle___lt__(self, *args)
4498 def __ge__(self, *args):
4500 __ge__(TAMDParticle self, TAMDParticle o) -> bool
4501 __ge__(TAMDParticle self, Particle d) -> bool
4503 return _IMP_atom.TAMDParticle___ge__(self, *args)
4505 def __gt__(self, *args):
4507 __gt__(TAMDParticle self, TAMDParticle o) -> bool
4508 __gt__(TAMDParticle self, Particle d) -> bool
4510 return _IMP_atom.TAMDParticle___gt__(self, *args)
4513 r"""__hash__(TAMDParticle self) -> std::size_t"""
4514 return _IMP_atom.TAMDParticle___hash__(self)
4517 r"""__str__(TAMDParticle self) -> std::string"""
4518 return _IMP_atom.TAMDParticle___str__(self)
4521 r"""__repr__(TAMDParticle self) -> std::string"""
4522 return _IMP_atom.TAMDParticle___repr__(self)
4524 def _get_as_binary(self):
4525 r"""_get_as_binary(TAMDParticle self) -> PyObject *"""
4526 return _IMP_atom.TAMDParticle__get_as_binary(self)
4528 def _set_from_binary(self, p):
4529 r"""_set_from_binary(TAMDParticle self, PyObject * p)"""
4530 return _IMP_atom.TAMDParticle__set_from_binary(self, p)
4532 def __getstate__(self):
4533 p = self._get_as_binary()
4534 if len(self.__dict__) > 1:
4535 d = self.__dict__.copy()
4540 def __setstate__(self, p):
4541 if not hasattr(self,
'this'):
4543 if isinstance(p, tuple):
4545 self.__dict__.update(d)
4546 return self._set_from_binary(p)
4548 __swig_destroy__ = _IMP_atom.delete_TAMDParticle
4551 _IMP_atom.TAMDParticle_swigregister(TAMDParticle)
4553 r"""Proxy of C++ IMP::atom::Charged class."""
4555 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4557 def __init__(self, *args):
4559 __init__(Charged self) -> Charged
4560 __init__(Charged self, Model m, ParticleIndex id) -> Charged
4561 __init__(Charged self, _ParticleAdaptor d) -> Charged
4563 _IMP_atom.Charged_swiginit(self, _IMP_atom.new_Charged(*args))
4565 def show(self, *args):
4566 r"""show(Charged self, _ostream out=std::cout)"""
4567 return _IMP_atom.Charged_show(self, *args)
4570 def setup_particle(*args):
4572 setup_particle(Model m, ParticleIndex pi, IMP::Float charge) -> Charged
4573 setup_particle(_ParticleAdaptor pa, IMP::Float charge) -> Charged
4574 setup_particle(Model m, ParticleIndex pi, Vector3D v, IMP::Float charge) -> Charged
4575 setup_particle(_ParticleAdaptor pa, Vector3D v, IMP::Float charge) -> Charged
4577 return _IMP_atom.Charged_setup_particle(*args)
4579 def get_charge(self):
4580 r"""get_charge(Charged self) -> IMP::Float"""
4581 return _IMP_atom.Charged_get_charge(self)
4583 def set_charge(self, t):
4584 r"""set_charge(Charged self, IMP::Float t)"""
4585 return _IMP_atom.Charged_set_charge(self, t)
4588 def get_is_setup(*args):
4590 get_is_setup(_ParticleAdaptor p) -> bool
4591 get_is_setup(Model m, ParticleIndex pi) -> bool
4593 return _IMP_atom.Charged_get_is_setup(*args)
4596 def get_charge_key():
4597 r"""get_charge_key() -> FloatKey"""
4598 return _IMP_atom.Charged_get_charge_key()
4600 def add_attribute(self, *args):
4602 add_attribute(Charged self, FloatKey k, IMP::Float v, bool opt)
4603 add_attribute(Charged self, FloatKey a0, IMP::Float a1)
4604 add_attribute(Charged self, IntKey a0, IMP::Int a1)
4605 add_attribute(Charged self, FloatsKey a0, IMP::Floats a1)
4606 add_attribute(Charged self, IntsKey a0, IMP::Ints a1)
4607 add_attribute(Charged self, StringKey a0, IMP::String a1)
4608 add_attribute(Charged self, ParticleIndexKey a0, Particle a1)
4609 add_attribute(Charged self, ObjectKey a0, Object a1)
4610 add_attribute(Charged self, SparseFloatKey a0, IMP::Float a1)
4611 add_attribute(Charged self, SparseIntKey a0, IMP::Int a1)
4612 add_attribute(Charged self, SparseStringKey a0, IMP::String a1)
4613 add_attribute(Charged self, SparseParticleIndexKey a0, ParticleIndex a1)
4615 return _IMP_atom.Charged_add_attribute(self, *args)
4617 def get_value(self, *args):
4619 get_value(Charged self, FloatKey a0) -> IMP::Float
4620 get_value(Charged self, IntKey a0) -> IMP::Int
4621 get_value(Charged self, FloatsKey a0) -> IMP::Floats
4622 get_value(Charged self, IntsKey a0) -> IMP::Ints
4623 get_value(Charged self, StringKey a0) -> IMP::String
4624 get_value(Charged self, ParticleIndexKey a0) -> Particle
4625 get_value(Charged self, ObjectKey a0) -> Object
4626 get_value(Charged self, SparseFloatKey a0) -> IMP::Float
4627 get_value(Charged self, SparseIntKey a0) -> IMP::Int
4628 get_value(Charged self, SparseStringKey a0) -> IMP::String
4629 get_value(Charged self, SparseParticleIndexKey a0) -> ParticleIndex
4631 return _IMP_atom.Charged_get_value(self, *args)
4633 def set_value(self, *args):
4635 set_value(Charged self, FloatKey a0, IMP::Float a1)
4636 set_value(Charged self, IntKey a0, IMP::Int a1)
4637 set_value(Charged self, FloatsKey a0, IMP::Floats a1)
4638 set_value(Charged self, IntsKey a0, IMP::Ints a1)
4639 set_value(Charged self, StringKey a0, IMP::String a1)
4640 set_value(Charged self, ParticleIndexKey a0, Particle a1)
4641 set_value(Charged self, ObjectKey a0, Object a1)
4642 set_value(Charged self, SparseFloatKey a0, IMP::Float a1)
4643 set_value(Charged self, SparseIntKey a0, IMP::Int a1)
4644 set_value(Charged self, SparseStringKey a0, IMP::String a1)
4645 set_value(Charged self, SparseParticleIndexKey a0, ParticleIndex a1)
4647 return _IMP_atom.Charged_set_value(self, *args)
4649 def remove_attribute(self, *args):
4651 remove_attribute(Charged self, FloatKey a0)
4652 remove_attribute(Charged self, IntKey a0)
4653 remove_attribute(Charged self, FloatsKey a0)
4654 remove_attribute(Charged self, IntsKey a0)
4655 remove_attribute(Charged self, StringKey a0)
4656 remove_attribute(Charged self, ParticleIndexKey a0)
4657 remove_attribute(Charged self, ObjectKey a0)
4658 remove_attribute(Charged self, SparseFloatKey a0)
4659 remove_attribute(Charged self, SparseIntKey a0)
4660 remove_attribute(Charged self, SparseStringKey a0)
4661 remove_attribute(Charged self, SparseParticleIndexKey a0)
4663 return _IMP_atom.Charged_remove_attribute(self, *args)
4665 def has_attribute(self, *args):
4667 has_attribute(Charged self, FloatKey a0) -> bool
4668 has_attribute(Charged self, IntKey a0) -> bool
4669 has_attribute(Charged self, FloatsKey a0) -> bool
4670 has_attribute(Charged self, IntsKey a0) -> bool
4671 has_attribute(Charged self, StringKey a0) -> bool
4672 has_attribute(Charged self, ParticleIndexKey a0) -> bool
4673 has_attribute(Charged self, ObjectKey a0) -> bool
4674 has_attribute(Charged self, SparseFloatKey a0) -> bool
4675 has_attribute(Charged self, SparseIntKey a0) -> bool
4676 has_attribute(Charged self, SparseStringKey a0) -> bool
4677 has_attribute(Charged self, SparseParticleIndexKey a0) -> bool
4679 return _IMP_atom.Charged_has_attribute(self, *args)
4681 def get_derivative(self, a0):
4682 r"""get_derivative(Charged self, FloatKey a0) -> double"""
4683 return _IMP_atom.Charged_get_derivative(self, a0)
4686 r"""get_name(Charged self) -> std::string"""
4687 return _IMP_atom.Charged_get_name(self)
4689 def clear_caches(self):
4690 r"""clear_caches(Charged self)"""
4691 return _IMP_atom.Charged_clear_caches(self)
4693 def set_name(self, a0):
4694 r"""set_name(Charged self, std::string a0)"""
4695 return _IMP_atom.Charged_set_name(self, a0)
4698 r"""set_check_level(Charged self, IMP::CheckLevel a0)"""
4699 return _IMP_atom.Charged_set_check_level(self, a0)
4701 def add_to_derivative(self, a0, a1, a2):
4702 r"""add_to_derivative(Charged self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
4703 return _IMP_atom.Charged_add_to_derivative(self, a0, a1, a2)
4705 def set_is_optimized(self, a0, a1):
4706 r"""set_is_optimized(Charged self, FloatKey a0, bool a1)"""
4707 return _IMP_atom.Charged_set_is_optimized(self, a0, a1)
4709 def get_is_optimized(self, a0):
4710 r"""get_is_optimized(Charged self, FloatKey a0) -> bool"""
4711 return _IMP_atom.Charged_get_is_optimized(self, a0)
4714 r"""get_check_level(Charged self) -> IMP::CheckLevel"""
4715 return _IMP_atom.Charged_get_check_level(self)
4717 def __eq__(self, *args):
4719 __eq__(Charged self, Charged o) -> bool
4720 __eq__(Charged self, Particle d) -> bool
4722 return _IMP_atom.Charged___eq__(self, *args)
4724 def __ne__(self, *args):
4726 __ne__(Charged self, Charged o) -> bool
4727 __ne__(Charged self, Particle d) -> bool
4729 return _IMP_atom.Charged___ne__(self, *args)
4731 def __le__(self, *args):
4733 __le__(Charged self, Charged o) -> bool
4734 __le__(Charged self, Particle d) -> bool
4736 return _IMP_atom.Charged___le__(self, *args)
4738 def __lt__(self, *args):
4740 __lt__(Charged self, Charged o) -> bool
4741 __lt__(Charged self, Particle d) -> bool
4743 return _IMP_atom.Charged___lt__(self, *args)
4745 def __ge__(self, *args):
4747 __ge__(Charged self, Charged o) -> bool
4748 __ge__(Charged self, Particle d) -> bool
4750 return _IMP_atom.Charged___ge__(self, *args)
4752 def __gt__(self, *args):
4754 __gt__(Charged self, Charged o) -> bool
4755 __gt__(Charged self, Particle d) -> bool
4757 return _IMP_atom.Charged___gt__(self, *args)
4760 r"""__hash__(Charged self) -> std::size_t"""
4761 return _IMP_atom.Charged___hash__(self)
4764 r"""__str__(Charged self) -> std::string"""
4765 return _IMP_atom.Charged___str__(self)
4768 r"""__repr__(Charged self) -> std::string"""
4769 return _IMP_atom.Charged___repr__(self)
4771 def _get_as_binary(self):
4772 r"""_get_as_binary(Charged self) -> PyObject *"""
4773 return _IMP_atom.Charged__get_as_binary(self)
4775 def _set_from_binary(self, p):
4776 r"""_set_from_binary(Charged self, PyObject * p)"""
4777 return _IMP_atom.Charged__set_from_binary(self, p)
4779 def __getstate__(self):
4780 p = self._get_as_binary()
4781 if len(self.__dict__) > 1:
4782 d = self.__dict__.copy()
4787 def __setstate__(self, p):
4788 if not hasattr(self,
'this'):
4790 if isinstance(p, tuple):
4792 self.__dict__.update(d)
4793 return self._set_from_binary(p)
4795 __swig_destroy__ = _IMP_atom.delete_Charged
4798 _IMP_atom.Charged_swigregister(Charged)
4800 r"""Proxy of C++ IMP::atom::CoulombPairScore class."""
4802 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4804 def __init__(self, f):
4805 r"""__init__(CoulombPairScore self, SmoothingFunction f) -> CoulombPairScore"""
4806 _IMP_atom.CoulombPairScore_swiginit(self, _IMP_atom.new_CoulombPairScore(f))
4808 def set_relative_dielectric(self, relative_dielectric):
4809 r"""set_relative_dielectric(CoulombPairScore self, double relative_dielectric)"""
4810 return _IMP_atom.CoulombPairScore_set_relative_dielectric(self, relative_dielectric)
4812 def get_relative_dielectric(self):
4813 r"""get_relative_dielectric(CoulombPairScore self) -> double"""
4814 return _IMP_atom.CoulombPairScore_get_relative_dielectric(self)
4816 def get_smoothing_function(self):
4817 r"""get_smoothing_function(CoulombPairScore self) -> SmoothingFunction"""
4818 return _IMP_atom.CoulombPairScore_get_smoothing_function(self)
4820 def do_get_inputs(self, m, pis):
4821 r"""do_get_inputs(CoulombPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4822 return _IMP_atom.CoulombPairScore_do_get_inputs(self, m, pis)
4824 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
4825 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"""
4826 return _IMP_atom.CoulombPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
4828 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
4829 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"""
4830 return _IMP_atom.CoulombPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
4832 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
4833 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"""
4834 return _IMP_atom.CoulombPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
4836 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
4837 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"""
4838 return _IMP_atom.CoulombPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
4840 def get_version_info(self):
4841 r"""get_version_info(CoulombPairScore self) -> VersionInfo"""
4842 return _IMP_atom.CoulombPairScore_get_version_info(self)
4843 __swig_destroy__ = _IMP_atom.delete_CoulombPairScore
4846 r"""__str__(CoulombPairScore self) -> std::string"""
4847 return _IMP_atom.CoulombPairScore___str__(self)
4850 r"""__repr__(CoulombPairScore self) -> std::string"""
4851 return _IMP_atom.CoulombPairScore___repr__(self)
4855 return _object_cast_to_CoulombPairScore(o)
4858 def _get_jax(self, m, indexes):
4861 import jax.numpy
as jnp
4864 avogadro = 6.02214179e23
4865 electron_charge = 1.6021892e-19
4866 permittivity_vacuum = 8.854187818e-12
4868 factor = (avogadro * electron_charge * electron_charge *
4869 1.0e10 / permittivity_vacuum / kcal2joule /
4870 (4.0 * math.pi * self.get_relative_dielectric()))
4871 sf = self.get_smoothing_function().get_derived_object()
4874 smoothing_function = jax.vmap(sf._get_jax())
4876 xyzs = jm[
'xyz'][indexes]
4877 qs = jm[
'charge'][indexes]
4878 diff = xyzs[:,0] - xyzs[:,1]
4879 drs = jnp.linalg.norm(diff, axis=1)
4880 scores = factor * jnp.prod(qs, axis=1) / drs
4881 return smoothing_function(scores, drs)
4882 return self._wrap_jax(m, score, keys=[Charged.get_charge_key()])
4886 _IMP_atom.CoulombPairScore_swigregister(CoulombPairScore)
4887 class Domain(Hierarchy):
4888 r"""Proxy of C++ IMP::atom::Domain class."""
4890 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4892 def set_index_range(self, ir):
4893 r"""set_index_range(Domain self, IMP::IntRange ir)"""
4894 return _IMP_atom.Domain_set_index_range(self, ir)
4896 def get_index_range(self):
4897 r"""get_index_range(Domain self) -> IMP::IntRange"""
4898 return _IMP_atom.Domain_get_index_range(self)
4900 def __init__(self, *args):
4902 __init__(Domain self) -> Domain
4903 __init__(Domain self, Model m, ParticleIndex id) -> Domain
4904 __init__(Domain self, _ParticleAdaptor d) -> Domain
4906 _IMP_atom.Domain_swiginit(self, _IMP_atom.new_Domain(*args))
4909 def get_is_setup(*args):
4911 get_is_setup(Model m, ParticleIndex pi) -> bool
4912 get_is_setup(_ParticleAdaptor p) -> bool
4914 return _IMP_atom.Domain_get_is_setup(*args)
4916 def show(self, *args):
4917 r"""show(Domain self, _ostream out=std::cout)"""
4918 return _IMP_atom.Domain_show(self, *args)
4921 def setup_particle(*args):
4923 setup_particle(Model m, ParticleIndex pi, Domain other) -> Domain
4924 setup_particle(_ParticleAdaptor pa, Domain other) -> Domain
4925 setup_particle(Model m, ParticleIndex pi, IMP::IntRange residues) -> Domain
4926 setup_particle(_ParticleAdaptor pa, IMP::IntRange residues) -> Domain
4928 return _IMP_atom.Domain_setup_particle(*args)
4930 def add_attribute(self, *args):
4932 add_attribute(Domain self, FloatKey k, IMP::Float v, bool opt)
4933 add_attribute(Domain self, FloatKey a0, IMP::Float a1)
4934 add_attribute(Domain self, IntKey a0, IMP::Int a1)
4935 add_attribute(Domain self, FloatsKey a0, IMP::Floats a1)
4936 add_attribute(Domain self, IntsKey a0, IMP::Ints a1)
4937 add_attribute(Domain self, StringKey a0, IMP::String a1)
4938 add_attribute(Domain self, ParticleIndexKey a0, Particle a1)
4939 add_attribute(Domain self, ObjectKey a0, Object a1)
4940 add_attribute(Domain self, SparseFloatKey a0, IMP::Float a1)
4941 add_attribute(Domain self, SparseIntKey a0, IMP::Int a1)
4942 add_attribute(Domain self, SparseStringKey a0, IMP::String a1)
4943 add_attribute(Domain self, SparseParticleIndexKey a0, ParticleIndex a1)
4945 return _IMP_atom.Domain_add_attribute(self, *args)
4947 def get_value(self, *args):
4949 get_value(Domain self, FloatKey a0) -> IMP::Float
4950 get_value(Domain self, IntKey a0) -> IMP::Int
4951 get_value(Domain self, FloatsKey a0) -> IMP::Floats
4952 get_value(Domain self, IntsKey a0) -> IMP::Ints
4953 get_value(Domain self, StringKey a0) -> IMP::String
4954 get_value(Domain self, ParticleIndexKey a0) -> Particle
4955 get_value(Domain self, ObjectKey a0) -> Object
4956 get_value(Domain self, SparseFloatKey a0) -> IMP::Float
4957 get_value(Domain self, SparseIntKey a0) -> IMP::Int
4958 get_value(Domain self, SparseStringKey a0) -> IMP::String
4959 get_value(Domain self, SparseParticleIndexKey a0) -> ParticleIndex
4961 return _IMP_atom.Domain_get_value(self, *args)
4963 def set_value(self, *args):
4965 set_value(Domain self, FloatKey a0, IMP::Float a1)
4966 set_value(Domain self, IntKey a0, IMP::Int a1)
4967 set_value(Domain self, FloatsKey a0, IMP::Floats a1)
4968 set_value(Domain self, IntsKey a0, IMP::Ints a1)
4969 set_value(Domain self, StringKey a0, IMP::String a1)
4970 set_value(Domain self, ParticleIndexKey a0, Particle a1)
4971 set_value(Domain self, ObjectKey a0, Object a1)
4972 set_value(Domain self, SparseFloatKey a0, IMP::Float a1)
4973 set_value(Domain self, SparseIntKey a0, IMP::Int a1)
4974 set_value(Domain self, SparseStringKey a0, IMP::String a1)
4975 set_value(Domain self, SparseParticleIndexKey a0, ParticleIndex a1)
4977 return _IMP_atom.Domain_set_value(self, *args)
4979 def remove_attribute(self, *args):
4981 remove_attribute(Domain self, FloatKey a0)
4982 remove_attribute(Domain self, IntKey a0)
4983 remove_attribute(Domain self, FloatsKey a0)
4984 remove_attribute(Domain self, IntsKey a0)
4985 remove_attribute(Domain self, StringKey a0)
4986 remove_attribute(Domain self, ParticleIndexKey a0)
4987 remove_attribute(Domain self, ObjectKey a0)
4988 remove_attribute(Domain self, SparseFloatKey a0)
4989 remove_attribute(Domain self, SparseIntKey a0)
4990 remove_attribute(Domain self, SparseStringKey a0)
4991 remove_attribute(Domain self, SparseParticleIndexKey a0)
4993 return _IMP_atom.Domain_remove_attribute(self, *args)
4995 def has_attribute(self, *args):
4997 has_attribute(Domain self, FloatKey a0) -> bool
4998 has_attribute(Domain self, IntKey a0) -> bool
4999 has_attribute(Domain self, FloatsKey a0) -> bool
5000 has_attribute(Domain self, IntsKey a0) -> bool
5001 has_attribute(Domain self, StringKey a0) -> bool
5002 has_attribute(Domain self, ParticleIndexKey a0) -> bool
5003 has_attribute(Domain self, ObjectKey a0) -> bool
5004 has_attribute(Domain self, SparseFloatKey a0) -> bool
5005 has_attribute(Domain self, SparseIntKey a0) -> bool
5006 has_attribute(Domain self, SparseStringKey a0) -> bool
5007 has_attribute(Domain self, SparseParticleIndexKey a0) -> bool
5009 return _IMP_atom.Domain_has_attribute(self, *args)
5011 def get_derivative(self, a0):
5012 r"""get_derivative(Domain self, FloatKey a0) -> double"""
5013 return _IMP_atom.Domain_get_derivative(self, a0)
5016 r"""get_name(Domain self) -> std::string"""
5017 return _IMP_atom.Domain_get_name(self)
5019 def clear_caches(self):
5020 r"""clear_caches(Domain self)"""
5021 return _IMP_atom.Domain_clear_caches(self)
5023 def set_name(self, a0):
5024 r"""set_name(Domain self, std::string a0)"""
5025 return _IMP_atom.Domain_set_name(self, a0)
5028 r"""set_check_level(Domain self, IMP::CheckLevel a0)"""
5029 return _IMP_atom.Domain_set_check_level(self, a0)
5031 def add_to_derivative(self, a0, a1, a2):
5032 r"""add_to_derivative(Domain self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
5033 return _IMP_atom.Domain_add_to_derivative(self, a0, a1, a2)
5035 def set_is_optimized(self, a0, a1):
5036 r"""set_is_optimized(Domain self, FloatKey a0, bool a1)"""
5037 return _IMP_atom.Domain_set_is_optimized(self, a0, a1)
5039 def get_is_optimized(self, a0):
5040 r"""get_is_optimized(Domain self, FloatKey a0) -> bool"""
5041 return _IMP_atom.Domain_get_is_optimized(self, a0)
5044 r"""get_check_level(Domain self) -> IMP::CheckLevel"""
5045 return _IMP_atom.Domain_get_check_level(self)
5047 def __eq__(self, *args):
5049 __eq__(Domain self, Domain o) -> bool
5050 __eq__(Domain self, Particle d) -> bool
5052 return _IMP_atom.Domain___eq__(self, *args)
5054 def __ne__(self, *args):
5056 __ne__(Domain self, Domain o) -> bool
5057 __ne__(Domain self, Particle d) -> bool
5059 return _IMP_atom.Domain___ne__(self, *args)
5061 def __le__(self, *args):
5063 __le__(Domain self, Domain o) -> bool
5064 __le__(Domain self, Particle d) -> bool
5066 return _IMP_atom.Domain___le__(self, *args)
5068 def __lt__(self, *args):
5070 __lt__(Domain self, Domain o) -> bool
5071 __lt__(Domain self, Particle d) -> bool
5073 return _IMP_atom.Domain___lt__(self, *args)
5075 def __ge__(self, *args):
5077 __ge__(Domain self, Domain o) -> bool
5078 __ge__(Domain self, Particle d) -> bool
5080 return _IMP_atom.Domain___ge__(self, *args)
5082 def __gt__(self, *args):
5084 __gt__(Domain self, Domain o) -> bool
5085 __gt__(Domain self, Particle d) -> bool
5087 return _IMP_atom.Domain___gt__(self, *args)
5090 r"""__hash__(Domain self) -> std::size_t"""
5091 return _IMP_atom.Domain___hash__(self)
5094 r"""__str__(Domain self) -> std::string"""
5095 return _IMP_atom.Domain___str__(self)
5098 r"""__repr__(Domain self) -> std::string"""
5099 return _IMP_atom.Domain___repr__(self)
5101 def _get_as_binary(self):
5102 r"""_get_as_binary(Domain self) -> PyObject *"""
5103 return _IMP_atom.Domain__get_as_binary(self)
5105 def _set_from_binary(self, p):
5106 r"""_set_from_binary(Domain self, PyObject * p)"""
5107 return _IMP_atom.Domain__set_from_binary(self, p)
5109 def __getstate__(self):
5110 p = self._get_as_binary()
5111 if len(self.__dict__) > 1:
5112 d = self.__dict__.copy()
5117 def __setstate__(self, p):
5118 if not hasattr(self,
'this'):
5120 if isinstance(p, tuple):
5122 self.__dict__.update(d)
5123 return self._set_from_binary(p)
5125 __swig_destroy__ = _IMP_atom.delete_Domain
5128 _IMP_atom.Domain_swigregister(Domain)
5130 r"""Proxy of C++ IMP::atom::LennardJonesType class."""
5132 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5134 def __init__(self, *args):
5135 r"""__init__(LennardJonesType self, double well_depth, double radius, std::string name="LennardJonesType%1%") -> LennardJonesType"""
5136 _IMP_atom.LennardJonesType_swiginit(self, _IMP_atom.new_LennardJonesType(*args))
5138 def get_well_depth(self):
5139 r"""get_well_depth(LennardJonesType self) -> double"""
5140 return _IMP_atom.LennardJonesType_get_well_depth(self)
5142 def set_well_depth(self, d):
5143 r"""set_well_depth(LennardJonesType self, double d)"""
5144 return _IMP_atom.LennardJonesType_set_well_depth(self, d)
5146 def get_radius(self):
5147 r"""get_radius(LennardJonesType self) -> double"""
5148 return _IMP_atom.LennardJonesType_get_radius(self)
5150 def set_radius(self, r):
5151 r"""set_radius(LennardJonesType self, double r)"""
5152 return _IMP_atom.LennardJonesType_set_radius(self, r)
5155 r"""get_index(LennardJonesType self) -> int"""
5156 return _IMP_atom.LennardJonesType_get_index(self)
5158 def get_version_info(self):
5159 r"""get_version_info(LennardJonesType self) -> VersionInfo"""
5160 return _IMP_atom.LennardJonesType_get_version_info(self)
5161 __swig_destroy__ = _IMP_atom.delete_LennardJonesType
5164 r"""__str__(LennardJonesType self) -> std::string"""
5165 return _IMP_atom.LennardJonesType___str__(self)
5168 r"""__repr__(LennardJonesType self) -> std::string"""
5169 return _IMP_atom.LennardJonesType___repr__(self)
5173 return _object_cast_to_LennardJonesType(o)
5177 _IMP_atom.LennardJonesType_swigregister(LennardJonesType)
5179 r"""Proxy of C++ IMP::atom::LennardJonesTyped class."""
5181 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5183 def __init__(self, *args):
5185 __init__(LennardJonesTyped self) -> LennardJonesTyped
5186 __init__(LennardJonesTyped self, Model m, ParticleIndex id) -> LennardJonesTyped
5187 __init__(LennardJonesTyped self, _ParticleAdaptor d) -> LennardJonesTyped
5189 _IMP_atom.LennardJonesTyped_swiginit(self, _IMP_atom.new_LennardJonesTyped(*args))
5191 def show(self, *args):
5192 r"""show(LennardJonesTyped self, _ostream out=std::cout)"""
5193 return _IMP_atom.LennardJonesTyped_show(self, *args)
5196 def setup_particle(*args):
5198 setup_particle(Model m, ParticleIndex pi, LennardJonesType type) -> LennardJonesTyped
5199 setup_particle(_ParticleAdaptor pa, LennardJonesType type) -> LennardJonesTyped
5201 return _IMP_atom.LennardJonesTyped_setup_particle(*args)
5204 def get_is_setup(*args):
5206 get_is_setup(_ParticleAdaptor p) -> bool
5207 get_is_setup(Model m, ParticleIndex pi) -> bool
5209 return _IMP_atom.LennardJonesTyped_get_is_setup(*args)
5211 def set_type(self, type):
5212 r"""set_type(LennardJonesTyped self, LennardJonesType type)"""
5213 return _IMP_atom.LennardJonesTyped_set_type(self, type)
5216 r"""get_type(LennardJonesTyped self) -> LennardJonesType"""
5217 return _IMP_atom.LennardJonesTyped_get_type(self)
5220 r"""get_index(LennardJonesTyped self) -> int"""
5221 return _IMP_atom.LennardJonesTyped_get_index(self)
5223 def get_well_depth(self):
5224 r"""get_well_depth(LennardJonesTyped self) -> double"""
5225 return _IMP_atom.LennardJonesTyped_get_well_depth(self)
5227 def get_radius(self):
5228 r"""get_radius(LennardJonesTyped self) -> double"""
5229 return _IMP_atom.LennardJonesTyped_get_radius(self)
5233 r"""get_type_key() -> IntKey"""
5234 return _IMP_atom.LennardJonesTyped_get_type_key()
5236 def add_attribute(self, *args):
5238 add_attribute(LennardJonesTyped self, FloatKey k, IMP::Float v, bool opt)
5239 add_attribute(LennardJonesTyped self, FloatKey a0, IMP::Float a1)
5240 add_attribute(LennardJonesTyped self, IntKey a0, IMP::Int a1)
5241 add_attribute(LennardJonesTyped self, FloatsKey a0, IMP::Floats a1)
5242 add_attribute(LennardJonesTyped self, IntsKey a0, IMP::Ints a1)
5243 add_attribute(LennardJonesTyped self, StringKey a0, IMP::String a1)
5244 add_attribute(LennardJonesTyped self, ParticleIndexKey a0, Particle a1)
5245 add_attribute(LennardJonesTyped self, ObjectKey a0, Object a1)
5246 add_attribute(LennardJonesTyped self, SparseFloatKey a0, IMP::Float a1)
5247 add_attribute(LennardJonesTyped self, SparseIntKey a0, IMP::Int a1)
5248 add_attribute(LennardJonesTyped self, SparseStringKey a0, IMP::String a1)
5249 add_attribute(LennardJonesTyped self, SparseParticleIndexKey a0, ParticleIndex a1)
5251 return _IMP_atom.LennardJonesTyped_add_attribute(self, *args)
5253 def get_value(self, *args):
5255 get_value(LennardJonesTyped self, FloatKey a0) -> IMP::Float
5256 get_value(LennardJonesTyped self, IntKey a0) -> IMP::Int
5257 get_value(LennardJonesTyped self, FloatsKey a0) -> IMP::Floats
5258 get_value(LennardJonesTyped self, IntsKey a0) -> IMP::Ints
5259 get_value(LennardJonesTyped self, StringKey a0) -> IMP::String
5260 get_value(LennardJonesTyped self, ParticleIndexKey a0) -> Particle
5261 get_value(LennardJonesTyped self, ObjectKey a0) -> Object
5262 get_value(LennardJonesTyped self, SparseFloatKey a0) -> IMP::Float
5263 get_value(LennardJonesTyped self, SparseIntKey a0) -> IMP::Int
5264 get_value(LennardJonesTyped self, SparseStringKey a0) -> IMP::String
5265 get_value(LennardJonesTyped self, SparseParticleIndexKey a0) -> ParticleIndex
5267 return _IMP_atom.LennardJonesTyped_get_value(self, *args)
5269 def set_value(self, *args):
5271 set_value(LennardJonesTyped self, FloatKey a0, IMP::Float a1)
5272 set_value(LennardJonesTyped self, IntKey a0, IMP::Int a1)
5273 set_value(LennardJonesTyped self, FloatsKey a0, IMP::Floats a1)
5274 set_value(LennardJonesTyped self, IntsKey a0, IMP::Ints a1)
5275 set_value(LennardJonesTyped self, StringKey a0, IMP::String a1)
5276 set_value(LennardJonesTyped self, ParticleIndexKey a0, Particle a1)
5277 set_value(LennardJonesTyped self, ObjectKey a0, Object a1)
5278 set_value(LennardJonesTyped self, SparseFloatKey a0, IMP::Float a1)
5279 set_value(LennardJonesTyped self, SparseIntKey a0, IMP::Int a1)
5280 set_value(LennardJonesTyped self, SparseStringKey a0, IMP::String a1)
5281 set_value(LennardJonesTyped self, SparseParticleIndexKey a0, ParticleIndex a1)
5283 return _IMP_atom.LennardJonesTyped_set_value(self, *args)
5285 def remove_attribute(self, *args):
5287 remove_attribute(LennardJonesTyped self, FloatKey a0)
5288 remove_attribute(LennardJonesTyped self, IntKey a0)
5289 remove_attribute(LennardJonesTyped self, FloatsKey a0)
5290 remove_attribute(LennardJonesTyped self, IntsKey a0)
5291 remove_attribute(LennardJonesTyped self, StringKey a0)
5292 remove_attribute(LennardJonesTyped self, ParticleIndexKey a0)
5293 remove_attribute(LennardJonesTyped self, ObjectKey a0)
5294 remove_attribute(LennardJonesTyped self, SparseFloatKey a0)
5295 remove_attribute(LennardJonesTyped self, SparseIntKey a0)
5296 remove_attribute(LennardJonesTyped self, SparseStringKey a0)
5297 remove_attribute(LennardJonesTyped self, SparseParticleIndexKey a0)
5299 return _IMP_atom.LennardJonesTyped_remove_attribute(self, *args)
5301 def has_attribute(self, *args):
5303 has_attribute(LennardJonesTyped self, FloatKey a0) -> bool
5304 has_attribute(LennardJonesTyped self, IntKey a0) -> bool
5305 has_attribute(LennardJonesTyped self, FloatsKey a0) -> bool
5306 has_attribute(LennardJonesTyped self, IntsKey a0) -> bool
5307 has_attribute(LennardJonesTyped self, StringKey a0) -> bool
5308 has_attribute(LennardJonesTyped self, ParticleIndexKey a0) -> bool
5309 has_attribute(LennardJonesTyped self, ObjectKey a0) -> bool
5310 has_attribute(LennardJonesTyped self, SparseFloatKey a0) -> bool
5311 has_attribute(LennardJonesTyped self, SparseIntKey a0) -> bool
5312 has_attribute(LennardJonesTyped self, SparseStringKey a0) -> bool
5313 has_attribute(LennardJonesTyped self, SparseParticleIndexKey a0) -> bool
5315 return _IMP_atom.LennardJonesTyped_has_attribute(self, *args)
5317 def get_derivative(self, a0):
5318 r"""get_derivative(LennardJonesTyped self, FloatKey a0) -> double"""
5319 return _IMP_atom.LennardJonesTyped_get_derivative(self, a0)
5322 r"""get_name(LennardJonesTyped self) -> std::string"""
5323 return _IMP_atom.LennardJonesTyped_get_name(self)
5325 def clear_caches(self):
5326 r"""clear_caches(LennardJonesTyped self)"""
5327 return _IMP_atom.LennardJonesTyped_clear_caches(self)
5329 def set_name(self, a0):
5330 r"""set_name(LennardJonesTyped self, std::string a0)"""
5331 return _IMP_atom.LennardJonesTyped_set_name(self, a0)
5334 r"""set_check_level(LennardJonesTyped self, IMP::CheckLevel a0)"""
5335 return _IMP_atom.LennardJonesTyped_set_check_level(self, a0)
5337 def add_to_derivative(self, a0, a1, a2):
5338 r"""add_to_derivative(LennardJonesTyped self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
5339 return _IMP_atom.LennardJonesTyped_add_to_derivative(self, a0, a1, a2)
5341 def set_is_optimized(self, a0, a1):
5342 r"""set_is_optimized(LennardJonesTyped self, FloatKey a0, bool a1)"""
5343 return _IMP_atom.LennardJonesTyped_set_is_optimized(self, a0, a1)
5345 def get_is_optimized(self, a0):
5346 r"""get_is_optimized(LennardJonesTyped self, FloatKey a0) -> bool"""
5347 return _IMP_atom.LennardJonesTyped_get_is_optimized(self, a0)
5350 r"""get_check_level(LennardJonesTyped self) -> IMP::CheckLevel"""
5351 return _IMP_atom.LennardJonesTyped_get_check_level(self)
5353 def __eq__(self, *args):
5355 __eq__(LennardJonesTyped self, LennardJonesTyped o) -> bool
5356 __eq__(LennardJonesTyped self, Particle d) -> bool
5358 return _IMP_atom.LennardJonesTyped___eq__(self, *args)
5360 def __ne__(self, *args):
5362 __ne__(LennardJonesTyped self, LennardJonesTyped o) -> bool
5363 __ne__(LennardJonesTyped self, Particle d) -> bool
5365 return _IMP_atom.LennardJonesTyped___ne__(self, *args)
5367 def __le__(self, *args):
5369 __le__(LennardJonesTyped self, LennardJonesTyped o) -> bool
5370 __le__(LennardJonesTyped self, Particle d) -> bool
5372 return _IMP_atom.LennardJonesTyped___le__(self, *args)
5374 def __lt__(self, *args):
5376 __lt__(LennardJonesTyped self, LennardJonesTyped o) -> bool
5377 __lt__(LennardJonesTyped self, Particle d) -> bool
5379 return _IMP_atom.LennardJonesTyped___lt__(self, *args)
5381 def __ge__(self, *args):
5383 __ge__(LennardJonesTyped self, LennardJonesTyped o) -> bool
5384 __ge__(LennardJonesTyped self, Particle d) -> bool
5386 return _IMP_atom.LennardJonesTyped___ge__(self, *args)
5388 def __gt__(self, *args):
5390 __gt__(LennardJonesTyped self, LennardJonesTyped o) -> bool
5391 __gt__(LennardJonesTyped self, Particle d) -> bool
5393 return _IMP_atom.LennardJonesTyped___gt__(self, *args)
5396 r"""__hash__(LennardJonesTyped self) -> std::size_t"""
5397 return _IMP_atom.LennardJonesTyped___hash__(self)
5400 r"""__str__(LennardJonesTyped self) -> std::string"""
5401 return _IMP_atom.LennardJonesTyped___str__(self)
5404 r"""__repr__(LennardJonesTyped self) -> std::string"""
5405 return _IMP_atom.LennardJonesTyped___repr__(self)
5407 def _get_as_binary(self):
5408 r"""_get_as_binary(LennardJonesTyped self) -> PyObject *"""
5409 return _IMP_atom.LennardJonesTyped__get_as_binary(self)
5411 def _set_from_binary(self, p):
5412 r"""_set_from_binary(LennardJonesTyped self, PyObject * p)"""
5413 return _IMP_atom.LennardJonesTyped__set_from_binary(self, p)
5415 def __getstate__(self):
5416 p = self._get_as_binary()
5417 if len(self.__dict__) > 1:
5418 d = self.__dict__.copy()
5423 def __setstate__(self, p):
5424 if not hasattr(self,
'this'):
5426 if isinstance(p, tuple):
5428 self.__dict__.update(d)
5429 return self._set_from_binary(p)
5431 __swig_destroy__ = _IMP_atom.delete_LennardJonesTyped
5434 _IMP_atom.LennardJonesTyped_swigregister(LennardJonesTyped)
5436 r"""Proxy of C++ IMP::atom::LinearVelocity class."""
5438 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5441 def get_velocity_key():
5442 r"""get_velocity_key() -> Vector3DKey"""
5443 return _IMP_atom.LinearVelocity_get_velocity_key()
5445 def __init__(self, *args):
5447 __init__(LinearVelocity self) -> LinearVelocity
5448 __init__(LinearVelocity self, Model m, ParticleIndex id) -> LinearVelocity
5449 __init__(LinearVelocity self, _ParticleAdaptor d) -> LinearVelocity
5451 _IMP_atom.LinearVelocity_swiginit(self, _IMP_atom.new_LinearVelocity(*args))
5454 def get_is_setup(*args):
5456 get_is_setup(Model m, ParticleIndex pi) -> bool
5457 get_is_setup(_ParticleAdaptor p) -> bool
5459 return _IMP_atom.LinearVelocity_get_is_setup(*args)
5461 def show(self, *args):
5462 r"""show(LinearVelocity self, _ostream out=std::cout)"""
5463 return _IMP_atom.LinearVelocity_show(self, *args)
5466 def setup_particle(*args):
5468 setup_particle(Model m, ParticleIndex pi) -> LinearVelocity
5469 setup_particle(_ParticleAdaptor pa) -> LinearVelocity
5470 setup_particle(Model m, ParticleIndex pi, Vector3D v) -> LinearVelocity
5471 setup_particle(_ParticleAdaptor pa, Vector3D v) -> LinearVelocity
5473 return _IMP_atom.LinearVelocity_setup_particle(*args)
5475 def set_velocity(self, v):
5476 r"""set_velocity(LinearVelocity self, Vector3D v)"""
5477 return _IMP_atom.LinearVelocity_set_velocity(self, v)
5479 def get_velocity(self):
5480 r"""get_velocity(LinearVelocity self) -> Vector3D"""
5481 return _IMP_atom.LinearVelocity_get_velocity(self)
5483 def add_attribute(self, *args):
5485 add_attribute(LinearVelocity self, FloatKey k, IMP::Float v, bool opt)
5486 add_attribute(LinearVelocity self, FloatKey a0, IMP::Float a1)
5487 add_attribute(LinearVelocity self, IntKey a0, IMP::Int a1)
5488 add_attribute(LinearVelocity self, FloatsKey a0, IMP::Floats a1)
5489 add_attribute(LinearVelocity self, IntsKey a0, IMP::Ints a1)
5490 add_attribute(LinearVelocity self, StringKey a0, IMP::String a1)
5491 add_attribute(LinearVelocity self, ParticleIndexKey a0, Particle a1)
5492 add_attribute(LinearVelocity self, ObjectKey a0, Object a1)
5493 add_attribute(LinearVelocity self, SparseFloatKey a0, IMP::Float a1)
5494 add_attribute(LinearVelocity self, SparseIntKey a0, IMP::Int a1)
5495 add_attribute(LinearVelocity self, SparseStringKey a0, IMP::String a1)
5496 add_attribute(LinearVelocity self, SparseParticleIndexKey a0, ParticleIndex a1)
5498 return _IMP_atom.LinearVelocity_add_attribute(self, *args)
5500 def get_value(self, *args):
5502 get_value(LinearVelocity self, FloatKey a0) -> IMP::Float
5503 get_value(LinearVelocity self, IntKey a0) -> IMP::Int
5504 get_value(LinearVelocity self, FloatsKey a0) -> IMP::Floats
5505 get_value(LinearVelocity self, IntsKey a0) -> IMP::Ints
5506 get_value(LinearVelocity self, StringKey a0) -> IMP::String
5507 get_value(LinearVelocity self, ParticleIndexKey a0) -> Particle
5508 get_value(LinearVelocity self, ObjectKey a0) -> Object
5509 get_value(LinearVelocity self, SparseFloatKey a0) -> IMP::Float
5510 get_value(LinearVelocity self, SparseIntKey a0) -> IMP::Int
5511 get_value(LinearVelocity self, SparseStringKey a0) -> IMP::String
5512 get_value(LinearVelocity self, SparseParticleIndexKey a0) -> ParticleIndex
5514 return _IMP_atom.LinearVelocity_get_value(self, *args)
5516 def set_value(self, *args):
5518 set_value(LinearVelocity self, FloatKey a0, IMP::Float a1)
5519 set_value(LinearVelocity self, IntKey a0, IMP::Int a1)
5520 set_value(LinearVelocity self, FloatsKey a0, IMP::Floats a1)
5521 set_value(LinearVelocity self, IntsKey a0, IMP::Ints a1)
5522 set_value(LinearVelocity self, StringKey a0, IMP::String a1)
5523 set_value(LinearVelocity self, ParticleIndexKey a0, Particle a1)
5524 set_value(LinearVelocity self, ObjectKey a0, Object a1)
5525 set_value(LinearVelocity self, SparseFloatKey a0, IMP::Float a1)
5526 set_value(LinearVelocity self, SparseIntKey a0, IMP::Int a1)
5527 set_value(LinearVelocity self, SparseStringKey a0, IMP::String a1)
5528 set_value(LinearVelocity self, SparseParticleIndexKey a0, ParticleIndex a1)
5530 return _IMP_atom.LinearVelocity_set_value(self, *args)
5532 def remove_attribute(self, *args):
5534 remove_attribute(LinearVelocity self, FloatKey a0)
5535 remove_attribute(LinearVelocity self, IntKey a0)
5536 remove_attribute(LinearVelocity self, FloatsKey a0)
5537 remove_attribute(LinearVelocity self, IntsKey a0)
5538 remove_attribute(LinearVelocity self, StringKey a0)
5539 remove_attribute(LinearVelocity self, ParticleIndexKey a0)
5540 remove_attribute(LinearVelocity self, ObjectKey a0)
5541 remove_attribute(LinearVelocity self, SparseFloatKey a0)
5542 remove_attribute(LinearVelocity self, SparseIntKey a0)
5543 remove_attribute(LinearVelocity self, SparseStringKey a0)
5544 remove_attribute(LinearVelocity self, SparseParticleIndexKey a0)
5546 return _IMP_atom.LinearVelocity_remove_attribute(self, *args)
5548 def has_attribute(self, *args):
5550 has_attribute(LinearVelocity self, FloatKey a0) -> bool
5551 has_attribute(LinearVelocity self, IntKey a0) -> bool
5552 has_attribute(LinearVelocity self, FloatsKey a0) -> bool
5553 has_attribute(LinearVelocity self, IntsKey a0) -> bool
5554 has_attribute(LinearVelocity self, StringKey a0) -> bool
5555 has_attribute(LinearVelocity self, ParticleIndexKey a0) -> bool
5556 has_attribute(LinearVelocity self, ObjectKey a0) -> bool
5557 has_attribute(LinearVelocity self, SparseFloatKey a0) -> bool
5558 has_attribute(LinearVelocity self, SparseIntKey a0) -> bool
5559 has_attribute(LinearVelocity self, SparseStringKey a0) -> bool
5560 has_attribute(LinearVelocity self, SparseParticleIndexKey a0) -> bool
5562 return _IMP_atom.LinearVelocity_has_attribute(self, *args)
5564 def get_derivative(self, a0):
5565 r"""get_derivative(LinearVelocity self, FloatKey a0) -> double"""
5566 return _IMP_atom.LinearVelocity_get_derivative(self, a0)
5569 r"""get_name(LinearVelocity self) -> std::string"""
5570 return _IMP_atom.LinearVelocity_get_name(self)
5572 def clear_caches(self):
5573 r"""clear_caches(LinearVelocity self)"""
5574 return _IMP_atom.LinearVelocity_clear_caches(self)
5576 def set_name(self, a0):
5577 r"""set_name(LinearVelocity self, std::string a0)"""
5578 return _IMP_atom.LinearVelocity_set_name(self, a0)
5581 r"""set_check_level(LinearVelocity self, IMP::CheckLevel a0)"""
5582 return _IMP_atom.LinearVelocity_set_check_level(self, a0)
5584 def add_to_derivative(self, a0, a1, a2):
5585 r"""add_to_derivative(LinearVelocity self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
5586 return _IMP_atom.LinearVelocity_add_to_derivative(self, a0, a1, a2)
5588 def set_is_optimized(self, a0, a1):
5589 r"""set_is_optimized(LinearVelocity self, FloatKey a0, bool a1)"""
5590 return _IMP_atom.LinearVelocity_set_is_optimized(self, a0, a1)
5592 def get_is_optimized(self, a0):
5593 r"""get_is_optimized(LinearVelocity self, FloatKey a0) -> bool"""
5594 return _IMP_atom.LinearVelocity_get_is_optimized(self, a0)
5597 r"""get_check_level(LinearVelocity self) -> IMP::CheckLevel"""
5598 return _IMP_atom.LinearVelocity_get_check_level(self)
5600 def __eq__(self, *args):
5602 __eq__(LinearVelocity self, LinearVelocity o) -> bool
5603 __eq__(LinearVelocity self, Particle d) -> bool
5605 return _IMP_atom.LinearVelocity___eq__(self, *args)
5607 def __ne__(self, *args):
5609 __ne__(LinearVelocity self, LinearVelocity o) -> bool
5610 __ne__(LinearVelocity self, Particle d) -> bool
5612 return _IMP_atom.LinearVelocity___ne__(self, *args)
5614 def __le__(self, *args):
5616 __le__(LinearVelocity self, LinearVelocity o) -> bool
5617 __le__(LinearVelocity self, Particle d) -> bool
5619 return _IMP_atom.LinearVelocity___le__(self, *args)
5621 def __lt__(self, *args):
5623 __lt__(LinearVelocity self, LinearVelocity o) -> bool
5624 __lt__(LinearVelocity self, Particle d) -> bool
5626 return _IMP_atom.LinearVelocity___lt__(self, *args)
5628 def __ge__(self, *args):
5630 __ge__(LinearVelocity self, LinearVelocity o) -> bool
5631 __ge__(LinearVelocity self, Particle d) -> bool
5633 return _IMP_atom.LinearVelocity___ge__(self, *args)
5635 def __gt__(self, *args):
5637 __gt__(LinearVelocity self, LinearVelocity o) -> bool
5638 __gt__(LinearVelocity self, Particle d) -> bool
5640 return _IMP_atom.LinearVelocity___gt__(self, *args)
5643 r"""__hash__(LinearVelocity self) -> std::size_t"""
5644 return _IMP_atom.LinearVelocity___hash__(self)
5647 r"""__str__(LinearVelocity self) -> std::string"""
5648 return _IMP_atom.LinearVelocity___str__(self)
5651 r"""__repr__(LinearVelocity self) -> std::string"""
5652 return _IMP_atom.LinearVelocity___repr__(self)
5654 def _get_as_binary(self):
5655 r"""_get_as_binary(LinearVelocity self) -> PyObject *"""
5656 return _IMP_atom.LinearVelocity__get_as_binary(self)
5658 def _set_from_binary(self, p):
5659 r"""_set_from_binary(LinearVelocity self, PyObject * p)"""
5660 return _IMP_atom.LinearVelocity__set_from_binary(self, p)
5662 def __getstate__(self):
5663 p = self._get_as_binary()
5664 if len(self.__dict__) > 1:
5665 d = self.__dict__.copy()
5670 def __setstate__(self, p):
5671 if not hasattr(self,
'this'):
5673 if isinstance(p, tuple):
5675 self.__dict__.update(d)
5676 return self._set_from_binary(p)
5678 __swig_destroy__ = _IMP_atom.delete_LinearVelocity
5681 _IMP_atom.LinearVelocity_swigregister(LinearVelocity)
5683 r"""Proxy of C++ IMP::atom::AngularVelocity class."""
5685 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5687 def __init__(self, *args):
5689 __init__(AngularVelocity self) -> AngularVelocity
5690 __init__(AngularVelocity self, Model m, ParticleIndex id) -> AngularVelocity
5691 __init__(AngularVelocity self, _ParticleAdaptor d) -> AngularVelocity
5693 _IMP_atom.AngularVelocity_swiginit(self, _IMP_atom.new_AngularVelocity(*args))
5696 def get_is_setup(*args):
5698 get_is_setup(Model m, ParticleIndex pi) -> bool
5699 get_is_setup(_ParticleAdaptor p) -> bool
5701 return _IMP_atom.AngularVelocity_get_is_setup(*args)
5703 def show(self, *args):
5704 r"""show(AngularVelocity self, _ostream out=std::cout)"""
5705 return _IMP_atom.AngularVelocity_show(self, *args)
5708 def setup_particle(*args):
5710 setup_particle(Model m, ParticleIndex pi) -> AngularVelocity
5711 setup_particle(_ParticleAdaptor pa) -> AngularVelocity
5712 setup_particle(Model m, ParticleIndex pi, Vector4D v) -> AngularVelocity
5713 setup_particle(_ParticleAdaptor pa, Vector4D v) -> AngularVelocity
5715 return _IMP_atom.AngularVelocity_setup_particle(*args)
5717 def set_velocity(self, v):
5718 r"""set_velocity(AngularVelocity self, Vector4D v)"""
5719 return _IMP_atom.AngularVelocity_set_velocity(self, v)
5721 def get_velocity(self):
5722 r"""get_velocity(AngularVelocity self) -> Vector4D"""
5723 return _IMP_atom.AngularVelocity_get_velocity(self)
5725 def add_attribute(self, *args):
5727 add_attribute(AngularVelocity self, FloatKey k, IMP::Float v, bool opt)
5728 add_attribute(AngularVelocity self, FloatKey a0, IMP::Float a1)
5729 add_attribute(AngularVelocity self, IntKey a0, IMP::Int a1)
5730 add_attribute(AngularVelocity self, FloatsKey a0, IMP::Floats a1)
5731 add_attribute(AngularVelocity self, IntsKey a0, IMP::Ints a1)
5732 add_attribute(AngularVelocity self, StringKey a0, IMP::String a1)
5733 add_attribute(AngularVelocity self, ParticleIndexKey a0, Particle a1)
5734 add_attribute(AngularVelocity self, ObjectKey a0, Object a1)
5735 add_attribute(AngularVelocity self, SparseFloatKey a0, IMP::Float a1)
5736 add_attribute(AngularVelocity self, SparseIntKey a0, IMP::Int a1)
5737 add_attribute(AngularVelocity self, SparseStringKey a0, IMP::String a1)
5738 add_attribute(AngularVelocity self, SparseParticleIndexKey a0, ParticleIndex a1)
5740 return _IMP_atom.AngularVelocity_add_attribute(self, *args)
5742 def get_value(self, *args):
5744 get_value(AngularVelocity self, FloatKey a0) -> IMP::Float
5745 get_value(AngularVelocity self, IntKey a0) -> IMP::Int
5746 get_value(AngularVelocity self, FloatsKey a0) -> IMP::Floats
5747 get_value(AngularVelocity self, IntsKey a0) -> IMP::Ints
5748 get_value(AngularVelocity self, StringKey a0) -> IMP::String
5749 get_value(AngularVelocity self, ParticleIndexKey a0) -> Particle
5750 get_value(AngularVelocity self, ObjectKey a0) -> Object
5751 get_value(AngularVelocity self, SparseFloatKey a0) -> IMP::Float
5752 get_value(AngularVelocity self, SparseIntKey a0) -> IMP::Int
5753 get_value(AngularVelocity self, SparseStringKey a0) -> IMP::String
5754 get_value(AngularVelocity self, SparseParticleIndexKey a0) -> ParticleIndex
5756 return _IMP_atom.AngularVelocity_get_value(self, *args)
5758 def set_value(self, *args):
5760 set_value(AngularVelocity self, FloatKey a0, IMP::Float a1)
5761 set_value(AngularVelocity self, IntKey a0, IMP::Int a1)
5762 set_value(AngularVelocity self, FloatsKey a0, IMP::Floats a1)
5763 set_value(AngularVelocity self, IntsKey a0, IMP::Ints a1)
5764 set_value(AngularVelocity self, StringKey a0, IMP::String a1)
5765 set_value(AngularVelocity self, ParticleIndexKey a0, Particle a1)
5766 set_value(AngularVelocity self, ObjectKey a0, Object a1)
5767 set_value(AngularVelocity self, SparseFloatKey a0, IMP::Float a1)
5768 set_value(AngularVelocity self, SparseIntKey a0, IMP::Int a1)
5769 set_value(AngularVelocity self, SparseStringKey a0, IMP::String a1)
5770 set_value(AngularVelocity self, SparseParticleIndexKey a0, ParticleIndex a1)
5772 return _IMP_atom.AngularVelocity_set_value(self, *args)
5774 def remove_attribute(self, *args):
5776 remove_attribute(AngularVelocity self, FloatKey a0)
5777 remove_attribute(AngularVelocity self, IntKey a0)
5778 remove_attribute(AngularVelocity self, FloatsKey a0)
5779 remove_attribute(AngularVelocity self, IntsKey a0)
5780 remove_attribute(AngularVelocity self, StringKey a0)
5781 remove_attribute(AngularVelocity self, ParticleIndexKey a0)
5782 remove_attribute(AngularVelocity self, ObjectKey a0)
5783 remove_attribute(AngularVelocity self, SparseFloatKey a0)
5784 remove_attribute(AngularVelocity self, SparseIntKey a0)
5785 remove_attribute(AngularVelocity self, SparseStringKey a0)
5786 remove_attribute(AngularVelocity self, SparseParticleIndexKey a0)
5788 return _IMP_atom.AngularVelocity_remove_attribute(self, *args)
5790 def has_attribute(self, *args):
5792 has_attribute(AngularVelocity self, FloatKey a0) -> bool
5793 has_attribute(AngularVelocity self, IntKey a0) -> bool
5794 has_attribute(AngularVelocity self, FloatsKey a0) -> bool
5795 has_attribute(AngularVelocity self, IntsKey a0) -> bool
5796 has_attribute(AngularVelocity self, StringKey a0) -> bool
5797 has_attribute(AngularVelocity self, ParticleIndexKey a0) -> bool
5798 has_attribute(AngularVelocity self, ObjectKey a0) -> bool
5799 has_attribute(AngularVelocity self, SparseFloatKey a0) -> bool
5800 has_attribute(AngularVelocity self, SparseIntKey a0) -> bool
5801 has_attribute(AngularVelocity self, SparseStringKey a0) -> bool
5802 has_attribute(AngularVelocity self, SparseParticleIndexKey a0) -> bool
5804 return _IMP_atom.AngularVelocity_has_attribute(self, *args)
5806 def get_derivative(self, a0):
5807 r"""get_derivative(AngularVelocity self, FloatKey a0) -> double"""
5808 return _IMP_atom.AngularVelocity_get_derivative(self, a0)
5811 r"""get_name(AngularVelocity self) -> std::string"""
5812 return _IMP_atom.AngularVelocity_get_name(self)
5814 def clear_caches(self):
5815 r"""clear_caches(AngularVelocity self)"""
5816 return _IMP_atom.AngularVelocity_clear_caches(self)
5818 def set_name(self, a0):
5819 r"""set_name(AngularVelocity self, std::string a0)"""
5820 return _IMP_atom.AngularVelocity_set_name(self, a0)
5823 r"""set_check_level(AngularVelocity self, IMP::CheckLevel a0)"""
5824 return _IMP_atom.AngularVelocity_set_check_level(self, a0)
5826 def add_to_derivative(self, a0, a1, a2):
5827 r"""add_to_derivative(AngularVelocity self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
5828 return _IMP_atom.AngularVelocity_add_to_derivative(self, a0, a1, a2)
5830 def set_is_optimized(self, a0, a1):
5831 r"""set_is_optimized(AngularVelocity self, FloatKey a0, bool a1)"""
5832 return _IMP_atom.AngularVelocity_set_is_optimized(self, a0, a1)
5834 def get_is_optimized(self, a0):
5835 r"""get_is_optimized(AngularVelocity self, FloatKey a0) -> bool"""
5836 return _IMP_atom.AngularVelocity_get_is_optimized(self, a0)
5839 r"""get_check_level(AngularVelocity self) -> IMP::CheckLevel"""
5840 return _IMP_atom.AngularVelocity_get_check_level(self)
5842 def __eq__(self, *args):
5844 __eq__(AngularVelocity self, AngularVelocity o) -> bool
5845 __eq__(AngularVelocity self, Particle d) -> bool
5847 return _IMP_atom.AngularVelocity___eq__(self, *args)
5849 def __ne__(self, *args):
5851 __ne__(AngularVelocity self, AngularVelocity o) -> bool
5852 __ne__(AngularVelocity self, Particle d) -> bool
5854 return _IMP_atom.AngularVelocity___ne__(self, *args)
5856 def __le__(self, *args):
5858 __le__(AngularVelocity self, AngularVelocity o) -> bool
5859 __le__(AngularVelocity self, Particle d) -> bool
5861 return _IMP_atom.AngularVelocity___le__(self, *args)
5863 def __lt__(self, *args):
5865 __lt__(AngularVelocity self, AngularVelocity o) -> bool
5866 __lt__(AngularVelocity self, Particle d) -> bool
5868 return _IMP_atom.AngularVelocity___lt__(self, *args)
5870 def __ge__(self, *args):
5872 __ge__(AngularVelocity self, AngularVelocity o) -> bool
5873 __ge__(AngularVelocity self, Particle d) -> bool
5875 return _IMP_atom.AngularVelocity___ge__(self, *args)
5877 def __gt__(self, *args):
5879 __gt__(AngularVelocity self, AngularVelocity o) -> bool
5880 __gt__(AngularVelocity self, Particle d) -> bool
5882 return _IMP_atom.AngularVelocity___gt__(self, *args)
5885 r"""__hash__(AngularVelocity self) -> std::size_t"""
5886 return _IMP_atom.AngularVelocity___hash__(self)
5889 r"""__str__(AngularVelocity self) -> std::string"""
5890 return _IMP_atom.AngularVelocity___str__(self)
5893 r"""__repr__(AngularVelocity self) -> std::string"""
5894 return _IMP_atom.AngularVelocity___repr__(self)
5896 def _get_as_binary(self):
5897 r"""_get_as_binary(AngularVelocity self) -> PyObject *"""
5898 return _IMP_atom.AngularVelocity__get_as_binary(self)
5900 def _set_from_binary(self, p):
5901 r"""_set_from_binary(AngularVelocity self, PyObject * p)"""
5902 return _IMP_atom.AngularVelocity__set_from_binary(self, p)
5904 def __getstate__(self):
5905 p = self._get_as_binary()
5906 if len(self.__dict__) > 1:
5907 d = self.__dict__.copy()
5912 def __setstate__(self, p):
5913 if not hasattr(self,
'this'):
5915 if isinstance(p, tuple):
5917 self.__dict__.update(d)
5918 return self._set_from_binary(p)
5920 __swig_destroy__ = _IMP_atom.delete_AngularVelocity
5923 _IMP_atom.AngularVelocity_swigregister(AngularVelocity)
5924 class MolecularDynamics(Simulator):
5925 r"""Proxy of C++ IMP::atom::MolecularDynamics class."""
5927 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5929 def __init__(self, m):
5930 r"""__init__(MolecularDynamics self, Model m) -> MolecularDynamics"""
5931 _IMP_atom.MolecularDynamics_swiginit(self, _IMP_atom.new_MolecularDynamics(m))
5933 def get_kinetic_energy(self):
5934 r"""get_kinetic_energy(MolecularDynamics self) -> IMP::Float"""
5935 return _IMP_atom.MolecularDynamics_get_kinetic_energy(self)
5937 def get_kinetic_temperature(self, ekinetic):
5938 r"""get_kinetic_temperature(MolecularDynamics self, IMP::Float ekinetic) -> IMP::Float"""
5939 return _IMP_atom.MolecularDynamics_get_kinetic_temperature(self, ekinetic)
5941 def set_velocity_cap(self, velocity_cap):
5942 r"""set_velocity_cap(MolecularDynamics self, IMP::Float velocity_cap)"""
5943 return _IMP_atom.MolecularDynamics_set_velocity_cap(self, velocity_cap)
5945 def get_velocity_cap(self):
5946 r"""get_velocity_cap(MolecularDynamics self) -> IMP::Float"""
5947 return _IMP_atom.MolecularDynamics_get_velocity_cap(self)
5949 def get_degrees_of_freedom(self):
5950 r"""get_degrees_of_freedom(MolecularDynamics self) -> int"""
5951 return _IMP_atom.MolecularDynamics_get_degrees_of_freedom(self)
5953 def assign_velocities(self, temperature):
5954 r"""assign_velocities(MolecularDynamics self, IMP::Float temperature)"""
5955 return _IMP_atom.MolecularDynamics_assign_velocities(self, temperature)
5957 def setup(self, ps):
5958 r"""setup(MolecularDynamics self, IMP::ParticleIndexes const & ps)"""
5959 return _IMP_atom.MolecularDynamics_setup(self, ps)
5961 def do_step(self, sc, dt):
5962 r"""do_step(MolecularDynamics self, IMP::ParticleIndexes const & sc, double dt) -> double"""
5963 return _IMP_atom.MolecularDynamics_do_step(self, sc, dt)
5965 def get_is_simulation_particle(self, p):
5966 r"""get_is_simulation_particle(MolecularDynamics self, ParticleIndex p) -> bool"""
5967 return _IMP_atom.MolecularDynamics_get_is_simulation_particle(self, p)
5969 def get_version_info(self):
5970 r"""get_version_info(MolecularDynamics self) -> VersionInfo"""
5971 return _IMP_atom.MolecularDynamics_get_version_info(self)
5972 __swig_destroy__ = _IMP_atom.delete_MolecularDynamics
5975 r"""__str__(MolecularDynamics self) -> std::string"""
5976 return _IMP_atom.MolecularDynamics___str__(self)
5979 r"""__repr__(MolecularDynamics self) -> std::string"""
5980 return _IMP_atom.MolecularDynamics___repr__(self)
5984 return _object_cast_to_MolecularDynamics(o)
5988 from IMP.atom._jax_util
import _MDJAXInfo
5989 return _MDJAXInfo(self)
5991 def _optimize_jax(self, max_steps):
5992 import IMP.atom._jax_util
5993 return IMP.atom._jax_util._md_optimize(self, max_steps)
5997 _IMP_atom.MolecularDynamics_swigregister(MolecularDynamics)
5999 r"""Proxy of C++ IMP::atom::VelocityScalingOptimizerState class."""
6001 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6003 def __init__(self, m, pis, temperature):
6004 r"""__init__(VelocityScalingOptimizerState self, Model m, _ParticleIndexesAdaptor pis, double temperature) -> VelocityScalingOptimizerState"""
6005 _IMP_atom.VelocityScalingOptimizerState_swiginit(self, _IMP_atom.new_VelocityScalingOptimizerState(m, pis, temperature))
6007 def set_particles(self, pis):
6008 r"""set_particles(VelocityScalingOptimizerState self, IMP::Particles const & pis)"""
6009 return _IMP_atom.VelocityScalingOptimizerState_set_particles(self, pis)
6011 def set_temperature(self, temperature):
6012 r"""set_temperature(VelocityScalingOptimizerState self, IMP::Float temperature)"""
6013 return _IMP_atom.VelocityScalingOptimizerState_set_temperature(self, temperature)
6016 r"""get_particles(VelocityScalingOptimizerState self) -> IMP::Particles"""
6017 return _IMP_atom.VelocityScalingOptimizerState_get_particles(self)
6019 def get_temperature(self):
6020 r"""get_temperature(VelocityScalingOptimizerState self) -> IMP::Float"""
6021 return _IMP_atom.VelocityScalingOptimizerState_get_temperature(self)
6023 def rescale_velocities(self):
6024 r"""rescale_velocities(VelocityScalingOptimizerState self)"""
6025 return _IMP_atom.VelocityScalingOptimizerState_rescale_velocities(self)
6027 def get_version_info(self):
6028 r"""get_version_info(VelocityScalingOptimizerState self) -> VersionInfo"""
6029 return _IMP_atom.VelocityScalingOptimizerState_get_version_info(self)
6030 __swig_destroy__ = _IMP_atom.delete_VelocityScalingOptimizerState
6033 r"""__str__(VelocityScalingOptimizerState self) -> std::string"""
6034 return _IMP_atom.VelocityScalingOptimizerState___str__(self)
6037 r"""__repr__(VelocityScalingOptimizerState self) -> std::string"""
6038 return _IMP_atom.VelocityScalingOptimizerState___repr__(self)
6042 return _object_cast_to_VelocityScalingOptimizerState(o)
6045 def _get_jax(self, state_index):
6047 import jax.numpy
as jnp
6048 temperature = self.get_temperature()
6051 def scale_velocities(md, tkinetic):
6052 scale = jnp.sqrt(temperature / tkinetic)
6053 linvel = md.jm[
'linvel'].at[indexes]
6054 md.jm[
'linvel'] = linvel.multiply(scale)
6058 ekinetic = md.get_kinetic_energy()
6059 tkinetic = md.get_kinetic_temperature(ekinetic)
6060 return jax.lax.cond(tkinetic > 1e-8, scale_velocities,
6061 lambda md, tk: md, md, tkinetic)
6062 return self._wrap_jax(
lambda x: x, apply_func)
6066 _IMP_atom.VelocityScalingOptimizerState_swigregister(VelocityScalingOptimizerState)
6067 class Fragment(Hierarchy):
6068 r"""Proxy of C++ IMP::atom::Fragment class."""
6070 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6072 def set_residue_indexes(self, o):
6073 r"""set_residue_indexes(Fragment self, IMP::Ints o)"""
6074 return _IMP_atom.Fragment_set_residue_indexes(self, o)
6076 def get_residue_indexes(self):
6077 r"""get_residue_indexes(Fragment self) -> IMP::Ints"""
6078 return _IMP_atom.Fragment_get_residue_indexes(self)
6080 def get_contains_residue(self, rindex):
6081 r"""get_contains_residue(Fragment self, int rindex) -> bool"""
6082 return _IMP_atom.Fragment_get_contains_residue(self, rindex)
6084 def get_contains_any_sorted_residue(self, rinds):
6085 r"""get_contains_any_sorted_residue(Fragment self, IMP::Ints const & rinds) -> bool"""
6086 return _IMP_atom.Fragment_get_contains_any_sorted_residue(self, rinds)
6088 def __init__(self, *args):
6090 __init__(Fragment self) -> Fragment
6091 __init__(Fragment self, Model m, ParticleIndex id) -> Fragment
6092 __init__(Fragment self, _ParticleAdaptor d) -> Fragment
6094 _IMP_atom.Fragment_swiginit(self, _IMP_atom.new_Fragment(*args))
6097 def get_is_setup(*args):
6099 get_is_setup(Model m, ParticleIndex pi) -> bool
6100 get_is_setup(_ParticleAdaptor p) -> bool
6102 return _IMP_atom.Fragment_get_is_setup(*args)
6104 def show(self, *args):
6105 r"""show(Fragment self, _ostream out=std::cout)"""
6106 return _IMP_atom.Fragment_show(self, *args)
6109 def setup_particle(*args):
6111 setup_particle(Model m, ParticleIndex pi) -> Fragment
6112 setup_particle(_ParticleAdaptor pa) -> Fragment
6113 setup_particle(Model m, ParticleIndex pi, Fragment other) -> Fragment
6114 setup_particle(_ParticleAdaptor pa, Fragment other) -> Fragment
6115 setup_particle(Model m, ParticleIndex pi, IMP::Ints residue_indexes) -> Fragment
6116 setup_particle(_ParticleAdaptor pa, IMP::Ints residue_indexes) -> Fragment
6118 return _IMP_atom.Fragment_setup_particle(*args)
6120 def add_attribute(self, *args):
6122 add_attribute(Fragment self, FloatKey k, IMP::Float v, bool opt)
6123 add_attribute(Fragment self, FloatKey a0, IMP::Float a1)
6124 add_attribute(Fragment self, IntKey a0, IMP::Int a1)
6125 add_attribute(Fragment self, FloatsKey a0, IMP::Floats a1)
6126 add_attribute(Fragment self, IntsKey a0, IMP::Ints a1)
6127 add_attribute(Fragment self, StringKey a0, IMP::String a1)
6128 add_attribute(Fragment self, ParticleIndexKey a0, Particle a1)
6129 add_attribute(Fragment self, ObjectKey a0, Object a1)
6130 add_attribute(Fragment self, SparseFloatKey a0, IMP::Float a1)
6131 add_attribute(Fragment self, SparseIntKey a0, IMP::Int a1)
6132 add_attribute(Fragment self, SparseStringKey a0, IMP::String a1)
6133 add_attribute(Fragment self, SparseParticleIndexKey a0, ParticleIndex a1)
6135 return _IMP_atom.Fragment_add_attribute(self, *args)
6137 def get_value(self, *args):
6139 get_value(Fragment self, FloatKey a0) -> IMP::Float
6140 get_value(Fragment self, IntKey a0) -> IMP::Int
6141 get_value(Fragment self, FloatsKey a0) -> IMP::Floats
6142 get_value(Fragment self, IntsKey a0) -> IMP::Ints
6143 get_value(Fragment self, StringKey a0) -> IMP::String
6144 get_value(Fragment self, ParticleIndexKey a0) -> Particle
6145 get_value(Fragment self, ObjectKey a0) -> Object
6146 get_value(Fragment self, SparseFloatKey a0) -> IMP::Float
6147 get_value(Fragment self, SparseIntKey a0) -> IMP::Int
6148 get_value(Fragment self, SparseStringKey a0) -> IMP::String
6149 get_value(Fragment self, SparseParticleIndexKey a0) -> ParticleIndex
6151 return _IMP_atom.Fragment_get_value(self, *args)
6153 def set_value(self, *args):
6155 set_value(Fragment self, FloatKey a0, IMP::Float a1)
6156 set_value(Fragment self, IntKey a0, IMP::Int a1)
6157 set_value(Fragment self, FloatsKey a0, IMP::Floats a1)
6158 set_value(Fragment self, IntsKey a0, IMP::Ints a1)
6159 set_value(Fragment self, StringKey a0, IMP::String a1)
6160 set_value(Fragment self, ParticleIndexKey a0, Particle a1)
6161 set_value(Fragment self, ObjectKey a0, Object a1)
6162 set_value(Fragment self, SparseFloatKey a0, IMP::Float a1)
6163 set_value(Fragment self, SparseIntKey a0, IMP::Int a1)
6164 set_value(Fragment self, SparseStringKey a0, IMP::String a1)
6165 set_value(Fragment self, SparseParticleIndexKey a0, ParticleIndex a1)
6167 return _IMP_atom.Fragment_set_value(self, *args)
6169 def remove_attribute(self, *args):
6171 remove_attribute(Fragment self, FloatKey a0)
6172 remove_attribute(Fragment self, IntKey a0)
6173 remove_attribute(Fragment self, FloatsKey a0)
6174 remove_attribute(Fragment self, IntsKey a0)
6175 remove_attribute(Fragment self, StringKey a0)
6176 remove_attribute(Fragment self, ParticleIndexKey a0)
6177 remove_attribute(Fragment self, ObjectKey a0)
6178 remove_attribute(Fragment self, SparseFloatKey a0)
6179 remove_attribute(Fragment self, SparseIntKey a0)
6180 remove_attribute(Fragment self, SparseStringKey a0)
6181 remove_attribute(Fragment self, SparseParticleIndexKey a0)
6183 return _IMP_atom.Fragment_remove_attribute(self, *args)
6185 def has_attribute(self, *args):
6187 has_attribute(Fragment self, FloatKey a0) -> bool
6188 has_attribute(Fragment self, IntKey a0) -> bool
6189 has_attribute(Fragment self, FloatsKey a0) -> bool
6190 has_attribute(Fragment self, IntsKey a0) -> bool
6191 has_attribute(Fragment self, StringKey a0) -> bool
6192 has_attribute(Fragment self, ParticleIndexKey a0) -> bool
6193 has_attribute(Fragment self, ObjectKey a0) -> bool
6194 has_attribute(Fragment self, SparseFloatKey a0) -> bool
6195 has_attribute(Fragment self, SparseIntKey a0) -> bool
6196 has_attribute(Fragment self, SparseStringKey a0) -> bool
6197 has_attribute(Fragment self, SparseParticleIndexKey a0) -> bool
6199 return _IMP_atom.Fragment_has_attribute(self, *args)
6201 def get_derivative(self, a0):
6202 r"""get_derivative(Fragment self, FloatKey a0) -> double"""
6203 return _IMP_atom.Fragment_get_derivative(self, a0)
6206 r"""get_name(Fragment self) -> std::string"""
6207 return _IMP_atom.Fragment_get_name(self)
6209 def clear_caches(self):
6210 r"""clear_caches(Fragment self)"""
6211 return _IMP_atom.Fragment_clear_caches(self)
6213 def set_name(self, a0):
6214 r"""set_name(Fragment self, std::string a0)"""
6215 return _IMP_atom.Fragment_set_name(self, a0)
6218 r"""set_check_level(Fragment self, IMP::CheckLevel a0)"""
6219 return _IMP_atom.Fragment_set_check_level(self, a0)
6221 def add_to_derivative(self, a0, a1, a2):
6222 r"""add_to_derivative(Fragment self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
6223 return _IMP_atom.Fragment_add_to_derivative(self, a0, a1, a2)
6225 def set_is_optimized(self, a0, a1):
6226 r"""set_is_optimized(Fragment self, FloatKey a0, bool a1)"""
6227 return _IMP_atom.Fragment_set_is_optimized(self, a0, a1)
6229 def get_is_optimized(self, a0):
6230 r"""get_is_optimized(Fragment self, FloatKey a0) -> bool"""
6231 return _IMP_atom.Fragment_get_is_optimized(self, a0)
6234 r"""get_check_level(Fragment self) -> IMP::CheckLevel"""
6235 return _IMP_atom.Fragment_get_check_level(self)
6237 def __eq__(self, *args):
6239 __eq__(Fragment self, Fragment o) -> bool
6240 __eq__(Fragment self, Particle d) -> bool
6242 return _IMP_atom.Fragment___eq__(self, *args)
6244 def __ne__(self, *args):
6246 __ne__(Fragment self, Fragment o) -> bool
6247 __ne__(Fragment self, Particle d) -> bool
6249 return _IMP_atom.Fragment___ne__(self, *args)
6251 def __le__(self, *args):
6253 __le__(Fragment self, Fragment o) -> bool
6254 __le__(Fragment self, Particle d) -> bool
6256 return _IMP_atom.Fragment___le__(self, *args)
6258 def __lt__(self, *args):
6260 __lt__(Fragment self, Fragment o) -> bool
6261 __lt__(Fragment self, Particle d) -> bool
6263 return _IMP_atom.Fragment___lt__(self, *args)
6265 def __ge__(self, *args):
6267 __ge__(Fragment self, Fragment o) -> bool
6268 __ge__(Fragment self, Particle d) -> bool
6270 return _IMP_atom.Fragment___ge__(self, *args)
6272 def __gt__(self, *args):
6274 __gt__(Fragment self, Fragment o) -> bool
6275 __gt__(Fragment self, Particle d) -> bool
6277 return _IMP_atom.Fragment___gt__(self, *args)
6280 r"""__hash__(Fragment self) -> std::size_t"""
6281 return _IMP_atom.Fragment___hash__(self)
6284 r"""__str__(Fragment self) -> std::string"""
6285 return _IMP_atom.Fragment___str__(self)
6288 r"""__repr__(Fragment self) -> std::string"""
6289 return _IMP_atom.Fragment___repr__(self)
6291 def _get_as_binary(self):
6292 r"""_get_as_binary(Fragment self) -> PyObject *"""
6293 return _IMP_atom.Fragment__get_as_binary(self)
6295 def _set_from_binary(self, p):
6296 r"""_set_from_binary(Fragment self, PyObject * p)"""
6297 return _IMP_atom.Fragment__set_from_binary(self, p)
6299 def __getstate__(self):
6300 p = self._get_as_binary()
6301 if len(self.__dict__) > 1:
6302 d = self.__dict__.copy()
6307 def __setstate__(self, p):
6308 if not hasattr(self,
'this'):
6310 if isinstance(p, tuple):
6312 self.__dict__.update(d)
6313 return self._set_from_binary(p)
6315 __swig_destroy__ = _IMP_atom.delete_Fragment
6318 _IMP_atom.Fragment_swigregister(Fragment)
6320 r"""Proxy of C++ IMP::atom::StereochemistryPairFilter class."""
6322 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6325 r"""__init__(StereochemistryPairFilter self) -> StereochemistryPairFilter"""
6326 _IMP_atom.StereochemistryPairFilter_swiginit(self, _IMP_atom.new_StereochemistryPairFilter())
6328 def set_bonds(self, bonds):
6329 r"""set_bonds(StereochemistryPairFilter self, IMP::Particles const & bonds)"""
6330 return _IMP_atom.StereochemistryPairFilter_set_bonds(self, bonds)
6332 def set_angles(self, angles):
6333 r"""set_angles(StereochemistryPairFilter self, IMP::Particles const & angles)"""
6334 return _IMP_atom.StereochemistryPairFilter_set_angles(self, angles)
6336 def set_dihedrals(self, dihedrals):
6337 r"""set_dihedrals(StereochemistryPairFilter self, IMP::Particles const & dihedrals)"""
6338 return _IMP_atom.StereochemistryPairFilter_set_dihedrals(self, dihedrals)
6340 def do_get_inputs(self, m, pis):
6341 r"""do_get_inputs(StereochemistryPairFilter self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6342 return _IMP_atom.StereochemistryPairFilter_do_get_inputs(self, m, pis)
6344 def get_value(self, *args):
6346 get_value(StereochemistryPairFilter self, IMP::ParticlePair const & a) -> int
6347 get_value(StereochemistryPairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
6349 return _IMP_atom.StereochemistryPairFilter_get_value(self, *args)
6351 def get_value_index(self, *args):
6353 get_value_index(StereochemistryPairFilter self, Model m, IMP::ParticleIndexPair const & p) -> int
6354 get_value_index(StereochemistryPairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
6356 return _IMP_atom.StereochemistryPairFilter_get_value_index(self, *args)
6358 def get_version_info(self):
6359 r"""get_version_info(StereochemistryPairFilter self) -> VersionInfo"""
6360 return _IMP_atom.StereochemistryPairFilter_get_version_info(self)
6361 __swig_destroy__ = _IMP_atom.delete_StereochemistryPairFilter
6364 r"""__str__(StereochemistryPairFilter self) -> std::string"""
6365 return _IMP_atom.StereochemistryPairFilter___str__(self)
6368 r"""__repr__(StereochemistryPairFilter self) -> std::string"""
6369 return _IMP_atom.StereochemistryPairFilter___repr__(self)
6373 return _object_cast_to_StereochemistryPairFilter(o)
6377 _IMP_atom.StereochemistryPairFilter_swigregister(StereochemistryPairFilter)
6379 r"""Proxy of C++ IMP::atom::SoapPairFilter class."""
6381 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6383 def __init__(self, library):
6384 r"""__init__(SoapPairFilter self, std::string library) -> SoapPairFilter"""
6385 _IMP_atom.SoapPairFilter_swiginit(self, _IMP_atom.new_SoapPairFilter(library))
6387 def do_get_inputs(self, m, pis):
6388 r"""do_get_inputs(SoapPairFilter self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6389 return _IMP_atom.SoapPairFilter_do_get_inputs(self, m, pis)
6391 def get_value(self, *args):
6393 get_value(SoapPairFilter self, IMP::ParticlePair const & a) -> int
6394 get_value(SoapPairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
6396 return _IMP_atom.SoapPairFilter_get_value(self, *args)
6398 def get_value_index(self, *args):
6400 get_value_index(SoapPairFilter self, Model m, IMP::ParticleIndexPair const & p) -> int
6401 get_value_index(SoapPairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
6403 return _IMP_atom.SoapPairFilter_get_value_index(self, *args)
6405 def get_version_info(self):
6406 r"""get_version_info(SoapPairFilter self) -> VersionInfo"""
6407 return _IMP_atom.SoapPairFilter_get_version_info(self)
6408 __swig_destroy__ = _IMP_atom.delete_SoapPairFilter
6411 r"""__str__(SoapPairFilter self) -> std::string"""
6412 return _IMP_atom.SoapPairFilter___str__(self)
6415 r"""__repr__(SoapPairFilter self) -> std::string"""
6416 return _IMP_atom.SoapPairFilter___repr__(self)
6420 return _object_cast_to_SoapPairFilter(o)
6424 _IMP_atom.SoapPairFilter_swigregister(SoapPairFilter)
6426 r"""Proxy of C++ IMP::atom::Mass class."""
6428 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6431 r"""get_mass(Mass self) -> IMP::Float"""
6432 return _IMP_atom.Mass_get_mass(self)
6434 def set_mass(self, d):
6435 r"""set_mass(Mass self, IMP::Float d)"""
6436 return _IMP_atom.Mass_set_mass(self, d)
6438 def __init__(self, *args):
6440 __init__(Mass self) -> Mass
6441 __init__(Mass self, Model m, ParticleIndex id) -> Mass
6442 __init__(Mass self, _ParticleAdaptor d) -> Mass
6444 _IMP_atom.Mass_swiginit(self, _IMP_atom.new_Mass(*args))
6447 def get_is_setup(*args):
6449 get_is_setup(Model m, ParticleIndex pi) -> bool
6450 get_is_setup(_ParticleAdaptor p) -> bool
6452 return _IMP_atom.Mass_get_is_setup(*args)
6454 def show(self, *args):
6455 r"""show(Mass self, _ostream out=std::cout)"""
6456 return _IMP_atom.Mass_show(self, *args)
6459 def setup_particle(*args):
6461 setup_particle(Model m, ParticleIndex pi, IMP::Float mass) -> Mass
6462 setup_particle(_ParticleAdaptor pa, IMP::Float mass) -> Mass
6463 setup_particle(Model m, ParticleIndex pi, Mass other) -> Mass
6464 setup_particle(_ParticleAdaptor pa, Mass other) -> Mass
6466 return _IMP_atom.Mass_setup_particle(*args)
6470 r"""get_mass_key() -> FloatKey"""
6471 return _IMP_atom.Mass_get_mass_key()
6473 def add_attribute(self, *args):
6475 add_attribute(Mass self, FloatKey k, IMP::Float v, bool opt)
6476 add_attribute(Mass self, FloatKey a0, IMP::Float a1)
6477 add_attribute(Mass self, IntKey a0, IMP::Int a1)
6478 add_attribute(Mass self, FloatsKey a0, IMP::Floats a1)
6479 add_attribute(Mass self, IntsKey a0, IMP::Ints a1)
6480 add_attribute(Mass self, StringKey a0, IMP::String a1)
6481 add_attribute(Mass self, ParticleIndexKey a0, Particle a1)
6482 add_attribute(Mass self, ObjectKey a0, Object a1)
6483 add_attribute(Mass self, SparseFloatKey a0, IMP::Float a1)
6484 add_attribute(Mass self, SparseIntKey a0, IMP::Int a1)
6485 add_attribute(Mass self, SparseStringKey a0, IMP::String a1)
6486 add_attribute(Mass self, SparseParticleIndexKey a0, ParticleIndex a1)
6488 return _IMP_atom.Mass_add_attribute(self, *args)
6490 def get_value(self, *args):
6492 get_value(Mass self, FloatKey a0) -> IMP::Float
6493 get_value(Mass self, IntKey a0) -> IMP::Int
6494 get_value(Mass self, FloatsKey a0) -> IMP::Floats
6495 get_value(Mass self, IntsKey a0) -> IMP::Ints
6496 get_value(Mass self, StringKey a0) -> IMP::String
6497 get_value(Mass self, ParticleIndexKey a0) -> Particle
6498 get_value(Mass self, ObjectKey a0) -> Object
6499 get_value(Mass self, SparseFloatKey a0) -> IMP::Float
6500 get_value(Mass self, SparseIntKey a0) -> IMP::Int
6501 get_value(Mass self, SparseStringKey a0) -> IMP::String
6502 get_value(Mass self, SparseParticleIndexKey a0) -> ParticleIndex
6504 return _IMP_atom.Mass_get_value(self, *args)
6506 def set_value(self, *args):
6508 set_value(Mass self, FloatKey a0, IMP::Float a1)
6509 set_value(Mass self, IntKey a0, IMP::Int a1)
6510 set_value(Mass self, FloatsKey a0, IMP::Floats a1)
6511 set_value(Mass self, IntsKey a0, IMP::Ints a1)
6512 set_value(Mass self, StringKey a0, IMP::String a1)
6513 set_value(Mass self, ParticleIndexKey a0, Particle a1)
6514 set_value(Mass self, ObjectKey a0, Object a1)
6515 set_value(Mass self, SparseFloatKey a0, IMP::Float a1)
6516 set_value(Mass self, SparseIntKey a0, IMP::Int a1)
6517 set_value(Mass self, SparseStringKey a0, IMP::String a1)
6518 set_value(Mass self, SparseParticleIndexKey a0, ParticleIndex a1)
6520 return _IMP_atom.Mass_set_value(self, *args)
6522 def remove_attribute(self, *args):
6524 remove_attribute(Mass self, FloatKey a0)
6525 remove_attribute(Mass self, IntKey a0)
6526 remove_attribute(Mass self, FloatsKey a0)
6527 remove_attribute(Mass self, IntsKey a0)
6528 remove_attribute(Mass self, StringKey a0)
6529 remove_attribute(Mass self, ParticleIndexKey a0)
6530 remove_attribute(Mass self, ObjectKey a0)
6531 remove_attribute(Mass self, SparseFloatKey a0)
6532 remove_attribute(Mass self, SparseIntKey a0)
6533 remove_attribute(Mass self, SparseStringKey a0)
6534 remove_attribute(Mass self, SparseParticleIndexKey a0)
6536 return _IMP_atom.Mass_remove_attribute(self, *args)
6538 def has_attribute(self, *args):
6540 has_attribute(Mass self, FloatKey a0) -> bool
6541 has_attribute(Mass self, IntKey a0) -> bool
6542 has_attribute(Mass self, FloatsKey a0) -> bool
6543 has_attribute(Mass self, IntsKey a0) -> bool
6544 has_attribute(Mass self, StringKey a0) -> bool
6545 has_attribute(Mass self, ParticleIndexKey a0) -> bool
6546 has_attribute(Mass self, ObjectKey a0) -> bool
6547 has_attribute(Mass self, SparseFloatKey a0) -> bool
6548 has_attribute(Mass self, SparseIntKey a0) -> bool
6549 has_attribute(Mass self, SparseStringKey a0) -> bool
6550 has_attribute(Mass self, SparseParticleIndexKey a0) -> bool
6552 return _IMP_atom.Mass_has_attribute(self, *args)
6554 def get_derivative(self, a0):
6555 r"""get_derivative(Mass self, FloatKey a0) -> double"""
6556 return _IMP_atom.Mass_get_derivative(self, a0)
6559 r"""get_name(Mass self) -> std::string"""
6560 return _IMP_atom.Mass_get_name(self)
6562 def clear_caches(self):
6563 r"""clear_caches(Mass self)"""
6564 return _IMP_atom.Mass_clear_caches(self)
6566 def set_name(self, a0):
6567 r"""set_name(Mass self, std::string a0)"""
6568 return _IMP_atom.Mass_set_name(self, a0)
6571 r"""set_check_level(Mass self, IMP::CheckLevel a0)"""
6572 return _IMP_atom.Mass_set_check_level(self, a0)
6574 def add_to_derivative(self, a0, a1, a2):
6575 r"""add_to_derivative(Mass self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
6576 return _IMP_atom.Mass_add_to_derivative(self, a0, a1, a2)
6578 def set_is_optimized(self, a0, a1):
6579 r"""set_is_optimized(Mass self, FloatKey a0, bool a1)"""
6580 return _IMP_atom.Mass_set_is_optimized(self, a0, a1)
6582 def get_is_optimized(self, a0):
6583 r"""get_is_optimized(Mass self, FloatKey a0) -> bool"""
6584 return _IMP_atom.Mass_get_is_optimized(self, a0)
6587 r"""get_check_level(Mass self) -> IMP::CheckLevel"""
6588 return _IMP_atom.Mass_get_check_level(self)
6590 def __eq__(self, *args):
6592 __eq__(Mass self, Mass o) -> bool
6593 __eq__(Mass self, Particle d) -> bool
6595 return _IMP_atom.Mass___eq__(self, *args)
6597 def __ne__(self, *args):
6599 __ne__(Mass self, Mass o) -> bool
6600 __ne__(Mass self, Particle d) -> bool
6602 return _IMP_atom.Mass___ne__(self, *args)
6604 def __le__(self, *args):
6606 __le__(Mass self, Mass o) -> bool
6607 __le__(Mass self, Particle d) -> bool
6609 return _IMP_atom.Mass___le__(self, *args)
6611 def __lt__(self, *args):
6613 __lt__(Mass self, Mass o) -> bool
6614 __lt__(Mass self, Particle d) -> bool
6616 return _IMP_atom.Mass___lt__(self, *args)
6618 def __ge__(self, *args):
6620 __ge__(Mass self, Mass o) -> bool
6621 __ge__(Mass self, Particle d) -> bool
6623 return _IMP_atom.Mass___ge__(self, *args)
6625 def __gt__(self, *args):
6627 __gt__(Mass self, Mass o) -> bool
6628 __gt__(Mass self, Particle d) -> bool
6630 return _IMP_atom.Mass___gt__(self, *args)
6633 r"""__hash__(Mass self) -> std::size_t"""
6634 return _IMP_atom.Mass___hash__(self)
6637 r"""__str__(Mass self) -> std::string"""
6638 return _IMP_atom.Mass___str__(self)
6641 r"""__repr__(Mass self) -> std::string"""
6642 return _IMP_atom.Mass___repr__(self)
6644 def _get_as_binary(self):
6645 r"""_get_as_binary(Mass self) -> PyObject *"""
6646 return _IMP_atom.Mass__get_as_binary(self)
6648 def _set_from_binary(self, p):
6649 r"""_set_from_binary(Mass self, PyObject * p)"""
6650 return _IMP_atom.Mass__set_from_binary(self, p)
6652 def __getstate__(self):
6653 p = self._get_as_binary()
6654 if len(self.__dict__) > 1:
6655 d = self.__dict__.copy()
6660 def __setstate__(self, p):
6661 if not hasattr(self,
'this'):
6663 if isinstance(p, tuple):
6665 self.__dict__.update(d)
6666 return self._set_from_binary(p)
6668 __swig_destroy__ = _IMP_atom.delete_Mass
6671 _IMP_atom.Mass_swigregister(Mass)
6673 r"""Proxy of C++ IMP::atom::BondedPairFilter class."""
6675 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6678 r"""__init__(BondedPairFilter self) -> BondedPairFilter"""
6679 _IMP_atom.BondedPairFilter_swiginit(self, _IMP_atom.new_BondedPairFilter())
6681 def do_get_inputs(self, m, pis):
6682 r"""do_get_inputs(BondedPairFilter self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6683 return _IMP_atom.BondedPairFilter_do_get_inputs(self, m, pis)
6685 def get_value(self, *args):
6687 get_value(BondedPairFilter self, IMP::ParticlePair const & a) -> int
6688 get_value(BondedPairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
6690 return _IMP_atom.BondedPairFilter_get_value(self, *args)
6692 def get_value_index(self, *args):
6694 get_value_index(BondedPairFilter self, Model m, IMP::ParticleIndexPair const & p) -> int
6695 get_value_index(BondedPairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
6697 return _IMP_atom.BondedPairFilter_get_value_index(self, *args)
6699 def get_version_info(self):
6700 r"""get_version_info(BondedPairFilter self) -> VersionInfo"""
6701 return _IMP_atom.BondedPairFilter_get_version_info(self)
6702 __swig_destroy__ = _IMP_atom.delete_BondedPairFilter
6705 r"""__str__(BondedPairFilter self) -> std::string"""
6706 return _IMP_atom.BondedPairFilter___str__(self)
6709 r"""__repr__(BondedPairFilter self) -> std::string"""
6710 return _IMP_atom.BondedPairFilter___repr__(self)
6714 return _object_cast_to_BondedPairFilter(o)
6718 _IMP_atom.BondedPairFilter_swigregister(BondedPairFilter)
6720 r"""Proxy of C++ IMP::atom::Mol2Selector class."""
6722 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6724 def __init__(self, *args, **kwargs):
6725 raise AttributeError(
"No constructor defined - class is abstract")
6727 def get_is_selected(self, atom_line):
6728 r"""get_is_selected(Mol2Selector self, std::string const & atom_line) -> bool"""
6729 return _IMP_atom.Mol2Selector_get_is_selected(self, atom_line)
6730 __swig_destroy__ = _IMP_atom.delete_Mol2Selector
6733 r"""__str__(Mol2Selector self) -> std::string"""
6734 return _IMP_atom.Mol2Selector___str__(self)
6737 r"""__repr__(Mol2Selector self) -> std::string"""
6738 return _IMP_atom.Mol2Selector___repr__(self)
6742 return _object_cast_to_Mol2Selector(o)
6746 _IMP_atom.Mol2Selector_swigregister(Mol2Selector)
6747 class AllMol2Selector(Mol2Selector):
6748 r"""Proxy of C++ IMP::atom::AllMol2Selector class."""
6750 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6753 r"""__str__(AllMol2Selector self) -> std::string"""
6754 return _IMP_atom.AllMol2Selector___str__(self)
6757 r"""__repr__(AllMol2Selector self) -> std::string"""
6758 return _IMP_atom.AllMol2Selector___repr__(self)
6762 return _object_cast_to_AllMol2Selector(o)
6766 r"""__init__(AllMol2Selector self) -> AllMol2Selector"""
6767 _IMP_atom.AllMol2Selector_swiginit(self, _IMP_atom.new_AllMol2Selector())
6768 __swig_destroy__ = _IMP_atom.delete_AllMol2Selector
6771 _IMP_atom.AllMol2Selector_swigregister(AllMol2Selector)
6772 class NonHydrogenMol2Selector(Mol2Selector):
6773 r"""Proxy of C++ IMP::atom::NonHydrogenMol2Selector class."""
6775 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6778 r"""__str__(NonHydrogenMol2Selector self) -> std::string"""
6779 return _IMP_atom.NonHydrogenMol2Selector___str__(self)
6782 r"""__repr__(NonHydrogenMol2Selector self) -> std::string"""
6783 return _IMP_atom.NonHydrogenMol2Selector___repr__(self)
6787 return _object_cast_to_NonHydrogenMol2Selector(o)
6791 r"""__init__(NonHydrogenMol2Selector self) -> NonHydrogenMol2Selector"""
6792 _IMP_atom.NonHydrogenMol2Selector_swiginit(self, _IMP_atom.new_NonHydrogenMol2Selector())
6793 __swig_destroy__ = _IMP_atom.delete_NonHydrogenMol2Selector
6796 _IMP_atom.NonHydrogenMol2Selector_swigregister(NonHydrogenMol2Selector)
6798 def read_mol2(mol2_file, model, mol2sel=None):
6799 r"""read_mol2(TextInput mol2_file, Model model, Mol2Selector mol2sel=None) -> Hierarchy"""
6800 return _IMP_atom.read_mol2(mol2_file, model, mol2sel)
6803 r"""write_mol2(Hierarchy rhd, TextOutput file_name)"""
6804 return _IMP_atom.write_mol2(rhd, file_name)
6806 r"""Proxy of C++ IMP::atom::SecondaryStructureResidue class."""
6808 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6810 def __init__(self, *args):
6812 __init__(SecondaryStructureResidue self) -> SecondaryStructureResidue
6813 __init__(SecondaryStructureResidue self, Model m, ParticleIndex id) -> SecondaryStructureResidue
6814 __init__(SecondaryStructureResidue self, _ParticleAdaptor d) -> SecondaryStructureResidue
6816 _IMP_atom.SecondaryStructureResidue_swiginit(self, _IMP_atom.new_SecondaryStructureResidue(*args))
6818 def show(self, *args):
6819 r"""show(SecondaryStructureResidue self, _ostream out=std::cout)"""
6820 return _IMP_atom.SecondaryStructureResidue_show(self, *args)
6823 def setup_particle(*args):
6825 setup_particle(Model m, ParticleIndex pi, IMP::Float prob_helix, IMP::Float prob_strand, IMP::Float prob_coil) -> SecondaryStructureResidue
6826 setup_particle(_ParticleAdaptor pa, IMP::Float prob_helix, IMP::Float prob_strand, IMP::Float prob_coil) -> SecondaryStructureResidue
6827 setup_particle(Particle res_p) -> SecondaryStructureResidue
6829 return _IMP_atom.SecondaryStructureResidue_setup_particle(*args)
6832 def get_is_setup(*args):
6834 get_is_setup(_ParticleAdaptor p) -> bool
6835 get_is_setup(Model m, ParticleIndex pi) -> bool
6837 return _IMP_atom.SecondaryStructureResidue_get_is_setup(*args)
6839 def get_particle(self):
6840 r"""get_particle(SecondaryStructureResidue self) -> Particle"""
6841 return _IMP_atom.SecondaryStructureResidue_get_particle(self)
6843 def get_all_probabilities(self):
6844 r"""get_all_probabilities(SecondaryStructureResidue self) -> IMP::Floats"""
6845 return _IMP_atom.SecondaryStructureResidue_get_all_probabilities(self)
6847 def get_prob_helix(self):
6848 r"""get_prob_helix(SecondaryStructureResidue self) -> IMP::Float"""
6849 return _IMP_atom.SecondaryStructureResidue_get_prob_helix(self)
6851 def set_prob_helix(self, t):
6852 r"""set_prob_helix(SecondaryStructureResidue self, IMP::Float t)"""
6853 return _IMP_atom.SecondaryStructureResidue_set_prob_helix(self, t)
6855 def get_prob_strand(self):
6856 r"""get_prob_strand(SecondaryStructureResidue self) -> IMP::Float"""
6857 return _IMP_atom.SecondaryStructureResidue_get_prob_strand(self)
6859 def set_prob_strand(self, t):
6860 r"""set_prob_strand(SecondaryStructureResidue self, IMP::Float t)"""
6861 return _IMP_atom.SecondaryStructureResidue_set_prob_strand(self, t)
6863 def get_prob_coil(self):
6864 r"""get_prob_coil(SecondaryStructureResidue self) -> IMP::Float"""
6865 return _IMP_atom.SecondaryStructureResidue_get_prob_coil(self)
6867 def set_prob_coil(self, t):
6868 r"""set_prob_coil(SecondaryStructureResidue self, IMP::Float t)"""
6869 return _IMP_atom.SecondaryStructureResidue_set_prob_coil(self, t)
6872 def get_prob_helix_key():
6873 r"""get_prob_helix_key() -> FloatKey"""
6874 return _IMP_atom.SecondaryStructureResidue_get_prob_helix_key()
6877 def get_prob_strand_key():
6878 r"""get_prob_strand_key() -> FloatKey"""
6879 return _IMP_atom.SecondaryStructureResidue_get_prob_strand_key()
6882 def get_prob_coil_key():
6883 r"""get_prob_coil_key() -> FloatKey"""
6884 return _IMP_atom.SecondaryStructureResidue_get_prob_coil_key()
6886 def add_attribute(self, *args):
6888 add_attribute(SecondaryStructureResidue self, FloatKey k, IMP::Float v, bool opt)
6889 add_attribute(SecondaryStructureResidue self, FloatKey a0, IMP::Float a1)
6890 add_attribute(SecondaryStructureResidue self, IntKey a0, IMP::Int a1)
6891 add_attribute(SecondaryStructureResidue self, FloatsKey a0, IMP::Floats a1)
6892 add_attribute(SecondaryStructureResidue self, IntsKey a0, IMP::Ints a1)
6893 add_attribute(SecondaryStructureResidue self, StringKey a0, IMP::String a1)
6894 add_attribute(SecondaryStructureResidue self, ParticleIndexKey a0, Particle a1)
6895 add_attribute(SecondaryStructureResidue self, ObjectKey a0, Object a1)
6896 add_attribute(SecondaryStructureResidue self, SparseFloatKey a0, IMP::Float a1)
6897 add_attribute(SecondaryStructureResidue self, SparseIntKey a0, IMP::Int a1)
6898 add_attribute(SecondaryStructureResidue self, SparseStringKey a0, IMP::String a1)
6899 add_attribute(SecondaryStructureResidue self, SparseParticleIndexKey a0, ParticleIndex a1)
6901 return _IMP_atom.SecondaryStructureResidue_add_attribute(self, *args)
6903 def get_value(self, *args):
6905 get_value(SecondaryStructureResidue self, FloatKey a0) -> IMP::Float
6906 get_value(SecondaryStructureResidue self, IntKey a0) -> IMP::Int
6907 get_value(SecondaryStructureResidue self, FloatsKey a0) -> IMP::Floats
6908 get_value(SecondaryStructureResidue self, IntsKey a0) -> IMP::Ints
6909 get_value(SecondaryStructureResidue self, StringKey a0) -> IMP::String
6910 get_value(SecondaryStructureResidue self, ParticleIndexKey a0) -> Particle
6911 get_value(SecondaryStructureResidue self, ObjectKey a0) -> Object
6912 get_value(SecondaryStructureResidue self, SparseFloatKey a0) -> IMP::Float
6913 get_value(SecondaryStructureResidue self, SparseIntKey a0) -> IMP::Int
6914 get_value(SecondaryStructureResidue self, SparseStringKey a0) -> IMP::String
6915 get_value(SecondaryStructureResidue self, SparseParticleIndexKey a0) -> ParticleIndex
6917 return _IMP_atom.SecondaryStructureResidue_get_value(self, *args)
6919 def set_value(self, *args):
6921 set_value(SecondaryStructureResidue self, FloatKey a0, IMP::Float a1)
6922 set_value(SecondaryStructureResidue self, IntKey a0, IMP::Int a1)
6923 set_value(SecondaryStructureResidue self, FloatsKey a0, IMP::Floats a1)
6924 set_value(SecondaryStructureResidue self, IntsKey a0, IMP::Ints a1)
6925 set_value(SecondaryStructureResidue self, StringKey a0, IMP::String a1)
6926 set_value(SecondaryStructureResidue self, ParticleIndexKey a0, Particle a1)
6927 set_value(SecondaryStructureResidue self, ObjectKey a0, Object a1)
6928 set_value(SecondaryStructureResidue self, SparseFloatKey a0, IMP::Float a1)
6929 set_value(SecondaryStructureResidue self, SparseIntKey a0, IMP::Int a1)
6930 set_value(SecondaryStructureResidue self, SparseStringKey a0, IMP::String a1)
6931 set_value(SecondaryStructureResidue self, SparseParticleIndexKey a0, ParticleIndex a1)
6933 return _IMP_atom.SecondaryStructureResidue_set_value(self, *args)
6935 def remove_attribute(self, *args):
6937 remove_attribute(SecondaryStructureResidue self, FloatKey a0)
6938 remove_attribute(SecondaryStructureResidue self, IntKey a0)
6939 remove_attribute(SecondaryStructureResidue self, FloatsKey a0)
6940 remove_attribute(SecondaryStructureResidue self, IntsKey a0)
6941 remove_attribute(SecondaryStructureResidue self, StringKey a0)
6942 remove_attribute(SecondaryStructureResidue self, ParticleIndexKey a0)
6943 remove_attribute(SecondaryStructureResidue self, ObjectKey a0)
6944 remove_attribute(SecondaryStructureResidue self, SparseFloatKey a0)
6945 remove_attribute(SecondaryStructureResidue self, SparseIntKey a0)
6946 remove_attribute(SecondaryStructureResidue self, SparseStringKey a0)
6947 remove_attribute(SecondaryStructureResidue self, SparseParticleIndexKey a0)
6949 return _IMP_atom.SecondaryStructureResidue_remove_attribute(self, *args)
6951 def has_attribute(self, *args):
6953 has_attribute(SecondaryStructureResidue self, FloatKey a0) -> bool
6954 has_attribute(SecondaryStructureResidue self, IntKey a0) -> bool
6955 has_attribute(SecondaryStructureResidue self, FloatsKey a0) -> bool
6956 has_attribute(SecondaryStructureResidue self, IntsKey a0) -> bool
6957 has_attribute(SecondaryStructureResidue self, StringKey a0) -> bool
6958 has_attribute(SecondaryStructureResidue self, ParticleIndexKey a0) -> bool
6959 has_attribute(SecondaryStructureResidue self, ObjectKey a0) -> bool
6960 has_attribute(SecondaryStructureResidue self, SparseFloatKey a0) -> bool
6961 has_attribute(SecondaryStructureResidue self, SparseIntKey a0) -> bool
6962 has_attribute(SecondaryStructureResidue self, SparseStringKey a0) -> bool
6963 has_attribute(SecondaryStructureResidue self, SparseParticleIndexKey a0) -> bool
6965 return _IMP_atom.SecondaryStructureResidue_has_attribute(self, *args)
6967 def get_derivative(self, a0):
6968 r"""get_derivative(SecondaryStructureResidue self, FloatKey a0) -> double"""
6969 return _IMP_atom.SecondaryStructureResidue_get_derivative(self, a0)
6972 r"""get_name(SecondaryStructureResidue self) -> std::string"""
6973 return _IMP_atom.SecondaryStructureResidue_get_name(self)
6975 def clear_caches(self):
6976 r"""clear_caches(SecondaryStructureResidue self)"""
6977 return _IMP_atom.SecondaryStructureResidue_clear_caches(self)
6979 def set_name(self, a0):
6980 r"""set_name(SecondaryStructureResidue self, std::string a0)"""
6981 return _IMP_atom.SecondaryStructureResidue_set_name(self, a0)
6984 r"""set_check_level(SecondaryStructureResidue self, IMP::CheckLevel a0)"""
6985 return _IMP_atom.SecondaryStructureResidue_set_check_level(self, a0)
6987 def add_to_derivative(self, a0, a1, a2):
6988 r"""add_to_derivative(SecondaryStructureResidue self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
6989 return _IMP_atom.SecondaryStructureResidue_add_to_derivative(self, a0, a1, a2)
6991 def set_is_optimized(self, a0, a1):
6992 r"""set_is_optimized(SecondaryStructureResidue self, FloatKey a0, bool a1)"""
6993 return _IMP_atom.SecondaryStructureResidue_set_is_optimized(self, a0, a1)
6995 def get_is_optimized(self, a0):
6996 r"""get_is_optimized(SecondaryStructureResidue self, FloatKey a0) -> bool"""
6997 return _IMP_atom.SecondaryStructureResidue_get_is_optimized(self, a0)
7000 r"""get_check_level(SecondaryStructureResidue self) -> IMP::CheckLevel"""
7001 return _IMP_atom.SecondaryStructureResidue_get_check_level(self)
7003 def __eq__(self, *args):
7005 __eq__(SecondaryStructureResidue self, SecondaryStructureResidue o) -> bool
7006 __eq__(SecondaryStructureResidue self, Particle d) -> bool
7008 return _IMP_atom.SecondaryStructureResidue___eq__(self, *args)
7010 def __ne__(self, *args):
7012 __ne__(SecondaryStructureResidue self, SecondaryStructureResidue o) -> bool
7013 __ne__(SecondaryStructureResidue self, Particle d) -> bool
7015 return _IMP_atom.SecondaryStructureResidue___ne__(self, *args)
7017 def __le__(self, *args):
7019 __le__(SecondaryStructureResidue self, SecondaryStructureResidue o) -> bool
7020 __le__(SecondaryStructureResidue self, Particle d) -> bool
7022 return _IMP_atom.SecondaryStructureResidue___le__(self, *args)
7024 def __lt__(self, *args):
7026 __lt__(SecondaryStructureResidue self, SecondaryStructureResidue o) -> bool
7027 __lt__(SecondaryStructureResidue self, Particle d) -> bool
7029 return _IMP_atom.SecondaryStructureResidue___lt__(self, *args)
7031 def __ge__(self, *args):
7033 __ge__(SecondaryStructureResidue self, SecondaryStructureResidue o) -> bool
7034 __ge__(SecondaryStructureResidue self, Particle d) -> bool
7036 return _IMP_atom.SecondaryStructureResidue___ge__(self, *args)
7038 def __gt__(self, *args):
7040 __gt__(SecondaryStructureResidue self, SecondaryStructureResidue o) -> bool
7041 __gt__(SecondaryStructureResidue self, Particle d) -> bool
7043 return _IMP_atom.SecondaryStructureResidue___gt__(self, *args)
7046 r"""__hash__(SecondaryStructureResidue self) -> std::size_t"""
7047 return _IMP_atom.SecondaryStructureResidue___hash__(self)
7050 r"""__str__(SecondaryStructureResidue self) -> std::string"""
7051 return _IMP_atom.SecondaryStructureResidue___str__(self)
7054 r"""__repr__(SecondaryStructureResidue self) -> std::string"""
7055 return _IMP_atom.SecondaryStructureResidue___repr__(self)
7057 def _get_as_binary(self):
7058 r"""_get_as_binary(SecondaryStructureResidue self) -> PyObject *"""
7059 return _IMP_atom.SecondaryStructureResidue__get_as_binary(self)
7061 def _set_from_binary(self, p):
7062 r"""_set_from_binary(SecondaryStructureResidue self, PyObject * p)"""
7063 return _IMP_atom.SecondaryStructureResidue__set_from_binary(self, p)
7065 def __getstate__(self):
7066 p = self._get_as_binary()
7067 if len(self.__dict__) > 1:
7068 d = self.__dict__.copy()
7073 def __setstate__(self, p):
7074 if not hasattr(self,
'this'):
7076 if isinstance(p, tuple):
7078 self.__dict__.update(d)
7079 return self._set_from_binary(p)
7081 __swig_destroy__ = _IMP_atom.delete_SecondaryStructureResidue
7084 _IMP_atom.SecondaryStructureResidue_swigregister(SecondaryStructureResidue)
7087 r"""setup_coarse_secondary_structure_residue(IMP::Particles const & ssr_ps, Model mdl, bool winner_takes_all_per_res=False) -> SecondaryStructureResidue"""
7088 return _IMP_atom.setup_coarse_secondary_structure_residue(ssr_ps, mdl, winner_takes_all_per_res)
7091 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"""
7092 return _IMP_atom.setup_coarse_secondary_structure_residues(ssr_ps, mdl, coarse_factor, start_res_num, winner_takes_all_per_res)
7095 r"""get_secondary_structure_match_score(SecondaryStructureResidue ssr1, SecondaryStructureResidue ssr2) -> IMP::Float"""
7096 return _IMP_atom.get_secondary_structure_match_score(ssr1, ssr2)
7098 def read_psipred(*args):
7100 read_psipred(TextInput inf, Model mdl) -> IMP::atom::SecondaryStructureResidues
7101 read_psipred(TextInput inf, IMP::Particles ps) -> IMP::atom::SecondaryStructureResidues
7103 return _IMP_atom.read_psipred(*args)
7105 r"""Proxy of C++ IMP::score_functor::DistancePairScore< IMP::score_functor::Dope > class."""
7107 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7108 __repr__ = _swig_repr
7110 def __init__(self, *args):
7112 __init__(_ADopeBase self, Dope t0, std::string name="FunctorDistancePairScore %1%") -> _ADopeBase
7113 __init__(_ADopeBase self) -> _ADopeBase
7115 _IMP_atom._ADopeBase_swiginit(self, _IMP_atom.new__ADopeBase(*args))
7117 def do_get_inputs(self, m, pis):
7118 r"""do_get_inputs(_ADopeBase self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7119 return _IMP_atom._ADopeBase_do_get_inputs(self, m, pis)
7121 def get_score_functor(self, *args):
7123 get_score_functor(_ADopeBase self) -> Dope
7124 get_score_functor(_ADopeBase self) -> Dope
7126 return _IMP_atom._ADopeBase_get_score_functor(self, *args)
7128 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
7129 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"""
7130 return _IMP_atom._ADopeBase_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
7132 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
7133 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"""
7134 return _IMP_atom._ADopeBase_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
7136 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
7137 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"""
7138 return _IMP_atom._ADopeBase_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
7140 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
7141 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"""
7142 return _IMP_atom._ADopeBase_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
7144 def get_version_info(self):
7145 r"""get_version_info(_ADopeBase self) -> VersionInfo"""
7146 return _IMP_atom._ADopeBase_get_version_info(self)
7147 __swig_destroy__ = _IMP_atom.delete__ADopeBase
7150 _IMP_atom._ADopeBase_swigregister(_ADopeBase)
7152 r"""Proxy of C++ IMP::score_functor::DistancePairScore< IMP::score_functor::Statistical< IMP::atom::DopeType,false,true,false > > class."""
7154 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7155 __repr__ = _swig_repr
7157 def __init__(self, *args):
7159 __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
7160 __init__(_BDopeBase self) -> _BDopeBase
7162 _IMP_atom._BDopeBase_swiginit(self, _IMP_atom.new__BDopeBase(*args))
7164 def do_get_inputs(self, m, pis):
7165 r"""do_get_inputs(_BDopeBase self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7166 return _IMP_atom._BDopeBase_do_get_inputs(self, m, pis)
7168 def get_score_functor(self, *args):
7170 get_score_functor(_BDopeBase self) -> _DopeBase
7171 get_score_functor(_BDopeBase self) -> _DopeBase
7173 return _IMP_atom._BDopeBase_get_score_functor(self, *args)
7175 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
7176 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"""
7177 return _IMP_atom._BDopeBase_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
7179 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
7180 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"""
7181 return _IMP_atom._BDopeBase_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
7183 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
7184 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"""
7185 return _IMP_atom._BDopeBase_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
7187 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
7188 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"""
7189 return _IMP_atom._BDopeBase_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
7191 def get_version_info(self):
7192 r"""get_version_info(_BDopeBase self) -> VersionInfo"""
7193 return _IMP_atom._BDopeBase_get_version_info(self)
7194 __swig_destroy__ = _IMP_atom.delete__BDopeBase
7197 _IMP_atom._BDopeBase_swigregister(_BDopeBase)
7199 r"""Proxy of C++ IMP::score_functor::DistancePairScore< IMP::score_functor::LoopStatistical > class."""
7201 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7202 __repr__ = _swig_repr
7204 def __init__(self, *args):
7206 __init__(_ALoopStatisticalBase self, LoopStatistical t0, std::string name="FunctorDistancePairScore %1%") -> _ALoopStatisticalBase
7207 __init__(_ALoopStatisticalBase self) -> _ALoopStatisticalBase
7209 _IMP_atom._ALoopStatisticalBase_swiginit(self, _IMP_atom.new__ALoopStatisticalBase(*args))
7211 def do_get_inputs(self, m, pis):
7212 r"""do_get_inputs(_ALoopStatisticalBase self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7213 return _IMP_atom._ALoopStatisticalBase_do_get_inputs(self, m, pis)
7215 def get_score_functor(self, *args):
7217 get_score_functor(_ALoopStatisticalBase self) -> LoopStatistical
7218 get_score_functor(_ALoopStatisticalBase self) -> LoopStatistical
7220 return _IMP_atom._ALoopStatisticalBase_get_score_functor(self, *args)
7222 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
7223 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"""
7224 return _IMP_atom._ALoopStatisticalBase_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
7226 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
7227 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"""
7228 return _IMP_atom._ALoopStatisticalBase_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
7230 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
7231 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"""
7232 return _IMP_atom._ALoopStatisticalBase_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
7234 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
7235 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"""
7236 return _IMP_atom._ALoopStatisticalBase_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
7238 def get_version_info(self):
7239 r"""get_version_info(_ALoopStatisticalBase self) -> VersionInfo"""
7240 return _IMP_atom._ALoopStatisticalBase_get_version_info(self)
7241 __swig_destroy__ = _IMP_atom.delete__ALoopStatisticalBase
7244 _IMP_atom._ALoopStatisticalBase_swigregister(_ALoopStatisticalBase)
7246 r"""Proxy of C++ IMP::score_functor::DistancePairScore< IMP::score_functor::Statistical< IMP::atom::LoopStatisticalType,false,true,false > > class."""
7248 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7249 __repr__ = _swig_repr
7251 def __init__(self, *args):
7253 __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
7254 __init__(_BLoopStatisticalBase self) -> _BLoopStatisticalBase
7256 _IMP_atom._BLoopStatisticalBase_swiginit(self, _IMP_atom.new__BLoopStatisticalBase(*args))
7258 def do_get_inputs(self, m, pis):
7259 r"""do_get_inputs(_BLoopStatisticalBase self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7260 return _IMP_atom._BLoopStatisticalBase_do_get_inputs(self, m, pis)
7262 def get_score_functor(self, *args):
7264 get_score_functor(_BLoopStatisticalBase self) -> _LoopStatisticalBase
7265 get_score_functor(_BLoopStatisticalBase self) -> _LoopStatisticalBase
7267 return _IMP_atom._BLoopStatisticalBase_get_score_functor(self, *args)
7269 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
7270 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"""
7271 return _IMP_atom._BLoopStatisticalBase_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
7273 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
7274 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"""
7275 return _IMP_atom._BLoopStatisticalBase_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
7277 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
7278 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"""
7279 return _IMP_atom._BLoopStatisticalBase_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
7281 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
7282 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"""
7283 return _IMP_atom._BLoopStatisticalBase_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
7285 def get_version_info(self):
7286 r"""get_version_info(_BLoopStatisticalBase self) -> VersionInfo"""
7287 return _IMP_atom._BLoopStatisticalBase_get_version_info(self)
7288 __swig_destroy__ = _IMP_atom.delete__BLoopStatisticalBase
7291 _IMP_atom._BLoopStatisticalBase_swigregister(_BLoopStatisticalBase)
7293 r"""Proxy of C++ IMP::score_functor::DistancePairScoreWithCache< IMP::score_functor::OrientedSoap > class."""
7295 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7296 __repr__ = _swig_repr
7298 def __init__(self, *args):
7299 r"""__init__(_OrientedSoapBase self, IMP::score_functor::DistancePairScoreWithCache< IMP::score_functor::OrientedSoap >::DistanceScore const & t0, std::string name="FunctorDistancePairScoreWithCache %1%") -> _OrientedSoapBase"""
7300 _IMP_atom._OrientedSoapBase_swiginit(self, _IMP_atom.new__OrientedSoapBase(*args))
7302 def do_get_inputs(self, m, pis):
7303 r"""do_get_inputs(_OrientedSoapBase self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7304 return _IMP_atom._OrientedSoapBase_do_get_inputs(self, m, pis)
7306 def get_score_functor(self):
7307 r"""get_score_functor(_OrientedSoapBase self) -> IMP::score_functor::OrientedSoap &"""
7308 return _IMP_atom._OrientedSoapBase_get_score_functor(self)
7310 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
7311 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"""
7312 return _IMP_atom._OrientedSoapBase_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
7314 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
7315 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"""
7316 return _IMP_atom._OrientedSoapBase_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
7318 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
7319 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"""
7320 return _IMP_atom._OrientedSoapBase_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
7322 def get_version_info(self):
7323 r"""get_version_info(_OrientedSoapBase self) -> VersionInfo"""
7324 return _IMP_atom._OrientedSoapBase_get_version_info(self)
7325 __swig_destroy__ = _IMP_atom.delete__OrientedSoapBase
7328 _IMP_atom._OrientedSoapBase_swigregister(_OrientedSoapBase)
7330 r"""Proxy of C++ IMP::score_functor::DistancePairScore< score_functor::Statistical< IMP::atom::ProteinLigandType,true,false > > class."""
7332 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7333 __repr__ = _swig_repr
7335 def __init__(self, *args):
7337 __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
7338 __init__(_SPSFTB self) -> _SPSFTB
7340 _IMP_atom._SPSFTB_swiginit(self, _IMP_atom.new__SPSFTB(*args))
7342 def do_get_inputs(self, m, pis):
7343 r"""do_get_inputs(_SPSFTB self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7344 return _IMP_atom._SPSFTB_do_get_inputs(self, m, pis)
7346 def get_score_functor(self, *args):
7348 get_score_functor(_SPSFTB self) -> IMP::score_functor::Statistical< IMP::atom::ProteinLigandType,true,false,false >
7349 get_score_functor(_SPSFTB self) -> IMP::score_functor::Statistical< IMP::atom::ProteinLigandType,true,false,false > const &
7351 return _IMP_atom._SPSFTB_get_score_functor(self, *args)
7353 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
7354 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"""
7355 return _IMP_atom._SPSFTB_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
7357 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
7358 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"""
7359 return _IMP_atom._SPSFTB_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
7361 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
7362 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"""
7363 return _IMP_atom._SPSFTB_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
7365 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
7366 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"""
7367 return _IMP_atom._SPSFTB_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
7369 def get_version_info(self):
7370 r"""get_version_info(_SPSFTB self) -> VersionInfo"""
7371 return _IMP_atom._SPSFTB_get_version_info(self)
7372 __swig_destroy__ = _IMP_atom.delete__SPSFTB
7375 _IMP_atom._SPSFTB_swigregister(_SPSFTB)
7376 class _SPSTF(_SPSFTB):
7377 r"""Proxy of C++ IMP::core::StatisticalPairScore< IMP::atom::ProteinLigandType,true,false > class."""
7379 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7380 __repr__ = _swig_repr
7382 def __init__(self, *args):
7384 __init__(_SPSTF self, IntKey k, double threshold, TextInput data_file) -> _SPSTF
7385 __init__(_SPSTF self, IntKey k, double threshold, TextInput data_file, unsigned int shift) -> _SPSTF
7387 _IMP_atom._SPSTF_swiginit(self, _IMP_atom.new__SPSTF(*args))
7388 __swig_destroy__ = _IMP_atom.delete__SPSTF
7391 _IMP_atom._SPSTF_swigregister(_SPSTF)
7392 class _SPSFT(_BDopeBase):
7393 r"""Proxy of C++ IMP::core::StatisticalPairScore< IMP::atom::DopeType,false,true > class."""
7395 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7396 __repr__ = _swig_repr
7398 def __init__(self, *args):
7400 __init__(_SPSFT self, IntKey k, double threshold, TextInput data_file) -> _SPSFT
7401 __init__(_SPSFT self, IntKey k, double threshold, TextInput data_file, unsigned int shift) -> _SPSFT
7403 _IMP_atom._SPSFT_swiginit(self, _IMP_atom.new__SPSFT(*args))
7404 __swig_destroy__ = _IMP_atom.delete__SPSFT
7407 _IMP_atom._SPSFT_swigregister(_SPSFT)
7408 class _SPSFTL(_BLoopStatisticalBase):
7409 r"""Proxy of C++ IMP::core::StatisticalPairScore< IMP::atom::LoopStatisticalType,false,true > class."""
7411 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7412 __repr__ = _swig_repr
7414 def __init__(self, *args):
7416 __init__(_SPSFTL self, IntKey k, double threshold, TextInput data_file) -> _SPSFTL
7417 __init__(_SPSFTL self, IntKey k, double threshold, TextInput data_file, unsigned int shift) -> _SPSFTL
7419 _IMP_atom._SPSFTL_swiginit(self, _IMP_atom.new__SPSFTL(*args))
7420 __swig_destroy__ = _IMP_atom.delete__SPSFTL
7423 _IMP_atom._SPSFTL_swigregister(_SPSFTL)
7424 class ProteinLigandAtomPairScore(_SPSTF):
7425 r"""Proxy of C++ IMP::atom::ProteinLigandAtomPairScore class."""
7427 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7429 def __init__(self, *args):
7431 __init__(ProteinLigandAtomPairScore self, double threshold=std::numeric_limits< double >::max()) -> ProteinLigandAtomPairScore
7432 __init__(ProteinLigandAtomPairScore self, double threshold, TextInput data_file) -> ProteinLigandAtomPairScore
7434 _IMP_atom.ProteinLigandAtomPairScore_swiginit(self, _IMP_atom.new_ProteinLigandAtomPairScore(*args))
7436 def get_maximum_distance(self):
7437 r"""get_maximum_distance(ProteinLigandAtomPairScore self) -> double"""
7438 return _IMP_atom.ProteinLigandAtomPairScore_get_maximum_distance(self)
7441 r"""__str__(ProteinLigandAtomPairScore self) -> std::string"""
7442 return _IMP_atom.ProteinLigandAtomPairScore___str__(self)
7445 r"""__repr__(ProteinLigandAtomPairScore self) -> std::string"""
7446 return _IMP_atom.ProteinLigandAtomPairScore___repr__(self)
7450 return _object_cast_to_ProteinLigandAtomPairScore(o)
7452 __swig_destroy__ = _IMP_atom.delete_ProteinLigandAtomPairScore
7455 _IMP_atom.ProteinLigandAtomPairScore_swigregister(ProteinLigandAtomPairScore)
7457 r"""Proxy of C++ IMP::atom::ProteinLigandRestraint class."""
7459 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7461 def __init__(self, *args):
7463 __init__(ProteinLigandRestraint self, Hierarchy protein, Hierarchy ligand, double threshold=std::numeric_limits< double >::max()) -> ProteinLigandRestraint
7464 __init__(ProteinLigandRestraint self, Hierarchy protein, Hierarchy ligand, double threshold, TextInput data_file) -> ProteinLigandRestraint
7466 _IMP_atom.ProteinLigandRestraint_swiginit(self, _IMP_atom.new_ProteinLigandRestraint(*args))
7469 r"""__str__(ProteinLigandRestraint self) -> std::string"""
7470 return _IMP_atom.ProteinLigandRestraint___str__(self)
7473 r"""__repr__(ProteinLigandRestraint self) -> std::string"""
7474 return _IMP_atom.ProteinLigandRestraint___repr__(self)
7478 return _object_cast_to_ProteinLigandRestraint(o)
7480 __swig_destroy__ = _IMP_atom.delete_ProteinLigandRestraint
7483 _IMP_atom.ProteinLigandRestraint_swigregister(ProteinLigandRestraint)
7486 r"""add_protein_ligand_score_data(Hierarchy h)"""
7487 return _IMP_atom.add_protein_ligand_score_data(h)
7488 class AtomType(IMP._Value):
7489 r"""Proxy of C++ IMP::Key< 8974343 > class."""
7491 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7493 def __init__(self, *args):
7495 __init__(AtomType self) -> AtomType
7496 __init__(AtomType self, std::string const & c, bool is_implicit_add_permitted=True) -> AtomType
7497 __init__(AtomType self, unsigned int i) -> AtomType
7499 _IMP_atom.AtomType_swiginit(self, _IMP_atom.new_AtomType(*args))
7503 r"""add_key(std::string sc) -> unsigned int"""
7504 return _IMP_atom.AtomType_add_key(sc)
7507 def get_key_exists(sc):
7508 r"""get_key_exists(std::string sc) -> bool"""
7509 return _IMP_atom.AtomType_get_key_exists(sc)
7511 def get_string(self):
7512 r"""get_string(AtomType self) -> std::string const"""
7513 return _IMP_atom.AtomType_get_string(self)
7515 def __cmp__(self, o):
7516 r"""__cmp__(AtomType self, AtomType o) -> int"""
7517 return _IMP_atom.AtomType___cmp__(self, o)
7519 def __eq__(self, o):
7520 r"""__eq__(AtomType self, AtomType o) -> bool"""
7521 return _IMP_atom.AtomType___eq__(self, o)
7523 def __ne__(self, o):
7524 r"""__ne__(AtomType self, AtomType o) -> bool"""
7525 return _IMP_atom.AtomType___ne__(self, o)
7527 def __lt__(self, o):
7528 r"""__lt__(AtomType self, AtomType o) -> bool"""
7529 return _IMP_atom.AtomType___lt__(self, o)
7531 def __gt__(self, o):
7532 r"""__gt__(AtomType self, AtomType o) -> bool"""
7533 return _IMP_atom.AtomType___gt__(self, o)
7535 def __ge__(self, o):
7536 r"""__ge__(AtomType self, AtomType o) -> bool"""
7537 return _IMP_atom.AtomType___ge__(self, o)
7539 def __le__(self, o):
7540 r"""__le__(AtomType self, AtomType o) -> bool"""
7541 return _IMP_atom.AtomType___le__(self, o)
7544 r"""__hash__(AtomType self) -> std::size_t"""
7545 return _IMP_atom.AtomType___hash__(self)
7547 def show(self, *args):
7548 r"""show(AtomType self, _ostream out=std::cout)"""
7549 return _IMP_atom.AtomType_show(self, *args)
7552 def add_alias(old_key, new_name):
7553 r"""add_alias(AtomType old_key, std::string new_name) -> AtomType"""
7554 return _IMP_atom.AtomType_add_alias(old_key, new_name)
7557 def get_number_of_keys():
7558 r"""get_number_of_keys() -> unsigned int"""
7559 return _IMP_atom.AtomType_get_number_of_keys()
7562 r"""get_index(AtomType self) -> unsigned int"""
7563 return _IMP_atom.AtomType_get_index(self)
7567 r"""show_all(_ostream out)"""
7568 return _IMP_atom.AtomType_show_all(out)
7571 def get_all_strings():
7572 r"""get_all_strings() -> IMP::Vector< std::string >"""
7573 return _IMP_atom.AtomType_get_all_strings()
7576 def get_number_unique():
7577 r"""get_number_unique() -> unsigned int"""
7578 return _IMP_atom.AtomType_get_number_unique()
7581 r"""__str__(AtomType self) -> std::string"""
7582 return _IMP_atom.AtomType___str__(self)
7585 r"""__repr__(AtomType self) -> std::string"""
7586 return _IMP_atom.AtomType___repr__(self)
7587 __swig_destroy__ = _IMP_atom.delete_AtomType
7590 _IMP_atom.AtomType_swigregister(AtomType)
7591 class ResidueType(IMP._Value):
7592 r"""Proxy of C++ IMP::Key< 90784334 > class."""
7594 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7596 def __init__(self, *args):
7598 __init__(ResidueType self) -> ResidueType
7599 __init__(ResidueType self, std::string const & c, bool is_implicit_add_permitted=True) -> ResidueType
7600 __init__(ResidueType self, unsigned int i) -> ResidueType
7602 _IMP_atom.ResidueType_swiginit(self, _IMP_atom.new_ResidueType(*args))
7606 r"""add_key(std::string sc) -> unsigned int"""
7607 return _IMP_atom.ResidueType_add_key(sc)
7610 def get_key_exists(sc):
7611 r"""get_key_exists(std::string sc) -> bool"""
7612 return _IMP_atom.ResidueType_get_key_exists(sc)
7614 def get_string(self):
7615 r"""get_string(ResidueType self) -> std::string const"""
7616 return _IMP_atom.ResidueType_get_string(self)
7618 def __cmp__(self, o):
7619 r"""__cmp__(ResidueType self, ResidueType o) -> int"""
7620 return _IMP_atom.ResidueType___cmp__(self, o)
7622 def __eq__(self, o):
7623 r"""__eq__(ResidueType self, ResidueType o) -> bool"""
7624 return _IMP_atom.ResidueType___eq__(self, o)
7626 def __ne__(self, o):
7627 r"""__ne__(ResidueType self, ResidueType o) -> bool"""
7628 return _IMP_atom.ResidueType___ne__(self, o)
7630 def __lt__(self, o):
7631 r"""__lt__(ResidueType self, ResidueType o) -> bool"""
7632 return _IMP_atom.ResidueType___lt__(self, o)
7634 def __gt__(self, o):
7635 r"""__gt__(ResidueType self, ResidueType o) -> bool"""
7636 return _IMP_atom.ResidueType___gt__(self, o)
7638 def __ge__(self, o):
7639 r"""__ge__(ResidueType self, ResidueType o) -> bool"""
7640 return _IMP_atom.ResidueType___ge__(self, o)
7642 def __le__(self, o):
7643 r"""__le__(ResidueType self, ResidueType o) -> bool"""
7644 return _IMP_atom.ResidueType___le__(self, o)
7647 r"""__hash__(ResidueType self) -> std::size_t"""
7648 return _IMP_atom.ResidueType___hash__(self)
7650 def show(self, *args):
7651 r"""show(ResidueType self, _ostream out=std::cout)"""
7652 return _IMP_atom.ResidueType_show(self, *args)
7655 def add_alias(old_key, new_name):
7656 r"""add_alias(ResidueType old_key, std::string new_name) -> ResidueType"""
7657 return _IMP_atom.ResidueType_add_alias(old_key, new_name)
7660 def get_number_of_keys():
7661 r"""get_number_of_keys() -> unsigned int"""
7662 return _IMP_atom.ResidueType_get_number_of_keys()
7665 r"""get_index(ResidueType self) -> unsigned int"""
7666 return _IMP_atom.ResidueType_get_index(self)
7670 r"""show_all(_ostream out)"""
7671 return _IMP_atom.ResidueType_show_all(out)
7674 def get_all_strings():
7675 r"""get_all_strings() -> IMP::Vector< std::string >"""
7676 return _IMP_atom.ResidueType_get_all_strings()
7679 def get_number_unique():
7680 r"""get_number_unique() -> unsigned int"""
7681 return _IMP_atom.ResidueType_get_number_unique()
7684 r"""__str__(ResidueType self) -> std::string"""
7685 return _IMP_atom.ResidueType___str__(self)
7688 r"""__repr__(ResidueType self) -> std::string"""
7689 return _IMP_atom.ResidueType___repr__(self)
7690 __swig_destroy__ = _IMP_atom.delete_ResidueType
7693 _IMP_atom.ResidueType_swigregister(ResidueType)
7694 class ChainType(IMP._Value):
7695 r"""Proxy of C++ IMP::Key< 90784336 > class."""
7697 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7699 def __init__(self, *args):
7701 __init__(ChainType self) -> ChainType
7702 __init__(ChainType self, std::string const & c, bool is_implicit_add_permitted=True) -> ChainType
7703 __init__(ChainType self, unsigned int i) -> ChainType
7705 _IMP_atom.ChainType_swiginit(self, _IMP_atom.new_ChainType(*args))
7709 r"""add_key(std::string sc) -> unsigned int"""
7710 return _IMP_atom.ChainType_add_key(sc)
7713 def get_key_exists(sc):
7714 r"""get_key_exists(std::string sc) -> bool"""
7715 return _IMP_atom.ChainType_get_key_exists(sc)
7717 def get_string(self):
7718 r"""get_string(ChainType self) -> std::string const"""
7719 return _IMP_atom.ChainType_get_string(self)
7721 def __cmp__(self, o):
7722 r"""__cmp__(ChainType self, ChainType o) -> int"""
7723 return _IMP_atom.ChainType___cmp__(self, o)
7725 def __eq__(self, o):
7726 r"""__eq__(ChainType self, ChainType o) -> bool"""
7727 return _IMP_atom.ChainType___eq__(self, o)
7729 def __ne__(self, o):
7730 r"""__ne__(ChainType self, ChainType o) -> bool"""
7731 return _IMP_atom.ChainType___ne__(self, o)
7733 def __lt__(self, o):
7734 r"""__lt__(ChainType self, ChainType o) -> bool"""
7735 return _IMP_atom.ChainType___lt__(self, o)
7737 def __gt__(self, o):
7738 r"""__gt__(ChainType self, ChainType o) -> bool"""
7739 return _IMP_atom.ChainType___gt__(self, o)
7741 def __ge__(self, o):
7742 r"""__ge__(ChainType self, ChainType o) -> bool"""
7743 return _IMP_atom.ChainType___ge__(self, o)
7745 def __le__(self, o):
7746 r"""__le__(ChainType self, ChainType o) -> bool"""
7747 return _IMP_atom.ChainType___le__(self, o)
7750 r"""__hash__(ChainType self) -> std::size_t"""
7751 return _IMP_atom.ChainType___hash__(self)
7753 def show(self, *args):
7754 r"""show(ChainType self, _ostream out=std::cout)"""
7755 return _IMP_atom.ChainType_show(self, *args)
7758 def add_alias(old_key, new_name):
7759 r"""add_alias(ChainType old_key, std::string new_name) -> ChainType"""
7760 return _IMP_atom.ChainType_add_alias(old_key, new_name)
7763 def get_number_of_keys():
7764 r"""get_number_of_keys() -> unsigned int"""
7765 return _IMP_atom.ChainType_get_number_of_keys()
7768 r"""get_index(ChainType self) -> unsigned int"""
7769 return _IMP_atom.ChainType_get_index(self)
7773 r"""show_all(_ostream out)"""
7774 return _IMP_atom.ChainType_show_all(out)
7777 def get_all_strings():
7778 r"""get_all_strings() -> IMP::Vector< std::string >"""
7779 return _IMP_atom.ChainType_get_all_strings()
7782 def get_number_unique():
7783 r"""get_number_unique() -> unsigned int"""
7784 return _IMP_atom.ChainType_get_number_unique()
7787 r"""__str__(ChainType self) -> std::string"""
7788 return _IMP_atom.ChainType___str__(self)
7791 r"""__repr__(ChainType self) -> std::string"""
7792 return _IMP_atom.ChainType___repr__(self)
7793 __swig_destroy__ = _IMP_atom.delete_ChainType
7796 _IMP_atom.ChainType_swigregister(ChainType)
7797 UNKNOWN_ELEMENT = _IMP_atom.UNKNOWN_ELEMENT
8015 NUMBER_OF_ELEMENTS = _IMP_atom.NUMBER_OF_ELEMENTS
8019 r"""hash_value(IMP::atom::Element e) -> size_t"""
8020 return _IMP_atom.hash_value(e)
8021 class ElementTable(object):
8022 r"""Proxy of C++ IMP::atom::ElementTable class."""
8024 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8025 __repr__ = _swig_repr
8028 r"""__init__(ElementTable self) -> ElementTable"""
8029 _IMP_atom.ElementTable_swiginit(self, _IMP_atom.new_ElementTable())
8031 def get_element(self, s):
8032 r"""get_element(ElementTable self, std::string const & s) -> IMP::atom::Element"""
8033 return _IMP_atom.ElementTable_get_element(self, s)
8035 def get_name(self, e):
8036 r"""get_name(ElementTable self, IMP::atom::Element e) -> std::string"""
8037 return _IMP_atom.ElementTable_get_name(self, e)
8040 r"""get_mass(ElementTable self, IMP::atom::Element e) -> IMP::Float"""
8041 return _IMP_atom.ElementTable_get_mass(self, e)
8042 __swig_destroy__ = _IMP_atom.delete_ElementTable
8045 _IMP_atom.ElementTable_swigregister(ElementTable)
8047 def get_element_table():
8048 r"""get_element_table() -> ElementTable"""
8049 return _IMP_atom.get_element_table()
8050 class Atom(Hierarchy):
8051 r"""Proxy of C++ IMP::atom::Atom class."""
8053 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8055 def __init__(self, *args):
8057 __init__(Atom self) -> Atom
8058 __init__(Atom self, Model m, ParticleIndex id) -> Atom
8059 __init__(Atom self, _ParticleAdaptor d) -> Atom
8061 _IMP_atom.Atom_swiginit(self, _IMP_atom.new_Atom(*args))
8063 def show(self, *args):
8064 r"""show(Atom self, _ostream out=std::cout)"""
8065 return _IMP_atom.Atom_show(self, *args)
8068 def setup_particle(*args):
8070 setup_particle(Model m, ParticleIndex pi, Atom other) -> Atom
8071 setup_particle(_ParticleAdaptor pa, Atom other) -> Atom
8072 setup_particle(Model m, ParticleIndex pi, AtomType atom_type) -> Atom
8073 setup_particle(_ParticleAdaptor pa, AtomType atom_type) -> Atom
8075 return _IMP_atom.Atom_setup_particle(*args)
8078 def get_is_setup(*args):
8080 get_is_setup(_ParticleAdaptor p) -> bool
8081 get_is_setup(Model m, ParticleIndex pi) -> bool
8083 return _IMP_atom.Atom_get_is_setup(*args)
8085 def get_atom_type(self):
8086 r"""get_atom_type(Atom self) -> AtomType"""
8087 return _IMP_atom.Atom_get_atom_type(self)
8089 def set_atom_type(self, t):
8090 r"""set_atom_type(Atom self, AtomType t)"""
8091 return _IMP_atom.Atom_set_atom_type(self, t)
8093 def get_element(self):
8094 r"""get_element(Atom self) -> IMP::atom::Element"""
8095 return _IMP_atom.Atom_get_element(self)
8097 def set_element(self, e):
8098 r"""set_element(Atom self, IMP::atom::Element e)"""
8099 return _IMP_atom.Atom_set_element(self, e)
8101 def get_occupancy(self):
8102 r"""get_occupancy(Atom self) -> double"""
8103 return _IMP_atom.Atom_get_occupancy(self)
8105 def set_occupancy(self, occupancy):
8106 r"""set_occupancy(Atom self, double occupancy)"""
8107 return _IMP_atom.Atom_set_occupancy(self, occupancy)
8109 def get_temperature_factor(self):
8110 r"""get_temperature_factor(Atom self) -> double"""
8111 return _IMP_atom.Atom_get_temperature_factor(self)
8113 def set_temperature_factor(self, tempFactor):
8114 r"""set_temperature_factor(Atom self, double tempFactor)"""
8115 return _IMP_atom.Atom_set_temperature_factor(self, tempFactor)
8117 def get_input_index(self):
8118 r"""get_input_index(Atom self) -> IMP::Int"""
8119 return _IMP_atom.Atom_get_input_index(self)
8121 def set_input_index(self, t):
8122 r"""set_input_index(Atom self, IMP::Int t)"""
8123 return _IMP_atom.Atom_set_input_index(self, t)
8126 def get_atom_type_key():
8127 r"""get_atom_type_key() -> IntKey"""
8128 return _IMP_atom.Atom_get_atom_type_key()
8131 def get_element_key():
8132 r"""get_element_key() -> IntKey"""
8133 return _IMP_atom.Atom_get_element_key()
8136 def get_input_index_key():
8137 r"""get_input_index_key() -> IntKey"""
8138 return _IMP_atom.Atom_get_input_index_key()
8141 def get_occupancy_key():
8142 r"""get_occupancy_key() -> FloatKey"""
8143 return _IMP_atom.Atom_get_occupancy_key()
8146 def get_temperature_factor_key():
8147 r"""get_temperature_factor_key() -> FloatKey"""
8148 return _IMP_atom.Atom_get_temperature_factor_key()
8150 def add_attribute(self, *args):
8152 add_attribute(Atom self, FloatKey k, IMP::Float v, bool opt)
8153 add_attribute(Atom self, FloatKey a0, IMP::Float a1)
8154 add_attribute(Atom self, IntKey a0, IMP::Int a1)
8155 add_attribute(Atom self, FloatsKey a0, IMP::Floats a1)
8156 add_attribute(Atom self, IntsKey a0, IMP::Ints a1)
8157 add_attribute(Atom self, StringKey a0, IMP::String a1)
8158 add_attribute(Atom self, ParticleIndexKey a0, Particle a1)
8159 add_attribute(Atom self, ObjectKey a0, Object a1)
8160 add_attribute(Atom self, SparseFloatKey a0, IMP::Float a1)
8161 add_attribute(Atom self, SparseIntKey a0, IMP::Int a1)
8162 add_attribute(Atom self, SparseStringKey a0, IMP::String a1)
8163 add_attribute(Atom self, SparseParticleIndexKey a0, ParticleIndex a1)
8165 return _IMP_atom.Atom_add_attribute(self, *args)
8167 def get_value(self, *args):
8169 get_value(Atom self, FloatKey a0) -> IMP::Float
8170 get_value(Atom self, IntKey a0) -> IMP::Int
8171 get_value(Atom self, FloatsKey a0) -> IMP::Floats
8172 get_value(Atom self, IntsKey a0) -> IMP::Ints
8173 get_value(Atom self, StringKey a0) -> IMP::String
8174 get_value(Atom self, ParticleIndexKey a0) -> Particle
8175 get_value(Atom self, ObjectKey a0) -> Object
8176 get_value(Atom self, SparseFloatKey a0) -> IMP::Float
8177 get_value(Atom self, SparseIntKey a0) -> IMP::Int
8178 get_value(Atom self, SparseStringKey a0) -> IMP::String
8179 get_value(Atom self, SparseParticleIndexKey a0) -> ParticleIndex
8181 return _IMP_atom.Atom_get_value(self, *args)
8183 def set_value(self, *args):
8185 set_value(Atom self, FloatKey a0, IMP::Float a1)
8186 set_value(Atom self, IntKey a0, IMP::Int a1)
8187 set_value(Atom self, FloatsKey a0, IMP::Floats a1)
8188 set_value(Atom self, IntsKey a0, IMP::Ints a1)
8189 set_value(Atom self, StringKey a0, IMP::String a1)
8190 set_value(Atom self, ParticleIndexKey a0, Particle a1)
8191 set_value(Atom self, ObjectKey a0, Object a1)
8192 set_value(Atom self, SparseFloatKey a0, IMP::Float a1)
8193 set_value(Atom self, SparseIntKey a0, IMP::Int a1)
8194 set_value(Atom self, SparseStringKey a0, IMP::String a1)
8195 set_value(Atom self, SparseParticleIndexKey a0, ParticleIndex a1)
8197 return _IMP_atom.Atom_set_value(self, *args)
8199 def remove_attribute(self, *args):
8201 remove_attribute(Atom self, FloatKey a0)
8202 remove_attribute(Atom self, IntKey a0)
8203 remove_attribute(Atom self, FloatsKey a0)
8204 remove_attribute(Atom self, IntsKey a0)
8205 remove_attribute(Atom self, StringKey a0)
8206 remove_attribute(Atom self, ParticleIndexKey a0)
8207 remove_attribute(Atom self, ObjectKey a0)
8208 remove_attribute(Atom self, SparseFloatKey a0)
8209 remove_attribute(Atom self, SparseIntKey a0)
8210 remove_attribute(Atom self, SparseStringKey a0)
8211 remove_attribute(Atom self, SparseParticleIndexKey a0)
8213 return _IMP_atom.Atom_remove_attribute(self, *args)
8215 def has_attribute(self, *args):
8217 has_attribute(Atom self, FloatKey a0) -> bool
8218 has_attribute(Atom self, IntKey a0) -> bool
8219 has_attribute(Atom self, FloatsKey a0) -> bool
8220 has_attribute(Atom self, IntsKey a0) -> bool
8221 has_attribute(Atom self, StringKey a0) -> bool
8222 has_attribute(Atom self, ParticleIndexKey a0) -> bool
8223 has_attribute(Atom self, ObjectKey a0) -> bool
8224 has_attribute(Atom self, SparseFloatKey a0) -> bool
8225 has_attribute(Atom self, SparseIntKey a0) -> bool
8226 has_attribute(Atom self, SparseStringKey a0) -> bool
8227 has_attribute(Atom self, SparseParticleIndexKey a0) -> bool
8229 return _IMP_atom.Atom_has_attribute(self, *args)
8231 def get_derivative(self, a0):
8232 r"""get_derivative(Atom self, FloatKey a0) -> double"""
8233 return _IMP_atom.Atom_get_derivative(self, a0)
8236 r"""get_name(Atom self) -> std::string"""
8237 return _IMP_atom.Atom_get_name(self)
8239 def clear_caches(self):
8240 r"""clear_caches(Atom self)"""
8241 return _IMP_atom.Atom_clear_caches(self)
8243 def set_name(self, a0):
8244 r"""set_name(Atom self, std::string a0)"""
8245 return _IMP_atom.Atom_set_name(self, a0)
8248 r"""set_check_level(Atom self, IMP::CheckLevel a0)"""
8249 return _IMP_atom.Atom_set_check_level(self, a0)
8251 def add_to_derivative(self, a0, a1, a2):
8252 r"""add_to_derivative(Atom self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8253 return _IMP_atom.Atom_add_to_derivative(self, a0, a1, a2)
8255 def set_is_optimized(self, a0, a1):
8256 r"""set_is_optimized(Atom self, FloatKey a0, bool a1)"""
8257 return _IMP_atom.Atom_set_is_optimized(self, a0, a1)
8259 def get_is_optimized(self, a0):
8260 r"""get_is_optimized(Atom self, FloatKey a0) -> bool"""
8261 return _IMP_atom.Atom_get_is_optimized(self, a0)
8264 r"""get_check_level(Atom self) -> IMP::CheckLevel"""
8265 return _IMP_atom.Atom_get_check_level(self)
8267 def __eq__(self, *args):
8269 __eq__(Atom self, Atom o) -> bool
8270 __eq__(Atom self, Particle d) -> bool
8272 return _IMP_atom.Atom___eq__(self, *args)
8274 def __ne__(self, *args):
8276 __ne__(Atom self, Atom o) -> bool
8277 __ne__(Atom self, Particle d) -> bool
8279 return _IMP_atom.Atom___ne__(self, *args)
8281 def __le__(self, *args):
8283 __le__(Atom self, Atom o) -> bool
8284 __le__(Atom self, Particle d) -> bool
8286 return _IMP_atom.Atom___le__(self, *args)
8288 def __lt__(self, *args):
8290 __lt__(Atom self, Atom o) -> bool
8291 __lt__(Atom self, Particle d) -> bool
8293 return _IMP_atom.Atom___lt__(self, *args)
8295 def __ge__(self, *args):
8297 __ge__(Atom self, Atom o) -> bool
8298 __ge__(Atom self, Particle d) -> bool
8300 return _IMP_atom.Atom___ge__(self, *args)
8302 def __gt__(self, *args):
8304 __gt__(Atom self, Atom o) -> bool
8305 __gt__(Atom self, Particle d) -> bool
8307 return _IMP_atom.Atom___gt__(self, *args)
8310 r"""__hash__(Atom self) -> std::size_t"""
8311 return _IMP_atom.Atom___hash__(self)
8314 r"""__str__(Atom self) -> std::string"""
8315 return _IMP_atom.Atom___str__(self)
8318 r"""__repr__(Atom self) -> std::string"""
8319 return _IMP_atom.Atom___repr__(self)
8321 def _get_as_binary(self):
8322 r"""_get_as_binary(Atom self) -> PyObject *"""
8323 return _IMP_atom.Atom__get_as_binary(self)
8325 def _set_from_binary(self, p):
8326 r"""_set_from_binary(Atom self, PyObject * p)"""
8327 return _IMP_atom.Atom__set_from_binary(self, p)
8329 def __getstate__(self):
8330 p = self._get_as_binary()
8331 if len(self.__dict__) > 1:
8332 d = self.__dict__.copy()
8337 def __setstate__(self, p):
8338 if not hasattr(self,
'this'):
8340 if isinstance(p, tuple):
8342 self.__dict__.update(d)
8343 return self._set_from_binary(p)
8345 __swig_destroy__ = _IMP_atom.delete_Atom
8348 _IMP_atom.Atom_swigregister(Atom)
8349 cvar = _IMP_atom.cvar
8350 AT_UNKNOWN = cvar.AT_UNKNOWN
8360 AT_HA1 = cvar.AT_HA1
8361 AT_HA2 = cvar.AT_HA2
8362 AT_HA3 = cvar.AT_HA3
8365 AT_HB1 = cvar.AT_HB1
8366 AT_HB2 = cvar.AT_HB2
8367 AT_HB3 = cvar.AT_HB3
8368 AT_OXT = cvar.AT_OXT
8369 AT_CH3 = cvar.AT_CH3
8372 AT_CG1 = cvar.AT_CG1
8373 AT_CG2 = cvar.AT_CG2
8375 AT_HG1 = cvar.AT_HG1
8376 AT_HG2 = cvar.AT_HG2
8377 AT_HG3 = cvar.AT_HG3
8378 AT_HG11 = cvar.AT_HG11
8379 AT_HG21 = cvar.AT_HG21
8380 AT_HG31 = cvar.AT_HG31
8381 AT_HG12 = cvar.AT_HG12
8382 AT_HG13 = cvar.AT_HG13
8383 AT_HG22 = cvar.AT_HG22
8384 AT_HG23 = cvar.AT_HG23
8385 AT_HG32 = cvar.AT_HG32
8387 AT_OG1 = cvar.AT_OG1
8390 AT_CD1 = cvar.AT_CD1
8391 AT_CD2 = cvar.AT_CD2
8393 AT_HD1 = cvar.AT_HD1
8394 AT_HD2 = cvar.AT_HD2
8395 AT_HD3 = cvar.AT_HD3
8396 AT_HD11 = cvar.AT_HD11
8397 AT_HD21 = cvar.AT_HD21
8398 AT_HD31 = cvar.AT_HD31
8399 AT_HD12 = cvar.AT_HD12
8400 AT_HD13 = cvar.AT_HD13
8401 AT_HD22 = cvar.AT_HD22
8402 AT_HD23 = cvar.AT_HD23
8403 AT_HD32 = cvar.AT_HD32
8405 AT_OD1 = cvar.AT_OD1
8406 AT_OD2 = cvar.AT_OD2
8407 AT_ND1 = cvar.AT_ND1
8408 AT_ND2 = cvar.AT_ND2
8410 AT_CE1 = cvar.AT_CE1
8411 AT_CE2 = cvar.AT_CE2
8412 AT_CE3 = cvar.AT_CE3
8414 AT_HE1 = cvar.AT_HE1
8415 AT_HE2 = cvar.AT_HE2
8416 AT_HE3 = cvar.AT_HE3
8417 AT_HE21 = cvar.AT_HE21
8418 AT_HE22 = cvar.AT_HE22
8419 AT_OE1 = cvar.AT_OE1
8420 AT_OE2 = cvar.AT_OE2
8422 AT_NE1 = cvar.AT_NE1
8423 AT_NE2 = cvar.AT_NE2
8425 AT_CZ2 = cvar.AT_CZ2
8426 AT_CZ3 = cvar.AT_CZ3
8429 AT_HZ1 = cvar.AT_HZ1
8430 AT_HZ2 = cvar.AT_HZ2
8431 AT_HZ3 = cvar.AT_HZ3
8432 AT_CH2 = cvar.AT_CH2
8433 AT_NH1 = cvar.AT_NH1
8434 AT_NH2 = cvar.AT_NH2
8437 AT_HH11 = cvar.AT_HH11
8438 AT_HH21 = cvar.AT_HH21
8439 AT_HH2 = cvar.AT_HH2
8440 AT_HH12 = cvar.AT_HH12
8441 AT_HH22 = cvar.AT_HH22
8442 AT_HH13 = cvar.AT_HH13
8443 AT_HH23 = cvar.AT_HH23
8444 AT_HH33 = cvar.AT_HH33
8446 AT_OP1 = cvar.AT_OP1
8447 AT_OP2 = cvar.AT_OP2
8448 AT_OP3 = cvar.AT_OP3
8449 AT_O5p = cvar.AT_O5p
8450 AT_C5p = cvar.AT_C5p
8451 AT_H5p = cvar.AT_H5p
8452 AT_H5pp = cvar.AT_H5pp
8453 AT_C4p = cvar.AT_C4p
8454 AT_H4p = cvar.AT_H4p
8455 AT_O4p = cvar.AT_O4p
8456 AT_C1p = cvar.AT_C1p
8457 AT_H1p = cvar.AT_H1p
8458 AT_C3p = cvar.AT_C3p
8459 AT_H3p = cvar.AT_H3p
8460 AT_O3p = cvar.AT_O3p
8461 AT_C2p = cvar.AT_C2p
8462 AT_H2p = cvar.AT_H2p
8463 AT_H2pp = cvar.AT_H2pp
8464 AT_O2p = cvar.AT_O2p
8465 AT_HO2p = cvar.AT_HO2p
8477 AT_H61 = cvar.AT_H61
8478 AT_H62 = cvar.AT_H62
8482 AT_H21 = cvar.AT_H21
8483 AT_H22 = cvar.AT_H22
8488 AT_H41 = cvar.AT_H41
8489 AT_H42 = cvar.AT_H42
8492 AT_H71 = cvar.AT_H71
8493 AT_H72 = cvar.AT_H72
8494 AT_H73 = cvar.AT_H73
8495 AT_O1A = cvar.AT_O1A
8496 AT_O2A = cvar.AT_O2A
8497 AT_O3A = cvar.AT_O3A
8498 AT_O1B = cvar.AT_O1B
8499 AT_O2B = cvar.AT_O2B
8500 AT_O3B = cvar.AT_O3B
8501 AT_CAY = cvar.AT_CAY
8504 AT_CAT = cvar.AT_CAT
8509 get_residue(Hierarchy mhd, unsigned int index) -> Hierarchy
8510 get_residue(Atom d, bool nothrow=False) -> Residue
8512 return _IMP_atom.get_residue(*args)
8515 r"""get_atom(Residue rd, AtomType at) -> Atom"""
8516 return _IMP_atom.get_atom(rd, at)
8519 r"""add_atom_type(std::string name, IMP::atom::Element e) -> AtomType"""
8520 return _IMP_atom.add_atom_type(name, e)
8522 def get_element_for_atom_type(at):
8523 r"""get_element_for_atom_type(AtomType at) -> IMP::atom::Element"""
8524 return _IMP_atom.get_element_for_atom_type(at)
8527 r"""get_atom_type_exists(std::string name) -> bool"""
8528 return _IMP_atom.get_atom_type_exists(name)
8529 class Residue(Hierarchy):
8530 r"""Proxy of C++ IMP::atom::Residue class."""
8532 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8534 def __init__(self, *args):
8536 __init__(Residue self) -> Residue
8537 __init__(Residue self, Model m, ParticleIndex id) -> Residue
8538 __init__(Residue self, _ParticleAdaptor d) -> Residue
8540 _IMP_atom.Residue_swiginit(self, _IMP_atom.new_Residue(*args))
8542 def show(self, *args):
8543 r"""show(Residue self, _ostream out=std::cout)"""
8544 return _IMP_atom.Residue_show(self, *args)
8547 def setup_particle(*args):
8549 setup_particle(Model m, ParticleIndex pi, ResidueType t, int index, int insertion_code) -> Residue
8550 setup_particle(_ParticleAdaptor pa, ResidueType t, int index, int insertion_code) -> Residue
8551 setup_particle(Model m, ParticleIndex pi, ResidueType t, int index) -> Residue
8552 setup_particle(_ParticleAdaptor pa, ResidueType t, int index) -> Residue
8553 setup_particle(Model m, ParticleIndex pi, ResidueType t) -> Residue
8554 setup_particle(_ParticleAdaptor pa, ResidueType t) -> Residue
8555 setup_particle(Model m, ParticleIndex pi, Residue other) -> Residue
8556 setup_particle(_ParticleAdaptor pa, Residue other) -> Residue
8558 return _IMP_atom.Residue_setup_particle(*args)
8561 def get_is_setup(*args):
8563 get_is_setup(_ParticleAdaptor p) -> bool
8564 get_is_setup(Model m, ParticleIndex pi) -> bool
8566 return _IMP_atom.Residue_get_is_setup(*args)
8568 def get_residue_type(self):
8569 r"""get_residue_type(Residue self) -> ResidueType"""
8570 return _IMP_atom.Residue_get_residue_type(self)
8572 def set_residue_type(self, t):
8573 r"""set_residue_type(Residue self, ResidueType t)"""
8574 return _IMP_atom.Residue_set_residue_type(self, t)
8576 def get_is_protein(self):
8577 r"""get_is_protein(Residue self) -> bool"""
8578 return _IMP_atom.Residue_get_is_protein(self)
8580 def get_is_dna(self):
8581 r"""get_is_dna(Residue self) -> bool"""
8582 return _IMP_atom.Residue_get_is_dna(self)
8584 def get_is_rna(self):
8585 r"""get_is_rna(Residue self) -> bool"""
8586 return _IMP_atom.Residue_get_is_rna(self)
8589 r"""get_index(Residue self) -> IMP::Int"""
8590 return _IMP_atom.Residue_get_index(self)
8592 def set_index(self, t):
8593 r"""set_index(Residue self, IMP::Int t)"""
8594 return _IMP_atom.Residue_set_index(self, t)
8596 def get_insertion_code(self):
8597 r"""get_insertion_code(Residue self) -> char"""
8598 return _IMP_atom.Residue_get_insertion_code(self)
8600 def set_insertion_code(self, insertion_code):
8601 r"""set_insertion_code(Residue self, char insertion_code)"""
8602 return _IMP_atom.Residue_set_insertion_code(self, insertion_code)
8605 def get_index_key():
8606 r"""get_index_key() -> IntKey"""
8607 return _IMP_atom.Residue_get_index_key()
8610 def get_residue_type_key():
8611 r"""get_residue_type_key() -> IntKey"""
8612 return _IMP_atom.Residue_get_residue_type_key()
8615 def get_insertion_code_key():
8616 r"""get_insertion_code_key() -> IntKey"""
8617 return _IMP_atom.Residue_get_insertion_code_key()
8620 def get_type_changed_key():
8621 r"""get_type_changed_key() -> TriggerKey"""
8622 return _IMP_atom.Residue_get_type_changed_key()
8624 def add_attribute(self, *args):
8626 add_attribute(Residue self, FloatKey k, IMP::Float v, bool opt)
8627 add_attribute(Residue self, FloatKey a0, IMP::Float a1)
8628 add_attribute(Residue self, IntKey a0, IMP::Int a1)
8629 add_attribute(Residue self, FloatsKey a0, IMP::Floats a1)
8630 add_attribute(Residue self, IntsKey a0, IMP::Ints a1)
8631 add_attribute(Residue self, StringKey a0, IMP::String a1)
8632 add_attribute(Residue self, ParticleIndexKey a0, Particle a1)
8633 add_attribute(Residue self, ObjectKey a0, Object a1)
8634 add_attribute(Residue self, SparseFloatKey a0, IMP::Float a1)
8635 add_attribute(Residue self, SparseIntKey a0, IMP::Int a1)
8636 add_attribute(Residue self, SparseStringKey a0, IMP::String a1)
8637 add_attribute(Residue self, SparseParticleIndexKey a0, ParticleIndex a1)
8639 return _IMP_atom.Residue_add_attribute(self, *args)
8641 def get_value(self, *args):
8643 get_value(Residue self, FloatKey a0) -> IMP::Float
8644 get_value(Residue self, IntKey a0) -> IMP::Int
8645 get_value(Residue self, FloatsKey a0) -> IMP::Floats
8646 get_value(Residue self, IntsKey a0) -> IMP::Ints
8647 get_value(Residue self, StringKey a0) -> IMP::String
8648 get_value(Residue self, ParticleIndexKey a0) -> Particle
8649 get_value(Residue self, ObjectKey a0) -> Object
8650 get_value(Residue self, SparseFloatKey a0) -> IMP::Float
8651 get_value(Residue self, SparseIntKey a0) -> IMP::Int
8652 get_value(Residue self, SparseStringKey a0) -> IMP::String
8653 get_value(Residue self, SparseParticleIndexKey a0) -> ParticleIndex
8655 return _IMP_atom.Residue_get_value(self, *args)
8657 def set_value(self, *args):
8659 set_value(Residue self, FloatKey a0, IMP::Float a1)
8660 set_value(Residue self, IntKey a0, IMP::Int a1)
8661 set_value(Residue self, FloatsKey a0, IMP::Floats a1)
8662 set_value(Residue self, IntsKey a0, IMP::Ints a1)
8663 set_value(Residue self, StringKey a0, IMP::String a1)
8664 set_value(Residue self, ParticleIndexKey a0, Particle a1)
8665 set_value(Residue self, ObjectKey a0, Object a1)
8666 set_value(Residue self, SparseFloatKey a0, IMP::Float a1)
8667 set_value(Residue self, SparseIntKey a0, IMP::Int a1)
8668 set_value(Residue self, SparseStringKey a0, IMP::String a1)
8669 set_value(Residue self, SparseParticleIndexKey a0, ParticleIndex a1)
8671 return _IMP_atom.Residue_set_value(self, *args)
8673 def remove_attribute(self, *args):
8675 remove_attribute(Residue self, FloatKey a0)
8676 remove_attribute(Residue self, IntKey a0)
8677 remove_attribute(Residue self, FloatsKey a0)
8678 remove_attribute(Residue self, IntsKey a0)
8679 remove_attribute(Residue self, StringKey a0)
8680 remove_attribute(Residue self, ParticleIndexKey a0)
8681 remove_attribute(Residue self, ObjectKey a0)
8682 remove_attribute(Residue self, SparseFloatKey a0)
8683 remove_attribute(Residue self, SparseIntKey a0)
8684 remove_attribute(Residue self, SparseStringKey a0)
8685 remove_attribute(Residue self, SparseParticleIndexKey a0)
8687 return _IMP_atom.Residue_remove_attribute(self, *args)
8689 def has_attribute(self, *args):
8691 has_attribute(Residue self, FloatKey a0) -> bool
8692 has_attribute(Residue self, IntKey a0) -> bool
8693 has_attribute(Residue self, FloatsKey a0) -> bool
8694 has_attribute(Residue self, IntsKey a0) -> bool
8695 has_attribute(Residue self, StringKey a0) -> bool
8696 has_attribute(Residue self, ParticleIndexKey a0) -> bool
8697 has_attribute(Residue self, ObjectKey a0) -> bool
8698 has_attribute(Residue self, SparseFloatKey a0) -> bool
8699 has_attribute(Residue self, SparseIntKey a0) -> bool
8700 has_attribute(Residue self, SparseStringKey a0) -> bool
8701 has_attribute(Residue self, SparseParticleIndexKey a0) -> bool
8703 return _IMP_atom.Residue_has_attribute(self, *args)
8705 def get_derivative(self, a0):
8706 r"""get_derivative(Residue self, FloatKey a0) -> double"""
8707 return _IMP_atom.Residue_get_derivative(self, a0)
8710 r"""get_name(Residue self) -> std::string"""
8711 return _IMP_atom.Residue_get_name(self)
8713 def clear_caches(self):
8714 r"""clear_caches(Residue self)"""
8715 return _IMP_atom.Residue_clear_caches(self)
8717 def set_name(self, a0):
8718 r"""set_name(Residue self, std::string a0)"""
8719 return _IMP_atom.Residue_set_name(self, a0)
8722 r"""set_check_level(Residue self, IMP::CheckLevel a0)"""
8723 return _IMP_atom.Residue_set_check_level(self, a0)
8725 def add_to_derivative(self, a0, a1, a2):
8726 r"""add_to_derivative(Residue self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8727 return _IMP_atom.Residue_add_to_derivative(self, a0, a1, a2)
8729 def set_is_optimized(self, a0, a1):
8730 r"""set_is_optimized(Residue self, FloatKey a0, bool a1)"""
8731 return _IMP_atom.Residue_set_is_optimized(self, a0, a1)
8733 def get_is_optimized(self, a0):
8734 r"""get_is_optimized(Residue self, FloatKey a0) -> bool"""
8735 return _IMP_atom.Residue_get_is_optimized(self, a0)
8738 r"""get_check_level(Residue self) -> IMP::CheckLevel"""
8739 return _IMP_atom.Residue_get_check_level(self)
8741 def __eq__(self, *args):
8743 __eq__(Residue self, Residue o) -> bool
8744 __eq__(Residue self, Particle d) -> bool
8746 return _IMP_atom.Residue___eq__(self, *args)
8748 def __ne__(self, *args):
8750 __ne__(Residue self, Residue o) -> bool
8751 __ne__(Residue self, Particle d) -> bool
8753 return _IMP_atom.Residue___ne__(self, *args)
8755 def __le__(self, *args):
8757 __le__(Residue self, Residue o) -> bool
8758 __le__(Residue self, Particle d) -> bool
8760 return _IMP_atom.Residue___le__(self, *args)
8762 def __lt__(self, *args):
8764 __lt__(Residue self, Residue o) -> bool
8765 __lt__(Residue self, Particle d) -> bool
8767 return _IMP_atom.Residue___lt__(self, *args)
8769 def __ge__(self, *args):
8771 __ge__(Residue self, Residue o) -> bool
8772 __ge__(Residue self, Particle d) -> bool
8774 return _IMP_atom.Residue___ge__(self, *args)
8776 def __gt__(self, *args):
8778 __gt__(Residue self, Residue o) -> bool
8779 __gt__(Residue self, Particle d) -> bool
8781 return _IMP_atom.Residue___gt__(self, *args)
8784 r"""__hash__(Residue self) -> std::size_t"""
8785 return _IMP_atom.Residue___hash__(self)
8788 r"""__str__(Residue self) -> std::string"""
8789 return _IMP_atom.Residue___str__(self)
8792 r"""__repr__(Residue self) -> std::string"""
8793 return _IMP_atom.Residue___repr__(self)
8795 def _get_as_binary(self):
8796 r"""_get_as_binary(Residue self) -> PyObject *"""
8797 return _IMP_atom.Residue__get_as_binary(self)
8799 def _set_from_binary(self, p):
8800 r"""_set_from_binary(Residue self, PyObject * p)"""
8801 return _IMP_atom.Residue__set_from_binary(self, p)
8803 def __getstate__(self):
8804 p = self._get_as_binary()
8805 if len(self.__dict__) > 1:
8806 d = self.__dict__.copy()
8811 def __setstate__(self, p):
8812 if not hasattr(self,
'this'):
8814 if isinstance(p, tuple):
8816 self.__dict__.update(d)
8817 return self._set_from_binary(p)
8819 __swig_destroy__ = _IMP_atom.delete_Residue
8822 _IMP_atom.Residue_swigregister(Residue)
8863 r"""get_next_residue(Residue rd) -> Hierarchy"""
8864 return _IMP_atom.get_next_residue(rd)
8867 r"""get_previous_residue(Residue rd) -> Hierarchy"""
8868 return _IMP_atom.get_previous_residue(rd)
8871 r"""get_one_letter_code(ResidueType c) -> char"""
8872 return _IMP_atom.get_one_letter_code(c)
8873 BALLS = _IMP_atom.BALLS
8875 DENSITIES = _IMP_atom.DENSITIES
8877 class Representation(Hierarchy):
8878 r"""Proxy of C++ IMP::atom::Representation class."""
8880 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8883 def setup_particle(*args):
8885 setup_particle(Model m, ParticleIndex pi) -> Representation
8886 setup_particle(_ParticleAdaptor pa) -> Representation
8887 setup_particle(Model m, ParticleIndex pi, double resolution) -> Representation
8888 setup_particle(_ParticleAdaptor pa, double resolution) -> Representation
8889 setup_particle(Model m, ParticleIndex pi, Representation other) -> Representation
8890 setup_particle(_ParticleAdaptor pa, Representation other) -> Representation
8892 return _IMP_atom.Representation_setup_particle(*args)
8894 def __init__(self, *args):
8896 __init__(Representation self) -> Representation
8897 __init__(Representation self, Model m, ParticleIndex id) -> Representation
8898 __init__(Representation self, _ParticleAdaptor d) -> Representation
8900 _IMP_atom.Representation_swiginit(self, _IMP_atom.new_Representation(*args))
8902 def show(self, *args):
8903 r"""show(Representation self, _ostream out=std::cout)"""
8904 return _IMP_atom.Representation_show(self, *args)
8907 def get_is_setup(*args):
8909 get_is_setup(_ParticleAdaptor p) -> bool
8910 get_is_setup(Model m, ParticleIndex pi) -> bool
8912 return _IMP_atom.Representation_get_is_setup(*args)
8915 r"""get_representation(Representation self, double resolution, IMP::atom::RepresentationType type=BALLS) -> Hierarchy"""
8916 return _IMP_atom.Representation_get_representation(self, *args)
8918 def get_representations(self, *args):
8919 r"""get_representations(Representation self, IMP::atom::RepresentationType type=BALLS) -> IMP::atom::Hierarchies"""
8920 return _IMP_atom.Representation_get_representations(self, *args)
8922 def add_representation(self, *args):
8923 r"""add_representation(Representation self, _ParticleIndexAdaptor rep, IMP::atom::RepresentationType type=BALLS, double resolution=-1)"""
8924 return _IMP_atom.Representation_add_representation(self, *args)
8926 def get_resolutions(self, *args):
8927 r"""get_resolutions(Representation self, IMP::atom::RepresentationType type=BALLS) -> IMP::Floats"""
8928 return _IMP_atom.Representation_get_resolutions(self, *args)
8930 def remove_representation(self, rep):
8931 r"""remove_representation(Representation self, _ParticleIndexAdaptor rep)"""
8932 return _IMP_atom.Representation_remove_representation(self, rep)
8934 def update_parents(self):
8935 r"""update_parents(Representation self)"""
8936 return _IMP_atom.Representation_update_parents(self)
8938 def add_attribute(self, *args):
8940 add_attribute(Representation self, FloatKey k, IMP::Float v, bool opt)
8941 add_attribute(Representation self, FloatKey a0, IMP::Float a1)
8942 add_attribute(Representation self, IntKey a0, IMP::Int a1)
8943 add_attribute(Representation self, FloatsKey a0, IMP::Floats a1)
8944 add_attribute(Representation self, IntsKey a0, IMP::Ints a1)
8945 add_attribute(Representation self, StringKey a0, IMP::String a1)
8946 add_attribute(Representation self, ParticleIndexKey a0, Particle a1)
8947 add_attribute(Representation self, ObjectKey a0, Object a1)
8948 add_attribute(Representation self, SparseFloatKey a0, IMP::Float a1)
8949 add_attribute(Representation self, SparseIntKey a0, IMP::Int a1)
8950 add_attribute(Representation self, SparseStringKey a0, IMP::String a1)
8951 add_attribute(Representation self, SparseParticleIndexKey a0, ParticleIndex a1)
8953 return _IMP_atom.Representation_add_attribute(self, *args)
8955 def get_value(self, *args):
8957 get_value(Representation self, FloatKey a0) -> IMP::Float
8958 get_value(Representation self, IntKey a0) -> IMP::Int
8959 get_value(Representation self, FloatsKey a0) -> IMP::Floats
8960 get_value(Representation self, IntsKey a0) -> IMP::Ints
8961 get_value(Representation self, StringKey a0) -> IMP::String
8962 get_value(Representation self, ParticleIndexKey a0) -> Particle
8963 get_value(Representation self, ObjectKey a0) -> Object
8964 get_value(Representation self, SparseFloatKey a0) -> IMP::Float
8965 get_value(Representation self, SparseIntKey a0) -> IMP::Int
8966 get_value(Representation self, SparseStringKey a0) -> IMP::String
8967 get_value(Representation self, SparseParticleIndexKey a0) -> ParticleIndex
8969 return _IMP_atom.Representation_get_value(self, *args)
8971 def set_value(self, *args):
8973 set_value(Representation self, FloatKey a0, IMP::Float a1)
8974 set_value(Representation self, IntKey a0, IMP::Int a1)
8975 set_value(Representation self, FloatsKey a0, IMP::Floats a1)
8976 set_value(Representation self, IntsKey a0, IMP::Ints a1)
8977 set_value(Representation self, StringKey a0, IMP::String a1)
8978 set_value(Representation self, ParticleIndexKey a0, Particle a1)
8979 set_value(Representation self, ObjectKey a0, Object a1)
8980 set_value(Representation self, SparseFloatKey a0, IMP::Float a1)
8981 set_value(Representation self, SparseIntKey a0, IMP::Int a1)
8982 set_value(Representation self, SparseStringKey a0, IMP::String a1)
8983 set_value(Representation self, SparseParticleIndexKey a0, ParticleIndex a1)
8985 return _IMP_atom.Representation_set_value(self, *args)
8987 def remove_attribute(self, *args):
8989 remove_attribute(Representation self, FloatKey a0)
8990 remove_attribute(Representation self, IntKey a0)
8991 remove_attribute(Representation self, FloatsKey a0)
8992 remove_attribute(Representation self, IntsKey a0)
8993 remove_attribute(Representation self, StringKey a0)
8994 remove_attribute(Representation self, ParticleIndexKey a0)
8995 remove_attribute(Representation self, ObjectKey a0)
8996 remove_attribute(Representation self, SparseFloatKey a0)
8997 remove_attribute(Representation self, SparseIntKey a0)
8998 remove_attribute(Representation self, SparseStringKey a0)
8999 remove_attribute(Representation self, SparseParticleIndexKey a0)
9001 return _IMP_atom.Representation_remove_attribute(self, *args)
9003 def has_attribute(self, *args):
9005 has_attribute(Representation self, FloatKey a0) -> bool
9006 has_attribute(Representation self, IntKey a0) -> bool
9007 has_attribute(Representation self, FloatsKey a0) -> bool
9008 has_attribute(Representation self, IntsKey a0) -> bool
9009 has_attribute(Representation self, StringKey a0) -> bool
9010 has_attribute(Representation self, ParticleIndexKey a0) -> bool
9011 has_attribute(Representation self, ObjectKey a0) -> bool
9012 has_attribute(Representation self, SparseFloatKey a0) -> bool
9013 has_attribute(Representation self, SparseIntKey a0) -> bool
9014 has_attribute(Representation self, SparseStringKey a0) -> bool
9015 has_attribute(Representation self, SparseParticleIndexKey a0) -> bool
9017 return _IMP_atom.Representation_has_attribute(self, *args)
9019 def get_derivative(self, a0):
9020 r"""get_derivative(Representation self, FloatKey a0) -> double"""
9021 return _IMP_atom.Representation_get_derivative(self, a0)
9024 r"""get_name(Representation self) -> std::string"""
9025 return _IMP_atom.Representation_get_name(self)
9027 def clear_caches(self):
9028 r"""clear_caches(Representation self)"""
9029 return _IMP_atom.Representation_clear_caches(self)
9031 def set_name(self, a0):
9032 r"""set_name(Representation self, std::string a0)"""
9033 return _IMP_atom.Representation_set_name(self, a0)
9036 r"""set_check_level(Representation self, IMP::CheckLevel a0)"""
9037 return _IMP_atom.Representation_set_check_level(self, a0)
9039 def add_to_derivative(self, a0, a1, a2):
9040 r"""add_to_derivative(Representation self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
9041 return _IMP_atom.Representation_add_to_derivative(self, a0, a1, a2)
9043 def set_is_optimized(self, a0, a1):
9044 r"""set_is_optimized(Representation self, FloatKey a0, bool a1)"""
9045 return _IMP_atom.Representation_set_is_optimized(self, a0, a1)
9047 def get_is_optimized(self, a0):
9048 r"""get_is_optimized(Representation self, FloatKey a0) -> bool"""
9049 return _IMP_atom.Representation_get_is_optimized(self, a0)
9052 r"""get_check_level(Representation self) -> IMP::CheckLevel"""
9053 return _IMP_atom.Representation_get_check_level(self)
9055 def __eq__(self, *args):
9057 __eq__(Representation self, Representation o) -> bool
9058 __eq__(Representation self, Particle d) -> bool
9060 return _IMP_atom.Representation___eq__(self, *args)
9062 def __ne__(self, *args):
9064 __ne__(Representation self, Representation o) -> bool
9065 __ne__(Representation self, Particle d) -> bool
9067 return _IMP_atom.Representation___ne__(self, *args)
9069 def __le__(self, *args):
9071 __le__(Representation self, Representation o) -> bool
9072 __le__(Representation self, Particle d) -> bool
9074 return _IMP_atom.Representation___le__(self, *args)
9076 def __lt__(self, *args):
9078 __lt__(Representation self, Representation o) -> bool
9079 __lt__(Representation self, Particle d) -> bool
9081 return _IMP_atom.Representation___lt__(self, *args)
9083 def __ge__(self, *args):
9085 __ge__(Representation self, Representation o) -> bool
9086 __ge__(Representation self, Particle d) -> bool
9088 return _IMP_atom.Representation___ge__(self, *args)
9090 def __gt__(self, *args):
9092 __gt__(Representation self, Representation o) -> bool
9093 __gt__(Representation self, Particle d) -> bool
9095 return _IMP_atom.Representation___gt__(self, *args)
9098 r"""__hash__(Representation self) -> std::size_t"""
9099 return _IMP_atom.Representation___hash__(self)
9102 r"""__str__(Representation self) -> std::string"""
9103 return _IMP_atom.Representation___str__(self)
9106 r"""__repr__(Representation self) -> std::string"""
9107 return _IMP_atom.Representation___repr__(self)
9109 def _get_as_binary(self):
9110 r"""_get_as_binary(Representation self) -> PyObject *"""
9111 return _IMP_atom.Representation__get_as_binary(self)
9113 def _set_from_binary(self, p):
9114 r"""_set_from_binary(Representation self, PyObject * p)"""
9115 return _IMP_atom.Representation__set_from_binary(self, p)
9117 def __getstate__(self):
9118 p = self._get_as_binary()
9119 if len(self.__dict__) > 1:
9120 d = self.__dict__.copy()
9125 def __setstate__(self, p):
9126 if not hasattr(self,
'this'):
9128 if isinstance(p, tuple):
9130 self.__dict__.update(d)
9131 return self._set_from_binary(p)
9133 __swig_destroy__ = _IMP_atom.delete_Representation
9136 _IMP_atom.Representation_swigregister(Representation)
9137 ALL_RESOLUTIONS = cvar.ALL_RESOLUTIONS
9142 get_resolution(Model m, ParticleIndex pi) -> double
9143 get_resolution(Hierarchy h) -> double
9145 return _IMP_atom.get_resolution(*args)
9148 r"""get_representation(Hierarchy h, bool nothrow=False) -> Representation"""
9149 return _IMP_atom.get_representation(h, nothrow)
9152 r"""show_with_representations(Hierarchy h, _ostream out=std::cout)"""
9153 return _IMP_atom.show_with_representations(*args)
9154 class State(Hierarchy):
9155 r"""Proxy of C++ IMP::atom::State class."""
9157 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9160 def setup_particle(*args):
9162 setup_particle(Model m, ParticleIndex pi, unsigned int index) -> State
9163 setup_particle(_ParticleAdaptor pa, unsigned int index) -> State
9164 setup_particle(Model m, ParticleIndex pi, State other) -> State
9165 setup_particle(_ParticleAdaptor pa, State other) -> State
9167 return _IMP_atom.State_setup_particle(*args)
9169 def __init__(self, *args):
9171 __init__(State self) -> State
9172 __init__(State self, Model m, ParticleIndex id) -> State
9173 __init__(State self, _ParticleAdaptor d) -> State
9175 _IMP_atom.State_swiginit(self, _IMP_atom.new_State(*args))
9177 def show(self, *args):
9178 r"""show(State self, _ostream out=std::cout)"""
9179 return _IMP_atom.State_show(self, *args)
9182 def get_is_setup(*args):
9184 get_is_setup(_ParticleAdaptor p) -> bool
9185 get_is_setup(Model m, ParticleIndex pi) -> bool
9187 return _IMP_atom.State_get_is_setup(*args)
9190 r"""get_state_index(State self) -> unsigned int"""
9191 return _IMP_atom.State_get_state_index(self)
9193 def add_attribute(self, *args):
9195 add_attribute(State self, FloatKey k, IMP::Float v, bool opt)
9196 add_attribute(State self, FloatKey a0, IMP::Float a1)
9197 add_attribute(State self, IntKey a0, IMP::Int a1)
9198 add_attribute(State self, FloatsKey a0, IMP::Floats a1)
9199 add_attribute(State self, IntsKey a0, IMP::Ints a1)
9200 add_attribute(State self, StringKey a0, IMP::String a1)
9201 add_attribute(State self, ParticleIndexKey a0, Particle a1)
9202 add_attribute(State self, ObjectKey a0, Object a1)
9203 add_attribute(State self, SparseFloatKey a0, IMP::Float a1)
9204 add_attribute(State self, SparseIntKey a0, IMP::Int a1)
9205 add_attribute(State self, SparseStringKey a0, IMP::String a1)
9206 add_attribute(State self, SparseParticleIndexKey a0, ParticleIndex a1)
9208 return _IMP_atom.State_add_attribute(self, *args)
9210 def get_value(self, *args):
9212 get_value(State self, FloatKey a0) -> IMP::Float
9213 get_value(State self, IntKey a0) -> IMP::Int
9214 get_value(State self, FloatsKey a0) -> IMP::Floats
9215 get_value(State self, IntsKey a0) -> IMP::Ints
9216 get_value(State self, StringKey a0) -> IMP::String
9217 get_value(State self, ParticleIndexKey a0) -> Particle
9218 get_value(State self, ObjectKey a0) -> Object
9219 get_value(State self, SparseFloatKey a0) -> IMP::Float
9220 get_value(State self, SparseIntKey a0) -> IMP::Int
9221 get_value(State self, SparseStringKey a0) -> IMP::String
9222 get_value(State self, SparseParticleIndexKey a0) -> ParticleIndex
9224 return _IMP_atom.State_get_value(self, *args)
9226 def set_value(self, *args):
9228 set_value(State self, FloatKey a0, IMP::Float a1)
9229 set_value(State self, IntKey a0, IMP::Int a1)
9230 set_value(State self, FloatsKey a0, IMP::Floats a1)
9231 set_value(State self, IntsKey a0, IMP::Ints a1)
9232 set_value(State self, StringKey a0, IMP::String a1)
9233 set_value(State self, ParticleIndexKey a0, Particle a1)
9234 set_value(State self, ObjectKey a0, Object a1)
9235 set_value(State self, SparseFloatKey a0, IMP::Float a1)
9236 set_value(State self, SparseIntKey a0, IMP::Int a1)
9237 set_value(State self, SparseStringKey a0, IMP::String a1)
9238 set_value(State self, SparseParticleIndexKey a0, ParticleIndex a1)
9240 return _IMP_atom.State_set_value(self, *args)
9242 def remove_attribute(self, *args):
9244 remove_attribute(State self, FloatKey a0)
9245 remove_attribute(State self, IntKey a0)
9246 remove_attribute(State self, FloatsKey a0)
9247 remove_attribute(State self, IntsKey a0)
9248 remove_attribute(State self, StringKey a0)
9249 remove_attribute(State self, ParticleIndexKey a0)
9250 remove_attribute(State self, ObjectKey a0)
9251 remove_attribute(State self, SparseFloatKey a0)
9252 remove_attribute(State self, SparseIntKey a0)
9253 remove_attribute(State self, SparseStringKey a0)
9254 remove_attribute(State self, SparseParticleIndexKey a0)
9256 return _IMP_atom.State_remove_attribute(self, *args)
9258 def has_attribute(self, *args):
9260 has_attribute(State self, FloatKey a0) -> bool
9261 has_attribute(State self, IntKey a0) -> bool
9262 has_attribute(State self, FloatsKey a0) -> bool
9263 has_attribute(State self, IntsKey a0) -> bool
9264 has_attribute(State self, StringKey a0) -> bool
9265 has_attribute(State self, ParticleIndexKey a0) -> bool
9266 has_attribute(State self, ObjectKey a0) -> bool
9267 has_attribute(State self, SparseFloatKey a0) -> bool
9268 has_attribute(State self, SparseIntKey a0) -> bool
9269 has_attribute(State self, SparseStringKey a0) -> bool
9270 has_attribute(State self, SparseParticleIndexKey a0) -> bool
9272 return _IMP_atom.State_has_attribute(self, *args)
9274 def get_derivative(self, a0):
9275 r"""get_derivative(State self, FloatKey a0) -> double"""
9276 return _IMP_atom.State_get_derivative(self, a0)
9279 r"""get_name(State self) -> std::string"""
9280 return _IMP_atom.State_get_name(self)
9282 def clear_caches(self):
9283 r"""clear_caches(State self)"""
9284 return _IMP_atom.State_clear_caches(self)
9286 def set_name(self, a0):
9287 r"""set_name(State self, std::string a0)"""
9288 return _IMP_atom.State_set_name(self, a0)
9291 r"""set_check_level(State self, IMP::CheckLevel a0)"""
9292 return _IMP_atom.State_set_check_level(self, a0)
9294 def add_to_derivative(self, a0, a1, a2):
9295 r"""add_to_derivative(State self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
9296 return _IMP_atom.State_add_to_derivative(self, a0, a1, a2)
9298 def set_is_optimized(self, a0, a1):
9299 r"""set_is_optimized(State self, FloatKey a0, bool a1)"""
9300 return _IMP_atom.State_set_is_optimized(self, a0, a1)
9302 def get_is_optimized(self, a0):
9303 r"""get_is_optimized(State self, FloatKey a0) -> bool"""
9304 return _IMP_atom.State_get_is_optimized(self, a0)
9307 r"""get_check_level(State self) -> IMP::CheckLevel"""
9308 return _IMP_atom.State_get_check_level(self)
9310 def __eq__(self, *args):
9312 __eq__(State self, State o) -> bool
9313 __eq__(State self, Particle d) -> bool
9315 return _IMP_atom.State___eq__(self, *args)
9317 def __ne__(self, *args):
9319 __ne__(State self, State o) -> bool
9320 __ne__(State self, Particle d) -> bool
9322 return _IMP_atom.State___ne__(self, *args)
9324 def __le__(self, *args):
9326 __le__(State self, State o) -> bool
9327 __le__(State self, Particle d) -> bool
9329 return _IMP_atom.State___le__(self, *args)
9331 def __lt__(self, *args):
9333 __lt__(State self, State o) -> bool
9334 __lt__(State self, Particle d) -> bool
9336 return _IMP_atom.State___lt__(self, *args)
9338 def __ge__(self, *args):
9340 __ge__(State self, State o) -> bool
9341 __ge__(State self, Particle d) -> bool
9343 return _IMP_atom.State___ge__(self, *args)
9345 def __gt__(self, *args):
9347 __gt__(State self, State o) -> bool
9348 __gt__(State self, Particle d) -> bool
9350 return _IMP_atom.State___gt__(self, *args)
9353 r"""__hash__(State self) -> std::size_t"""
9354 return _IMP_atom.State___hash__(self)
9357 r"""__str__(State self) -> std::string"""
9358 return _IMP_atom.State___str__(self)
9361 r"""__repr__(State self) -> std::string"""
9362 return _IMP_atom.State___repr__(self)
9364 def _get_as_binary(self):
9365 r"""_get_as_binary(State self) -> PyObject *"""
9366 return _IMP_atom.State__get_as_binary(self)
9368 def _set_from_binary(self, p):
9369 r"""_set_from_binary(State self, PyObject * p)"""
9370 return _IMP_atom.State__set_from_binary(self, p)
9372 def __getstate__(self):
9373 p = self._get_as_binary()
9374 if len(self.__dict__) > 1:
9375 d = self.__dict__.copy()
9380 def __setstate__(self, p):
9381 if not hasattr(self,
'this'):
9383 if isinstance(p, tuple):
9385 self.__dict__.update(d)
9386 return self._set_from_binary(p)
9388 __swig_destroy__ = _IMP_atom.delete_State
9391 _IMP_atom.State_swigregister(State)
9394 r"""get_state_index(Hierarchy h) -> int"""
9395 return _IMP_atom.get_state_index(h)
9398 r"""get_phi_dihedral_atoms(Residue rd) -> IMP::atom::Atoms"""
9399 return _IMP_atom.get_phi_dihedral_atoms(rd)
9402 r"""get_psi_dihedral_atoms(Residue rd) -> IMP::atom::Atoms"""
9403 return _IMP_atom.get_psi_dihedral_atoms(rd)
9406 r"""get_omega_dihedral_atoms(Residue rd) -> IMP::atom::Atoms"""
9407 return _IMP_atom.get_omega_dihedral_atoms(rd)
9410 r"""get_chi_dihedral_atom_types(ResidueType rt) -> IMP::Vector< IMP::atom::AtomTypes >"""
9411 return _IMP_atom.get_chi_dihedral_atom_types(rt)
9414 r"""get_chi_dihedral_atoms(Residue rd) -> IMP::Vector< IMP::atom::Atoms >"""
9415 return _IMP_atom.get_chi_dihedral_atoms(rd)
9418 r"""get_chi_dihedral_particle_indexes(Residue rd) -> IMP::ParticleIndexQuads"""
9419 return _IMP_atom.get_chi_dihedral_particle_indexes(rd)
9420 class Molecule(Hierarchy):
9421 r"""Proxy of C++ IMP::atom::Molecule class."""
9423 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9425 def __init__(self, *args):
9427 __init__(Molecule self) -> Molecule
9428 __init__(Molecule self, Model m, ParticleIndex id) -> Molecule
9429 __init__(Molecule self, _ParticleAdaptor d) -> Molecule
9431 _IMP_atom.Molecule_swiginit(self, _IMP_atom.new_Molecule(*args))
9433 def show(self, *args):
9434 r"""show(Molecule self, _ostream out=std::cout)"""
9435 return _IMP_atom.Molecule_show(self, *args)
9438 def setup_particle(*args):
9440 setup_particle(Model m, ParticleIndex pi) -> Molecule
9441 setup_particle(_ParticleAdaptor pa) -> Molecule
9442 setup_particle(Model m, ParticleIndex pi, Molecule other) -> Molecule
9443 setup_particle(_ParticleAdaptor pa, Molecule other) -> Molecule
9445 return _IMP_atom.Molecule_setup_particle(*args)
9448 def get_is_setup(*args):
9450 get_is_setup(_ParticleAdaptor p) -> bool
9451 get_is_setup(Model m, ParticleIndex pi) -> bool
9453 return _IMP_atom.Molecule_get_is_setup(*args)
9455 def add_attribute(self, *args):
9457 add_attribute(Molecule self, FloatKey k, IMP::Float v, bool opt)
9458 add_attribute(Molecule self, FloatKey a0, IMP::Float a1)
9459 add_attribute(Molecule self, IntKey a0, IMP::Int a1)
9460 add_attribute(Molecule self, FloatsKey a0, IMP::Floats a1)
9461 add_attribute(Molecule self, IntsKey a0, IMP::Ints a1)
9462 add_attribute(Molecule self, StringKey a0, IMP::String a1)
9463 add_attribute(Molecule self, ParticleIndexKey a0, Particle a1)
9464 add_attribute(Molecule self, ObjectKey a0, Object a1)
9465 add_attribute(Molecule self, SparseFloatKey a0, IMP::Float a1)
9466 add_attribute(Molecule self, SparseIntKey a0, IMP::Int a1)
9467 add_attribute(Molecule self, SparseStringKey a0, IMP::String a1)
9468 add_attribute(Molecule self, SparseParticleIndexKey a0, ParticleIndex a1)
9470 return _IMP_atom.Molecule_add_attribute(self, *args)
9472 def get_value(self, *args):
9474 get_value(Molecule self, FloatKey a0) -> IMP::Float
9475 get_value(Molecule self, IntKey a0) -> IMP::Int
9476 get_value(Molecule self, FloatsKey a0) -> IMP::Floats
9477 get_value(Molecule self, IntsKey a0) -> IMP::Ints
9478 get_value(Molecule self, StringKey a0) -> IMP::String
9479 get_value(Molecule self, ParticleIndexKey a0) -> Particle
9480 get_value(Molecule self, ObjectKey a0) -> Object
9481 get_value(Molecule self, SparseFloatKey a0) -> IMP::Float
9482 get_value(Molecule self, SparseIntKey a0) -> IMP::Int
9483 get_value(Molecule self, SparseStringKey a0) -> IMP::String
9484 get_value(Molecule self, SparseParticleIndexKey a0) -> ParticleIndex
9486 return _IMP_atom.Molecule_get_value(self, *args)
9488 def set_value(self, *args):
9490 set_value(Molecule self, FloatKey a0, IMP::Float a1)
9491 set_value(Molecule self, IntKey a0, IMP::Int a1)
9492 set_value(Molecule self, FloatsKey a0, IMP::Floats a1)
9493 set_value(Molecule self, IntsKey a0, IMP::Ints a1)
9494 set_value(Molecule self, StringKey a0, IMP::String a1)
9495 set_value(Molecule self, ParticleIndexKey a0, Particle a1)
9496 set_value(Molecule self, ObjectKey a0, Object a1)
9497 set_value(Molecule self, SparseFloatKey a0, IMP::Float a1)
9498 set_value(Molecule self, SparseIntKey a0, IMP::Int a1)
9499 set_value(Molecule self, SparseStringKey a0, IMP::String a1)
9500 set_value(Molecule self, SparseParticleIndexKey a0, ParticleIndex a1)
9502 return _IMP_atom.Molecule_set_value(self, *args)
9504 def remove_attribute(self, *args):
9506 remove_attribute(Molecule self, FloatKey a0)
9507 remove_attribute(Molecule self, IntKey a0)
9508 remove_attribute(Molecule self, FloatsKey a0)
9509 remove_attribute(Molecule self, IntsKey a0)
9510 remove_attribute(Molecule self, StringKey a0)
9511 remove_attribute(Molecule self, ParticleIndexKey a0)
9512 remove_attribute(Molecule self, ObjectKey a0)
9513 remove_attribute(Molecule self, SparseFloatKey a0)
9514 remove_attribute(Molecule self, SparseIntKey a0)
9515 remove_attribute(Molecule self, SparseStringKey a0)
9516 remove_attribute(Molecule self, SparseParticleIndexKey a0)
9518 return _IMP_atom.Molecule_remove_attribute(self, *args)
9520 def has_attribute(self, *args):
9522 has_attribute(Molecule self, FloatKey a0) -> bool
9523 has_attribute(Molecule self, IntKey a0) -> bool
9524 has_attribute(Molecule self, FloatsKey a0) -> bool
9525 has_attribute(Molecule self, IntsKey a0) -> bool
9526 has_attribute(Molecule self, StringKey a0) -> bool
9527 has_attribute(Molecule self, ParticleIndexKey a0) -> bool
9528 has_attribute(Molecule self, ObjectKey a0) -> bool
9529 has_attribute(Molecule self, SparseFloatKey a0) -> bool
9530 has_attribute(Molecule self, SparseIntKey a0) -> bool
9531 has_attribute(Molecule self, SparseStringKey a0) -> bool
9532 has_attribute(Molecule self, SparseParticleIndexKey a0) -> bool
9534 return _IMP_atom.Molecule_has_attribute(self, *args)
9536 def get_derivative(self, a0):
9537 r"""get_derivative(Molecule self, FloatKey a0) -> double"""
9538 return _IMP_atom.Molecule_get_derivative(self, a0)
9541 r"""get_name(Molecule self) -> std::string"""
9542 return _IMP_atom.Molecule_get_name(self)
9544 def clear_caches(self):
9545 r"""clear_caches(Molecule self)"""
9546 return _IMP_atom.Molecule_clear_caches(self)
9548 def set_name(self, a0):
9549 r"""set_name(Molecule self, std::string a0)"""
9550 return _IMP_atom.Molecule_set_name(self, a0)
9553 r"""set_check_level(Molecule self, IMP::CheckLevel a0)"""
9554 return _IMP_atom.Molecule_set_check_level(self, a0)
9556 def add_to_derivative(self, a0, a1, a2):
9557 r"""add_to_derivative(Molecule self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
9558 return _IMP_atom.Molecule_add_to_derivative(self, a0, a1, a2)
9560 def set_is_optimized(self, a0, a1):
9561 r"""set_is_optimized(Molecule self, FloatKey a0, bool a1)"""
9562 return _IMP_atom.Molecule_set_is_optimized(self, a0, a1)
9564 def get_is_optimized(self, a0):
9565 r"""get_is_optimized(Molecule self, FloatKey a0) -> bool"""
9566 return _IMP_atom.Molecule_get_is_optimized(self, a0)
9569 r"""get_check_level(Molecule self) -> IMP::CheckLevel"""
9570 return _IMP_atom.Molecule_get_check_level(self)
9572 def __eq__(self, *args):
9574 __eq__(Molecule self, Molecule o) -> bool
9575 __eq__(Molecule self, Particle d) -> bool
9577 return _IMP_atom.Molecule___eq__(self, *args)
9579 def __ne__(self, *args):
9581 __ne__(Molecule self, Molecule o) -> bool
9582 __ne__(Molecule self, Particle d) -> bool
9584 return _IMP_atom.Molecule___ne__(self, *args)
9586 def __le__(self, *args):
9588 __le__(Molecule self, Molecule o) -> bool
9589 __le__(Molecule self, Particle d) -> bool
9591 return _IMP_atom.Molecule___le__(self, *args)
9593 def __lt__(self, *args):
9595 __lt__(Molecule self, Molecule o) -> bool
9596 __lt__(Molecule self, Particle d) -> bool
9598 return _IMP_atom.Molecule___lt__(self, *args)
9600 def __ge__(self, *args):
9602 __ge__(Molecule self, Molecule o) -> bool
9603 __ge__(Molecule self, Particle d) -> bool
9605 return _IMP_atom.Molecule___ge__(self, *args)
9607 def __gt__(self, *args):
9609 __gt__(Molecule self, Molecule o) -> bool
9610 __gt__(Molecule self, Particle d) -> bool
9612 return _IMP_atom.Molecule___gt__(self, *args)
9615 r"""__hash__(Molecule self) -> std::size_t"""
9616 return _IMP_atom.Molecule___hash__(self)
9619 r"""__str__(Molecule self) -> std::string"""
9620 return _IMP_atom.Molecule___str__(self)
9623 r"""__repr__(Molecule self) -> std::string"""
9624 return _IMP_atom.Molecule___repr__(self)
9626 def _get_as_binary(self):
9627 r"""_get_as_binary(Molecule self) -> PyObject *"""
9628 return _IMP_atom.Molecule__get_as_binary(self)
9630 def _set_from_binary(self, p):
9631 r"""_set_from_binary(Molecule self, PyObject * p)"""
9632 return _IMP_atom.Molecule__set_from_binary(self, p)
9634 def __getstate__(self):
9635 p = self._get_as_binary()
9636 if len(self.__dict__) > 1:
9637 d = self.__dict__.copy()
9642 def __setstate__(self, p):
9643 if not hasattr(self,
'this'):
9645 if isinstance(p, tuple):
9647 self.__dict__.update(d)
9648 return self._set_from_binary(p)
9650 __swig_destroy__ = _IMP_atom.delete_Molecule
9653 _IMP_atom.Molecule_swigregister(Molecule)
9656 r"""get_molecule_name(Hierarchy h) -> std::string"""
9657 return _IMP_atom.get_molecule_name(h)
9658 class Copy(Molecule):
9659 r"""Proxy of C++ IMP::atom::Copy class."""
9661 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9664 def get_copy_index_key():
9665 r"""get_copy_index_key() -> IntKey"""
9666 return _IMP_atom.Copy_get_copy_index_key()
9668 def __init__(self, *args):
9670 __init__(Copy self) -> Copy
9671 __init__(Copy self, Model m, ParticleIndex id) -> Copy
9672 __init__(Copy self, _ParticleAdaptor d) -> Copy
9674 _IMP_atom.Copy_swiginit(self, _IMP_atom.new_Copy(*args))
9676 def show(self, *args):
9677 r"""show(Copy self, _ostream out=std::cout)"""
9678 return _IMP_atom.Copy_show(self, *args)
9681 def setup_particle(*args):
9683 setup_particle(Model m, ParticleIndex pi, IMP::Int number) -> Copy
9684 setup_particle(_ParticleAdaptor pa, IMP::Int number) -> Copy
9686 return _IMP_atom.Copy_setup_particle(*args)
9689 def get_is_setup(*args):
9691 get_is_setup(_ParticleAdaptor p) -> bool
9692 get_is_setup(Model m, ParticleIndex pi) -> bool
9694 return _IMP_atom.Copy_get_is_setup(*args)
9697 r"""get_copy_index(Copy self) -> int"""
9698 return _IMP_atom.Copy_get_copy_index(self)
9700 def add_attribute(self, *args):
9702 add_attribute(Copy self, FloatKey k, IMP::Float v, bool opt)
9703 add_attribute(Copy self, FloatKey a0, IMP::Float a1)
9704 add_attribute(Copy self, IntKey a0, IMP::Int a1)
9705 add_attribute(Copy self, FloatsKey a0, IMP::Floats a1)
9706 add_attribute(Copy self, IntsKey a0, IMP::Ints a1)
9707 add_attribute(Copy self, StringKey a0, IMP::String a1)
9708 add_attribute(Copy self, ParticleIndexKey a0, Particle a1)
9709 add_attribute(Copy self, ObjectKey a0, Object a1)
9710 add_attribute(Copy self, SparseFloatKey a0, IMP::Float a1)
9711 add_attribute(Copy self, SparseIntKey a0, IMP::Int a1)
9712 add_attribute(Copy self, SparseStringKey a0, IMP::String a1)
9713 add_attribute(Copy self, SparseParticleIndexKey a0, ParticleIndex a1)
9715 return _IMP_atom.Copy_add_attribute(self, *args)
9717 def get_value(self, *args):
9719 get_value(Copy self, FloatKey a0) -> IMP::Float
9720 get_value(Copy self, IntKey a0) -> IMP::Int
9721 get_value(Copy self, FloatsKey a0) -> IMP::Floats
9722 get_value(Copy self, IntsKey a0) -> IMP::Ints
9723 get_value(Copy self, StringKey a0) -> IMP::String
9724 get_value(Copy self, ParticleIndexKey a0) -> Particle
9725 get_value(Copy self, ObjectKey a0) -> Object
9726 get_value(Copy self, SparseFloatKey a0) -> IMP::Float
9727 get_value(Copy self, SparseIntKey a0) -> IMP::Int
9728 get_value(Copy self, SparseStringKey a0) -> IMP::String
9729 get_value(Copy self, SparseParticleIndexKey a0) -> ParticleIndex
9731 return _IMP_atom.Copy_get_value(self, *args)
9733 def set_value(self, *args):
9735 set_value(Copy self, FloatKey a0, IMP::Float a1)
9736 set_value(Copy self, IntKey a0, IMP::Int a1)
9737 set_value(Copy self, FloatsKey a0, IMP::Floats a1)
9738 set_value(Copy self, IntsKey a0, IMP::Ints a1)
9739 set_value(Copy self, StringKey a0, IMP::String a1)
9740 set_value(Copy self, ParticleIndexKey a0, Particle a1)
9741 set_value(Copy self, ObjectKey a0, Object a1)
9742 set_value(Copy self, SparseFloatKey a0, IMP::Float a1)
9743 set_value(Copy self, SparseIntKey a0, IMP::Int a1)
9744 set_value(Copy self, SparseStringKey a0, IMP::String a1)
9745 set_value(Copy self, SparseParticleIndexKey a0, ParticleIndex a1)
9747 return _IMP_atom.Copy_set_value(self, *args)
9749 def remove_attribute(self, *args):
9751 remove_attribute(Copy self, FloatKey a0)
9752 remove_attribute(Copy self, IntKey a0)
9753 remove_attribute(Copy self, FloatsKey a0)
9754 remove_attribute(Copy self, IntsKey a0)
9755 remove_attribute(Copy self, StringKey a0)
9756 remove_attribute(Copy self, ParticleIndexKey a0)
9757 remove_attribute(Copy self, ObjectKey a0)
9758 remove_attribute(Copy self, SparseFloatKey a0)
9759 remove_attribute(Copy self, SparseIntKey a0)
9760 remove_attribute(Copy self, SparseStringKey a0)
9761 remove_attribute(Copy self, SparseParticleIndexKey a0)
9763 return _IMP_atom.Copy_remove_attribute(self, *args)
9765 def has_attribute(self, *args):
9767 has_attribute(Copy self, FloatKey a0) -> bool
9768 has_attribute(Copy self, IntKey a0) -> bool
9769 has_attribute(Copy self, FloatsKey a0) -> bool
9770 has_attribute(Copy self, IntsKey a0) -> bool
9771 has_attribute(Copy self, StringKey a0) -> bool
9772 has_attribute(Copy self, ParticleIndexKey a0) -> bool
9773 has_attribute(Copy self, ObjectKey a0) -> bool
9774 has_attribute(Copy self, SparseFloatKey a0) -> bool
9775 has_attribute(Copy self, SparseIntKey a0) -> bool
9776 has_attribute(Copy self, SparseStringKey a0) -> bool
9777 has_attribute(Copy self, SparseParticleIndexKey a0) -> bool
9779 return _IMP_atom.Copy_has_attribute(self, *args)
9781 def get_derivative(self, a0):
9782 r"""get_derivative(Copy self, FloatKey a0) -> double"""
9783 return _IMP_atom.Copy_get_derivative(self, a0)
9786 r"""get_name(Copy self) -> std::string"""
9787 return _IMP_atom.Copy_get_name(self)
9789 def clear_caches(self):
9790 r"""clear_caches(Copy self)"""
9791 return _IMP_atom.Copy_clear_caches(self)
9793 def set_name(self, a0):
9794 r"""set_name(Copy self, std::string a0)"""
9795 return _IMP_atom.Copy_set_name(self, a0)
9798 r"""set_check_level(Copy self, IMP::CheckLevel a0)"""
9799 return _IMP_atom.Copy_set_check_level(self, a0)
9801 def add_to_derivative(self, a0, a1, a2):
9802 r"""add_to_derivative(Copy self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
9803 return _IMP_atom.Copy_add_to_derivative(self, a0, a1, a2)
9805 def set_is_optimized(self, a0, a1):
9806 r"""set_is_optimized(Copy self, FloatKey a0, bool a1)"""
9807 return _IMP_atom.Copy_set_is_optimized(self, a0, a1)
9809 def get_is_optimized(self, a0):
9810 r"""get_is_optimized(Copy self, FloatKey a0) -> bool"""
9811 return _IMP_atom.Copy_get_is_optimized(self, a0)
9814 r"""get_check_level(Copy self) -> IMP::CheckLevel"""
9815 return _IMP_atom.Copy_get_check_level(self)
9817 def __eq__(self, *args):
9819 __eq__(Copy self, Copy o) -> bool
9820 __eq__(Copy self, Particle d) -> bool
9822 return _IMP_atom.Copy___eq__(self, *args)
9824 def __ne__(self, *args):
9826 __ne__(Copy self, Copy o) -> bool
9827 __ne__(Copy self, Particle d) -> bool
9829 return _IMP_atom.Copy___ne__(self, *args)
9831 def __le__(self, *args):
9833 __le__(Copy self, Copy o) -> bool
9834 __le__(Copy self, Particle d) -> bool
9836 return _IMP_atom.Copy___le__(self, *args)
9838 def __lt__(self, *args):
9840 __lt__(Copy self, Copy o) -> bool
9841 __lt__(Copy self, Particle d) -> bool
9843 return _IMP_atom.Copy___lt__(self, *args)
9845 def __ge__(self, *args):
9847 __ge__(Copy self, Copy o) -> bool
9848 __ge__(Copy self, Particle d) -> bool
9850 return _IMP_atom.Copy___ge__(self, *args)
9852 def __gt__(self, *args):
9854 __gt__(Copy self, Copy o) -> bool
9855 __gt__(Copy self, Particle d) -> bool
9857 return _IMP_atom.Copy___gt__(self, *args)
9860 r"""__hash__(Copy self) -> std::size_t"""
9861 return _IMP_atom.Copy___hash__(self)
9864 r"""__str__(Copy self) -> std::string"""
9865 return _IMP_atom.Copy___str__(self)
9868 r"""__repr__(Copy self) -> std::string"""
9869 return _IMP_atom.Copy___repr__(self)
9871 def _get_as_binary(self):
9872 r"""_get_as_binary(Copy self) -> PyObject *"""
9873 return _IMP_atom.Copy__get_as_binary(self)
9875 def _set_from_binary(self, p):
9876 r"""_set_from_binary(Copy self, PyObject * p)"""
9877 return _IMP_atom.Copy__set_from_binary(self, p)
9879 def __getstate__(self):
9880 p = self._get_as_binary()
9881 if len(self.__dict__) > 1:
9882 d = self.__dict__.copy()
9887 def __setstate__(self, p):
9888 if not hasattr(self,
'this'):
9890 if isinstance(p, tuple):
9892 self.__dict__.update(d)
9893 return self._set_from_binary(p)
9895 __swig_destroy__ = _IMP_atom.delete_Copy
9898 _IMP_atom.Copy_swigregister(Copy)
9901 r"""get_copy_index(Hierarchy h) -> int"""
9902 return _IMP_atom.get_copy_index(h)
9903 class Chain(Hierarchy):
9904 r"""Proxy of C++ IMP::atom::Chain class."""
9906 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9908 def __init__(self, *args):
9910 __init__(Chain self) -> Chain
9911 __init__(Chain self, Model m, ParticleIndex id) -> Chain
9912 __init__(Chain self, _ParticleAdaptor d) -> Chain
9914 _IMP_atom.Chain_swiginit(self, _IMP_atom.new_Chain(*args))
9916 def show(self, *args):
9917 r"""show(Chain self, _ostream out=std::cout)"""
9918 return _IMP_atom.Chain_show(self, *args)
9921 def setup_particle(*args):
9923 setup_particle(Model m, ParticleIndex pi, std::string id) -> Chain
9924 setup_particle(_ParticleAdaptor pa, std::string id) -> Chain
9925 setup_particle(Model m, ParticleIndex pi, char id) -> Chain
9926 setup_particle(_ParticleAdaptor pa, char id) -> Chain
9927 setup_particle(Model m, ParticleIndex pi, Chain other) -> Chain
9928 setup_particle(_ParticleAdaptor pa, Chain other) -> Chain
9930 return _IMP_atom.Chain_setup_particle(*args)
9933 def get_is_setup(*args):
9935 get_is_setup(_ParticleAdaptor p) -> bool
9936 get_is_setup(Model m, ParticleIndex pi) -> bool
9938 return _IMP_atom.Chain_get_is_setup(*args)
9941 r"""get_id(Chain self) -> std::string"""
9942 return _IMP_atom.Chain_get_id(self)
9944 def set_id(self, c):
9945 r"""set_id(Chain self, std::string c)"""
9946 return _IMP_atom.Chain_set_id(self, c)
9948 def get_label_asym_id(self):
9949 r"""get_label_asym_id(Chain self) -> std::string"""
9950 return _IMP_atom.Chain_get_label_asym_id(self)
9952 def set_label_asym_id(self, c):
9953 r"""set_label_asym_id(Chain self, std::string c)"""
9954 return _IMP_atom.Chain_set_label_asym_id(self, c)
9956 def get_sequence(self):
9957 r"""get_sequence(Chain self) -> std::string"""
9958 return _IMP_atom.Chain_get_sequence(self)
9960 def set_sequence(self, sequence):
9961 r"""set_sequence(Chain self, std::string sequence)"""
9962 return _IMP_atom.Chain_set_sequence(self, sequence)
9964 def get_sequence_offset(self):
9965 r"""get_sequence_offset(Chain self) -> int"""
9966 return _IMP_atom.Chain_get_sequence_offset(self)
9968 def set_sequence_offset(self, offset):
9969 r"""set_sequence_offset(Chain self, int offset)"""
9970 return _IMP_atom.Chain_set_sequence_offset(self, offset)
9972 def get_uniprot_accession(self):
9973 r"""get_uniprot_accession(Chain self) -> std::string"""
9974 return _IMP_atom.Chain_get_uniprot_accession(self)
9976 def set_uniprot_accession(self, accession):
9977 r"""set_uniprot_accession(Chain self, std::string accession)"""
9978 return _IMP_atom.Chain_set_uniprot_accession(self, accession)
9980 def get_chain_type(self):
9981 r"""get_chain_type(Chain self) -> ChainType"""
9982 return _IMP_atom.Chain_get_chain_type(self)
9984 def set_chain_type(self, t):
9985 r"""set_chain_type(Chain self, ChainType t)"""
9986 return _IMP_atom.Chain_set_chain_type(self, t)
9990 r"""get_id_key() -> SparseStringKey"""
9991 return _IMP_atom.Chain_get_id_key()
9994 def get_label_asym_id_key():
9995 r"""get_label_asym_id_key() -> SparseStringKey"""
9996 return _IMP_atom.Chain_get_label_asym_id_key()
9999 def get_sequence_key():
10000 r"""get_sequence_key() -> SparseStringKey"""
10001 return _IMP_atom.Chain_get_sequence_key()
10004 def get_sequence_offset_key():
10005 r"""get_sequence_offset_key() -> SparseIntKey"""
10006 return _IMP_atom.Chain_get_sequence_offset_key()
10009 def get_uniprot_accession_key():
10010 r"""get_uniprot_accession_key() -> SparseStringKey"""
10011 return _IMP_atom.Chain_get_uniprot_accession_key()
10014 def get_chain_type_key():
10015 r"""get_chain_type_key() -> SparseIntKey"""
10016 return _IMP_atom.Chain_get_chain_type_key()
10018 def add_attribute(self, *args):
10020 add_attribute(Chain self, FloatKey k, IMP::Float v, bool opt)
10021 add_attribute(Chain self, FloatKey a0, IMP::Float a1)
10022 add_attribute(Chain self, IntKey a0, IMP::Int a1)
10023 add_attribute(Chain self, FloatsKey a0, IMP::Floats a1)
10024 add_attribute(Chain self, IntsKey a0, IMP::Ints a1)
10025 add_attribute(Chain self, StringKey a0, IMP::String a1)
10026 add_attribute(Chain self, ParticleIndexKey a0, Particle a1)
10027 add_attribute(Chain self, ObjectKey a0, Object a1)
10028 add_attribute(Chain self, SparseFloatKey a0, IMP::Float a1)
10029 add_attribute(Chain self, SparseIntKey a0, IMP::Int a1)
10030 add_attribute(Chain self, SparseStringKey a0, IMP::String a1)
10031 add_attribute(Chain self, SparseParticleIndexKey a0, ParticleIndex a1)
10033 return _IMP_atom.Chain_add_attribute(self, *args)
10035 def get_value(self, *args):
10037 get_value(Chain self, FloatKey a0) -> IMP::Float
10038 get_value(Chain self, IntKey a0) -> IMP::Int
10039 get_value(Chain self, FloatsKey a0) -> IMP::Floats
10040 get_value(Chain self, IntsKey a0) -> IMP::Ints
10041 get_value(Chain self, StringKey a0) -> IMP::String
10042 get_value(Chain self, ParticleIndexKey a0) -> Particle
10043 get_value(Chain self, ObjectKey a0) -> Object
10044 get_value(Chain self, SparseFloatKey a0) -> IMP::Float
10045 get_value(Chain self, SparseIntKey a0) -> IMP::Int
10046 get_value(Chain self, SparseStringKey a0) -> IMP::String
10047 get_value(Chain self, SparseParticleIndexKey a0) -> ParticleIndex
10049 return _IMP_atom.Chain_get_value(self, *args)
10051 def set_value(self, *args):
10053 set_value(Chain self, FloatKey a0, IMP::Float a1)
10054 set_value(Chain self, IntKey a0, IMP::Int a1)
10055 set_value(Chain self, FloatsKey a0, IMP::Floats a1)
10056 set_value(Chain self, IntsKey a0, IMP::Ints a1)
10057 set_value(Chain self, StringKey a0, IMP::String a1)
10058 set_value(Chain self, ParticleIndexKey a0, Particle a1)
10059 set_value(Chain self, ObjectKey a0, Object a1)
10060 set_value(Chain self, SparseFloatKey a0, IMP::Float a1)
10061 set_value(Chain self, SparseIntKey a0, IMP::Int a1)
10062 set_value(Chain self, SparseStringKey a0, IMP::String a1)
10063 set_value(Chain self, SparseParticleIndexKey a0, ParticleIndex a1)
10065 return _IMP_atom.Chain_set_value(self, *args)
10067 def remove_attribute(self, *args):
10069 remove_attribute(Chain self, FloatKey a0)
10070 remove_attribute(Chain self, IntKey a0)
10071 remove_attribute(Chain self, FloatsKey a0)
10072 remove_attribute(Chain self, IntsKey a0)
10073 remove_attribute(Chain self, StringKey a0)
10074 remove_attribute(Chain self, ParticleIndexKey a0)
10075 remove_attribute(Chain self, ObjectKey a0)
10076 remove_attribute(Chain self, SparseFloatKey a0)
10077 remove_attribute(Chain self, SparseIntKey a0)
10078 remove_attribute(Chain self, SparseStringKey a0)
10079 remove_attribute(Chain self, SparseParticleIndexKey a0)
10081 return _IMP_atom.Chain_remove_attribute(self, *args)
10083 def has_attribute(self, *args):
10085 has_attribute(Chain self, FloatKey a0) -> bool
10086 has_attribute(Chain self, IntKey a0) -> bool
10087 has_attribute(Chain self, FloatsKey a0) -> bool
10088 has_attribute(Chain self, IntsKey a0) -> bool
10089 has_attribute(Chain self, StringKey a0) -> bool
10090 has_attribute(Chain self, ParticleIndexKey a0) -> bool
10091 has_attribute(Chain self, ObjectKey a0) -> bool
10092 has_attribute(Chain self, SparseFloatKey a0) -> bool
10093 has_attribute(Chain self, SparseIntKey a0) -> bool
10094 has_attribute(Chain self, SparseStringKey a0) -> bool
10095 has_attribute(Chain self, SparseParticleIndexKey a0) -> bool
10097 return _IMP_atom.Chain_has_attribute(self, *args)
10099 def get_derivative(self, a0):
10100 r"""get_derivative(Chain self, FloatKey a0) -> double"""
10101 return _IMP_atom.Chain_get_derivative(self, a0)
10103 def get_name(self):
10104 r"""get_name(Chain self) -> std::string"""
10105 return _IMP_atom.Chain_get_name(self)
10107 def clear_caches(self):
10108 r"""clear_caches(Chain self)"""
10109 return _IMP_atom.Chain_clear_caches(self)
10111 def set_name(self, a0):
10112 r"""set_name(Chain self, std::string a0)"""
10113 return _IMP_atom.Chain_set_name(self, a0)
10116 r"""set_check_level(Chain self, IMP::CheckLevel a0)"""
10117 return _IMP_atom.Chain_set_check_level(self, a0)
10119 def add_to_derivative(self, a0, a1, a2):
10120 r"""add_to_derivative(Chain self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
10121 return _IMP_atom.Chain_add_to_derivative(self, a0, a1, a2)
10123 def set_is_optimized(self, a0, a1):
10124 r"""set_is_optimized(Chain self, FloatKey a0, bool a1)"""
10125 return _IMP_atom.Chain_set_is_optimized(self, a0, a1)
10127 def get_is_optimized(self, a0):
10128 r"""get_is_optimized(Chain self, FloatKey a0) -> bool"""
10129 return _IMP_atom.Chain_get_is_optimized(self, a0)
10132 r"""get_check_level(Chain self) -> IMP::CheckLevel"""
10133 return _IMP_atom.Chain_get_check_level(self)
10135 def __eq__(self, *args):
10137 __eq__(Chain self, Chain o) -> bool
10138 __eq__(Chain self, Particle d) -> bool
10140 return _IMP_atom.Chain___eq__(self, *args)
10142 def __ne__(self, *args):
10144 __ne__(Chain self, Chain o) -> bool
10145 __ne__(Chain self, Particle d) -> bool
10147 return _IMP_atom.Chain___ne__(self, *args)
10149 def __le__(self, *args):
10151 __le__(Chain self, Chain o) -> bool
10152 __le__(Chain self, Particle d) -> bool
10154 return _IMP_atom.Chain___le__(self, *args)
10156 def __lt__(self, *args):
10158 __lt__(Chain self, Chain o) -> bool
10159 __lt__(Chain self, Particle d) -> bool
10161 return _IMP_atom.Chain___lt__(self, *args)
10163 def __ge__(self, *args):
10165 __ge__(Chain self, Chain o) -> bool
10166 __ge__(Chain self, Particle d) -> bool
10168 return _IMP_atom.Chain___ge__(self, *args)
10170 def __gt__(self, *args):
10172 __gt__(Chain self, Chain o) -> bool
10173 __gt__(Chain self, Particle d) -> bool
10175 return _IMP_atom.Chain___gt__(self, *args)
10177 def __hash__(self):
10178 r"""__hash__(Chain self) -> std::size_t"""
10179 return _IMP_atom.Chain___hash__(self)
10182 r"""__str__(Chain self) -> std::string"""
10183 return _IMP_atom.Chain___str__(self)
10185 def __repr__(self):
10186 r"""__repr__(Chain self) -> std::string"""
10187 return _IMP_atom.Chain___repr__(self)
10189 def _get_as_binary(self):
10190 r"""_get_as_binary(Chain self) -> PyObject *"""
10191 return _IMP_atom.Chain__get_as_binary(self)
10193 def _set_from_binary(self, p):
10194 r"""_set_from_binary(Chain self, PyObject * p)"""
10195 return _IMP_atom.Chain__set_from_binary(self, p)
10197 def __getstate__(self):
10198 p = self._get_as_binary()
10199 if len(self.__dict__) > 1:
10200 d = self.__dict__.copy()
10205 def __setstate__(self, p):
10206 if not hasattr(self,
'this'):
10208 if isinstance(p, tuple):
10210 self.__dict__.update(d)
10211 return self._set_from_binary(p)
10213 __swig_destroy__ = _IMP_atom.delete_Chain
10216 _IMP_atom.Chain_swigregister(Chain)
10217 UnknownChainType = cvar.UnknownChainType
10218 DPolypeptide = cvar.DPolypeptide
10219 LPolypeptide = cvar.LPolypeptide
10220 Polydeoxyribonucleotide = cvar.Polydeoxyribonucleotide
10221 Polyribonucleotide = cvar.Polyribonucleotide
10222 DPolysaccharide = cvar.DPolysaccharide
10223 LPolysaccharide = cvar.LPolysaccharide
10224 Protein = cvar.Protein
10230 r"""get_chain(Hierarchy h) -> Chain"""
10231 return _IMP_atom.get_chain(h)
10234 r"""get_chain_id(Hierarchy h) -> std::string"""
10235 return _IMP_atom.get_chain_id(h)
10236 class Selection(IMP._ParticleIndexesAdaptor):
10237 r"""Proxy of C++ IMP::atom::Selection class."""
10239 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10240 NONE = _IMP_atom.Selection_NONE
10242 C = _IMP_atom.Selection_C
10244 N = _IMP_atom.Selection_N
10247 def __init__(self, *args):
10249 __init__(Selection self) -> Selection
10250 __init__(Selection self, Hierarchy h) -> Selection
10251 __init__(Selection self, Particle h) -> Selection
10252 __init__(Selection self, Model m, IMP::ParticleIndexes const & pis) -> Selection
10253 __init__(Selection self, IMP::ParticlesTemp const & h) -> Selection
10255 _IMP_atom.Selection_swiginit(self, _IMP_atom.new_Selection(*args))
10258 r"""create_clone(Selection self) -> Selection"""
10259 return _IMP_atom.Selection_create_clone(self)
10261 def get_hierarchies(self):
10262 r"""get_hierarchies(Selection self) -> IMP::atom::Hierarchies"""
10263 return _IMP_atom.Selection_get_hierarchies(self)
10265 def set_molecules(self, mols):
10266 r"""set_molecules(Selection self, IMP::Strings mols)"""
10267 return _IMP_atom.Selection_set_molecules(self, mols)
10269 def set_resolution(self, r):
10270 r"""set_resolution(Selection self, double r)"""
10271 return _IMP_atom.Selection_set_resolution(self, r)
10273 def set_representation_type(self, t):
10274 r"""set_representation_type(Selection self, IMP::atom::RepresentationType t)"""
10275 return _IMP_atom.Selection_set_representation_type(self, t)
10277 def set_state_index(self, state):
10278 r"""set_state_index(Selection self, int state)"""
10279 return _IMP_atom.Selection_set_state_index(self, state)
10281 def set_state_indexes(self, states):
10282 r"""set_state_indexes(Selection self, IMP::Ints states)"""
10283 return _IMP_atom.Selection_set_state_indexes(self, states)
10285 def set_terminus(self, t):
10286 r"""set_terminus(Selection self, IMP::atom::Selection::Terminus t)"""
10287 return _IMP_atom.Selection_set_terminus(self, t)
10289 def set_element(self, e):
10290 r"""set_element(Selection self, IMP::atom::Element e)"""
10291 return _IMP_atom.Selection_set_element(self, e)
10293 def set_chain_ids(self, chains):
10294 r"""set_chain_ids(Selection self, IMP::Strings chains)"""
10295 return _IMP_atom.Selection_set_chain_ids(self, chains)
10297 def set_chains(self, chains):
10298 r"""set_chains(Selection self, IMP::Strings chains)"""
10299 return _IMP_atom.Selection_set_chains(self, chains)
10301 def set_residue_indexes(self, indexes):
10302 r"""set_residue_indexes(Selection self, IMP::Ints indexes)"""
10303 return _IMP_atom.Selection_set_residue_indexes(self, indexes)
10305 def set_atom_types(self, types):
10306 r"""set_atom_types(Selection self, IMP::atom::AtomTypes types)"""
10307 return _IMP_atom.Selection_set_atom_types(self, types)
10309 def set_residue_types(self, types):
10310 r"""set_residue_types(Selection self, IMP::atom::ResidueTypes types)"""
10311 return _IMP_atom.Selection_set_residue_types(self, types)
10313 def set_domains(self, names):
10314 r"""set_domains(Selection self, IMP::Strings names)"""
10315 return _IMP_atom.Selection_set_domains(self, names)
10317 def set_molecule(self, mol):
10318 r"""set_molecule(Selection self, std::string mol)"""
10319 return _IMP_atom.Selection_set_molecule(self, mol)
10321 def set_chain_id(self, c):
10322 r"""set_chain_id(Selection self, std::string c)"""
10323 return _IMP_atom.Selection_set_chain_id(self, c)
10325 def set_chain(self, c):
10326 r"""set_chain(Selection self, std::string c)"""
10327 return _IMP_atom.Selection_set_chain(self, c)
10329 def set_residue_index(self, i):
10330 r"""set_residue_index(Selection self, int i)"""
10331 return _IMP_atom.Selection_set_residue_index(self, i)
10333 def set_atom_type(self, types):
10334 r"""set_atom_type(Selection self, AtomType types)"""
10335 return _IMP_atom.Selection_set_atom_type(self, types)
10337 def set_residue_type(self, type):
10338 r"""set_residue_type(Selection self, ResidueType type)"""
10339 return _IMP_atom.Selection_set_residue_type(self, type)
10341 def set_domain(self, name):
10342 r"""set_domain(Selection self, std::string name)"""
10343 return _IMP_atom.Selection_set_domain(self, name)
10345 def set_copy_index(self, copy):
10346 r"""set_copy_index(Selection self, unsigned int copy)"""
10347 return _IMP_atom.Selection_set_copy_index(self, copy)
10349 def set_copy_indexes(self, copies):
10350 r"""set_copy_indexes(Selection self, IMP::Ints copies)"""
10351 return _IMP_atom.Selection_set_copy_indexes(self, copies)
10353 def set_particle_type(self, t):
10354 r"""set_particle_type(Selection self, ParticleType t)"""
10355 return _IMP_atom.Selection_set_particle_type(self, t)
10357 def set_particle_types(self, t):
10358 r"""set_particle_types(Selection self, IMP::core::ParticleTypes t)"""
10359 return _IMP_atom.Selection_set_particle_types(self, t)
10361 def set_hierarchy_types(self, types):
10362 r"""set_hierarchy_types(Selection self, IMP::Ints types)"""
10363 return _IMP_atom.Selection_set_hierarchy_types(self, types)
10365 def set_intersection(self, s):
10366 r"""set_intersection(Selection self, Selection s)"""
10367 return _IMP_atom.Selection_set_intersection(self, s)
10369 def set_union(self, s):
10370 r"""set_union(Selection self, Selection s)"""
10371 return _IMP_atom.Selection_set_union(self, s)
10373 def set_symmetric_difference(self, s):
10374 r"""set_symmetric_difference(Selection self, Selection s)"""
10375 return _IMP_atom.Selection_set_symmetric_difference(self, s)
10377 def set_difference(self, s):
10378 r"""set_difference(Selection self, Selection s)"""
10379 return _IMP_atom.Selection_set_difference(self, s)
10381 def get_selected_particles(self, with_representation=True):
10382 r"""get_selected_particles(Selection self, bool with_representation=True) -> IMP::ParticlesTemp"""
10383 return _IMP_atom.Selection_get_selected_particles(self, with_representation)
10385 def get_selected_particle_indexes(self, with_representation=True):
10386 r"""get_selected_particle_indexes(Selection self, bool with_representation=True) -> IMP::ParticleIndexes"""
10387 return _IMP_atom.Selection_get_selected_particle_indexes(self, with_representation)
10389 def show(self, *args):
10390 r"""show(Selection self, _ostream out=std::cout)"""
10391 return _IMP_atom.Selection_show(self, *args)
10394 r"""__str__(Selection self) -> std::string"""
10395 return _IMP_atom.Selection___str__(self)
10397 def __repr__(self):
10398 r"""__repr__(Selection self) -> std::string"""
10399 return _IMP_atom.Selection___repr__(self)
10401 def __init__(self, hierarchy=None,
10402 hierarchies=
None, **params):
10403 if hierarchy
and hierarchies:
10404 raise RuntimeError(
"You can't pass both hierarchy and hierarchies to Selection")
10406 this = _IMP_atom.new_Selection(hierarchy)
10407 try: self.this.append(this)
10408 except: self.this = this
10410 this = _IMP_atom.new_Selection(hierarchies)
10411 try: self.this.append(this)
10412 except: self.this = this
10414 raise ValueError(
"Either hierarchy or hierarchies must be provided.")
10415 for k
in params.keys():
10416 eval(
"self.set_%s(params[k])"%k)
10418 def union(self, s):
10419 news = self.create_clone()
10420 news.union_update(s)
10422 def intersection(self, s):
10423 news = self.create_clone()
10424 news.intersection_update(s)
10426 def symmetric_difference(self, s):
10427 news = self.create_clone()
10428 news.symmetric_difference_update(s)
10430 def difference(self, s):
10431 news = self.create_clone()
10432 news.difference_update(s)
10434 def union_update(self, s):
10437 def intersection_update(self, s):
10438 self.set_intersection(s)
10440 def symmetric_difference_update(self, s):
10441 self.set_symmetric_difference(s)
10443 def difference_update(self, s):
10444 self.set_difference(s)
10447 __and__ = intersection
10448 __xor__ = symmetric_difference
10449 __sub__ = difference
10450 __ior__ = union_update
10451 __iand__ = intersection_update
10452 __ixor__ = symmetric_difference_update
10453 __isub__ = difference_update
10455 __swig_destroy__ = _IMP_atom.delete_Selection
10458 _IMP_atom.Selection_swigregister(Selection)
10461 r"""create_distance_restraint(Selection n0, Selection n1, double x0, double k, std::string name="Distance%1%") -> Restraint"""
10462 return _IMP_atom.create_distance_restraint(*args)
10466 create_connectivity_restraint(IMP::atom::Selections const & s, double k, std::string name="Connectivity%1%") -> Restraint
10467 create_connectivity_restraint(IMP::atom::Selections const & s, double x0, double k, std::string name="Connectivity%1%") -> Restraint
10469 return _IMP_atom.create_connectivity_restraint(*args)
10473 create_internal_connectivity_restraint(Selection s, double k, std::string name="Connectivity%1%") -> Restraint
10474 create_internal_connectivity_restraint(Selection s, double x0, double k, std::string name="Connectivity%1%") -> Restraint
10476 return _IMP_atom.create_internal_connectivity_restraint(*args)
10479 r"""create_cover(Selection s, std::string name=std::string()) -> XYZR"""
10480 return _IMP_atom.create_cover(*args)
10484 get_mass(ResidueType c) -> double
10485 get_mass(Selection s) -> double
10487 return _IMP_atom.get_mass(*args)
10490 r"""get_volume(Selection s) -> double"""
10491 return _IMP_atom.get_volume(s)
10494 r"""get_surface_area(Selection s) -> double"""
10495 return _IMP_atom.get_surface_area(s)
10499 get_leaves(Hierarchy h) -> IMP::atom::Hierarchies
10500 get_leaves(IMP::atom::Hierarchies const & h) -> IMP::atom::Hierarchies
10501 get_leaves(Selection h) -> IMP::atom::Hierarchies
10503 return _IMP_atom.get_leaves(*args)
10505 r"""Proxy of C++ IMP::atom::SelectionGeometry class."""
10507 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10509 def __init__(self, *args):
10510 r"""__init__(SelectionGeometry self, Selection d, std::string name="Selection") -> SelectionGeometry"""
10511 _IMP_atom.SelectionGeometry_swiginit(self, _IMP_atom.new_SelectionGeometry(*args))
10513 def get_version_info(self):
10514 r"""get_version_info(SelectionGeometry self) -> VersionInfo"""
10515 return _IMP_atom.SelectionGeometry_get_version_info(self)
10516 __swig_destroy__ = _IMP_atom.delete_SelectionGeometry
10519 r"""__str__(SelectionGeometry self) -> std::string"""
10520 return _IMP_atom.SelectionGeometry___str__(self)
10522 def __repr__(self):
10523 r"""__repr__(SelectionGeometry self) -> std::string"""
10524 return _IMP_atom.SelectionGeometry___repr__(self)
10528 return _object_cast_to_SelectionGeometry(o)
10532 _IMP_atom.SelectionGeometry_swigregister(SelectionGeometry)
10536 get_rmsd(IMP::core::XYZs const & s0, IMP::core::XYZs const & s1) -> double
10537 get_rmsd(Selection s0, Selection s1) -> double
10539 return _IMP_atom.get_rmsd(*args)
10543 get_rmsd_transforming_first(Transformation3D tr, IMP::core::XYZs const & s0, IMP::core::XYZs const & s1) -> double
10544 get_rmsd_transforming_first(Transformation3D tr, Selection s0, Selection s1) -> double
10546 return _IMP_atom.get_rmsd_transforming_first(*args)
10549 r"""get_placement_score(IMP::core::XYZs const & source, IMP::core::XYZs const & target) -> IMP::FloatPair"""
10550 return _IMP_atom.get_placement_score(source, target)
10553 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"""
10554 return _IMP_atom.get_component_placement_score(ref1, ref2, mdl1, mdl2)
10557 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"""
10558 return _IMP_atom.get_pairwise_rmsd_score(ref1, ref2, mdl1, mdl2)
10562 get_radius_of_gyration(Selection s) -> double
10563 get_radius_of_gyration(IMP::ParticlesTemp const & ps, bool weighted=True) -> double
10565 return _IMP_atom.get_radius_of_gyration(*args)
10567 r"""Proxy of C++ IMP::atom::ForceFieldParameters class."""
10569 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10571 def __init__(self):
10572 r"""__init__(ForceFieldParameters self) -> ForceFieldParameters"""
10573 _IMP_atom.ForceFieldParameters_swiginit(self, _IMP_atom.new_ForceFieldParameters())
10575 def get_radius(self, atom):
10576 r"""get_radius(ForceFieldParameters self, Atom atom) -> IMP::Float"""
10577 return _IMP_atom.ForceFieldParameters_get_radius(self, atom)
10579 def get_epsilon(self, atom):
10580 r"""get_epsilon(ForceFieldParameters self, Atom atom) -> IMP::Float"""
10581 return _IMP_atom.ForceFieldParameters_get_epsilon(self, atom)
10584 r"""add_radii(ForceFieldParameters self, Hierarchy mhd, double scale=1.0, FloatKey radius_key=IMP::FloatKey("radius"))"""
10585 return _IMP_atom.ForceFieldParameters_add_radii(self, *args)
10587 def add_lennard_jones_types(self, mhd):
10588 r"""add_lennard_jones_types(ForceFieldParameters self, Hierarchy mhd)"""
10589 return _IMP_atom.ForceFieldParameters_add_lennard_jones_types(self, mhd)
10592 r"""add_bonds(ForceFieldParameters self, Hierarchy mhd)"""
10593 return _IMP_atom.ForceFieldParameters_add_bonds(self, mhd)
10594 __swig_destroy__ = _IMP_atom.delete_ForceFieldParameters
10597 r"""__str__(ForceFieldParameters self) -> std::string"""
10598 return _IMP_atom.ForceFieldParameters___str__(self)
10600 def __repr__(self):
10601 r"""__repr__(ForceFieldParameters self) -> std::string"""
10602 return _IMP_atom.ForceFieldParameters___repr__(self)
10606 return _object_cast_to_ForceFieldParameters(o)
10610 _IMP_atom.ForceFieldParameters_swigregister(ForceFieldParameters)
10611 class CHARMMAtomTopology(object):
10612 r"""Proxy of C++ IMP::atom::CHARMMAtomTopology class."""
10614 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10616 def __init__(self, *args):
10618 __init__(CHARMMAtomTopology self) -> CHARMMAtomTopology
10619 __init__(CHARMMAtomTopology self, std::string name) -> CHARMMAtomTopology
10620 __init__(CHARMMAtomTopology self, std::string name, CHARMMAtomTopology other) -> CHARMMAtomTopology
10622 _IMP_atom.CHARMMAtomTopology_swiginit(self, _IMP_atom.new_CHARMMAtomTopology(*args))
10624 def get_name(self):
10625 r"""get_name(CHARMMAtomTopology self) -> std::string"""
10626 return _IMP_atom.CHARMMAtomTopology_get_name(self)
10628 def get_charmm_type(self):
10629 r"""get_charmm_type(CHARMMAtomTopology self) -> std::string"""
10630 return _IMP_atom.CHARMMAtomTopology_get_charmm_type(self)
10632 def get_charge(self):
10633 r"""get_charge(CHARMMAtomTopology self) -> double"""
10634 return _IMP_atom.CHARMMAtomTopology_get_charge(self)
10636 def set_charmm_type(self, charmm_type):
10637 r"""set_charmm_type(CHARMMAtomTopology self, std::string charmm_type)"""
10638 return _IMP_atom.CHARMMAtomTopology_set_charmm_type(self, charmm_type)
10640 def set_charge(self, charge):
10641 r"""set_charge(CHARMMAtomTopology self, double charge)"""
10642 return _IMP_atom.CHARMMAtomTopology_set_charge(self, charge)
10644 def show(self, *args):
10645 r"""show(CHARMMAtomTopology self, _ostream out=std::cout)"""
10646 return _IMP_atom.CHARMMAtomTopology_show(self, *args)
10649 r"""__str__(CHARMMAtomTopology self) -> std::string"""
10650 return _IMP_atom.CHARMMAtomTopology___str__(self)
10652 def __repr__(self):
10653 r"""__repr__(CHARMMAtomTopology self) -> std::string"""
10654 return _IMP_atom.CHARMMAtomTopology___repr__(self)
10656 def _get_as_binary(self):
10657 r"""_get_as_binary(CHARMMAtomTopology self) -> PyObject *"""
10658 return _IMP_atom.CHARMMAtomTopology__get_as_binary(self)
10660 def _set_from_binary(self, p):
10661 r"""_set_from_binary(CHARMMAtomTopology self, PyObject * p)"""
10662 return _IMP_atom.CHARMMAtomTopology__set_from_binary(self, p)
10664 def __getstate__(self):
10665 p = self._get_as_binary()
10666 if len(self.__dict__) > 1:
10667 d = self.__dict__.copy()
10672 def __setstate__(self, p):
10673 if not hasattr(self,
'this'):
10675 if isinstance(p, tuple):
10677 self.__dict__.update(d)
10678 return self._set_from_binary(p)
10680 __swig_destroy__ = _IMP_atom.delete_CHARMMAtomTopology
10683 _IMP_atom.CHARMMAtomTopology_swigregister(CHARMMAtomTopology)
10684 class CHARMMBondEndpoint(object):
10685 r"""Proxy of C++ IMP::atom::CHARMMBondEndpoint class."""
10687 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10689 def __init__(self, atom_name, residue=None):
10690 r"""__init__(CHARMMBondEndpoint self, std::string atom_name, CHARMMResidueTopology residue=None) -> CHARMMBondEndpoint"""
10691 _IMP_atom.CHARMMBondEndpoint_swiginit(self, _IMP_atom.new_CHARMMBondEndpoint(atom_name, residue))
10693 def get_atom_name(self):
10694 r"""get_atom_name(CHARMMBondEndpoint self) -> std::string"""
10695 return _IMP_atom.CHARMMBondEndpoint_get_atom_name(self)
10697 def get_atom(self, current_residue, previous_residue, next_residue, resmap):
10698 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"""
10699 return _IMP_atom.CHARMMBondEndpoint_get_atom(self, current_residue, previous_residue, next_residue, resmap)
10701 def show(self, *args):
10702 r"""show(CHARMMBondEndpoint self, _ostream out=std::cout)"""
10703 return _IMP_atom.CHARMMBondEndpoint_show(self, *args)
10706 r"""__str__(CHARMMBondEndpoint self) -> std::string"""
10707 return _IMP_atom.CHARMMBondEndpoint___str__(self)
10709 def __repr__(self):
10710 r"""__repr__(CHARMMBondEndpoint self) -> std::string"""
10711 return _IMP_atom.CHARMMBondEndpoint___repr__(self)
10712 __swig_destroy__ = _IMP_atom.delete_CHARMMBondEndpoint
10715 _IMP_atom.CHARMMBondEndpoint_swigregister(CHARMMBondEndpoint)
10716 class CHARMMDihedral(object):
10717 r"""Proxy of C++ IMP::atom::CHARMMConnection< 4 > class."""
10719 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10720 __repr__ = _swig_repr
10722 def __init__(self, atoms):
10723 r"""__init__(CHARMMDihedral self, IMP::Strings const & atoms) -> CHARMMDihedral"""
10724 _IMP_atom.CHARMMDihedral_swiginit(self, _IMP_atom.new_CHARMMDihedral(atoms))
10726 def get_endpoint(self, i):
10727 r"""get_endpoint(CHARMMDihedral self, unsigned int i) -> CHARMMBondEndpoint"""
10728 return _IMP_atom.CHARMMDihedral_get_endpoint(self, i)
10730 def get_contains_atom(self, name):
10731 r"""get_contains_atom(CHARMMDihedral self, std::string name) -> bool"""
10732 return _IMP_atom.CHARMMDihedral_get_contains_atom(self, name)
10734 def show(self, *args):
10735 r"""show(CHARMMDihedral self, _ostream out=std::cout)"""
10736 return _IMP_atom.CHARMMDihedral_show(self, *args)
10737 __swig_destroy__ = _IMP_atom.delete_CHARMMDihedral
10740 _IMP_atom.CHARMMDihedral_swigregister(CHARMMDihedral)
10741 class CHARMMInternalCoordinate(CHARMMDihedral):
10742 r"""Proxy of C++ IMP::atom::CHARMMInternalCoordinate class."""
10744 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10746 def __init__(self, *args):
10748 __init__(CHARMMInternalCoordinate self, IMP::Strings const & atoms, float first_distance, float first_angle, float dihedral, float second_angle, float second_distance, bool improper) -> CHARMMInternalCoordinate
10749 __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
10751 _IMP_atom.CHARMMInternalCoordinate_swiginit(self, _IMP_atom.new_CHARMMInternalCoordinate(*args))
10753 def get_first_distance(self):
10754 r"""get_first_distance(CHARMMInternalCoordinate self) -> float"""
10755 return _IMP_atom.CHARMMInternalCoordinate_get_first_distance(self)
10757 def get_second_distance(self):
10758 r"""get_second_distance(CHARMMInternalCoordinate self) -> float"""
10759 return _IMP_atom.CHARMMInternalCoordinate_get_second_distance(self)
10761 def get_first_angle(self):
10762 r"""get_first_angle(CHARMMInternalCoordinate self) -> float"""
10763 return _IMP_atom.CHARMMInternalCoordinate_get_first_angle(self)
10765 def get_second_angle(self):
10766 r"""get_second_angle(CHARMMInternalCoordinate self) -> float"""
10767 return _IMP_atom.CHARMMInternalCoordinate_get_second_angle(self)
10770 r"""get_dihedral(CHARMMInternalCoordinate self) -> float"""
10771 return _IMP_atom.CHARMMInternalCoordinate_get_dihedral(self)
10773 def get_improper(self):
10774 r"""get_improper(CHARMMInternalCoordinate self) -> bool"""
10775 return _IMP_atom.CHARMMInternalCoordinate_get_improper(self)
10777 def show(self, *args):
10778 r"""show(CHARMMInternalCoordinate self, _ostream out=std::cout)"""
10779 return _IMP_atom.CHARMMInternalCoordinate_show(self, *args)
10782 r"""__str__(CHARMMInternalCoordinate self) -> std::string"""
10783 return _IMP_atom.CHARMMInternalCoordinate___str__(self)
10785 def __repr__(self):
10786 r"""__repr__(CHARMMInternalCoordinate self) -> std::string"""
10787 return _IMP_atom.CHARMMInternalCoordinate___repr__(self)
10788 __swig_destroy__ = _IMP_atom.delete_CHARMMInternalCoordinate
10791 _IMP_atom.CHARMMInternalCoordinate_swigregister(CHARMMInternalCoordinate)
10792 class CHARMMResidueTopologyBase(
IMP.Object):
10793 r"""Proxy of C++ IMP::atom::CHARMMResidueTopologyBase class."""
10795 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10797 def __init__(self, *args, **kwargs):
10798 raise AttributeError(
"No constructor defined")
10800 def get_type(self):
10801 r"""get_type(CHARMMResidueTopologyBase self) -> std::string"""
10802 return _IMP_atom.CHARMMResidueTopologyBase_get_type(self)
10804 def get_number_of_atoms(self):
10805 r"""get_number_of_atoms(CHARMMResidueTopologyBase self) -> unsigned int"""
10806 return _IMP_atom.CHARMMResidueTopologyBase_get_number_of_atoms(self)
10808 def add_atom(self, atom):
10809 r"""add_atom(CHARMMResidueTopologyBase self, CHARMMAtomTopology atom)"""
10810 return _IMP_atom.CHARMMResidueTopologyBase_add_atom(self, atom)
10814 get_atom(CHARMMResidueTopologyBase self, unsigned int i) -> CHARMMAtomTopology
10815 get_atom(CHARMMResidueTopologyBase self, AtomType type) -> CHARMMAtomTopology
10816 get_atom(CHARMMResidueTopologyBase self, std::string name) -> CHARMMAtomTopology
10818 return _IMP_atom.CHARMMResidueTopologyBase_get_atom(self, *args)
10820 def get_number_of_bonds(self):
10821 r"""get_number_of_bonds(CHARMMResidueTopologyBase self) -> unsigned int"""
10822 return _IMP_atom.CHARMMResidueTopologyBase_get_number_of_bonds(self)
10824 def add_bond(self, bond):
10825 r"""add_bond(CHARMMResidueTopologyBase self, CHARMMBond bond)"""
10826 return _IMP_atom.CHARMMResidueTopologyBase_add_bond(self, bond)
10828 def get_number_of_angles(self):
10829 r"""get_number_of_angles(CHARMMResidueTopologyBase self) -> unsigned int"""
10830 return _IMP_atom.CHARMMResidueTopologyBase_get_number_of_angles(self)
10832 def add_angle(self, bond):
10833 r"""add_angle(CHARMMResidueTopologyBase self, CHARMMAngle bond)"""
10834 return _IMP_atom.CHARMMResidueTopologyBase_add_angle(self, bond)
10836 def get_number_of_dihedrals(self):
10837 r"""get_number_of_dihedrals(CHARMMResidueTopologyBase self) -> unsigned int"""
10838 return _IMP_atom.CHARMMResidueTopologyBase_get_number_of_dihedrals(self)
10840 def add_dihedral(self, bond):
10841 r"""add_dihedral(CHARMMResidueTopologyBase self, CHARMMDihedral bond)"""
10842 return _IMP_atom.CHARMMResidueTopologyBase_add_dihedral(self, bond)
10844 def get_number_of_impropers(self):
10845 r"""get_number_of_impropers(CHARMMResidueTopologyBase self) -> unsigned int"""
10846 return _IMP_atom.CHARMMResidueTopologyBase_get_number_of_impropers(self)
10848 def add_improper(self, bond):
10849 r"""add_improper(CHARMMResidueTopologyBase self, CHARMMDihedral bond)"""
10850 return _IMP_atom.CHARMMResidueTopologyBase_add_improper(self, bond)
10852 def get_number_of_internal_coordinates(self):
10853 r"""get_number_of_internal_coordinates(CHARMMResidueTopologyBase self) -> unsigned int"""
10854 return _IMP_atom.CHARMMResidueTopologyBase_get_number_of_internal_coordinates(self)
10856 def add_internal_coordinate(self, ic):
10857 r"""add_internal_coordinate(CHARMMResidueTopologyBase self, CHARMMInternalCoordinate ic)"""
10858 return _IMP_atom.CHARMMResidueTopologyBase_add_internal_coordinate(self, ic)
10860 def get_internal_coordinate(self, index):
10861 r"""get_internal_coordinate(CHARMMResidueTopologyBase self, unsigned int index) -> CHARMMInternalCoordinate"""
10862 return _IMP_atom.CHARMMResidueTopologyBase_get_internal_coordinate(self, index)
10865 r"""get_bond(CHARMMResidueTopologyBase self, unsigned int index) -> CHARMMBond"""
10866 return _IMP_atom.CHARMMResidueTopologyBase_get_bond(self, index)
10869 r"""get_angle(CHARMMResidueTopologyBase self, unsigned int index) -> CHARMMAngle"""
10870 return _IMP_atom.CHARMMResidueTopologyBase_get_angle(self, index)
10873 r"""get_dihedral(CHARMMResidueTopologyBase self, unsigned int index) -> CHARMMDihedral"""
10874 return _IMP_atom.CHARMMResidueTopologyBase_get_dihedral(self, index)
10876 def get_improper(self, index):
10877 r"""get_improper(CHARMMResidueTopologyBase self, unsigned int index) -> CHARMMDihedral"""
10878 return _IMP_atom.CHARMMResidueTopologyBase_get_improper(self, index)
10880 def get_version_info(self):
10881 r"""get_version_info(CHARMMResidueTopologyBase self) -> VersionInfo"""
10882 return _IMP_atom.CHARMMResidueTopologyBase_get_version_info(self)
10883 __swig_destroy__ = _IMP_atom.delete_CHARMMResidueTopologyBase
10886 r"""__str__(CHARMMResidueTopologyBase self) -> std::string"""
10887 return _IMP_atom.CHARMMResidueTopologyBase___str__(self)
10889 def __repr__(self):
10890 r"""__repr__(CHARMMResidueTopologyBase self) -> std::string"""
10891 return _IMP_atom.CHARMMResidueTopologyBase___repr__(self)
10895 return _object_cast_to_CHARMMResidueTopologyBase(o)
10899 _IMP_atom.CHARMMResidueTopologyBase_swigregister(CHARMMResidueTopologyBase)
10900 class CHARMMIdealResidueTopology(CHARMMResidueTopologyBase):
10901 r"""Proxy of C++ IMP::atom::CHARMMIdealResidueTopology class."""
10903 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10905 def __init__(self, *args):
10907 __init__(CHARMMIdealResidueTopology self, std::string type) -> CHARMMIdealResidueTopology
10908 __init__(CHARMMIdealResidueTopology self, ResidueType type) -> CHARMMIdealResidueTopology
10910 _IMP_atom.CHARMMIdealResidueTopology_swiginit(self, _IMP_atom.new_CHARMMIdealResidueTopology(*args))
10912 def remove_atom(self, name):
10913 r"""remove_atom(CHARMMIdealResidueTopology self, std::string name)"""
10914 return _IMP_atom.CHARMMIdealResidueTopology_remove_atom(self, name)
10916 def set_default_first_patch(self, patch):
10917 r"""set_default_first_patch(CHARMMIdealResidueTopology self, std::string patch)"""
10918 return _IMP_atom.CHARMMIdealResidueTopology_set_default_first_patch(self, patch)
10920 def set_default_last_patch(self, patch):
10921 r"""set_default_last_patch(CHARMMIdealResidueTopology self, std::string patch)"""
10922 return _IMP_atom.CHARMMIdealResidueTopology_set_default_last_patch(self, patch)
10924 def get_default_first_patch(self):
10925 r"""get_default_first_patch(CHARMMIdealResidueTopology self) -> std::string"""
10926 return _IMP_atom.CHARMMIdealResidueTopology_get_default_first_patch(self)
10928 def get_default_last_patch(self):
10929 r"""get_default_last_patch(CHARMMIdealResidueTopology self) -> std::string"""
10930 return _IMP_atom.CHARMMIdealResidueTopology_get_default_last_patch(self)
10931 __swig_destroy__ = _IMP_atom.delete_CHARMMIdealResidueTopology
10934 r"""__str__(CHARMMIdealResidueTopology self) -> std::string"""
10935 return _IMP_atom.CHARMMIdealResidueTopology___str__(self)
10937 def __repr__(self):
10938 r"""__repr__(CHARMMIdealResidueTopology self) -> std::string"""
10939 return _IMP_atom.CHARMMIdealResidueTopology___repr__(self)
10943 return _object_cast_to_CHARMMIdealResidueTopology(o)
10947 _IMP_atom.CHARMMIdealResidueTopology_swigregister(CHARMMIdealResidueTopology)
10948 class CHARMMPatch(CHARMMResidueTopologyBase):
10949 r"""Proxy of C++ IMP::atom::CHARMMPatch class."""
10951 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10953 def __init__(self, type):
10954 r"""__init__(CHARMMPatch self, std::string type) -> CHARMMPatch"""
10955 _IMP_atom.CHARMMPatch_swiginit(self, _IMP_atom.new_CHARMMPatch(type))
10957 def add_removed_atom(self, name):
10958 r"""add_removed_atom(CHARMMPatch self, std::string name)"""
10959 return _IMP_atom.CHARMMPatch_add_removed_atom(self, name)
10961 def get_number_of_removed_atoms(self):
10962 r"""get_number_of_removed_atoms(CHARMMPatch self) -> unsigned int"""
10963 return _IMP_atom.CHARMMPatch_get_number_of_removed_atoms(self)
10965 def get_removed_atom(self, i):
10966 r"""get_removed_atom(CHARMMPatch self, unsigned int i) -> std::string"""
10967 return _IMP_atom.CHARMMPatch_get_removed_atom(self, i)
10969 def apply(self, *args):
10971 apply(CHARMMPatch self, CHARMMResidueTopology res)
10972 apply(CHARMMPatch self, CHARMMResidueTopology res1, CHARMMResidueTopology res2)
10974 return _IMP_atom.CHARMMPatch_apply(self, *args)
10975 __swig_destroy__ = _IMP_atom.delete_CHARMMPatch
10978 r"""__str__(CHARMMPatch self) -> std::string"""
10979 return _IMP_atom.CHARMMPatch___str__(self)
10981 def __repr__(self):
10982 r"""__repr__(CHARMMPatch self) -> std::string"""
10983 return _IMP_atom.CHARMMPatch___repr__(self)
10987 return _object_cast_to_CHARMMPatch(o)
10991 _IMP_atom.CHARMMPatch_swigregister(CHARMMPatch)
10992 class CHARMMResidueTopology(CHARMMIdealResidueTopology):
10993 r"""Proxy of C++ IMP::atom::CHARMMResidueTopology class."""
10995 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10997 def __init__(self, *args):
10999 __init__(CHARMMResidueTopology self, ResidueType type) -> CHARMMResidueTopology
11000 __init__(CHARMMResidueTopology self, CHARMMIdealResidueTopology ideal) -> CHARMMResidueTopology
11002 _IMP_atom.CHARMMResidueTopology_swiginit(self, _IMP_atom.new_CHARMMResidueTopology(*args))
11004 def get_patched(self):
11005 r"""get_patched(CHARMMResidueTopology self) -> bool"""
11006 return _IMP_atom.CHARMMResidueTopology_get_patched(self)
11008 def set_patched(self, patched):
11009 r"""set_patched(CHARMMResidueTopology self, bool patched)"""
11010 return _IMP_atom.CHARMMResidueTopology_set_patched(self, patched)
11011 __swig_destroy__ = _IMP_atom.delete_CHARMMResidueTopology
11014 r"""__str__(CHARMMResidueTopology self) -> std::string"""
11015 return _IMP_atom.CHARMMResidueTopology___str__(self)
11017 def __repr__(self):
11018 r"""__repr__(CHARMMResidueTopology self) -> std::string"""
11019 return _IMP_atom.CHARMMResidueTopology___repr__(self)
11023 return _object_cast_to_CHARMMResidueTopology(o)
11027 _IMP_atom.CHARMMResidueTopology_swigregister(CHARMMResidueTopology)
11028 class CHARMMAtom(Atom):
11029 r"""Proxy of C++ IMP::atom::CHARMMAtom class."""
11031 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11033 def __init__(self, *args):
11035 __init__(CHARMMAtom self) -> CHARMMAtom
11036 __init__(CHARMMAtom self, Model m, ParticleIndex id) -> CHARMMAtom
11037 __init__(CHARMMAtom self, _ParticleAdaptor d) -> CHARMMAtom
11039 _IMP_atom.CHARMMAtom_swiginit(self, _IMP_atom.new_CHARMMAtom(*args))
11041 def show(self, *args):
11042 r"""show(CHARMMAtom self, _ostream out=std::cout)"""
11043 return _IMP_atom.CHARMMAtom_show(self, *args)
11046 def setup_particle(*args):
11048 setup_particle(Model m, ParticleIndex pi, IMP::String charmm_type) -> CHARMMAtom
11049 setup_particle(_ParticleAdaptor pa, IMP::String charmm_type) -> CHARMMAtom
11051 return _IMP_atom.CHARMMAtom_setup_particle(*args)
11053 def get_charmm_type(self):
11054 r"""get_charmm_type(CHARMMAtom self) -> IMP::String"""
11055 return _IMP_atom.CHARMMAtom_get_charmm_type(self)
11057 def set_charmm_type(self, t):
11058 r"""set_charmm_type(CHARMMAtom self, IMP::String t)"""
11059 return _IMP_atom.CHARMMAtom_set_charmm_type(self, t)
11062 def get_is_setup(*args):
11064 get_is_setup(_ParticleAdaptor p) -> bool
11065 get_is_setup(Model m, ParticleIndex pi) -> bool
11067 return _IMP_atom.CHARMMAtom_get_is_setup(*args)
11070 def get_charmm_type_key():
11071 r"""get_charmm_type_key() -> StringKey"""
11072 return _IMP_atom.CHARMMAtom_get_charmm_type_key()
11074 def add_attribute(self, *args):
11076 add_attribute(CHARMMAtom self, FloatKey k, IMP::Float v, bool opt)
11077 add_attribute(CHARMMAtom self, FloatKey a0, IMP::Float a1)
11078 add_attribute(CHARMMAtom self, IntKey a0, IMP::Int a1)
11079 add_attribute(CHARMMAtom self, FloatsKey a0, IMP::Floats a1)
11080 add_attribute(CHARMMAtom self, IntsKey a0, IMP::Ints a1)
11081 add_attribute(CHARMMAtom self, StringKey a0, IMP::String a1)
11082 add_attribute(CHARMMAtom self, ParticleIndexKey a0, Particle a1)
11083 add_attribute(CHARMMAtom self, ObjectKey a0, Object a1)
11084 add_attribute(CHARMMAtom self, SparseFloatKey a0, IMP::Float a1)
11085 add_attribute(CHARMMAtom self, SparseIntKey a0, IMP::Int a1)
11086 add_attribute(CHARMMAtom self, SparseStringKey a0, IMP::String a1)
11087 add_attribute(CHARMMAtom self, SparseParticleIndexKey a0, ParticleIndex a1)
11089 return _IMP_atom.CHARMMAtom_add_attribute(self, *args)
11091 def get_value(self, *args):
11093 get_value(CHARMMAtom self, FloatKey a0) -> IMP::Float
11094 get_value(CHARMMAtom self, IntKey a0) -> IMP::Int
11095 get_value(CHARMMAtom self, FloatsKey a0) -> IMP::Floats
11096 get_value(CHARMMAtom self, IntsKey a0) -> IMP::Ints
11097 get_value(CHARMMAtom self, StringKey a0) -> IMP::String
11098 get_value(CHARMMAtom self, ParticleIndexKey a0) -> Particle
11099 get_value(CHARMMAtom self, ObjectKey a0) -> Object
11100 get_value(CHARMMAtom self, SparseFloatKey a0) -> IMP::Float
11101 get_value(CHARMMAtom self, SparseIntKey a0) -> IMP::Int
11102 get_value(CHARMMAtom self, SparseStringKey a0) -> IMP::String
11103 get_value(CHARMMAtom self, SparseParticleIndexKey a0) -> ParticleIndex
11105 return _IMP_atom.CHARMMAtom_get_value(self, *args)
11107 def set_value(self, *args):
11109 set_value(CHARMMAtom self, FloatKey a0, IMP::Float a1)
11110 set_value(CHARMMAtom self, IntKey a0, IMP::Int a1)
11111 set_value(CHARMMAtom self, FloatsKey a0, IMP::Floats a1)
11112 set_value(CHARMMAtom self, IntsKey a0, IMP::Ints a1)
11113 set_value(CHARMMAtom self, StringKey a0, IMP::String a1)
11114 set_value(CHARMMAtom self, ParticleIndexKey a0, Particle a1)
11115 set_value(CHARMMAtom self, ObjectKey a0, Object a1)
11116 set_value(CHARMMAtom self, SparseFloatKey a0, IMP::Float a1)
11117 set_value(CHARMMAtom self, SparseIntKey a0, IMP::Int a1)
11118 set_value(CHARMMAtom self, SparseStringKey a0, IMP::String a1)
11119 set_value(CHARMMAtom self, SparseParticleIndexKey a0, ParticleIndex a1)
11121 return _IMP_atom.CHARMMAtom_set_value(self, *args)
11123 def remove_attribute(self, *args):
11125 remove_attribute(CHARMMAtom self, FloatKey a0)
11126 remove_attribute(CHARMMAtom self, IntKey a0)
11127 remove_attribute(CHARMMAtom self, FloatsKey a0)
11128 remove_attribute(CHARMMAtom self, IntsKey a0)
11129 remove_attribute(CHARMMAtom self, StringKey a0)
11130 remove_attribute(CHARMMAtom self, ParticleIndexKey a0)
11131 remove_attribute(CHARMMAtom self, ObjectKey a0)
11132 remove_attribute(CHARMMAtom self, SparseFloatKey a0)
11133 remove_attribute(CHARMMAtom self, SparseIntKey a0)
11134 remove_attribute(CHARMMAtom self, SparseStringKey a0)
11135 remove_attribute(CHARMMAtom self, SparseParticleIndexKey a0)
11137 return _IMP_atom.CHARMMAtom_remove_attribute(self, *args)
11139 def has_attribute(self, *args):
11141 has_attribute(CHARMMAtom self, FloatKey a0) -> bool
11142 has_attribute(CHARMMAtom self, IntKey a0) -> bool
11143 has_attribute(CHARMMAtom self, FloatsKey a0) -> bool
11144 has_attribute(CHARMMAtom self, IntsKey a0) -> bool
11145 has_attribute(CHARMMAtom self, StringKey a0) -> bool
11146 has_attribute(CHARMMAtom self, ParticleIndexKey a0) -> bool
11147 has_attribute(CHARMMAtom self, ObjectKey a0) -> bool
11148 has_attribute(CHARMMAtom self, SparseFloatKey a0) -> bool
11149 has_attribute(CHARMMAtom self, SparseIntKey a0) -> bool
11150 has_attribute(CHARMMAtom self, SparseStringKey a0) -> bool
11151 has_attribute(CHARMMAtom self, SparseParticleIndexKey a0) -> bool
11153 return _IMP_atom.CHARMMAtom_has_attribute(self, *args)
11155 def get_derivative(self, a0):
11156 r"""get_derivative(CHARMMAtom self, FloatKey a0) -> double"""
11157 return _IMP_atom.CHARMMAtom_get_derivative(self, a0)
11159 def get_name(self):
11160 r"""get_name(CHARMMAtom self) -> std::string"""
11161 return _IMP_atom.CHARMMAtom_get_name(self)
11163 def clear_caches(self):
11164 r"""clear_caches(CHARMMAtom self)"""
11165 return _IMP_atom.CHARMMAtom_clear_caches(self)
11167 def set_name(self, a0):
11168 r"""set_name(CHARMMAtom self, std::string a0)"""
11169 return _IMP_atom.CHARMMAtom_set_name(self, a0)
11172 r"""set_check_level(CHARMMAtom self, IMP::CheckLevel a0)"""
11173 return _IMP_atom.CHARMMAtom_set_check_level(self, a0)
11175 def add_to_derivative(self, a0, a1, a2):
11176 r"""add_to_derivative(CHARMMAtom self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
11177 return _IMP_atom.CHARMMAtom_add_to_derivative(self, a0, a1, a2)
11179 def set_is_optimized(self, a0, a1):
11180 r"""set_is_optimized(CHARMMAtom self, FloatKey a0, bool a1)"""
11181 return _IMP_atom.CHARMMAtom_set_is_optimized(self, a0, a1)
11183 def get_is_optimized(self, a0):
11184 r"""get_is_optimized(CHARMMAtom self, FloatKey a0) -> bool"""
11185 return _IMP_atom.CHARMMAtom_get_is_optimized(self, a0)
11188 r"""get_check_level(CHARMMAtom self) -> IMP::CheckLevel"""
11189 return _IMP_atom.CHARMMAtom_get_check_level(self)
11191 def __eq__(self, *args):
11193 __eq__(CHARMMAtom self, CHARMMAtom o) -> bool
11194 __eq__(CHARMMAtom self, Particle d) -> bool
11196 return _IMP_atom.CHARMMAtom___eq__(self, *args)
11198 def __ne__(self, *args):
11200 __ne__(CHARMMAtom self, CHARMMAtom o) -> bool
11201 __ne__(CHARMMAtom self, Particle d) -> bool
11203 return _IMP_atom.CHARMMAtom___ne__(self, *args)
11205 def __le__(self, *args):
11207 __le__(CHARMMAtom self, CHARMMAtom o) -> bool
11208 __le__(CHARMMAtom self, Particle d) -> bool
11210 return _IMP_atom.CHARMMAtom___le__(self, *args)
11212 def __lt__(self, *args):
11214 __lt__(CHARMMAtom self, CHARMMAtom o) -> bool
11215 __lt__(CHARMMAtom self, Particle d) -> bool
11217 return _IMP_atom.CHARMMAtom___lt__(self, *args)
11219 def __ge__(self, *args):
11221 __ge__(CHARMMAtom self, CHARMMAtom o) -> bool
11222 __ge__(CHARMMAtom self, Particle d) -> bool
11224 return _IMP_atom.CHARMMAtom___ge__(self, *args)
11226 def __gt__(self, *args):
11228 __gt__(CHARMMAtom self, CHARMMAtom o) -> bool
11229 __gt__(CHARMMAtom self, Particle d) -> bool
11231 return _IMP_atom.CHARMMAtom___gt__(self, *args)
11233 def __hash__(self):
11234 r"""__hash__(CHARMMAtom self) -> std::size_t"""
11235 return _IMP_atom.CHARMMAtom___hash__(self)
11238 r"""__str__(CHARMMAtom self) -> std::string"""
11239 return _IMP_atom.CHARMMAtom___str__(self)
11241 def __repr__(self):
11242 r"""__repr__(CHARMMAtom self) -> std::string"""
11243 return _IMP_atom.CHARMMAtom___repr__(self)
11245 def _get_as_binary(self):
11246 r"""_get_as_binary(CHARMMAtom self) -> PyObject *"""
11247 return _IMP_atom.CHARMMAtom__get_as_binary(self)
11249 def _set_from_binary(self, p):
11250 r"""_set_from_binary(CHARMMAtom self, PyObject * p)"""
11251 return _IMP_atom.CHARMMAtom__set_from_binary(self, p)
11253 def __getstate__(self):
11254 p = self._get_as_binary()
11255 if len(self.__dict__) > 1:
11256 d = self.__dict__.copy()
11261 def __setstate__(self, p):
11262 if not hasattr(self,
'this'):
11264 if isinstance(p, tuple):
11266 self.__dict__.update(d)
11267 return self._set_from_binary(p)
11269 __swig_destroy__ = _IMP_atom.delete_CHARMMAtom
11272 _IMP_atom.CHARMMAtom_swigregister(CHARMMAtom)
11275 r"""get_charmm_untyped_atoms(Hierarchy hierarchy) -> IMP::atom::Atoms"""
11276 return _IMP_atom.get_charmm_untyped_atoms(hierarchy)
11279 r"""remove_charmm_untyped_atoms(Hierarchy hierarchy)"""
11280 return _IMP_atom.remove_charmm_untyped_atoms(hierarchy)
11281 class CHARMMBondParameters(object):
11282 r"""Proxy of C++ IMP::atom::CHARMMBondParameters class."""
11284 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11285 force_constant = property(_IMP_atom.CHARMMBondParameters_force_constant_get, _IMP_atom.CHARMMBondParameters_force_constant_set, doc=
r"""force_constant : double""")
11286 ideal = property(_IMP_atom.CHARMMBondParameters_ideal_get, _IMP_atom.CHARMMBondParameters_ideal_set, doc=
r"""ideal : double""")
11288 def __init__(self):
11289 r"""__init__(CHARMMBondParameters self) -> CHARMMBondParameters"""
11290 _IMP_atom.CHARMMBondParameters_swiginit(self, _IMP_atom.new_CHARMMBondParameters())
11292 def show(self, *args):
11293 r"""show(CHARMMBondParameters self, _ostream out=std::cout)"""
11294 return _IMP_atom.CHARMMBondParameters_show(self, *args)
11297 r"""__str__(CHARMMBondParameters self) -> std::string"""
11298 return _IMP_atom.CHARMMBondParameters___str__(self)
11300 def __repr__(self):
11301 r"""__repr__(CHARMMBondParameters self) -> std::string"""
11302 return _IMP_atom.CHARMMBondParameters___repr__(self)
11304 def _get_as_binary(self):
11305 r"""_get_as_binary(CHARMMBondParameters self) -> PyObject *"""
11306 return _IMP_atom.CHARMMBondParameters__get_as_binary(self)
11308 def _set_from_binary(self, p):
11309 r"""_set_from_binary(CHARMMBondParameters self, PyObject * p)"""
11310 return _IMP_atom.CHARMMBondParameters__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_CHARMMBondParameters
11331 _IMP_atom.CHARMMBondParameters_swigregister(CHARMMBondParameters)
11332 class CHARMMDihedralParameters(object):
11333 r"""Proxy of C++ IMP::atom::CHARMMDihedralParameters class."""
11335 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11336 force_constant = property(_IMP_atom.CHARMMDihedralParameters_force_constant_get, _IMP_atom.CHARMMDihedralParameters_force_constant_set, doc=
r"""force_constant : double""")
11337 multiplicity = property(_IMP_atom.CHARMMDihedralParameters_multiplicity_get, _IMP_atom.CHARMMDihedralParameters_multiplicity_set, doc=
r"""multiplicity : int""")
11338 ideal = property(_IMP_atom.CHARMMDihedralParameters_ideal_get, _IMP_atom.CHARMMDihedralParameters_ideal_set, doc=
r"""ideal : double""")
11340 def __init__(self):
11341 r"""__init__(CHARMMDihedralParameters self) -> CHARMMDihedralParameters"""
11342 _IMP_atom.CHARMMDihedralParameters_swiginit(self, _IMP_atom.new_CHARMMDihedralParameters())
11344 def show(self, *args):
11345 r"""show(CHARMMDihedralParameters self, _ostream out=std::cout)"""
11346 return _IMP_atom.CHARMMDihedralParameters_show(self, *args)
11349 r"""__str__(CHARMMDihedralParameters self) -> std::string"""
11350 return _IMP_atom.CHARMMDihedralParameters___str__(self)
11352 def __repr__(self):
11353 r"""__repr__(CHARMMDihedralParameters self) -> std::string"""
11354 return _IMP_atom.CHARMMDihedralParameters___repr__(self)
11356 def _get_as_binary(self):
11357 r"""_get_as_binary(CHARMMDihedralParameters self) -> PyObject *"""
11358 return _IMP_atom.CHARMMDihedralParameters__get_as_binary(self)
11360 def _set_from_binary(self, p):
11361 r"""_set_from_binary(CHARMMDihedralParameters self, PyObject * p)"""
11362 return _IMP_atom.CHARMMDihedralParameters__set_from_binary(self, p)
11364 def __getstate__(self):
11365 p = self._get_as_binary()
11366 if len(self.__dict__) > 1:
11367 d = self.__dict__.copy()
11372 def __setstate__(self, p):
11373 if not hasattr(self,
'this'):
11375 if isinstance(p, tuple):
11377 self.__dict__.update(d)
11378 return self._set_from_binary(p)
11380 __swig_destroy__ = _IMP_atom.delete_CHARMMDihedralParameters
11383 _IMP_atom.CHARMMDihedralParameters_swigregister(CHARMMDihedralParameters)
11384 class CHARMMParameters(ForceFieldParameters):
11385 r"""Proxy of C++ IMP::atom::CHARMMParameters class."""
11387 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11389 def __init__(self, *args):
11390 r"""__init__(CHARMMParameters self, TextInput topology_file_name, TextInput par_file_name=IMP::TextInput(), bool translate_names_to_pdb=False) -> CHARMMParameters"""
11391 _IMP_atom.CHARMMParameters_swiginit(self, _IMP_atom.new_CHARMMParameters(*args))
11393 def add_residue_topology(self, res):
11394 r"""add_residue_topology(CHARMMParameters self, CHARMMIdealResidueTopology res)"""
11395 return _IMP_atom.CHARMMParameters_add_residue_topology(self, res)
11397 def get_residue_topology(self, type):
11398 r"""get_residue_topology(CHARMMParameters self, ResidueType type) -> CHARMMIdealResidueTopology"""
11399 return _IMP_atom.CHARMMParameters_get_residue_topology(self, type)
11401 def add_patch(self, patch):
11402 r"""add_patch(CHARMMParameters self, CHARMMPatch patch)"""
11403 return _IMP_atom.CHARMMParameters_add_patch(self, patch)
11405 def get_patch(self, name):
11406 r"""get_patch(CHARMMParameters self, std::string name) -> CHARMMPatch"""
11407 return _IMP_atom.CHARMMParameters_get_patch(self, name)
11409 def create_topology(self, hierarchy):
11410 r"""create_topology(CHARMMParameters self, Hierarchy hierarchy) -> CHARMMTopology"""
11411 return _IMP_atom.CHARMMParameters_create_topology(self, hierarchy)
11413 def get_bond_parameters(self, type1, type2):
11414 r"""get_bond_parameters(CHARMMParameters self, std::string type1, std::string type2) -> CHARMMBondParameters"""
11415 return _IMP_atom.CHARMMParameters_get_bond_parameters(self, type1, type2)
11417 def get_angle_parameters(self, type1, type2, type3):
11418 r"""get_angle_parameters(CHARMMParameters self, std::string type1, std::string type2, std::string type3) -> CHARMMBondParameters"""
11419 return _IMP_atom.CHARMMParameters_get_angle_parameters(self, type1, type2, type3)
11421 def get_dihedral_parameters(self, type1, type2, type3, type4):
11422 r"""get_dihedral_parameters(CHARMMParameters self, std::string type1, std::string type2, std::string type3, std::string type4) -> IMP::atom::CHARMMDihedralParametersList"""
11423 return _IMP_atom.CHARMMParameters_get_dihedral_parameters(self, type1, type2, type3, type4)
11425 def get_improper_parameters(self, type1, type2, type3, type4):
11426 r"""get_improper_parameters(CHARMMParameters self, std::string type1, std::string type2, std::string type3, std::string type4) -> CHARMMDihedralParameters"""
11427 return _IMP_atom.CHARMMParameters_get_improper_parameters(self, type1, type2, type3, type4)
11429 def create_angles(self, bonds):
11430 r"""create_angles(CHARMMParameters self, IMP::Particles bonds) -> IMP::Particles"""
11431 return _IMP_atom.CHARMMParameters_create_angles(self, bonds)
11433 def create_dihedrals(self, bonds):
11434 r"""create_dihedrals(CHARMMParameters self, IMP::Particles bonds) -> IMP::Particles"""
11435 return _IMP_atom.CHARMMParameters_create_dihedrals(self, bonds)
11437 def get_version_info(self):
11438 r"""get_version_info(CHARMMParameters self) -> VersionInfo"""
11439 return _IMP_atom.CHARMMParameters_get_version_info(self)
11440 __swig_destroy__ = _IMP_atom.delete_CHARMMParameters
11443 r"""__str__(CHARMMParameters self) -> std::string"""
11444 return _IMP_atom.CHARMMParameters___str__(self)
11446 def __repr__(self):
11447 r"""__repr__(CHARMMParameters self) -> std::string"""
11448 return _IMP_atom.CHARMMParameters___repr__(self)
11452 return _object_cast_to_CHARMMParameters(o)
11456 _IMP_atom.CHARMMParameters_swigregister(CHARMMParameters)
11459 r"""get_heavy_atom_CHARMM_parameters() -> CHARMMParameters"""
11460 return _IMP_atom.get_heavy_atom_CHARMM_parameters()
11463 r"""get_all_atom_CHARMM_parameters() -> CHARMMParameters"""
11464 return _IMP_atom.get_all_atom_CHARMM_parameters()
11466 r"""Proxy of C++ IMP::atom::CHARMMSegmentTopology class."""
11468 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11469 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)
11470 def __set_residues(self, obj): IMP._list_util.set_varlist(self.residues, obj)
11471 def __del_residues(self): IMP._list_util.del_varlist(self.residues)
11472 residues = property(__get_residues, __set_residues, __del_residues, doc=
"List of ##ucnames")
11474 def remove_residue(self, d):
11475 r"""remove_residue(CHARMMSegmentTopology self, CHARMMResidueTopology d)"""
11476 return _IMP_atom.CHARMMSegmentTopology_remove_residue(self, d)
11478 def _python_index_residue(self, d, start, stop):
11479 r"""_python_index_residue(CHARMMSegmentTopology self, CHARMMResidueTopology d, unsigned int start, unsigned int stop) -> unsigned int"""
11480 return _IMP_atom.CHARMMSegmentTopology__python_index_residue(self, d, start, stop)
11482 def remove_residues(self, d):
11483 r"""remove_residues(CHARMMSegmentTopology self, IMP::atom::CHARMMResidueTopologies const & d)"""
11484 return _IMP_atom.CHARMMSegmentTopology_remove_residues(self, d)
11486 def set_residues(self, ps):
11487 r"""set_residues(CHARMMSegmentTopology self, IMP::atom::CHARMMResidueTopologies const & ps)"""
11488 return _IMP_atom.CHARMMSegmentTopology_set_residues(self, ps)
11490 def set_residues_order(self, objs):
11491 r"""set_residues_order(CHARMMSegmentTopology self, IMP::atom::CHARMMResidueTopologies const & objs)"""
11492 return _IMP_atom.CHARMMSegmentTopology_set_residues_order(self, objs)
11494 def add_residue(self, obj):
11495 r"""add_residue(CHARMMSegmentTopology self, CHARMMResidueTopology obj) -> unsigned int"""
11496 return _IMP_atom.CHARMMSegmentTopology_add_residue(self, obj)
11498 def add_residues(self, objs):
11499 r"""add_residues(CHARMMSegmentTopology self, IMP::atom::CHARMMResidueTopologies const & objs)"""
11500 return _IMP_atom.CHARMMSegmentTopology_add_residues(self, objs)
11502 def clear_residues(self):
11503 r"""clear_residues(CHARMMSegmentTopology self)"""
11504 return _IMP_atom.CHARMMSegmentTopology_clear_residues(self)
11506 def get_number_of_residues(self):
11507 r"""get_number_of_residues(CHARMMSegmentTopology self) -> unsigned int"""
11508 return _IMP_atom.CHARMMSegmentTopology_get_number_of_residues(self)
11510 def get_has_residues(self):
11511 r"""get_has_residues(CHARMMSegmentTopology self) -> bool"""
11512 return _IMP_atom.CHARMMSegmentTopology_get_has_residues(self)
11515 r"""get_residue(CHARMMSegmentTopology self, unsigned int i) -> CHARMMResidueTopology"""
11516 return _IMP_atom.CHARMMSegmentTopology_get_residue(self, i)
11518 def get_residues(self):
11519 r"""get_residues(CHARMMSegmentTopology self) -> IMP::atom::CHARMMResidueTopologies"""
11520 return _IMP_atom.CHARMMSegmentTopology_get_residues(self)
11522 def erase_residue(self, i):
11523 r"""erase_residue(CHARMMSegmentTopology self, unsigned int i)"""
11524 return _IMP_atom.CHARMMSegmentTopology_erase_residue(self, i)
11526 def reserve_residues(self, sz):
11527 r"""reserve_residues(CHARMMSegmentTopology self, unsigned int sz)"""
11528 return _IMP_atom.CHARMMSegmentTopology_reserve_residues(self, sz)
11530 def get_version_info(self):
11531 r"""get_version_info(CHARMMSegmentTopology self) -> VersionInfo"""
11532 return _IMP_atom.CHARMMSegmentTopology_get_version_info(self)
11533 __swig_destroy__ = _IMP_atom.delete_CHARMMSegmentTopology
11535 def __init__(self, *args):
11536 r"""__init__(CHARMMSegmentTopology self, std::string name="CHARMM segment topology %1%") -> CHARMMSegmentTopology"""
11537 _IMP_atom.CHARMMSegmentTopology_swiginit(self, _IMP_atom.new_CHARMMSegmentTopology(*args))
11539 def apply_default_patches(self, ff):
11540 r"""apply_default_patches(CHARMMSegmentTopology self, CHARMMParameters ff)"""
11541 return _IMP_atom.CHARMMSegmentTopology_apply_default_patches(self, ff)
11544 r"""__str__(CHARMMSegmentTopology self) -> std::string"""
11545 return _IMP_atom.CHARMMSegmentTopology___str__(self)
11547 def __repr__(self):
11548 r"""__repr__(CHARMMSegmentTopology self) -> std::string"""
11549 return _IMP_atom.CHARMMSegmentTopology___repr__(self)
11553 return _object_cast_to_CHARMMSegmentTopology(o)
11557 _IMP_atom.CHARMMSegmentTopology_swigregister(CHARMMSegmentTopology)
11559 r"""Proxy of C++ IMP::atom::CHARMMTopology class."""
11561 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11563 def __init__(self, *args):
11564 r"""__init__(CHARMMTopology self, CHARMMParameters force_field, std::string name="CHARMM topology %1%") -> CHARMMTopology"""
11565 _IMP_atom.CHARMMTopology_swiginit(self, _IMP_atom.new_CHARMMTopology(*args))
11567 def get_parameters(self):
11568 r"""get_parameters(CHARMMTopology self) -> CHARMMParameters"""
11569 return _IMP_atom.CHARMMTopology_get_parameters(self)
11571 def add_sequence(self, sequence):
11572 r"""add_sequence(CHARMMTopology self, std::string sequence)"""
11573 return _IMP_atom.CHARMMTopology_add_sequence(self, sequence)
11575 def apply_default_patches(self):
11576 r"""apply_default_patches(CHARMMTopology self)"""
11577 return _IMP_atom.CHARMMTopology_apply_default_patches(self)
11579 def create_hierarchy(self, model):
11580 r"""create_hierarchy(CHARMMTopology self, Model model) -> Hierarchy"""
11581 return _IMP_atom.CHARMMTopology_create_hierarchy(self, model)
11583 def add_atom_types(self, hierarchy):
11584 r"""add_atom_types(CHARMMTopology self, Hierarchy hierarchy)"""
11585 return _IMP_atom.CHARMMTopology_add_atom_types(self, hierarchy)
11587 def add_coordinates(self, hierarchy):
11588 r"""add_coordinates(CHARMMTopology self, Hierarchy hierarchy)"""
11589 return _IMP_atom.CHARMMTopology_add_coordinates(self, hierarchy)
11591 def add_missing_atoms(self, hierarchy):
11592 r"""add_missing_atoms(CHARMMTopology self, Hierarchy hierarchy)"""
11593 return _IMP_atom.CHARMMTopology_add_missing_atoms(self, hierarchy)
11595 def setup_hierarchy(self, hierarchy):
11596 r"""setup_hierarchy(CHARMMTopology self, Hierarchy hierarchy)"""
11597 return _IMP_atom.CHARMMTopology_setup_hierarchy(self, hierarchy)
11599 def add_charges(self, hierarchy):
11600 r"""add_charges(CHARMMTopology self, Hierarchy hierarchy)"""
11601 return _IMP_atom.CHARMMTopology_add_charges(self, hierarchy)
11604 r"""add_bonds(CHARMMTopology self, Hierarchy hierarchy) -> IMP::Particles"""
11605 return _IMP_atom.CHARMMTopology_add_bonds(self, hierarchy)
11607 def add_dihedrals(self, hierarchy):
11608 r"""add_dihedrals(CHARMMTopology self, Hierarchy hierarchy) -> IMP::Particles"""
11609 return _IMP_atom.CHARMMTopology_add_dihedrals(self, hierarchy)
11611 def add_impropers(self, hierarchy):
11612 r"""add_impropers(CHARMMTopology self, Hierarchy hierarchy) -> IMP::Particles"""
11613 return _IMP_atom.CHARMMTopology_add_impropers(self, hierarchy)
11614 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)
11615 def __set_segments(self, obj): IMP._list_util.set_varlist(self.segments, obj)
11616 def __del_segments(self): IMP._list_util.del_varlist(self.segments)
11617 segments = property(__get_segments, __set_segments, __del_segments, doc=
"List of ##ucnames")
11619 def remove_segment(self, d):
11620 r"""remove_segment(CHARMMTopology self, CHARMMSegmentTopology d)"""
11621 return _IMP_atom.CHARMMTopology_remove_segment(self, d)
11623 def _python_index_segment(self, d, start, stop):
11624 r"""_python_index_segment(CHARMMTopology self, CHARMMSegmentTopology d, unsigned int start, unsigned int stop) -> unsigned int"""
11625 return _IMP_atom.CHARMMTopology__python_index_segment(self, d, start, stop)
11627 def remove_segments(self, d):
11628 r"""remove_segments(CHARMMTopology self, IMP::atom::CHARMMSegmentTopologies const & d)"""
11629 return _IMP_atom.CHARMMTopology_remove_segments(self, d)
11631 def set_segments(self, ps):
11632 r"""set_segments(CHARMMTopology self, IMP::atom::CHARMMSegmentTopologies const & ps)"""
11633 return _IMP_atom.CHARMMTopology_set_segments(self, ps)
11635 def set_segments_order(self, objs):
11636 r"""set_segments_order(CHARMMTopology self, IMP::atom::CHARMMSegmentTopologies const & objs)"""
11637 return _IMP_atom.CHARMMTopology_set_segments_order(self, objs)
11639 def add_segment(self, obj):
11640 r"""add_segment(CHARMMTopology self, CHARMMSegmentTopology obj) -> unsigned int"""
11641 return _IMP_atom.CHARMMTopology_add_segment(self, obj)
11643 def add_segments(self, objs):
11644 r"""add_segments(CHARMMTopology self, IMP::atom::CHARMMSegmentTopologies const & objs)"""
11645 return _IMP_atom.CHARMMTopology_add_segments(self, objs)
11647 def clear_segments(self):
11648 r"""clear_segments(CHARMMTopology self)"""
11649 return _IMP_atom.CHARMMTopology_clear_segments(self)
11651 def get_number_of_segments(self):
11652 r"""get_number_of_segments(CHARMMTopology self) -> unsigned int"""
11653 return _IMP_atom.CHARMMTopology_get_number_of_segments(self)
11655 def get_has_segments(self):
11656 r"""get_has_segments(CHARMMTopology self) -> bool"""
11657 return _IMP_atom.CHARMMTopology_get_has_segments(self)
11660 r"""get_segment(CHARMMTopology self, unsigned int i) -> CHARMMSegmentTopology"""
11661 return _IMP_atom.CHARMMTopology_get_segment(self, i)
11663 def get_segments(self):
11664 r"""get_segments(CHARMMTopology self) -> IMP::atom::CHARMMSegmentTopologies"""
11665 return _IMP_atom.CHARMMTopology_get_segments(self)
11667 def erase_segment(self, i):
11668 r"""erase_segment(CHARMMTopology self, unsigned int i)"""
11669 return _IMP_atom.CHARMMTopology_erase_segment(self, i)
11671 def reserve_segments(self, sz):
11672 r"""reserve_segments(CHARMMTopology self, unsigned int sz)"""
11673 return _IMP_atom.CHARMMTopology_reserve_segments(self, sz)
11675 def get_version_info(self):
11676 r"""get_version_info(CHARMMTopology self) -> VersionInfo"""
11677 return _IMP_atom.CHARMMTopology_get_version_info(self)
11678 __swig_destroy__ = _IMP_atom.delete_CHARMMTopology
11681 r"""__str__(CHARMMTopology self) -> std::string"""
11682 return _IMP_atom.CHARMMTopology___str__(self)
11684 def __repr__(self):
11685 r"""__repr__(CHARMMTopology self) -> std::string"""
11686 return _IMP_atom.CHARMMTopology___repr__(self)
11690 return _object_cast_to_CHARMMTopology(o)
11694 _IMP_atom.CHARMMTopology_swigregister(CHARMMTopology)
11696 r"""Proxy of C++ IMP::atom::CHARMMStereochemistryRestraint class."""
11698 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11700 def __init__(self, *args):
11702 __init__(CHARMMStereochemistryRestraint self, Hierarchy h, CHARMMTopology topology) -> CHARMMStereochemistryRestraint
11703 __init__(CHARMMStereochemistryRestraint self, Hierarchy h, CHARMMTopology topology, IMP::ParticlesTemp limit_to_these_particles) -> CHARMMStereochemistryRestraint
11705 _IMP_atom.CHARMMStereochemistryRestraint_swiginit(self, _IMP_atom.new_CHARMMStereochemistryRestraint(*args))
11707 def get_pair_filter(self):
11708 r"""get_pair_filter(CHARMMStereochemistryRestraint self) -> StereochemistryPairFilter"""
11709 return _IMP_atom.CHARMMStereochemistryRestraint_get_pair_filter(self)
11711 def get_full_pair_filter(self):
11712 r"""get_full_pair_filter(CHARMMStereochemistryRestraint self) -> StereochemistryPairFilter"""
11713 return _IMP_atom.CHARMMStereochemistryRestraint_get_full_pair_filter(self)
11715 def do_get_inputs(self):
11716 r"""do_get_inputs(CHARMMStereochemistryRestraint self) -> IMP::ModelObjectsTemp"""
11717 return _IMP_atom.CHARMMStereochemistryRestraint_do_get_inputs(self)
11719 def get_version_info(self):
11720 r"""get_version_info(CHARMMStereochemistryRestraint self) -> VersionInfo"""
11721 return _IMP_atom.CHARMMStereochemistryRestraint_get_version_info(self)
11722 __swig_destroy__ = _IMP_atom.delete_CHARMMStereochemistryRestraint
11725 r"""__str__(CHARMMStereochemistryRestraint self) -> std::string"""
11726 return _IMP_atom.CHARMMStereochemistryRestraint___str__(self)
11728 def __repr__(self):
11729 r"""__repr__(CHARMMStereochemistryRestraint self) -> std::string"""
11730 return _IMP_atom.CHARMMStereochemistryRestraint___repr__(self)
11734 return _object_cast_to_CHARMMStereochemistryRestraint(o)
11738 _IMP_atom.CHARMMStereochemistryRestraint_swigregister(CHARMMStereochemistryRestraint)
11741 r"""add_bonds(Hierarchy d, ForceFieldParameters ffp=IMP::atom::get_all_atom_CHARMM_parameters())"""
11742 return _IMP_atom.add_bonds(*args)
11745 r"""add_radii(Hierarchy d, ForceFieldParameters ffp=IMP::atom::get_all_atom_CHARMM_parameters(), FloatKey radius_key=IMP::FloatKey("radius"))"""
11746 return _IMP_atom.add_radii(*args)
11747 ALBER = _IMP_atom.ALBER
11749 HARPAZ = _IMP_atom.HARPAZ
11751 ANDERSSON = _IMP_atom.ANDERSSON
11753 TSAI = _IMP_atom.TSAI
11755 QUILLIN = _IMP_atom.QUILLIN
11757 SQUIRE = _IMP_atom.SQUIRE
11761 r"""get_protein_density_from_reference(IMP::atom::ProteinDensityReference densityReference) -> double"""
11762 return _IMP_atom.get_protein_density_from_reference(densityReference)
11765 r"""get_volume_from_mass(double m, IMP::atom::ProteinDensityReference ref=ALBER) -> double"""
11766 return _IMP_atom.get_volume_from_mass(*args)
11769 r"""get_mass_from_volume(double v, IMP::atom::ProteinDensityReference ref=ALBER) -> double"""
11770 return _IMP_atom.get_mass_from_volume(*args)
11773 r"""get_mass_from_number_of_residues(unsigned int num_aa) -> double"""
11774 return _IMP_atom.get_mass_from_number_of_residues(num_aa)
11777 r"""get_volume_from_residue_type(ResidueType rt) -> double"""
11778 return _IMP_atom.get_volume_from_residue_type(rt)
11781 r"""get_molarity(double n, double volume) -> double"""
11782 return _IMP_atom.get_molarity(n, volume)
11784 def get_kd(na, nb, nab, volume):
11785 r"""get_kd(double na, double nb, double nab, double volume) -> double"""
11786 return _IMP_atom.get_kd(na, nb, nab, volume)
11789 r"""get_einstein_diffusion_coefficient(double r, double temp=-1) -> double"""
11790 return _IMP_atom.get_einstein_diffusion_coefficient(r, temp)
11793 r"""get_einstein_rotational_diffusion_coefficient(double r, double temp=-1) -> double"""
11794 return _IMP_atom.get_einstein_rotational_diffusion_coefficient(r, temp)
11798 get_diffusion_length(double D, double t) -> double
11799 get_diffusion_length(double D, double force, double t, double temp=-1) -> double
11801 return _IMP_atom.get_diffusion_length(*args)
11804 r"""get_diffusion_angle(double D, double dtfs) -> double"""
11805 return _IMP_atom.get_diffusion_angle(D, dtfs)
11809 get_diffusion_coefficient(IMP::algebra::Vector3Ds const & displacements, double dt) -> double
11810 get_diffusion_coefficient(IMP::algebra::Vector3Ds const & displacements, IMP::Floats const & dts) -> double
11812 return _IMP_atom.get_diffusion_coefficient(*args)
11815 r"""get_rotational_diffusion_coefficient(IMP::algebra::Rotation3Ds const & orientations, double dt) -> double"""
11816 return _IMP_atom.get_rotational_diffusion_coefficient(orientations, dt)
11818 def get_energy_in_femto_joules(energy_in_kcal_per_mol):
11819 r"""get_energy_in_femto_joules(double energy_in_kcal_per_mol) -> double"""
11820 return _IMP_atom.get_energy_in_femto_joules(energy_in_kcal_per_mol)
11823 r"""get_force_in_femto_newtons(double force_in_kcal_per_mol_per_angstrom) -> double"""
11824 return _IMP_atom.get_force_in_femto_newtons(force_in_kcal_per_mol_per_angstrom)
11827 r"""get_spring_constant_in_femto_newtons_per_angstrom(double k_in_kcal_per_mol_per_angstrom_square) -> double"""
11828 return _IMP_atom.get_spring_constant_in_femto_newtons_per_angstrom(k_in_kcal_per_mol_per_angstrom_square)
11830 r"""Proxy of C++ IMP::atom::EzRestraint class."""
11832 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11834 def __init__(self, m, ps):
11835 r"""__init__(EzRestraint self, Model m, _ParticleIndexesAdaptor ps) -> EzRestraint"""
11836 _IMP_atom.EzRestraint_swiginit(self, _IMP_atom.new_EzRestraint(m, ps))
11838 def get_version_info(self):
11839 r"""get_version_info(EzRestraint self) -> VersionInfo"""
11840 return _IMP_atom.EzRestraint_get_version_info(self)
11841 __swig_destroy__ = _IMP_atom.delete_EzRestraint
11844 r"""__str__(EzRestraint self) -> std::string"""
11845 return _IMP_atom.EzRestraint___str__(self)
11847 def __repr__(self):
11848 r"""__repr__(EzRestraint self) -> std::string"""
11849 return _IMP_atom.EzRestraint___repr__(self)
11853 return _object_cast_to_EzRestraint(o)
11857 _IMP_atom.EzRestraint_swigregister(EzRestraint)
11861 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
11862 create_protein(Model m, std::string name, double target_radius, IMP::Ints const domain_boundaries) -> Hierarchy
11864 return _IMP_atom.create_protein(*args)
11868 create_simplified_along_backbone(Hierarchy input, int num_res, bool keep_detailed=False) -> Hierarchy
11869 create_simplified_along_backbone(Chain input, IMP::IntRanges const & residue_segments, bool keep_detailed=False) -> Hierarchy
11871 return _IMP_atom.create_simplified_along_backbone(*args)
11874 r"""create_simplified_from_volume(Hierarchy h, double resolution) -> Hierarchy"""
11875 return _IMP_atom.create_simplified_from_volume(h, resolution)
11878 r"""create_simplified_assembly_from_volume(Hierarchy h, double resolution) -> Hierarchy"""
11879 return _IMP_atom.create_simplified_assembly_from_volume(h, resolution)
11881 def get_residue_indexes(h):
11882 r"""get_residue_indexes(Hierarchy h) -> IMP::Ints"""
11883 return _IMP_atom.get_residue_indexes(h)
11885 def get_residue_type(*args):
11887 get_residue_type(char c) -> ResidueType
11888 get_residue_type(Hierarchy h) -> ResidueType
11890 return _IMP_atom.get_residue_type(*args)
11892 def get_atom_type(h):
11893 r"""get_atom_type(Hierarchy h) -> AtomType"""
11894 return _IMP_atom.get_atom_type(h)
11896 def get_domain_name(h):
11897 r"""get_domain_name(Hierarchy h) -> std::string"""
11898 return _IMP_atom.get_domain_name(h)
11902 create_excluded_volume_restraint(IMP::atom::Selections const & s) -> Restraint
11903 create_excluded_volume_restraint(IMP::atom::Hierarchies const & hs, double resolution=-1) -> Restraint
11905 return _IMP_atom.create_excluded_volume_restraint(*args)
11909 setup_as_approximation(Particle h, IMP::ParticlesTemp const & other, double resolution=-1)
11910 setup_as_approximation(Hierarchy h, double resolution=-1)
11912 return _IMP_atom.setup_as_approximation(*args)
11913 class _HierarchyTreeVertexIndex(object):
11914 r"""Proxy of C++ IMP::atom::HierarchyTreeVertexIndex class."""
11916 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11917 __repr__ = _swig_repr
11919 def __init__(self):
11920 r"""__init__(_HierarchyTreeVertexIndex self) -> _HierarchyTreeVertexIndex"""
11921 _IMP_atom._HierarchyTreeVertexIndex_swiginit(self, _IMP_atom.new__HierarchyTreeVertexIndex())
11922 __swig_destroy__ = _IMP_atom.delete__HierarchyTreeVertexIndex
11925 _IMP_atom._HierarchyTreeVertexIndex_swigregister(_HierarchyTreeVertexIndex)
11927 def show_as_graphviz(name, out):
11928 r"""show_as_graphviz(IMP::atom::HierarchyTree const & name, TextOutput out)"""
11929 return _IMP_atom.show_as_graphviz(name, out)
11931 def get_vertex_index(g):
11932 r"""get_vertex_index(IMP::atom::HierarchyTree const & g) -> _HierarchyTreeVertexIndex"""
11933 return _IMP_atom.get_vertex_index(g)
11936 r"""get_hierarchy_tree(Hierarchy h) -> IMP::atom::HierarchyTree"""
11937 return _IMP_atom.get_hierarchy_tree(h)
11939 r"""Proxy of C++ IMP::atom::HierarchyGeometry class."""
11941 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11943 def __init__(self, d, resolution=0):
11944 r"""__init__(HierarchyGeometry self, Hierarchy d, double resolution=0) -> HierarchyGeometry"""
11945 _IMP_atom.HierarchyGeometry_swiginit(self, _IMP_atom.new_HierarchyGeometry(d, resolution))
11947 def get_version_info(self):
11948 r"""get_version_info(HierarchyGeometry self) -> VersionInfo"""
11949 return _IMP_atom.HierarchyGeometry_get_version_info(self)
11950 __swig_destroy__ = _IMP_atom.delete_HierarchyGeometry
11953 r"""__str__(HierarchyGeometry self) -> std::string"""
11954 return _IMP_atom.HierarchyGeometry___str__(self)
11956 def __repr__(self):
11957 r"""__repr__(HierarchyGeometry self) -> std::string"""
11958 return _IMP_atom.HierarchyGeometry___repr__(self)
11962 return _object_cast_to_HierarchyGeometry(o)
11966 _IMP_atom.HierarchyGeometry_swigregister(HierarchyGeometry)
11968 r"""Proxy of C++ IMP::atom::HierarchiesGeometry class."""
11970 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11972 def __init__(self, sc, resolution=-1):
11973 r"""__init__(HierarchiesGeometry self, SingletonContainer sc, double resolution=-1) -> HierarchiesGeometry"""
11974 _IMP_atom.HierarchiesGeometry_swiginit(self, _IMP_atom.new_HierarchiesGeometry(sc, resolution))
11976 def get_version_info(self):
11977 r"""get_version_info(HierarchiesGeometry self) -> VersionInfo"""
11978 return _IMP_atom.HierarchiesGeometry_get_version_info(self)
11979 __swig_destroy__ = _IMP_atom.delete_HierarchiesGeometry
11982 r"""__str__(HierarchiesGeometry self) -> std::string"""
11983 return _IMP_atom.HierarchiesGeometry___str__(self)
11985 def __repr__(self):
11986 r"""__repr__(HierarchiesGeometry self) -> std::string"""
11987 return _IMP_atom.HierarchiesGeometry___repr__(self)
11991 return _object_cast_to_HierarchiesGeometry(o)
11995 _IMP_atom.HierarchiesGeometry_swigregister(HierarchiesGeometry)
11999 transform(Hierarchy h, Transformation3D tr)
12000 transform(Hierarchy h, Transformation3D tr)
12002 return _IMP_atom.transform(*args)
12003 class DopePairScore(_ADopeBase):
12004 r"""Proxy of C++ IMP::atom::DopePairScore class."""
12006 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12008 def __init__(self, *args):
12010 __init__(DopePairScore self, double threshold=std::numeric_limits< double >::max()) -> DopePairScore
12011 __init__(DopePairScore self, double threshold, TextInput data_file) -> DopePairScore
12013 _IMP_atom.DopePairScore_swiginit(self, _IMP_atom.new_DopePairScore(*args))
12014 __swig_destroy__ = _IMP_atom.delete_DopePairScore
12017 r"""__str__(DopePairScore self) -> std::string"""
12018 return _IMP_atom.DopePairScore___str__(self)
12020 def __repr__(self):
12021 r"""__repr__(DopePairScore self) -> std::string"""
12022 return _IMP_atom.DopePairScore___repr__(self)
12026 return _object_cast_to_DopePairScore(o)
12029 def _get_jax(self, m, indexes):
12032 import jax.numpy
as jnp
12033 from IMP.core._jax_util
import _spline
12034 def score_one(jm, index, minrange, maxrange, spacing, values,
12037 xyz = jnp.asarray(jm[
'xyz'])[index]
12038 dr = jnp.linalg.norm(xyz[1] - xyz[0])
12039 def spline_score():
12040 dope_type_pair = jnp.asarray(jm[
'dope atom type'])
12042 i = jnp.max(dope_type_pair[index])
12043 j = jnp.min(dope_type_pair[index])
12044 dope_type = i * (i + 1) // 2 + j
12047 x = dr - 0.5 * spacing
12049 lowbin = jnp.array((x - minrange) / spacing, dtype=int)
12050 return _spline(x, minrange, lowbin, lowbin + 1, spacing,
12051 values[dope_type], second_derivs[dope_type])
12053 return jax.lax.cond(dr <= minrange,
lambda: 0.0, spline_score)
12054 return jax.lax.cond(dr >= maxrange,
lambda: 0.0, maybe_score)
12055 sf = self.get_score_functor()
12056 if sf.get_is_bipartite()
or not sf.get_is_interpolated():
12057 raise TypeError(
"Only implemented for unipartite splines")
12058 ntyp = sf.get_number_of_particle_types()[0]
12063 for i
in range(ntyp):
12064 for j
in range(0, i + 1):
12065 values.append(sf.get_values(i, j))
12066 second_derivs.append(sf.get_second_derivatives(i, j))
12067 values = np.vstack(values)
12068 second_derivs = np.vstack(second_derivs)
12069 f = functools.partial(
12070 score_one, minrange=sf.get_offset(),
12071 maxrange=min(sf.get_max(), sf.get_threshold()),
12072 spacing=sf.get_spacing(), values=jnp.asarray(values),
12073 second_derivs=jnp.asarray(second_derivs))
12075 vf = jax.vmap(f, in_axes=(
None, 0))
12076 return self._wrap_jax(m,
lambda jm: vf(jm, indexes),
12077 keys=(sf.get_dope_type_key(),))
12081 _IMP_atom.DopePairScore_swigregister(DopePairScore)
12084 r"""add_dope_score_data(Hierarchy h)"""
12085 return _IMP_atom.add_dope_score_data(h)
12086 class LoopStatisticalPairScore(_ALoopStatisticalBase):
12087 r"""Proxy of C++ IMP::atom::LoopStatisticalPairScore class."""
12089 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12091 def __init__(self, *args):
12093 __init__(LoopStatisticalPairScore self, double threshold=std::numeric_limits< double >::max()) -> LoopStatisticalPairScore
12094 __init__(LoopStatisticalPairScore self, double threshold, TextInput data_file) -> LoopStatisticalPairScore
12096 _IMP_atom.LoopStatisticalPairScore_swiginit(self, _IMP_atom.new_LoopStatisticalPairScore(*args))
12099 r"""__str__(LoopStatisticalPairScore self) -> std::string"""
12100 return _IMP_atom.LoopStatisticalPairScore___str__(self)
12102 def __repr__(self):
12103 r"""__repr__(LoopStatisticalPairScore self) -> std::string"""
12104 return _IMP_atom.LoopStatisticalPairScore___repr__(self)
12108 return _object_cast_to_LoopStatisticalPairScore(o)
12110 __swig_destroy__ = _IMP_atom.delete_LoopStatisticalPairScore
12113 _IMP_atom.LoopStatisticalPairScore_swigregister(LoopStatisticalPairScore)
12116 r"""add_loop_statistical_score_data(Hierarchy h)"""
12117 return _IMP_atom.add_loop_statistical_score_data(h)
12118 class OrientedSoapPairScore(_OrientedSoapBase):
12119 r"""Proxy of C++ IMP::atom::OrientedSoapPairScore class."""
12121 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12123 def __init__(self, library):
12124 r"""__init__(OrientedSoapPairScore self, std::string library) -> OrientedSoapPairScore"""
12125 _IMP_atom.OrientedSoapPairScore_swiginit(self, _IMP_atom.new_OrientedSoapPairScore(library))
12127 def get_pair_filter(self):
12128 r"""get_pair_filter(OrientedSoapPairScore self) -> SoapPairFilter"""
12129 return _IMP_atom.OrientedSoapPairScore_get_pair_filter(self)
12132 r"""__str__(OrientedSoapPairScore self) -> std::string"""
12133 return _IMP_atom.OrientedSoapPairScore___str__(self)
12135 def __repr__(self):
12136 r"""__repr__(OrientedSoapPairScore self) -> std::string"""
12137 return _IMP_atom.OrientedSoapPairScore___repr__(self)
12141 return _object_cast_to_OrientedSoapPairScore(o)
12143 __swig_destroy__ = _IMP_atom.delete_OrientedSoapPairScore
12146 _IMP_atom.OrientedSoapPairScore_swigregister(OrientedSoapPairScore)
12148 r"""Proxy of C++ IMP::atom::SameResiduePairFilter class."""
12150 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12152 def __init__(self):
12153 r"""__init__(SameResiduePairFilter self) -> SameResiduePairFilter"""
12154 _IMP_atom.SameResiduePairFilter_swiginit(self, _IMP_atom.new_SameResiduePairFilter())
12156 def do_get_inputs(self, m, pis):
12157 r"""do_get_inputs(SameResiduePairFilter self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
12158 return _IMP_atom.SameResiduePairFilter_do_get_inputs(self, m, pis)
12160 def get_value(self, *args):
12162 get_value(SameResiduePairFilter self, IMP::ParticlePair const & a) -> int
12163 get_value(SameResiduePairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
12165 return _IMP_atom.SameResiduePairFilter_get_value(self, *args)
12167 def get_value_index(self, *args):
12169 get_value_index(SameResiduePairFilter self, Model m, IMP::ParticleIndexPair const & p) -> int
12170 get_value_index(SameResiduePairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
12172 return _IMP_atom.SameResiduePairFilter_get_value_index(self, *args)
12174 def get_version_info(self):
12175 r"""get_version_info(SameResiduePairFilter self) -> VersionInfo"""
12176 return _IMP_atom.SameResiduePairFilter_get_version_info(self)
12177 __swig_destroy__ = _IMP_atom.delete_SameResiduePairFilter
12180 r"""__str__(SameResiduePairFilter self) -> std::string"""
12181 return _IMP_atom.SameResiduePairFilter___str__(self)
12183 def __repr__(self):
12184 r"""__repr__(SameResiduePairFilter self) -> std::string"""
12185 return _IMP_atom.SameResiduePairFilter___repr__(self)
12189 return _object_cast_to_SameResiduePairFilter(o)
12193 _IMP_atom.SameResiduePairFilter_swigregister(SameResiduePairFilter)
12195 r"""Proxy of C++ IMP::atom::RemoveRigidMotionOptimizerState class."""
12197 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12199 def __init__(self, m, pis):
12200 r"""__init__(RemoveRigidMotionOptimizerState self, Model m, _ParticleIndexesAdaptor pis) -> RemoveRigidMotionOptimizerState"""
12201 _IMP_atom.RemoveRigidMotionOptimizerState_swiginit(self, _IMP_atom.new_RemoveRigidMotionOptimizerState(m, pis))
12203 def set_particles(self, pis):
12204 r"""set_particles(RemoveRigidMotionOptimizerState self, IMP::Particles const & pis)"""
12205 return _IMP_atom.RemoveRigidMotionOptimizerState_set_particles(self, pis)
12207 def remove_rigid_motion(self):
12208 r"""remove_rigid_motion(RemoveRigidMotionOptimizerState self)"""
12209 return _IMP_atom.RemoveRigidMotionOptimizerState_remove_rigid_motion(self)
12211 def get_version_info(self):
12212 r"""get_version_info(RemoveRigidMotionOptimizerState self) -> VersionInfo"""
12213 return _IMP_atom.RemoveRigidMotionOptimizerState_get_version_info(self)
12214 __swig_destroy__ = _IMP_atom.delete_RemoveRigidMotionOptimizerState
12217 r"""__str__(RemoveRigidMotionOptimizerState self) -> std::string"""
12218 return _IMP_atom.RemoveRigidMotionOptimizerState___str__(self)
12220 def __repr__(self):
12221 r"""__repr__(RemoveRigidMotionOptimizerState self) -> std::string"""
12222 return _IMP_atom.RemoveRigidMotionOptimizerState___repr__(self)
12226 return _object_cast_to_RemoveRigidMotionOptimizerState(o)
12230 _IMP_atom.RemoveRigidMotionOptimizerState_swigregister(RemoveRigidMotionOptimizerState)
12232 r"""Proxy of C++ IMP::atom::BerendsenThermostatOptimizerState class."""
12234 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12236 def __init__(self, pis, temperature, tau):
12237 r"""__init__(BerendsenThermostatOptimizerState self, IMP::Particles const & pis, double temperature, double tau) -> BerendsenThermostatOptimizerState"""
12238 _IMP_atom.BerendsenThermostatOptimizerState_swiginit(self, _IMP_atom.new_BerendsenThermostatOptimizerState(pis, temperature, tau))
12240 def set_particles(self, pis):
12241 r"""set_particles(BerendsenThermostatOptimizerState self, IMP::Particles const & pis)"""
12242 return _IMP_atom.BerendsenThermostatOptimizerState_set_particles(self, pis)
12245 r"""get_particles(BerendsenThermostatOptimizerState self) -> IMP::Particles"""
12246 return _IMP_atom.BerendsenThermostatOptimizerState_get_particles(self)
12248 def get_temperature(self):
12249 r"""get_temperature(BerendsenThermostatOptimizerState self) -> double"""
12250 return _IMP_atom.BerendsenThermostatOptimizerState_get_temperature(self)
12253 r"""get_tau(BerendsenThermostatOptimizerState self) -> double"""
12254 return _IMP_atom.BerendsenThermostatOptimizerState_get_tau(self)
12256 def set_temperature(self, temperature):
12257 r"""set_temperature(BerendsenThermostatOptimizerState self, double temperature)"""
12258 return _IMP_atom.BerendsenThermostatOptimizerState_set_temperature(self, temperature)
12260 def set_tau(self, tau):
12261 r"""set_tau(BerendsenThermostatOptimizerState self, double tau)"""
12262 return _IMP_atom.BerendsenThermostatOptimizerState_set_tau(self, tau)
12264 def rescale_velocities(self):
12265 r"""rescale_velocities(BerendsenThermostatOptimizerState self)"""
12266 return _IMP_atom.BerendsenThermostatOptimizerState_rescale_velocities(self)
12268 def get_version_info(self):
12269 r"""get_version_info(BerendsenThermostatOptimizerState self) -> VersionInfo"""
12270 return _IMP_atom.BerendsenThermostatOptimizerState_get_version_info(self)
12271 __swig_destroy__ = _IMP_atom.delete_BerendsenThermostatOptimizerState
12274 r"""__str__(BerendsenThermostatOptimizerState self) -> std::string"""
12275 return _IMP_atom.BerendsenThermostatOptimizerState___str__(self)
12277 def __repr__(self):
12278 r"""__repr__(BerendsenThermostatOptimizerState self) -> std::string"""
12279 return _IMP_atom.BerendsenThermostatOptimizerState___repr__(self)
12283 return _object_cast_to_BerendsenThermostatOptimizerState(o)
12286 def _get_jax(self, state_index):
12288 import jax.numpy
as jnp
12290 def apply_func(md, temperature, tau, indexes):
12291 ekinetic = md.get_kinetic_energy()
12292 tkinetic = md.get_kinetic_temperature(ekinetic)
12293 scale = jnp.sqrt(1.0 + (md.time_step / tau)
12294 * (temperature / tkinetic - 1.0))
12295 linvel = md.jm[
'linvel'].at[indexes]
12296 md.jm[
'linvel'] = linvel.multiply(scale)
12299 f = functools.partial(
12300 apply_func, temperature=self.get_temperature(),
12301 tau=self.get_tau(),
12303 return self._wrap_jax(
lambda x: x, f)
12307 _IMP_atom.BerendsenThermostatOptimizerState_swigregister(BerendsenThermostatOptimizerState)
12309 r"""Proxy of C++ IMP::atom::LangevinThermostatOptimizerState class."""
12311 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12313 def __init__(self, m, pis, temperature, gamma):
12314 r"""__init__(LangevinThermostatOptimizerState self, Model m, _ParticleIndexesAdaptor pis, double temperature, double gamma) -> LangevinThermostatOptimizerState"""
12315 _IMP_atom.LangevinThermostatOptimizerState_swiginit(self, _IMP_atom.new_LangevinThermostatOptimizerState(m, pis, temperature, gamma))
12317 def set_particles(self, pis):
12318 r"""set_particles(LangevinThermostatOptimizerState self, IMP::Particles const & pis)"""
12319 return _IMP_atom.LangevinThermostatOptimizerState_set_particles(self, pis)
12322 r"""get_particles(LangevinThermostatOptimizerState self) -> IMP::Particles"""
12323 return _IMP_atom.LangevinThermostatOptimizerState_get_particles(self)
12325 def get_temperature(self):
12326 r"""get_temperature(LangevinThermostatOptimizerState self) -> double"""
12327 return _IMP_atom.LangevinThermostatOptimizerState_get_temperature(self)
12329 def get_gamma(self):
12330 r"""get_gamma(LangevinThermostatOptimizerState self) -> double"""
12331 return _IMP_atom.LangevinThermostatOptimizerState_get_gamma(self)
12333 def set_temperature(self, temperature):
12334 r"""set_temperature(LangevinThermostatOptimizerState self, double temperature)"""
12335 return _IMP_atom.LangevinThermostatOptimizerState_set_temperature(self, temperature)
12337 def set_gamma(self, gamma):
12338 r"""set_gamma(LangevinThermostatOptimizerState self, double gamma)"""
12339 return _IMP_atom.LangevinThermostatOptimizerState_set_gamma(self, gamma)
12341 def rescale_velocities(self):
12342 r"""rescale_velocities(LangevinThermostatOptimizerState self)"""
12343 return _IMP_atom.LangevinThermostatOptimizerState_rescale_velocities(self)
12345 def get_version_info(self):
12346 r"""get_version_info(LangevinThermostatOptimizerState self) -> VersionInfo"""
12347 return _IMP_atom.LangevinThermostatOptimizerState_get_version_info(self)
12348 __swig_destroy__ = _IMP_atom.delete_LangevinThermostatOptimizerState
12351 r"""__str__(LangevinThermostatOptimizerState self) -> std::string"""
12352 return _IMP_atom.LangevinThermostatOptimizerState___str__(self)
12354 def __repr__(self):
12355 r"""__repr__(LangevinThermostatOptimizerState self) -> std::string"""
12356 return _IMP_atom.LangevinThermostatOptimizerState___repr__(self)
12360 return _object_cast_to_LangevinThermostatOptimizerState(o)
12363 def _get_jax(self, state_index):
12365 import jax.numpy
as jnp
12367 gas_constant = 8.31441e-7
12371 md.rkey, subkey = jax.random.split(md.rkey)
12372 md.optimizer_states[state_index] = subkey
12375 def apply_func(md, temperature, gamma, indexes):
12376 c1 = jnp.exp(-gamma * md.time_step)
12377 c2 = jnp.sqrt((1.0 - c1) * gas_constant * temperature)
12378 md.optimizer_states[state_index], subkey = jax.random.split(
12379 md.optimizer_states[state_index])
12380 sample = jax.random.normal(subkey, shape=(len(indexes), 3))
12381 mass = md.jm[
'mass'][indexes]
12382 linvel = md.jm[
'linvel'].at[indexes]
12383 md.jm[
'linvel'] = linvel.set(
12385 + c2 * jnp.sqrt((c1 + 1.0) / mass).reshape(len(indexes), 1)
12389 f = functools.partial(
12390 apply_func, temperature=self.get_temperature(),
12391 gamma=self.get_gamma(),
12393 return self._wrap_jax(init_func, f)
12397 _IMP_atom.LangevinThermostatOptimizerState_swigregister(LangevinThermostatOptimizerState)
12398 class PDBRecord(IMP._Value):
12399 r"""Proxy of C++ IMP::atom::PDBRecord class."""
12401 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12403 def __init__(self):
12404 r"""__init__(PDBRecord self) -> PDBRecord"""
12405 _IMP_atom.PDBRecord_swiginit(self, _IMP_atom.new_PDBRecord())
12407 def get_alt_loc_indicator(self):
12408 r"""get_alt_loc_indicator(PDBRecord self) -> std::string"""
12409 return _IMP_atom.PDBRecord_get_alt_loc_indicator(self)
12411 def get_is_atom(self):
12412 r"""get_is_atom(PDBRecord self) -> bool"""
12413 return _IMP_atom.PDBRecord_get_is_atom(self)
12415 def get_trimmed_atom_name(self):
12416 r"""get_trimmed_atom_name(PDBRecord self) -> std::string"""
12417 return _IMP_atom.PDBRecord_get_trimmed_atom_name(self)
12419 def get_padded_atom_name(self):
12420 r"""get_padded_atom_name(PDBRecord self) -> std::string"""
12421 return _IMP_atom.PDBRecord_get_padded_atom_name(self)
12423 def get_residue_name(self):
12424 r"""get_residue_name(PDBRecord self) -> std::string"""
12425 return _IMP_atom.PDBRecord_get_residue_name(self)
12428 r"""get_chain_id(PDBRecord self) -> std::string"""
12429 return _IMP_atom.PDBRecord_get_chain_id(self)
12431 def get_element(self):
12432 r"""get_element(PDBRecord self) -> std::string"""
12433 return _IMP_atom.PDBRecord_get_element(self)
12435 def show(self, *args):
12436 r"""show(PDBRecord self, _ostream out=std::cout)"""
12437 return _IMP_atom.PDBRecord_show(self, *args)
12440 r"""__str__(PDBRecord self) -> std::string"""
12441 return _IMP_atom.PDBRecord___str__(self)
12443 def __repr__(self):
12444 r"""__repr__(PDBRecord self) -> std::string"""
12445 return _IMP_atom.PDBRecord___repr__(self)
12446 __swig_destroy__ = _IMP_atom.delete_PDBRecord
12449 _IMP_atom.PDBRecord_swigregister(PDBRecord)
12451 r"""Proxy of C++ IMP::atom::PDBSelector class."""
12453 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12455 def __init__(self, name):
12456 r"""__init__(PDBSelector self, std::string name) -> PDBSelector"""
12457 if self.__class__ == PDBSelector:
12461 _IMP_atom.PDBSelector_swiginit(self, _IMP_atom.new_PDBSelector(_self, name))
12463 if self.__class__ != PDBSelector:
12464 _director_objects.register(self)
12469 def get_is_selected(self, record):
12470 r"""get_is_selected(PDBSelector self, PDBRecord record) -> bool"""
12471 return _IMP_atom.PDBSelector_get_is_selected(self, record)
12472 __swig_destroy__ = _IMP_atom.delete_PDBSelector
12475 r"""__str__(PDBSelector self) -> std::string"""
12476 return _IMP_atom.PDBSelector___str__(self)
12478 def __repr__(self):
12479 r"""__repr__(PDBSelector self) -> std::string"""
12480 return _IMP_atom.PDBSelector___repr__(self)
12484 return _object_cast_to_PDBSelector(o)
12487 def do_show(self, out):
12492 return _object_cast_to_PDBSelector(o)
12495 def __and__(self, s):
12496 return AndPDBSelector(self, s)
12497 def __or__(self, s):
12498 return OrPDBSelector(self, s)
12499 def __xor__(self, s):
12500 return XorPDBSelector(self, s)
12501 def __invert__(self):
12502 return NotPDBSelector(self)
12503 def __sub__(self, s):
12504 return AndPDBSelector(self, NotPDBSelector(s))
12506 def __disown__(self):
12508 _IMP_atom.disown_PDBSelector(self)
12509 return weakref.proxy(self)
12511 def do_destroy(self):
12512 r"""do_destroy(PDBSelector self)"""
12513 return _IMP_atom.PDBSelector_do_destroy(self)
12516 _IMP_atom.PDBSelector_swigregister(PDBSelector)
12517 class NonAlternativePDBSelector(PDBSelector):
12518 r"""Proxy of C++ IMP::atom::NonAlternativePDBSelector class."""
12520 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12522 def __init__(self, *args):
12523 r"""__init__(NonAlternativePDBSelector self, std::string name="NonAlternativePDBSelector%1%") -> NonAlternativePDBSelector"""
12524 _IMP_atom.NonAlternativePDBSelector_swiginit(self, _IMP_atom.new_NonAlternativePDBSelector(*args))
12526 def get_version_info(self):
12527 r"""get_version_info(NonAlternativePDBSelector self) -> VersionInfo"""
12528 return _IMP_atom.NonAlternativePDBSelector_get_version_info(self)
12529 __swig_destroy__ = _IMP_atom.delete_NonAlternativePDBSelector
12532 r"""__str__(NonAlternativePDBSelector self) -> std::string"""
12533 return _IMP_atom.NonAlternativePDBSelector___str__(self)
12535 def __repr__(self):
12536 r"""__repr__(NonAlternativePDBSelector self) -> std::string"""
12537 return _IMP_atom.NonAlternativePDBSelector___repr__(self)
12541 return _object_cast_to_NonAlternativePDBSelector(o)
12545 _IMP_atom.NonAlternativePDBSelector_swigregister(NonAlternativePDBSelector)
12546 class ATOMPDBSelector(NonAlternativePDBSelector):
12547 r"""Proxy of C++ IMP::atom::ATOMPDBSelector class."""
12549 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12551 def __init__(self, *args):
12552 r"""__init__(ATOMPDBSelector self, std::string name="ATOMPDBSelector%1%") -> ATOMPDBSelector"""
12553 _IMP_atom.ATOMPDBSelector_swiginit(self, _IMP_atom.new_ATOMPDBSelector(*args))
12554 __swig_destroy__ = _IMP_atom.delete_ATOMPDBSelector
12557 r"""__str__(ATOMPDBSelector self) -> std::string"""
12558 return _IMP_atom.ATOMPDBSelector___str__(self)
12560 def __repr__(self):
12561 r"""__repr__(ATOMPDBSelector self) -> std::string"""
12562 return _IMP_atom.ATOMPDBSelector___repr__(self)
12566 return _object_cast_to_ATOMPDBSelector(o)
12570 _IMP_atom.ATOMPDBSelector_swigregister(ATOMPDBSelector)
12571 class CAlphaPDBSelector(NonAlternativePDBSelector):
12572 r"""Proxy of C++ IMP::atom::CAlphaPDBSelector class."""
12574 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12576 def __init__(self, *args):
12577 r"""__init__(CAlphaPDBSelector self, std::string name="CAlphaPDBSelector%1%") -> CAlphaPDBSelector"""
12578 _IMP_atom.CAlphaPDBSelector_swiginit(self, _IMP_atom.new_CAlphaPDBSelector(*args))
12579 __swig_destroy__ = _IMP_atom.delete_CAlphaPDBSelector
12582 r"""__str__(CAlphaPDBSelector self) -> std::string"""
12583 return _IMP_atom.CAlphaPDBSelector___str__(self)
12585 def __repr__(self):
12586 r"""__repr__(CAlphaPDBSelector self) -> std::string"""
12587 return _IMP_atom.CAlphaPDBSelector___repr__(self)
12591 return _object_cast_to_CAlphaPDBSelector(o)
12595 _IMP_atom.CAlphaPDBSelector_swigregister(CAlphaPDBSelector)
12596 class CBetaPDBSelector(NonAlternativePDBSelector):
12597 r"""Proxy of C++ IMP::atom::CBetaPDBSelector class."""
12599 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12601 def __init__(self, *args):
12602 r"""__init__(CBetaPDBSelector self, std::string name="CBetaPDBSelector%1%") -> CBetaPDBSelector"""
12603 _IMP_atom.CBetaPDBSelector_swiginit(self, _IMP_atom.new_CBetaPDBSelector(*args))
12604 __swig_destroy__ = _IMP_atom.delete_CBetaPDBSelector
12607 r"""__str__(CBetaPDBSelector self) -> std::string"""
12608 return _IMP_atom.CBetaPDBSelector___str__(self)
12610 def __repr__(self):
12611 r"""__repr__(CBetaPDBSelector self) -> std::string"""
12612 return _IMP_atom.CBetaPDBSelector___repr__(self)
12616 return _object_cast_to_CBetaPDBSelector(o)
12620 _IMP_atom.CBetaPDBSelector_swigregister(CBetaPDBSelector)
12621 class AtomTypePDBSelector(PDBSelector):
12622 r"""Proxy of C++ IMP::atom::AtomTypePDBSelector class."""
12624 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12626 def __init__(self, *args):
12627 r"""__init__(AtomTypePDBSelector self, IMP::Strings atom_types, std::string name="AtomTypePDBSelector%1%") -> AtomTypePDBSelector"""
12628 _IMP_atom.AtomTypePDBSelector_swiginit(self, _IMP_atom.new_AtomTypePDBSelector(*args))
12630 def get_version_info(self):
12631 r"""get_version_info(AtomTypePDBSelector self) -> VersionInfo"""
12632 return _IMP_atom.AtomTypePDBSelector_get_version_info(self)
12633 __swig_destroy__ = _IMP_atom.delete_AtomTypePDBSelector
12636 r"""__str__(AtomTypePDBSelector self) -> std::string"""
12637 return _IMP_atom.AtomTypePDBSelector___str__(self)
12639 def __repr__(self):
12640 r"""__repr__(AtomTypePDBSelector self) -> std::string"""
12641 return _IMP_atom.AtomTypePDBSelector___repr__(self)
12645 return _object_cast_to_AtomTypePDBSelector(o)
12649 _IMP_atom.AtomTypePDBSelector_swigregister(AtomTypePDBSelector)
12650 class ResidueTypePDBSelector(PDBSelector):
12651 r"""Proxy of C++ IMP::atom::ResidueTypePDBSelector class."""
12653 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12655 def __init__(self, *args):
12656 r"""__init__(ResidueTypePDBSelector self, IMP::Strings residue_types, std::string name="ResidueTypePDBSelector%1%") -> ResidueTypePDBSelector"""
12657 _IMP_atom.ResidueTypePDBSelector_swiginit(self, _IMP_atom.new_ResidueTypePDBSelector(*args))
12659 def get_version_info(self):
12660 r"""get_version_info(ResidueTypePDBSelector self) -> VersionInfo"""
12661 return _IMP_atom.ResidueTypePDBSelector_get_version_info(self)
12662 __swig_destroy__ = _IMP_atom.delete_ResidueTypePDBSelector
12665 r"""__str__(ResidueTypePDBSelector self) -> std::string"""
12666 return _IMP_atom.ResidueTypePDBSelector___str__(self)
12668 def __repr__(self):
12669 r"""__repr__(ResidueTypePDBSelector self) -> std::string"""
12670 return _IMP_atom.ResidueTypePDBSelector___repr__(self)
12674 return _object_cast_to_ResidueTypePDBSelector(o)
12678 _IMP_atom.ResidueTypePDBSelector_swigregister(ResidueTypePDBSelector)
12679 class CPDBSelector(NonAlternativePDBSelector):
12680 r"""Proxy of C++ IMP::atom::CPDBSelector class."""
12682 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12684 def __init__(self, *args):
12685 r"""__init__(CPDBSelector self, std::string name="CPDBSelector%1%") -> CPDBSelector"""
12686 _IMP_atom.CPDBSelector_swiginit(self, _IMP_atom.new_CPDBSelector(*args))
12687 __swig_destroy__ = _IMP_atom.delete_CPDBSelector
12690 r"""__str__(CPDBSelector self) -> std::string"""
12691 return _IMP_atom.CPDBSelector___str__(self)
12693 def __repr__(self):
12694 r"""__repr__(CPDBSelector self) -> std::string"""
12695 return _IMP_atom.CPDBSelector___repr__(self)
12699 return _object_cast_to_CPDBSelector(o)
12703 _IMP_atom.CPDBSelector_swigregister(CPDBSelector)
12704 class NPDBSelector(NonAlternativePDBSelector):
12705 r"""Proxy of C++ IMP::atom::NPDBSelector class."""
12707 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12709 def __init__(self, *args):
12710 r"""__init__(NPDBSelector self, std::string name="NPDBSelector%1%") -> NPDBSelector"""
12711 _IMP_atom.NPDBSelector_swiginit(self, _IMP_atom.new_NPDBSelector(*args))
12712 __swig_destroy__ = _IMP_atom.delete_NPDBSelector
12715 r"""__str__(NPDBSelector self) -> std::string"""
12716 return _IMP_atom.NPDBSelector___str__(self)
12718 def __repr__(self):
12719 r"""__repr__(NPDBSelector self) -> std::string"""
12720 return _IMP_atom.NPDBSelector___repr__(self)
12724 return _object_cast_to_NPDBSelector(o)
12728 _IMP_atom.NPDBSelector_swigregister(NPDBSelector)
12729 class AllPDBSelector(PDBSelector):
12730 r"""Proxy of C++ IMP::atom::AllPDBSelector class."""
12732 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12734 def __init__(self, *args):
12735 r"""__init__(AllPDBSelector self, std::string name="AllPDBSelector%1%") -> AllPDBSelector"""
12736 _IMP_atom.AllPDBSelector_swiginit(self, _IMP_atom.new_AllPDBSelector(*args))
12738 def get_version_info(self):
12739 r"""get_version_info(AllPDBSelector self) -> VersionInfo"""
12740 return _IMP_atom.AllPDBSelector_get_version_info(self)
12741 __swig_destroy__ = _IMP_atom.delete_AllPDBSelector
12744 r"""__str__(AllPDBSelector self) -> std::string"""
12745 return _IMP_atom.AllPDBSelector___str__(self)
12747 def __repr__(self):
12748 r"""__repr__(AllPDBSelector self) -> std::string"""
12749 return _IMP_atom.AllPDBSelector___repr__(self)
12753 return _object_cast_to_AllPDBSelector(o)
12757 _IMP_atom.AllPDBSelector_swigregister(AllPDBSelector)
12758 class ChainPDBSelector(NonAlternativePDBSelector):
12759 r"""Proxy of C++ IMP::atom::ChainPDBSelector class."""
12761 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12762 __swig_destroy__ = _IMP_atom.delete_ChainPDBSelector
12764 def __init__(self, *args):
12765 r"""__init__(ChainPDBSelector self, IMP::Strings chains, std::string name="ChainPDBSelector%1%") -> ChainPDBSelector"""
12766 _IMP_atom.ChainPDBSelector_swiginit(self, _IMP_atom.new_ChainPDBSelector(*args))
12769 r"""__str__(ChainPDBSelector self) -> std::string"""
12770 return _IMP_atom.ChainPDBSelector___str__(self)
12772 def __repr__(self):
12773 r"""__repr__(ChainPDBSelector self) -> std::string"""
12774 return _IMP_atom.ChainPDBSelector___repr__(self)
12778 return _object_cast_to_ChainPDBSelector(o)
12782 _IMP_atom.ChainPDBSelector_swigregister(ChainPDBSelector)
12783 class WaterPDBSelector(NonAlternativePDBSelector):
12784 r"""Proxy of C++ IMP::atom::WaterPDBSelector class."""
12786 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12788 def __init__(self, *args):
12789 r"""__init__(WaterPDBSelector self, std::string name="WaterPDBSelector%1%") -> WaterPDBSelector"""
12790 _IMP_atom.WaterPDBSelector_swiginit(self, _IMP_atom.new_WaterPDBSelector(*args))
12791 __swig_destroy__ = _IMP_atom.delete_WaterPDBSelector
12794 r"""__str__(WaterPDBSelector self) -> std::string"""
12795 return _IMP_atom.WaterPDBSelector___str__(self)
12797 def __repr__(self):
12798 r"""__repr__(WaterPDBSelector self) -> std::string"""
12799 return _IMP_atom.WaterPDBSelector___repr__(self)
12803 return _object_cast_to_WaterPDBSelector(o)
12807 _IMP_atom.WaterPDBSelector_swigregister(WaterPDBSelector)
12808 class HydrogenPDBSelector(NonAlternativePDBSelector):
12809 r"""Proxy of C++ IMP::atom::HydrogenPDBSelector class."""
12811 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12813 def __init__(self, *args):
12814 r"""__init__(HydrogenPDBSelector self, std::string name="HydrogenPDBSelector%1%") -> HydrogenPDBSelector"""
12815 _IMP_atom.HydrogenPDBSelector_swiginit(self, _IMP_atom.new_HydrogenPDBSelector(*args))
12816 __swig_destroy__ = _IMP_atom.delete_HydrogenPDBSelector
12819 r"""__str__(HydrogenPDBSelector self) -> std::string"""
12820 return _IMP_atom.HydrogenPDBSelector___str__(self)
12822 def __repr__(self):
12823 r"""__repr__(HydrogenPDBSelector self) -> std::string"""
12824 return _IMP_atom.HydrogenPDBSelector___repr__(self)
12828 return _object_cast_to_HydrogenPDBSelector(o)
12832 _IMP_atom.HydrogenPDBSelector_swigregister(HydrogenPDBSelector)
12833 class NonWaterNonHydrogenPDBSelector(NonAlternativePDBSelector):
12834 r"""Proxy of C++ IMP::atom::NonWaterNonHydrogenPDBSelector class."""
12836 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12837 __swig_destroy__ = _IMP_atom.delete_NonWaterNonHydrogenPDBSelector
12839 def __init__(self, *args):
12841 __init__(NonWaterNonHydrogenPDBSelector self, std::string name) -> NonWaterNonHydrogenPDBSelector
12842 __init__(NonWaterNonHydrogenPDBSelector self) -> NonWaterNonHydrogenPDBSelector
12844 _IMP_atom.NonWaterNonHydrogenPDBSelector_swiginit(self, _IMP_atom.new_NonWaterNonHydrogenPDBSelector(*args))
12847 r"""__str__(NonWaterNonHydrogenPDBSelector self) -> std::string"""
12848 return _IMP_atom.NonWaterNonHydrogenPDBSelector___str__(self)
12850 def __repr__(self):
12851 r"""__repr__(NonWaterNonHydrogenPDBSelector self) -> std::string"""
12852 return _IMP_atom.NonWaterNonHydrogenPDBSelector___repr__(self)
12856 return _object_cast_to_NonWaterNonHydrogenPDBSelector(o)
12860 _IMP_atom.NonWaterNonHydrogenPDBSelector_swigregister(NonWaterNonHydrogenPDBSelector)
12861 class NonHydrogenPDBSelector(NonAlternativePDBSelector):
12862 r"""Proxy of C++ IMP::atom::NonHydrogenPDBSelector class."""
12864 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12865 __swig_destroy__ = _IMP_atom.delete_NonHydrogenPDBSelector
12867 def __init__(self, *args):
12869 __init__(NonHydrogenPDBSelector self, std::string name) -> NonHydrogenPDBSelector
12870 __init__(NonHydrogenPDBSelector self) -> NonHydrogenPDBSelector
12872 _IMP_atom.NonHydrogenPDBSelector_swiginit(self, _IMP_atom.new_NonHydrogenPDBSelector(*args))
12875 r"""__str__(NonHydrogenPDBSelector self) -> std::string"""
12876 return _IMP_atom.NonHydrogenPDBSelector___str__(self)
12878 def __repr__(self):
12879 r"""__repr__(NonHydrogenPDBSelector self) -> std::string"""
12880 return _IMP_atom.NonHydrogenPDBSelector___repr__(self)
12884 return _object_cast_to_NonHydrogenPDBSelector(o)
12888 _IMP_atom.NonHydrogenPDBSelector_swigregister(NonHydrogenPDBSelector)
12889 class NonWaterPDBSelector(NonAlternativePDBSelector):
12890 r"""Proxy of C++ IMP::atom::NonWaterPDBSelector class."""
12892 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12893 __swig_destroy__ = _IMP_atom.delete_NonWaterPDBSelector
12895 def __init__(self, *args):
12897 __init__(NonWaterPDBSelector self, std::string name) -> NonWaterPDBSelector
12898 __init__(NonWaterPDBSelector self) -> NonWaterPDBSelector
12900 _IMP_atom.NonWaterPDBSelector_swiginit(self, _IMP_atom.new_NonWaterPDBSelector(*args))
12903 r"""__str__(NonWaterPDBSelector self) -> std::string"""
12904 return _IMP_atom.NonWaterPDBSelector___str__(self)
12906 def __repr__(self):
12907 r"""__repr__(NonWaterPDBSelector self) -> std::string"""
12908 return _IMP_atom.NonWaterPDBSelector___repr__(self)
12912 return _object_cast_to_NonWaterPDBSelector(o)
12916 _IMP_atom.NonWaterPDBSelector_swigregister(NonWaterPDBSelector)
12917 class BackbonePDBSelector(NonWaterNonHydrogenPDBSelector):
12918 r"""Proxy of C++ IMP::atom::BackbonePDBSelector class."""
12920 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12922 def __init__(self, *args):
12923 r"""__init__(BackbonePDBSelector self, std::string name="BackbonePDBSelector%1%") -> BackbonePDBSelector"""
12924 _IMP_atom.BackbonePDBSelector_swiginit(self, _IMP_atom.new_BackbonePDBSelector(*args))
12925 __swig_destroy__ = _IMP_atom.delete_BackbonePDBSelector
12928 r"""__str__(BackbonePDBSelector self) -> std::string"""
12929 return _IMP_atom.BackbonePDBSelector___str__(self)
12931 def __repr__(self):
12932 r"""__repr__(BackbonePDBSelector self) -> std::string"""
12933 return _IMP_atom.BackbonePDBSelector___repr__(self)
12937 return _object_cast_to_BackbonePDBSelector(o)
12941 _IMP_atom.BackbonePDBSelector_swigregister(BackbonePDBSelector)
12942 class PPDBSelector(NonAlternativePDBSelector):
12943 r"""Proxy of C++ IMP::atom::PPDBSelector class."""
12945 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12947 def __init__(self, *args):
12948 r"""__init__(PPDBSelector self, std::string name="PPDBSelector%1%") -> PPDBSelector"""
12949 _IMP_atom.PPDBSelector_swiginit(self, _IMP_atom.new_PPDBSelector(*args))
12950 __swig_destroy__ = _IMP_atom.delete_PPDBSelector
12953 r"""__str__(PPDBSelector self) -> std::string"""
12954 return _IMP_atom.PPDBSelector___str__(self)
12956 def __repr__(self):
12957 r"""__repr__(PPDBSelector self) -> std::string"""
12958 return _IMP_atom.PPDBSelector___repr__(self)
12962 return _object_cast_to_PPDBSelector(o)
12966 _IMP_atom.PPDBSelector_swigregister(PPDBSelector)
12967 class AndPDBSelector(PDBSelector):
12968 r"""Proxy of C++ IMP::atom::AndPDBSelector class."""
12970 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12972 def get_version_info(self):
12973 r"""get_version_info(AndPDBSelector self) -> VersionInfo"""
12974 return _IMP_atom.AndPDBSelector_get_version_info(self)
12975 __swig_destroy__ = _IMP_atom.delete_AndPDBSelector
12977 def __init__(self, a, b):
12978 r"""__init__(AndPDBSelector self, PDBSelector a, PDBSelector b) -> AndPDBSelector"""
12979 _IMP_atom.AndPDBSelector_swiginit(self, _IMP_atom.new_AndPDBSelector(a, b))
12982 r"""__str__(AndPDBSelector self) -> std::string"""
12983 return _IMP_atom.AndPDBSelector___str__(self)
12985 def __repr__(self):
12986 r"""__repr__(AndPDBSelector self) -> std::string"""
12987 return _IMP_atom.AndPDBSelector___repr__(self)
12991 return _object_cast_to_AndPDBSelector(o)
12995 _IMP_atom.AndPDBSelector_swigregister(AndPDBSelector)
12996 class OrPDBSelector(PDBSelector):
12997 r"""Proxy of C++ IMP::atom::OrPDBSelector class."""
12999 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13001 def get_version_info(self):
13002 r"""get_version_info(OrPDBSelector self) -> VersionInfo"""
13003 return _IMP_atom.OrPDBSelector_get_version_info(self)
13004 __swig_destroy__ = _IMP_atom.delete_OrPDBSelector
13006 def __init__(self, a, b):
13007 r"""__init__(OrPDBSelector self, PDBSelector a, PDBSelector b) -> OrPDBSelector"""
13008 _IMP_atom.OrPDBSelector_swiginit(self, _IMP_atom.new_OrPDBSelector(a, b))
13011 r"""__str__(OrPDBSelector self) -> std::string"""
13012 return _IMP_atom.OrPDBSelector___str__(self)
13014 def __repr__(self):
13015 r"""__repr__(OrPDBSelector self) -> std::string"""
13016 return _IMP_atom.OrPDBSelector___repr__(self)
13020 return _object_cast_to_OrPDBSelector(o)
13024 _IMP_atom.OrPDBSelector_swigregister(OrPDBSelector)
13025 class XorPDBSelector(PDBSelector):
13026 r"""Proxy of C++ IMP::atom::XorPDBSelector class."""
13028 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13030 def get_version_info(self):
13031 r"""get_version_info(XorPDBSelector self) -> VersionInfo"""
13032 return _IMP_atom.XorPDBSelector_get_version_info(self)
13033 __swig_destroy__ = _IMP_atom.delete_XorPDBSelector
13035 def __init__(self, a, b):
13036 r"""__init__(XorPDBSelector self, PDBSelector a, PDBSelector b) -> XorPDBSelector"""
13037 _IMP_atom.XorPDBSelector_swiginit(self, _IMP_atom.new_XorPDBSelector(a, b))
13040 r"""__str__(XorPDBSelector self) -> std::string"""
13041 return _IMP_atom.XorPDBSelector___str__(self)
13043 def __repr__(self):
13044 r"""__repr__(XorPDBSelector self) -> std::string"""
13045 return _IMP_atom.XorPDBSelector___repr__(self)
13049 return _object_cast_to_XorPDBSelector(o)
13053 _IMP_atom.XorPDBSelector_swigregister(XorPDBSelector)
13054 class NotPDBSelector(PDBSelector):
13055 r"""Proxy of C++ IMP::atom::NotPDBSelector class."""
13057 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13059 def get_version_info(self):
13060 r"""get_version_info(NotPDBSelector self) -> VersionInfo"""
13061 return _IMP_atom.NotPDBSelector_get_version_info(self)
13062 __swig_destroy__ = _IMP_atom.delete_NotPDBSelector
13064 def __init__(self, a):
13065 r"""__init__(NotPDBSelector self, PDBSelector a) -> NotPDBSelector"""
13066 _IMP_atom.NotPDBSelector_swiginit(self, _IMP_atom.new_NotPDBSelector(a))
13069 r"""__str__(NotPDBSelector self) -> std::string"""
13070 return _IMP_atom.NotPDBSelector___str__(self)
13072 def __repr__(self):
13073 r"""__repr__(NotPDBSelector self) -> std::string"""
13074 return _IMP_atom.NotPDBSelector___repr__(self)
13078 return _object_cast_to_NotPDBSelector(o)
13082 _IMP_atom.NotPDBSelector_swigregister(NotPDBSelector)
13084 def get_default_pdb_selector():
13085 r"""get_default_pdb_selector() -> PDBSelector"""
13086 return _IMP_atom.get_default_pdb_selector()
13090 read_pdb(TextInput input, Model model, PDBSelector selector=IMP::atom::get_default_pdb_selector(), bool select_first_model=True, bool no_radii=False) -> Hierarchy
13091 read_pdb(TextInput input, int model, Hierarchy h)
13093 return _IMP_atom.read_pdb(*args)
13096 r"""read_multimodel_pdb(TextInput input, Model model, PDBSelector selector=IMP::atom::get_default_pdb_selector(), bool noradii=False) -> IMP::atom::Hierarchies"""
13097 return _IMP_atom.read_multimodel_pdb(*args)
13100 r"""write_pdb(Selection mhd, TextOutput out, unsigned int model=1)"""
13101 return _IMP_atom.write_pdb(mhd, out, model)
13104 r"""write_pdb_of_c_alphas(Selection mhd, TextOutput out, unsigned int model=1)"""
13105 return _IMP_atom.write_pdb_of_c_alphas(mhd, out, model)
13108 r"""write_multimodel_pdb(IMP::atom::Hierarchies const & mhd, TextOutput out)"""
13109 return _IMP_atom.write_multimodel_pdb(mhd, out)
13111 def get_pdb_string(*args):
13112 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"""
13113 return _IMP_atom.get_pdb_string(*args)
13115 def get_pdb_conect_record_string(arg1, arg2):
13116 r"""get_pdb_conect_record_string(int arg1, int arg2) -> std::string"""
13117 return _IMP_atom.get_pdb_conect_record_string(arg1, arg2)
13119 r"""Proxy of C++ IMP::atom::WritePDBOptimizerState class."""
13121 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13123 def __init__(self, *args):
13125 __init__(WritePDBOptimizerState self, Model m, _ParticleIndexesAdaptor pis, std::string filename) -> WritePDBOptimizerState
13126 __init__(WritePDBOptimizerState self, IMP::atom::Hierarchies const mh, std::string filename) -> WritePDBOptimizerState
13127 __init__(WritePDBOptimizerState self) -> WritePDBOptimizerState
13129 _IMP_atom.WritePDBOptimizerState_swiginit(self, _IMP_atom.new_WritePDBOptimizerState(*args))
13131 def get_version_info(self):
13132 r"""get_version_info(WritePDBOptimizerState self) -> VersionInfo"""
13133 return _IMP_atom.WritePDBOptimizerState_get_version_info(self)
13134 __swig_destroy__ = _IMP_atom.delete_WritePDBOptimizerState
13137 r"""__str__(WritePDBOptimizerState self) -> std::string"""
13138 return _IMP_atom.WritePDBOptimizerState___str__(self)
13140 def __repr__(self):
13141 r"""__repr__(WritePDBOptimizerState self) -> std::string"""
13142 return _IMP_atom.WritePDBOptimizerState___repr__(self)
13146 return _object_cast_to_WritePDBOptimizerState(o)
13149 def _get_as_binary(self):
13150 r"""_get_as_binary(WritePDBOptimizerState self) -> PyObject *"""
13151 return _IMP_atom.WritePDBOptimizerState__get_as_binary(self)
13153 def _set_from_binary(self, p):
13154 r"""_set_from_binary(WritePDBOptimizerState self, PyObject * p)"""
13155 return _IMP_atom.WritePDBOptimizerState__set_from_binary(self, p)
13157 def __getstate__(self):
13158 p = self._get_as_binary()
13159 if len(self.__dict__) > 1:
13160 d = self.__dict__.copy()
13165 def __setstate__(self, p):
13166 if not hasattr(self,
'this'):
13168 if isinstance(p, tuple):
13170 self.__dict__.update(d)
13171 return self._set_from_binary(p)
13175 _IMP_atom.WritePDBOptimizerState_swigregister(WritePDBOptimizerState)
13178 r"""read_multimodel_mmcif(TextInput input, Model model, PDBSelector selector=IMP::atom::get_default_pdb_selector(), bool noradii=False) -> IMP::atom::Hierarchies"""
13179 return _IMP_atom.read_multimodel_mmcif(*args)
13182 r"""read_mmcif(TextInput input, Model model, PDBSelector selector=IMP::atom::get_default_pdb_selector(), bool select_first_model=True, bool noradii=False) -> Hierarchy"""
13183 return _IMP_atom.read_mmcif(*args)
13186 r"""read_multimodel_bcif(TextInput input, Model model, PDBSelector selector=IMP::atom::get_default_pdb_selector(), bool noradii=False) -> IMP::atom::Hierarchies"""
13187 return _IMP_atom.read_multimodel_bcif(*args)
13190 r"""read_bcif(TextInput input, Model model, PDBSelector selector=IMP::atom::get_default_pdb_selector(), bool select_first_model=True, bool noradii=False) -> Hierarchy"""
13191 return _IMP_atom.read_bcif(*args)
13194 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"""
13195 return _IMP_atom.read_pdb_any(*args)
13198 r"""read_multimodel_pdb_any(TextInput input, Model model, PDBSelector selector=IMP::atom::get_default_pdb_selector(), bool noradii=False) -> IMP::atom::Hierarchies"""
13199 return _IMP_atom.read_multimodel_pdb_any(*args)
13202 r"""get_kt(double T) -> double"""
13203 return _IMP_atom.get_kt(T)
13205 r"""Proxy of C++ IMP::atom::CAAngleRestraint class."""
13207 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13209 def __init__(self, m, p1, p2, p3, phi0, score):
13210 r"""__init__(CAAngleRestraint self, Model m, _ParticleIndexAdaptor p1, _ParticleIndexAdaptor p2, _ParticleIndexAdaptor p3, IMP::Floats phi0, IMP::Floats score) -> CAAngleRestraint"""
13211 _IMP_atom.CAAngleRestraint_swiginit(self, _IMP_atom.new_CAAngleRestraint(m, p1, p2, p3, phi0, score))
13213 def do_get_inputs(self):
13214 r"""do_get_inputs(CAAngleRestraint self) -> IMP::ModelObjectsTemp"""
13215 return _IMP_atom.CAAngleRestraint_do_get_inputs(self)
13217 def get_version_info(self):
13218 r"""get_version_info(CAAngleRestraint self) -> VersionInfo"""
13219 return _IMP_atom.CAAngleRestraint_get_version_info(self)
13220 __swig_destroy__ = _IMP_atom.delete_CAAngleRestraint
13223 r"""__str__(CAAngleRestraint self) -> std::string"""
13224 return _IMP_atom.CAAngleRestraint___str__(self)
13226 def __repr__(self):
13227 r"""__repr__(CAAngleRestraint self) -> std::string"""
13228 return _IMP_atom.CAAngleRestraint___repr__(self)
13232 return _object_cast_to_CAAngleRestraint(o)
13236 _IMP_atom.CAAngleRestraint_swigregister(CAAngleRestraint)
13238 r"""Proxy of C++ IMP::atom::CADihedralRestraint class."""
13240 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13242 def __init__(self, m, p1, p2, p3, p4, p5, phi0, phi1, score):
13243 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"""
13244 _IMP_atom.CADihedralRestraint_swiginit(self, _IMP_atom.new_CADihedralRestraint(m, p1, p2, p3, p4, p5, phi0, phi1, score))
13246 def do_get_inputs(self):
13247 r"""do_get_inputs(CADihedralRestraint self) -> IMP::ModelObjectsTemp"""
13248 return _IMP_atom.CADihedralRestraint_do_get_inputs(self)
13250 def get_version_info(self):
13251 r"""get_version_info(CADihedralRestraint self) -> VersionInfo"""
13252 return _IMP_atom.CADihedralRestraint_get_version_info(self)
13253 __swig_destroy__ = _IMP_atom.delete_CADihedralRestraint
13256 r"""__str__(CADihedralRestraint self) -> std::string"""
13257 return _IMP_atom.CADihedralRestraint___str__(self)
13259 def __repr__(self):
13260 r"""__repr__(CADihedralRestraint self) -> std::string"""
13261 return _IMP_atom.CADihedralRestraint___repr__(self)
13265 return _object_cast_to_CADihedralRestraint(o)
13269 _IMP_atom.CADihedralRestraint_swigregister(CADihedralRestraint)
13271 r"""Proxy of C++ IMP::atom::StructureSource class."""
13273 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13275 def get_source_id(self):
13276 r"""get_source_id(StructureSource self) -> std::string"""
13277 return _IMP_atom.StructureSource_get_source_id(self)
13279 def get_source_chain_id(self):
13280 r"""get_source_chain_id(StructureSource self) -> std::string"""
13281 return _IMP_atom.StructureSource_get_source_chain_id(self)
13283 def set_source_id(self, source_id):
13284 r"""set_source_id(StructureSource self, std::string source_id)"""
13285 return _IMP_atom.StructureSource_set_source_id(self, source_id)
13287 def set_source_chain_id(self, source_chain_id):
13288 r"""set_source_chain_id(StructureSource self, std::string source_chain_id)"""
13289 return _IMP_atom.StructureSource_set_source_chain_id(self, source_chain_id)
13291 def __init__(self, *args):
13293 __init__(StructureSource self) -> StructureSource
13294 __init__(StructureSource self, Model m, ParticleIndex id) -> StructureSource
13295 __init__(StructureSource self, _ParticleAdaptor d) -> StructureSource
13297 _IMP_atom.StructureSource_swiginit(self, _IMP_atom.new_StructureSource(*args))
13300 def get_is_setup(*args):
13302 get_is_setup(Model m, ParticleIndex pi) -> bool
13303 get_is_setup(_ParticleAdaptor p) -> bool
13305 return _IMP_atom.StructureSource_get_is_setup(*args)
13307 def show(self, *args):
13308 r"""show(StructureSource self, _ostream out=std::cout)"""
13309 return _IMP_atom.StructureSource_show(self, *args)
13312 def setup_particle(*args):
13314 setup_particle(Model m, ParticleIndex pi, std::string source_id, std::string source_chain_id) -> StructureSource
13315 setup_particle(_ParticleAdaptor pa, std::string source_id, std::string source_chain_id) -> StructureSource
13317 return _IMP_atom.StructureSource_setup_particle(*args)
13319 def add_attribute(self, *args):
13321 add_attribute(StructureSource self, FloatKey k, IMP::Float v, bool opt)
13322 add_attribute(StructureSource self, FloatKey a0, IMP::Float a1)
13323 add_attribute(StructureSource self, IntKey a0, IMP::Int a1)
13324 add_attribute(StructureSource self, FloatsKey a0, IMP::Floats a1)
13325 add_attribute(StructureSource self, IntsKey a0, IMP::Ints a1)
13326 add_attribute(StructureSource self, StringKey a0, IMP::String a1)
13327 add_attribute(StructureSource self, ParticleIndexKey a0, Particle a1)
13328 add_attribute(StructureSource self, ObjectKey a0, Object a1)
13329 add_attribute(StructureSource self, SparseFloatKey a0, IMP::Float a1)
13330 add_attribute(StructureSource self, SparseIntKey a0, IMP::Int a1)
13331 add_attribute(StructureSource self, SparseStringKey a0, IMP::String a1)
13332 add_attribute(StructureSource self, SparseParticleIndexKey a0, ParticleIndex a1)
13334 return _IMP_atom.StructureSource_add_attribute(self, *args)
13336 def get_value(self, *args):
13338 get_value(StructureSource self, FloatKey a0) -> IMP::Float
13339 get_value(StructureSource self, IntKey a0) -> IMP::Int
13340 get_value(StructureSource self, FloatsKey a0) -> IMP::Floats
13341 get_value(StructureSource self, IntsKey a0) -> IMP::Ints
13342 get_value(StructureSource self, StringKey a0) -> IMP::String
13343 get_value(StructureSource self, ParticleIndexKey a0) -> Particle
13344 get_value(StructureSource self, ObjectKey a0) -> Object
13345 get_value(StructureSource self, SparseFloatKey a0) -> IMP::Float
13346 get_value(StructureSource self, SparseIntKey a0) -> IMP::Int
13347 get_value(StructureSource self, SparseStringKey a0) -> IMP::String
13348 get_value(StructureSource self, SparseParticleIndexKey a0) -> ParticleIndex
13350 return _IMP_atom.StructureSource_get_value(self, *args)
13352 def set_value(self, *args):
13354 set_value(StructureSource self, FloatKey a0, IMP::Float a1)
13355 set_value(StructureSource self, IntKey a0, IMP::Int a1)
13356 set_value(StructureSource self, FloatsKey a0, IMP::Floats a1)
13357 set_value(StructureSource self, IntsKey a0, IMP::Ints a1)
13358 set_value(StructureSource self, StringKey a0, IMP::String a1)
13359 set_value(StructureSource self, ParticleIndexKey a0, Particle a1)
13360 set_value(StructureSource self, ObjectKey a0, Object a1)
13361 set_value(StructureSource self, SparseFloatKey a0, IMP::Float a1)
13362 set_value(StructureSource self, SparseIntKey a0, IMP::Int a1)
13363 set_value(StructureSource self, SparseStringKey a0, IMP::String a1)
13364 set_value(StructureSource self, SparseParticleIndexKey a0, ParticleIndex a1)
13366 return _IMP_atom.StructureSource_set_value(self, *args)
13368 def remove_attribute(self, *args):
13370 remove_attribute(StructureSource self, FloatKey a0)
13371 remove_attribute(StructureSource self, IntKey a0)
13372 remove_attribute(StructureSource self, FloatsKey a0)
13373 remove_attribute(StructureSource self, IntsKey a0)
13374 remove_attribute(StructureSource self, StringKey a0)
13375 remove_attribute(StructureSource self, ParticleIndexKey a0)
13376 remove_attribute(StructureSource self, ObjectKey a0)
13377 remove_attribute(StructureSource self, SparseFloatKey a0)
13378 remove_attribute(StructureSource self, SparseIntKey a0)
13379 remove_attribute(StructureSource self, SparseStringKey a0)
13380 remove_attribute(StructureSource self, SparseParticleIndexKey a0)
13382 return _IMP_atom.StructureSource_remove_attribute(self, *args)
13384 def has_attribute(self, *args):
13386 has_attribute(StructureSource self, FloatKey a0) -> bool
13387 has_attribute(StructureSource self, IntKey a0) -> bool
13388 has_attribute(StructureSource self, FloatsKey a0) -> bool
13389 has_attribute(StructureSource self, IntsKey a0) -> bool
13390 has_attribute(StructureSource self, StringKey a0) -> bool
13391 has_attribute(StructureSource self, ParticleIndexKey a0) -> bool
13392 has_attribute(StructureSource self, ObjectKey a0) -> bool
13393 has_attribute(StructureSource self, SparseFloatKey a0) -> bool
13394 has_attribute(StructureSource self, SparseIntKey a0) -> bool
13395 has_attribute(StructureSource self, SparseStringKey a0) -> bool
13396 has_attribute(StructureSource self, SparseParticleIndexKey a0) -> bool
13398 return _IMP_atom.StructureSource_has_attribute(self, *args)
13400 def get_derivative(self, a0):
13401 r"""get_derivative(StructureSource self, FloatKey a0) -> double"""
13402 return _IMP_atom.StructureSource_get_derivative(self, a0)
13404 def get_name(self):
13405 r"""get_name(StructureSource self) -> std::string"""
13406 return _IMP_atom.StructureSource_get_name(self)
13408 def clear_caches(self):
13409 r"""clear_caches(StructureSource self)"""
13410 return _IMP_atom.StructureSource_clear_caches(self)
13412 def set_name(self, a0):
13413 r"""set_name(StructureSource self, std::string a0)"""
13414 return _IMP_atom.StructureSource_set_name(self, a0)
13417 r"""set_check_level(StructureSource self, IMP::CheckLevel a0)"""
13418 return _IMP_atom.StructureSource_set_check_level(self, a0)
13420 def add_to_derivative(self, a0, a1, a2):
13421 r"""add_to_derivative(StructureSource self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13422 return _IMP_atom.StructureSource_add_to_derivative(self, a0, a1, a2)
13424 def set_is_optimized(self, a0, a1):
13425 r"""set_is_optimized(StructureSource self, FloatKey a0, bool a1)"""
13426 return _IMP_atom.StructureSource_set_is_optimized(self, a0, a1)
13428 def get_is_optimized(self, a0):
13429 r"""get_is_optimized(StructureSource self, FloatKey a0) -> bool"""
13430 return _IMP_atom.StructureSource_get_is_optimized(self, a0)
13433 r"""get_check_level(StructureSource self) -> IMP::CheckLevel"""
13434 return _IMP_atom.StructureSource_get_check_level(self)
13436 def __eq__(self, *args):
13438 __eq__(StructureSource self, StructureSource o) -> bool
13439 __eq__(StructureSource self, Particle d) -> bool
13441 return _IMP_atom.StructureSource___eq__(self, *args)
13443 def __ne__(self, *args):
13445 __ne__(StructureSource self, StructureSource o) -> bool
13446 __ne__(StructureSource self, Particle d) -> bool
13448 return _IMP_atom.StructureSource___ne__(self, *args)
13450 def __le__(self, *args):
13452 __le__(StructureSource self, StructureSource o) -> bool
13453 __le__(StructureSource self, Particle d) -> bool
13455 return _IMP_atom.StructureSource___le__(self, *args)
13457 def __lt__(self, *args):
13459 __lt__(StructureSource self, StructureSource o) -> bool
13460 __lt__(StructureSource self, Particle d) -> bool
13462 return _IMP_atom.StructureSource___lt__(self, *args)
13464 def __ge__(self, *args):
13466 __ge__(StructureSource self, StructureSource o) -> bool
13467 __ge__(StructureSource self, Particle d) -> bool
13469 return _IMP_atom.StructureSource___ge__(self, *args)
13471 def __gt__(self, *args):
13473 __gt__(StructureSource self, StructureSource o) -> bool
13474 __gt__(StructureSource self, Particle d) -> bool
13476 return _IMP_atom.StructureSource___gt__(self, *args)
13478 def __hash__(self):
13479 r"""__hash__(StructureSource self) -> std::size_t"""
13480 return _IMP_atom.StructureSource___hash__(self)
13483 r"""__str__(StructureSource self) -> std::string"""
13484 return _IMP_atom.StructureSource___str__(self)
13486 def __repr__(self):
13487 r"""__repr__(StructureSource self) -> std::string"""
13488 return _IMP_atom.StructureSource___repr__(self)
13490 def _get_as_binary(self):
13491 r"""_get_as_binary(StructureSource self) -> PyObject *"""
13492 return _IMP_atom.StructureSource__get_as_binary(self)
13494 def _set_from_binary(self, p):
13495 r"""_set_from_binary(StructureSource self, PyObject * p)"""
13496 return _IMP_atom.StructureSource__set_from_binary(self, p)
13498 def __getstate__(self):
13499 p = self._get_as_binary()
13500 if len(self.__dict__) > 1:
13501 d = self.__dict__.copy()
13506 def __setstate__(self, p):
13507 if not hasattr(self,
'this'):
13509 if isinstance(p, tuple):
13511 self.__dict__.update(d)
13512 return self._set_from_binary(p)
13514 __swig_destroy__ = _IMP_atom.delete_StructureSource
13517 _IMP_atom.StructureSource_swigregister(StructureSource)
13519 def __lshift__(*args):
13521 __lshift__(_ostream out, Bonded n) -> _ostream
13522 __lshift__(_ostream out, Bond n) -> _ostream
13523 __lshift__(_ostream out, Hierarchy n) -> _ostream
13524 __lshift__(_ostream out, Angle n) -> _ostream
13525 __lshift__(_ostream out, Dihedral n) -> _ostream
13526 __lshift__(_ostream out, CenterOfMass n) -> _ostream
13527 __lshift__(_ostream out, Diffusion n) -> _ostream
13528 __lshift__(_ostream out, RigidBodyDiffusion n) -> _ostream
13529 __lshift__(_ostream out, TAMDParticle n) -> _ostream
13530 __lshift__(_ostream out, Charged n) -> _ostream
13531 __lshift__(_ostream out, Domain n) -> _ostream
13532 __lshift__(_ostream out, LennardJonesTyped n) -> _ostream
13533 __lshift__(_ostream out, Fragment n) -> _ostream
13534 __lshift__(_ostream out, SecondaryStructureResidue n) -> _ostream
13535 __lshift__(_ostream out, Atom n) -> _ostream
13536 __lshift__(_ostream out, Residue n) -> _ostream
13537 __lshift__(_ostream out, Representation n) -> _ostream
13538 __lshift__(_ostream out, State n) -> _ostream
13539 __lshift__(_ostream out, Molecule n) -> _ostream
13540 __lshift__(_ostream out, Copy n) -> _ostream
13541 __lshift__(_ostream out, Chain n) -> _ostream
13542 __lshift__(_ostream out, StructureSource n) -> _ostream
13544 return _IMP_atom.__lshift__(*args)
13546 r"""Proxy of C++ IMP::atom::HelixRestraint class."""
13548 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13550 def __init__(self, rs, ideal=True):
13551 r"""__init__(HelixRestraint self, IMP::atom::Residues rs, bool ideal=True) -> HelixRestraint"""
13552 _IMP_atom.HelixRestraint_swiginit(self, _IMP_atom.new_HelixRestraint(rs, ideal))
13554 def get_number_of_bonds(self):
13555 r"""get_number_of_bonds(HelixRestraint self) -> int"""
13556 return _IMP_atom.HelixRestraint_get_number_of_bonds(self)
13558 def get_number_of_dihedrals(self):
13559 r"""get_number_of_dihedrals(HelixRestraint self) -> int"""
13560 return _IMP_atom.HelixRestraint_get_number_of_dihedrals(self)
13562 def do_get_inputs(self):
13563 r"""do_get_inputs(HelixRestraint self) -> IMP::ModelObjectsTemp"""
13564 return _IMP_atom.HelixRestraint_do_get_inputs(self)
13566 def get_version_info(self):
13567 r"""get_version_info(HelixRestraint self) -> VersionInfo"""
13568 return _IMP_atom.HelixRestraint_get_version_info(self)
13569 __swig_destroy__ = _IMP_atom.delete_HelixRestraint
13572 r"""__str__(HelixRestraint self) -> std::string"""
13573 return _IMP_atom.HelixRestraint___str__(self)
13575 def __repr__(self):
13576 r"""__repr__(HelixRestraint self) -> std::string"""
13577 return _IMP_atom.HelixRestraint___repr__(self)
13581 return _object_cast_to_HelixRestraint(o)
13585 _IMP_atom.HelixRestraint_swigregister(HelixRestraint)
13588 r"""get_transformation_aligning_first_to_second(Selection s1, Selection s2) -> Transformation3D"""
13589 return _IMP_atom.get_transformation_aligning_first_to_second(s1, s2)
13592 r"""show_molecular_hierarchy(Hierarchy h, _ostream out=std::cout) -> _ostream"""
13593 return _IMP_atom.show_molecular_hierarchy(*args)
13594 class CHARMMBond(object):
13595 r"""Proxy of C++ IMP::atom::CHARMMConnection< 2 > class."""
13597 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13598 __repr__ = _swig_repr
13600 def __init__(self, atoms):
13601 r"""__init__(CHARMMBond self, IMP::Strings const & atoms) -> CHARMMBond"""
13602 _IMP_atom.CHARMMBond_swiginit(self, _IMP_atom.new_CHARMMBond(atoms))
13604 def get_endpoint(self, i):
13605 r"""get_endpoint(CHARMMBond self, unsigned int i) -> CHARMMBondEndpoint"""
13606 return _IMP_atom.CHARMMBond_get_endpoint(self, i)
13608 def get_contains_atom(self, name):
13609 r"""get_contains_atom(CHARMMBond self, std::string name) -> bool"""
13610 return _IMP_atom.CHARMMBond_get_contains_atom(self, name)
13612 def show(self, *args):
13613 r"""show(CHARMMBond self, _ostream out=std::cout)"""
13614 return _IMP_atom.CHARMMBond_show(self, *args)
13615 __swig_destroy__ = _IMP_atom.delete_CHARMMBond
13618 _IMP_atom.CHARMMBond_swigregister(CHARMMBond)
13619 class CHARMMAngle(object):
13620 r"""Proxy of C++ IMP::atom::CHARMMConnection< 3 > class."""
13622 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13623 __repr__ = _swig_repr
13625 def __init__(self, atoms):
13626 r"""__init__(CHARMMAngle self, IMP::Strings const & atoms) -> CHARMMAngle"""
13627 _IMP_atom.CHARMMAngle_swiginit(self, _IMP_atom.new_CHARMMAngle(atoms))
13629 def get_endpoint(self, i):
13630 r"""get_endpoint(CHARMMAngle self, unsigned int i) -> CHARMMBondEndpoint"""
13631 return _IMP_atom.CHARMMAngle_get_endpoint(self, i)
13633 def get_contains_atom(self, name):
13634 r"""get_contains_atom(CHARMMAngle self, std::string name) -> bool"""
13635 return _IMP_atom.CHARMMAngle_get_contains_atom(self, name)
13637 def show(self, *args):
13638 r"""show(CHARMMAngle self, _ostream out=std::cout)"""
13639 return _IMP_atom.CHARMMAngle_show(self, *args)
13640 __swig_destroy__ = _IMP_atom.delete_CHARMMAngle
13643 _IMP_atom.CHARMMAngle_swigregister(CHARMMAngle)
13645 def _get_native_overlap_cpp(m1, m2, threshold):
13646 r"""_get_native_overlap_cpp(IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & m1, IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & m2, double threshold) -> double"""
13647 return _IMP_atom._get_native_overlap_cpp(m1, m2, threshold)
13649 def _get_drmsd_cpp(m0, m1):
13650 r"""_get_drmsd_cpp(IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & m0, IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & m1) -> double"""
13651 return _IMP_atom._get_drmsd_cpp(m0, m1)
13653 def _get_drmsd_Q_cpp(m0, m1, threshold):
13654 r"""_get_drmsd_Q_cpp(IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & m0, IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & m1, double threshold) -> double"""
13655 return _IMP_atom._get_drmsd_Q_cpp(m0, m1, threshold)
13657 def _get_drms_cpp(m1, m2):
13658 r"""_get_drms_cpp(IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & m1, IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & m2) -> double"""
13659 return _IMP_atom._get_drms_cpp(m1, m2)
13661 def _get_rigid_bodies_drms_cpp(m1, m2, ranges):
13662 r"""_get_rigid_bodies_drms_cpp(IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & m1, IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & m2, IMP::IntRanges const & ranges) -> double"""
13663 return _IMP_atom._get_rigid_bodies_drms_cpp(m1, m2, ranges)
13666 va= [IMP.algebra.get_vector(x)
for x
in a]
13667 vb= [IMP.algebra.get_vector(x)
for x
in b]
13668 return _get_native_overlap_cpp(va, vb, d)
13671 va= [IMP.algebra.get_vector(x)
for x
in a]
13672 vb= [IMP.algebra.get_vector(x)
for x
in b]
13673 return _get_drmsd_cpp(va, vb)
13676 va= [IMP.algebra.get_vector(x)
for x
in a]
13677 vb= [IMP.algebra.get_vector(x)
for x
in b]
13678 return _get_drms_cpp(va, vb)
13681 va= [IMP.algebra.get_vector(x)
for x
in a]
13682 vb= [IMP.algebra.get_vector(x)
for x
in b]
13683 return _get_drmsd_Q_cpp(va, vb, t)
13686 va= [IMP.algebra.get_vector(x)
for x
in a]
13687 vb= [IMP.algebra.get_vector(x)
for x
in b]
13689 return _get_rigid_bodies_drms_cpp(va, vb, ranges)
13693 r"""Proxy of C++ IMP::atom::LennardJonesTypedPairScore< IMP::atom::SmoothingFunction > class."""
13695 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13696 __repr__ = _swig_repr
13698 def __init__(self, f):
13699 r"""__init__(_LennardJonesTypedPairScore self, SmoothingFunction f) -> _LennardJonesTypedPairScore"""
13700 _IMP_atom._LennardJonesTypedPairScore_swiginit(self, _IMP_atom.new__LennardJonesTypedPairScore(f))
13702 def set_repulsive_weight(self, repulsive_weight):
13703 r"""set_repulsive_weight(_LennardJonesTypedPairScore self, double repulsive_weight)"""
13704 return _IMP_atom._LennardJonesTypedPairScore_set_repulsive_weight(self, repulsive_weight)
13706 def get_repulsive_weight(self):
13707 r"""get_repulsive_weight(_LennardJonesTypedPairScore self) -> double"""
13708 return _IMP_atom._LennardJonesTypedPairScore_get_repulsive_weight(self)
13710 def set_attractive_weight(self, attractive_weight):
13711 r"""set_attractive_weight(_LennardJonesTypedPairScore self, double attractive_weight)"""
13712 return _IMP_atom._LennardJonesTypedPairScore_set_attractive_weight(self, attractive_weight)
13714 def get_attractive_weight(self):
13715 r"""get_attractive_weight(_LennardJonesTypedPairScore self) -> double"""
13716 return _IMP_atom._LennardJonesTypedPairScore_get_attractive_weight(self)
13718 def get_repulsive_type_factors(self):
13719 r"""get_repulsive_type_factors(_LennardJonesTypedPairScore self) -> IMP::Floats"""
13720 return _IMP_atom._LennardJonesTypedPairScore_get_repulsive_type_factors(self)
13722 def get_attractive_type_factors(self):
13723 r"""get_attractive_type_factors(_LennardJonesTypedPairScore self) -> IMP::Floats"""
13724 return _IMP_atom._LennardJonesTypedPairScore_get_attractive_type_factors(self)
13726 def get_smoothing_function(self):
13727 r"""get_smoothing_function(_LennardJonesTypedPairScore self) -> SmoothingFunction"""
13728 return _IMP_atom._LennardJonesTypedPairScore_get_smoothing_function(self)
13730 def do_get_inputs(self, m, pis):
13731 r"""do_get_inputs(_LennardJonesTypedPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
13732 return _IMP_atom._LennardJonesTypedPairScore_do_get_inputs(self, m, pis)
13734 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
13735 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"""
13736 return _IMP_atom._LennardJonesTypedPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
13738 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
13739 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"""
13740 return _IMP_atom._LennardJonesTypedPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
13742 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
13743 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"""
13744 return _IMP_atom._LennardJonesTypedPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
13746 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
13747 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"""
13748 return _IMP_atom._LennardJonesTypedPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
13750 def get_version_info(self):
13751 r"""get_version_info(_LennardJonesTypedPairScore self) -> VersionInfo"""
13752 return _IMP_atom._LennardJonesTypedPairScore_get_version_info(self)
13753 __swig_destroy__ = _IMP_atom.delete__LennardJonesTypedPairScore
13757 return _object_cast_to__LennardJonesTypedPairScore(o)
13760 def _get_jax(self, m, indexes):
13761 import IMP.atom._jax_util
13762 score = IMP.atom._jax_util._get_lennard_jones_score(self, indexes)
13763 return self._wrap_jax(m, score, keys=[LennardJonesTyped.get_type_key()])
13767 _IMP_atom._LennardJonesTypedPairScore_swigregister(_LennardJonesTypedPairScore)
13769 r"""Proxy of C++ IMP::atom::LennardJonesTypedPairScore< IMP::atom::ForceSwitch > class."""
13771 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13772 __repr__ = _swig_repr
13774 def __init__(self, f):
13775 r"""__init__(_SwitchedLennardJonesTypedPairScore self, ForceSwitch f) -> _SwitchedLennardJonesTypedPairScore"""
13776 _IMP_atom._SwitchedLennardJonesTypedPairScore_swiginit(self, _IMP_atom.new__SwitchedLennardJonesTypedPairScore(f))
13778 def set_repulsive_weight(self, repulsive_weight):
13779 r"""set_repulsive_weight(_SwitchedLennardJonesTypedPairScore self, double repulsive_weight)"""
13780 return _IMP_atom._SwitchedLennardJonesTypedPairScore_set_repulsive_weight(self, repulsive_weight)
13782 def get_repulsive_weight(self):
13783 r"""get_repulsive_weight(_SwitchedLennardJonesTypedPairScore self) -> double"""
13784 return _IMP_atom._SwitchedLennardJonesTypedPairScore_get_repulsive_weight(self)
13786 def set_attractive_weight(self, attractive_weight):
13787 r"""set_attractive_weight(_SwitchedLennardJonesTypedPairScore self, double attractive_weight)"""
13788 return _IMP_atom._SwitchedLennardJonesTypedPairScore_set_attractive_weight(self, attractive_weight)
13790 def get_attractive_weight(self):
13791 r"""get_attractive_weight(_SwitchedLennardJonesTypedPairScore self) -> double"""
13792 return _IMP_atom._SwitchedLennardJonesTypedPairScore_get_attractive_weight(self)
13794 def get_repulsive_type_factors(self):
13795 r"""get_repulsive_type_factors(_SwitchedLennardJonesTypedPairScore self) -> IMP::Floats"""
13796 return _IMP_atom._SwitchedLennardJonesTypedPairScore_get_repulsive_type_factors(self)
13798 def get_attractive_type_factors(self):
13799 r"""get_attractive_type_factors(_SwitchedLennardJonesTypedPairScore self) -> IMP::Floats"""
13800 return _IMP_atom._SwitchedLennardJonesTypedPairScore_get_attractive_type_factors(self)
13802 def get_smoothing_function(self):
13803 r"""get_smoothing_function(_SwitchedLennardJonesTypedPairScore self) -> ForceSwitch"""
13804 return _IMP_atom._SwitchedLennardJonesTypedPairScore_get_smoothing_function(self)
13806 def do_get_inputs(self, m, pis):
13807 r"""do_get_inputs(_SwitchedLennardJonesTypedPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
13808 return _IMP_atom._SwitchedLennardJonesTypedPairScore_do_get_inputs(self, m, pis)
13810 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
13811 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"""
13812 return _IMP_atom._SwitchedLennardJonesTypedPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
13814 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
13815 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"""
13816 return _IMP_atom._SwitchedLennardJonesTypedPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
13818 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
13819 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"""
13820 return _IMP_atom._SwitchedLennardJonesTypedPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
13822 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
13823 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"""
13824 return _IMP_atom._SwitchedLennardJonesTypedPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
13826 def get_version_info(self):
13827 r"""get_version_info(_SwitchedLennardJonesTypedPairScore self) -> VersionInfo"""
13828 return _IMP_atom._SwitchedLennardJonesTypedPairScore_get_version_info(self)
13829 __swig_destroy__ = _IMP_atom.delete__SwitchedLennardJonesTypedPairScore
13833 return _object_cast_to__SwitchedLennardJonesTypedPairScore(o)
13836 def _get_jax(self, m, indexes):
13837 import IMP.atom._jax_util
13838 score = IMP.atom._jax_util._get_lennard_jones_score(self, indexes)
13839 return self._wrap_jax(m, score, keys=[LennardJonesTyped.get_type_key()])
13843 _IMP_atom._SwitchedLennardJonesTypedPairScore_swigregister(_SwitchedLennardJonesTypedPairScore)
13845 class LennardJonesTypedPairScore(_SwitchedLennardJonesTypedPairScore.__bases__[0]):
13846 def __init__(self, f):
13847 if isinstance(f, ForceSwitch):
13848 p = _SwitchedLennardJonesTypedPairScore(f)
13850 p = _LennardJonesTypedPairScore(f)
13851 self.__dict__[
'_proxied'] = p
13852 def __getattr__(self, key):
13853 return getattr(self._proxied, key)
13854 def __setattr__(self, key, val):
13855 return setattr(self._proxied, key, val)
13857 def _get_jax(self, *args, **kwargs):
13858 return self._proxied._get_jax(*args, **kwargs)
13863 p = _SwitchedLennardJonesTypedPairScore.get_from(o)
13865 p = _LennardJonesTypedPairScore.get_from(o)
13866 obj = object.__new__(LennardJonesTypedPairScore)
13867 obj.__dict__[
'_proxied'] = p
13871 def get_module_name():
13872 r"""get_module_name() -> std::string const"""
13873 return _IMP_atom.get_module_name()
13876 r"""get_module_version() -> std::string const"""
13877 return _IMP_atom.get_module_version()
13880 r"""get_example_path(std::string fname) -> std::string"""
13881 return _IMP_atom.get_example_path(fname)
13884 r"""get_data_path(std::string fname) -> std::string"""
13885 return _IMP_atom.get_data_path(fname)
13887 from .
import _version_check
A base class for geometry contained in particles.
A base class for modifiers of ParticlesTemp.
AtomType add_atom_type(std::string name, Element e)
Create a new AtomType.
double get_kt(double T)
Return kT for a given temperature in units of [kcal/mol].
double get_volume_from_residue_type(ResidueType rt)
Return an estimate for the volume of a given residue.
Abstract class for scoring object(s) of type ParticleIndexPair.
A shared container for Pairs.
CHARMMParameters * get_heavy_atom_CHARMM_parameters()
double get_einstein_rotational_diffusion_coefficient(double r, double temp=-1)
Hierarchy read_mmcif(TextInput input, Model *model, PDBSelector *selector=get_default_pdb_selector(), bool select_first_model=true)
Read all the molecules in the first model of the mmCIF file.
Float get_secondary_structure_match_score(SecondaryStructureResidue ssr1, SecondaryStructureResidue ssr2)
Compares the secondary structure probabilities of two residues.
double get_rigid_bodies_drms(const Vector3DsOrXYZs0 &m1, const Vector3DsOrXYZs1 &m2, const IMP::IntRanges &ranges)
DRMS between two sets of rigid bodies.
Chain get_chain(Hierarchy h)
Get the containing chain or Chain() if there is none.
CheckLevel get_check_level()
Get the current audit mode.
Vector< AtomTypes > get_chi_dihedral_atom_types(ResidueType rt)
Atoms get_phi_dihedral_atoms(Residue rd)
Return the atoms comprising the phi dihedral.
void show_molecular_hierarchy(Hierarchy h)
Print out the molecular hierarchy.
double get_drms(const Vector3DsOrXYZs0 &m1, const Vector3DsOrXYZs1 &m2)
Hierarchies read_multimodel_pdb_any(TextInput input, Model *model, PDBSelector *selector=get_default_pdb_selector())
Read all models from the PDB-like file.
void remove_charmm_untyped_atoms(Hierarchy hierarchy)
Remove any atom from the Hierarchy that does not have a CHARMM type.
Hierarchies read_multimodel_bcif(TextInput input, Model *model, PDBSelector *selector=get_default_pdb_selector())
Read all models from the BinaryCIF file.
double get_protein_density_from_reference(ProteinDensityReference densityReference)
void show_with_representations(Hierarchy h, std::ostream &out=std::cout)
Traverse through the tree and show atom info, including representations.
Hierarchy create_simplified_from_volume(Hierarchy h, double resolution)
void add_particles(RMF::FileHandle fh, const ParticlesTemp &hs)
double get_spring_constant_in_femto_newtons_per_angstrom(double k_in_kcal_per_mol_per_angstrom_square)
Convert spring constant from kcal/mol/A^2 to femtonewton/A.
double get_native_overlap(const Vector3DsOrXYZs0 &m1, const Vector3DsOrXYZs1 &m2, double threshold)
Computes the native overlap between two sets of 3D points.
Various classes to hold sets of particles.
The base class for geometry.
IMP::core::RigidBody create_compatible_rigid_body(Hierarchy h, Hierarchy reference)
Rigidify a molecule or collection of molecules.
Hierarchy create_simplified_along_backbone(Hierarchy input, int num_res, bool keep_detailed=false)
double get_drmsd(const Vector3DsOrXYZs0 &m0, const Vector3DsOrXYZs1 &m1)
Calculate distance the root mean square deviation between two sets of 3D points.
Vector< VectorD< D > > get_vertices(const BoundingBoxD< D > &bb)
Return a list of the 2^D bounding points for the bounding box.
double get_mass(ResidueType c)
Get the mass from the residue type.
void add_radii(Hierarchy d, const ForceFieldParameters *ffp=get_all_atom_CHARMM_parameters(), FloatKey radius_key=FloatKey("radius"))
Add vdW radius from given force field.
A base class for geometry from a set of particles.
double get_dihedral(XYZ a, XYZ b, XYZ c, XYZ d)
Compute the dihedral angle (in radians) between the four particles.
double get_mass_from_number_of_residues(unsigned int num_aa)
Estimate the mass of a protein from the number of amino acids.
Make CGAL functionality available to IMP.
Provenance create_clone(Provenance p)
Clone provenance (including previous provenance)
Atoms get_omega_dihedral_atoms(Residue rd)
Return the atoms comprising the omega dihedral.
ParticleIndexQuads get_chi_dihedral_particle_indexes(Residue rd)
void write_pdb(const Selection &mhd, TextOutput out, unsigned int model=1)
void setup_as_approximation(Particle *h, const ParticlesTemp &other)
ParticlesTemp get_particles(Model *m, const ParticleIndexes &ps)
Get the particles from a list of indexes.
double get_mass_from_volume(double v, ProteinDensityReference ref=ALBER)
Estimate the mass of a protein from its volume.
void destroy_bond(Bond b)
Destroy the bond connecting two particles.
HierarchyTree get_hierarchy_tree(Hierarchy h)
Get a graph for the passed Hierarchy.
void add_particle(RMF::FileHandle fh, Particle *hs)
Atoms get_charmm_untyped_atoms(Hierarchy hierarchy)
Get all atoms in the Hierarchy that do not have CHARMM types.
std::string get_data_path(std::string file_name)
Return the full path to one of this module's data files.
char get_one_letter_code(ResidueType c)
Get the 1-letter amino acid code from the residue type.
Atom get_atom(Residue rd, AtomType at)
Return a particle atom from the residue.
Composable functors to implement scores via compile-time composition.
double get_angle(const Line3D &a, const Line3D &b)
Get angle in radians between two lines around their closest points.
Hierarchy read_bcif(TextInput input, Model *model, PDBSelector *selector=get_default_pdb_selector(), bool select_first_model=true)
Read all the molecules in the first model of the BinaryCIF file.
Restraint * create_excluded_volume_restraint(const Hierarchies &hs, double resolution=-1)
Bond create_custom_bond(Bonded a, Bonded b, Float length, Float stiffness=-1)
Connect the two wrapped particles by a custom bond.
void write_pdb_of_c_alphas(const Selection &mhd, TextOutput out, unsigned int model=1)
Write a hierarchy to a PDB as C_alpha atoms.
Hierarchies read_multimodel_mmcif(TextInput input, Model *model, PDBSelector *selector=get_default_pdb_selector())
Read all models from the mmCIF file.
double get_kd(double na, double nb, double nab, double volume)
double get_diffusion_angle(double D, double dtfs)
IMP::algebra::Transformation3D get_transformation_aligning_first_to_second(const Vector3DsOrXYZs0 &source, const Vector3DsOrXYZs1 &target)
Compute the rigid transform bringing the first point set to the second.
bool get_atom_type_exists(std::string name)
Return true if that atom type already exists.
Hierarchy read_pdb_any(TextInput input, Model *model, PDBSelector *selector=get_default_pdb_selector(), bool select_first_model=true)
Read all the molecules in the first model of the PDB-like file.
double get_volume(const BoundingBoxD< D > &bb)
See BoundingBoxD.
FloatPair get_component_placement_score(const core::XYZs &ref1, const core::XYZs &ref2, const core::XYZs &mdl1, const core::XYZs &mdl2)
Measure the difference between two placements of the same set of points.
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)
Common base class for heavy weight IMP objects.
Hierarchy create_protein(Model *m, std::string name, double target_radius, int number_of_residues, int first_residue_index=0, double volume=-1)
Create a coarse grained molecule.
Atoms get_psi_dihedral_atoms(Residue rd)
Return the atoms comprising the psi dihedral.
Abstract class for scoring object(s) of type ParticleIndex.
ParticlesTemp get_order(const Subset &s, const SubsetFilterTables &sft)
Bond create_bond(Bonded a, Bonded b, Int t)
Connect the two wrapped particles by a bond.
double get_rotational_diffusion_coefficient(const algebra::Rotation3Ds &orientations, double dt)
Base class for all optimizers.
double get_rmsd(const Vector3DsOrXYZs0 &m1, const Vector3DsOrXYZs1 &m2)
Hierarchy get_previous_residue(Residue rd)
Return the residue from the same chain with one lower index.
SecondaryStructureResidue setup_coarse_secondary_structure_residue(const Particles &ssr_ps, Model *mdl, bool winner_takes_all_per_res=false)
Coarsen some SecondaryStructureResidues.
double get_molarity(double n, double volume)
boost::graph HierarchyTree
A graph for representing a Hierarchy so you can view it nicely.
Hierarchy read_mol2(TextInput mol2_file, Model *model, Mol2Selector *mol2sel=nullptr)
Create a hierarchy from a Mol2 file.
double get_radius_of_gyration(const Vector3Ds &ps)
Return the radius of gyration of a set of points.
A decorator for a particle with x,y,z coordinates.
void add_loop_statistical_score_data(atom::Hierarchy h)
Restraint * create_internal_connectivity_restraint(const Selection &s, double k, std::string name="Connectivity%1%")
Create a restraint connecting the selection.
void write_mol2(Hierarchy rhd, TextOutput file_name)
Write a ligand hierarchy as a mol2 file.
Hierarchy read_pdb(TextInput input, Model *model, PDBSelector *selector=get_default_pdb_selector(), bool select_first_model=true)
Read all the molecules in the first model of the PDB file.
int get_state_index(Hierarchy h)
Walk up the hierarchy to find the current state.
SecondaryStructureResidues setup_coarse_secondary_structure_residues(const Particles &ssr_ps, Model *mdl, int coarse_factor, int start_res_num, bool winner_takes_all_per_res=false)
void add_protein_ligand_score_data(Hierarchy h)
Interface to specialized Particle types (e.g. atoms)
std::string get_molecule_name(Hierarchy h)
std::ostream & show(Hierarchy h, std::ostream &out=std::cout)
Print the hierarchy using a given decorator to display each node.
Vector< Atoms > get_chi_dihedral_atoms(Residue rd)
double get_pairwise_rmsd_score(const core::XYZs &ref1, const core::XYZs &ref2, const core::XYZs &mdl1, const core::XYZs &mdl2)
Measure the RMSD between two placements of the same set of points.
double get_force_in_femto_newtons(double force_in_kcal_per_mol_per_angstrom)
Convert force from kcal/mol/A to femtonewtons.
Basic functionality that is expected to be used by a wide variety of IMP users.
Abstract predicate function.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
Hierarchies read_multimodel_pdb(TextInput input, Model *model, PDBSelector *selector=get_default_pdb_selector())
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
Residue get_residue(Atom d, bool nothrow=false)
Return the Residue containing this atom.
Shared optimizer state that is invoked upon commitment of new coordinates.
Hierarchy get_root(Hierarchy h)
Return the root of the hierarchy.
Abstract class to implement hierarchical methods.
void add_dope_score_data(atom::Hierarchy h)
Bond get_bond(Bonded a, Bonded b)
Get the bond between two particles.
std::string show_graphviz(Graph g)
Restraint * create_distance_restraint(const Selection &n0, const Selection &n1, double x0, double k, std::string name="Distance%1%")
Representation get_representation(Hierarchy h, bool nothrow=false)
Return the Representation object containing this hierarchy.
FloatPair get_placement_score(const core::XYZs &source, const core::XYZs &target)
Measure the difference between two placements of the same set of points.
void write_multimodel_pdb(const Hierarchies &mhd, TextOutput out)
int get_copy_index(Hierarchy h)
Walk up the hierarchy to find the current copy index.
A decorator for helping deal with a generalized hierarchy.
double get_maximum_time_step_estimate(BrownianDynamics *bd)
double get_diffusion_coefficient(const algebra::Vector3Ds &displacements, double dt)
double get_surface_area(const Geometry &)
Compute the surface area of any volumetric object.
double get_resolution(Model *m, ParticleIndex pi)
Estimate the resolution of the hierarchy as used by Representation.
double get_rmsd_transforming_first(const Transformation3D &tr, const Vector3DsOrXYZs0 &m1, const Vector3DsOrXYZs1 &m2)
Calculate the root mean square deviation between two sets of 3D points.
Hierarchy create_simplified_assembly_from_volume(Hierarchy h, double resolution)
Output IMP model data in various file formats.
std::string get_chain_id(Hierarchy h)
Walk up the hierarchy to determine the chain id.
IMP::core::RigidBody create_rigid_body(const Hierarchies &h, std::string name=std::string("created rigid body"))
Rigidify a molecule or collection of molecules.
CHARMMParameters * get_all_atom_CHARMM_parameters()
Hierarchies get_leaves(const Selection &h)
double get_einstein_diffusion_coefficient(double r, double temp=-1)
double get_drmsd_Q(const Vector3DsOrXYZs0 &m0, const Vector3DsOrXYZs1 &m1, double threshold)
DensityMap * get_segment(DensityMap *map_to_segment, int nx_start, int nx_end, int ny_start, int ny_end, int nz_start, int nz_end)
Get a segment of the map according to xyz indexes.
Applies a PairScore to each Pair in a list.
Hierarchy get_next_residue(Residue rd)
Return the residue from the same chain with one higher index.
Restraint * create_connectivity_restraint(const Selections &s, double k, std::string name="Connectivity%1%")
Create a restraint connecting the selections.
void add_bonds(Hierarchy d, const ForceFieldParameters *ffp=get_all_atom_CHARMM_parameters())
Add bonds using definitions from given force field parameters.
void set_check_level(CheckLevel tf)
Control runtime checks in the code.
double get_diffusion_length(double D, double t)
std::string get_module_version()
Return the version of this module, as a string.
A restraint is a term in an IMP ScoringFunction.