14 from sys
import version_info
as _swig_python_version_info
15 import _IMP_bayesianem
18 import builtins
as __builtin__
24 strthis =
"proxy of " + self.this.__repr__()
25 except __builtin__.Exception:
27 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
30 def _swig_setattr_nondynamic_instance_variable(set):
31 def set_instance_attr(self, name, value):
33 set(self, name, value)
34 elif name ==
"thisown":
36 elif hasattr(self, name)
and isinstance(getattr(type(self), name), property):
37 set(self, name, value)
39 raise AttributeError(
"You cannot add instance attributes to %s" % self)
40 return set_instance_attr
43 def _swig_setattr_nondynamic_class_variable(set):
44 def set_class_attr(cls, name, value):
45 if hasattr(cls, name)
and not isinstance(getattr(cls, name), property):
48 raise AttributeError(
"You cannot add class attributes to %s" % cls)
52 def _swig_add_metaclass(metaclass):
53 """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
55 return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
59 class _SwigNonDynamicMeta(type):
60 """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
61 __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
66 class IMP_BAYESIANEM_SwigPyIterator(object):
67 r"""Proxy of C++ swig::IMP_BAYESIANEM_SwigPyIterator class."""
69 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
71 def __init__(self, *args, **kwargs):
72 raise AttributeError(
"No constructor defined - class is abstract")
74 __swig_destroy__ = _IMP_bayesianem.delete_IMP_BAYESIANEM_SwigPyIterator
77 r"""value(IMP_BAYESIANEM_SwigPyIterator self) -> PyObject *"""
78 return _IMP_bayesianem.IMP_BAYESIANEM_SwigPyIterator_value(self)
81 r"""incr(IMP_BAYESIANEM_SwigPyIterator self, size_t n=1) -> IMP_BAYESIANEM_SwigPyIterator"""
82 return _IMP_bayesianem.IMP_BAYESIANEM_SwigPyIterator_incr(self, n)
85 r"""decr(IMP_BAYESIANEM_SwigPyIterator self, size_t n=1) -> IMP_BAYESIANEM_SwigPyIterator"""
86 return _IMP_bayesianem.IMP_BAYESIANEM_SwigPyIterator_decr(self, n)
88 def distance(self, x):
89 r"""distance(IMP_BAYESIANEM_SwigPyIterator self, IMP_BAYESIANEM_SwigPyIterator x) -> ptrdiff_t"""
90 return _IMP_bayesianem.IMP_BAYESIANEM_SwigPyIterator_distance(self, x)
93 r"""equal(IMP_BAYESIANEM_SwigPyIterator self, IMP_BAYESIANEM_SwigPyIterator x) -> bool"""
94 return _IMP_bayesianem.IMP_BAYESIANEM_SwigPyIterator_equal(self, x)
97 r"""copy(IMP_BAYESIANEM_SwigPyIterator self) -> IMP_BAYESIANEM_SwigPyIterator"""
98 return _IMP_bayesianem.IMP_BAYESIANEM_SwigPyIterator_copy(self)
101 r"""next(IMP_BAYESIANEM_SwigPyIterator self) -> PyObject *"""
102 return _IMP_bayesianem.IMP_BAYESIANEM_SwigPyIterator_next(self)
105 r"""__next__(IMP_BAYESIANEM_SwigPyIterator self) -> PyObject *"""
106 return _IMP_bayesianem.IMP_BAYESIANEM_SwigPyIterator___next__(self)
109 r"""previous(IMP_BAYESIANEM_SwigPyIterator self) -> PyObject *"""
110 return _IMP_bayesianem.IMP_BAYESIANEM_SwigPyIterator_previous(self)
112 def advance(self, n):
113 r"""advance(IMP_BAYESIANEM_SwigPyIterator self, ptrdiff_t n) -> IMP_BAYESIANEM_SwigPyIterator"""
114 return _IMP_bayesianem.IMP_BAYESIANEM_SwigPyIterator_advance(self, n)
117 r"""__eq__(IMP_BAYESIANEM_SwigPyIterator self, IMP_BAYESIANEM_SwigPyIterator x) -> bool"""
118 return _IMP_bayesianem.IMP_BAYESIANEM_SwigPyIterator___eq__(self, x)
121 r"""__ne__(IMP_BAYESIANEM_SwigPyIterator self, IMP_BAYESIANEM_SwigPyIterator x) -> bool"""
122 return _IMP_bayesianem.IMP_BAYESIANEM_SwigPyIterator___ne__(self, x)
124 def __iadd__(self, n):
125 r"""__iadd__(IMP_BAYESIANEM_SwigPyIterator self, ptrdiff_t n) -> IMP_BAYESIANEM_SwigPyIterator"""
126 return _IMP_bayesianem.IMP_BAYESIANEM_SwigPyIterator___iadd__(self, n)
128 def __isub__(self, n):
129 r"""__isub__(IMP_BAYESIANEM_SwigPyIterator self, ptrdiff_t n) -> IMP_BAYESIANEM_SwigPyIterator"""
130 return _IMP_bayesianem.IMP_BAYESIANEM_SwigPyIterator___isub__(self, n)
132 def __add__(self, n):
133 r"""__add__(IMP_BAYESIANEM_SwigPyIterator self, ptrdiff_t n) -> IMP_BAYESIANEM_SwigPyIterator"""
134 return _IMP_bayesianem.IMP_BAYESIANEM_SwigPyIterator___add__(self, n)
136 def __sub__(self, *args):
138 __sub__(IMP_BAYESIANEM_SwigPyIterator self, ptrdiff_t n) -> IMP_BAYESIANEM_SwigPyIterator
139 __sub__(IMP_BAYESIANEM_SwigPyIterator self, IMP_BAYESIANEM_SwigPyIterator x) -> ptrdiff_t
141 return _IMP_bayesianem.IMP_BAYESIANEM_SwigPyIterator___sub__(self, *args)
146 _IMP_bayesianem.IMP_BAYESIANEM_SwigPyIterator_swigregister(IMP_BAYESIANEM_SwigPyIterator)
153 IMP_DEBUG = _IMP_bayesianem.IMP_DEBUG
155 IMP_RELEASE = _IMP_bayesianem.IMP_RELEASE
157 IMP_SILENT = _IMP_bayesianem.IMP_SILENT
159 IMP_PROGRESS = _IMP_bayesianem.IMP_PROGRESS
161 IMP_TERSE = _IMP_bayesianem.IMP_TERSE
163 IMP_VERBOSE = _IMP_bayesianem.IMP_VERBOSE
165 IMP_MEMORY = _IMP_bayesianem.IMP_MEMORY
167 IMP_NONE = _IMP_bayesianem.IMP_NONE
169 IMP_USAGE = _IMP_bayesianem.IMP_USAGE
171 IMP_INTERNAL = _IMP_bayesianem.IMP_INTERNAL
173 IMP_KERNEL_HAS_LOG4CXX = _IMP_bayesianem.IMP_KERNEL_HAS_LOG4CXX
175 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_bayesianem.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
177 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_bayesianem.IMP_COMPILER_HAS_DEBUG_VECTOR
179 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_bayesianem.IMP_COMPILER_HAS_RANDOM_SHUFFLE
181 IMP_COMPILER_HAS_THREE_WAY = _IMP_bayesianem.IMP_COMPILER_HAS_THREE_WAY
183 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_bayesianem.IMP_KERNEL_HAS_BOOST_RANDOM
185 IMP_KERNEL_HAS_NUMPY = _IMP_bayesianem.IMP_KERNEL_HAS_NUMPY
187 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_bayesianem.IMP_KERNEL_HAS_GPERFTOOLS
189 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_bayesianem.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
191 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_bayesianem.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
193 IMPKERNEL_SHOW_WARNINGS = _IMP_bayesianem.IMPKERNEL_SHOW_WARNINGS
197 class _DirectorObjects:
198 """@internal Simple class to keep references to director objects
199 to prevent premature deletion."""
202 def register(self, obj):
203 """Take a reference to a director object; will only work for
204 refcounted C++ classes"""
205 if hasattr(obj,
'get_ref_count'):
206 self._objects.append(obj)
208 """Only drop our reference and allow cleanup by Python if no other
209 Python references exist (we hold 3 references: one in self._objects,
210 one in x, and one in the argument list for getrefcount) *and* no
211 other C++ references exist (the Python object always holds one)"""
212 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
213 or x.get_ref_count() > 1]
217 def get_object_count(self):
218 """Get number of director objects (useful for testing only)"""
219 return len(self._objects)
220 _director_objects = _DirectorObjects()
222 class _ostream(object):
223 r"""Proxy of C++ std::ostream class."""
225 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
227 def __init__(self, *args, **kwargs):
228 raise AttributeError(
"No constructor defined")
229 __repr__ = _swig_repr
231 def write(self, osa_buf):
232 r"""write(_ostream self, char const * osa_buf)"""
233 return _IMP_bayesianem._ostream_write(self, osa_buf)
236 _IMP_bayesianem._ostream_swigregister(_ostream)
237 IMP_C_OPEN_BINARY = _IMP_bayesianem.IMP_C_OPEN_BINARY
240 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_bayesianem.IMP_CGAL_HAS_BOOST_FILESYSTEM
242 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_bayesianem.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
244 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_bayesianem.IMP_CGAL_HAS_BOOST_RANDOM
246 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_bayesianem.IMP_CGAL_HAS_BOOST_SYSTEM
248 IMP_CGAL_HAS_NUMPY = _IMP_bayesianem.IMP_CGAL_HAS_NUMPY
250 IMPCGAL_SHOW_WARNINGS = _IMP_bayesianem.IMPCGAL_SHOW_WARNINGS
253 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_bayesianem.IMP_ALGEBRA_HAS_IMP_CGAL
255 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_bayesianem.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
257 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_bayesianem.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
259 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_bayesianem.IMP_ALGEBRA_HAS_BOOST_RANDOM
261 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_bayesianem.IMP_ALGEBRA_HAS_BOOST_SYSTEM
263 IMP_ALGEBRA_HAS_CGAL = _IMP_bayesianem.IMP_ALGEBRA_HAS_CGAL
265 IMP_ALGEBRA_HAS_NUMPY = _IMP_bayesianem.IMP_ALGEBRA_HAS_NUMPY
267 IMP_ALGEBRA_HAS_ANN = _IMP_bayesianem.IMP_ALGEBRA_HAS_ANN
269 IMPALGEBRA_SHOW_WARNINGS = _IMP_bayesianem.IMPALGEBRA_SHOW_WARNINGS
272 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_bayesianem.IMP_DISPLAY_HAS_IMP_CGAL
274 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_bayesianem.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
276 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_bayesianem.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
278 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_bayesianem.IMP_DISPLAY_HAS_BOOST_RANDOM
280 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_bayesianem.IMP_DISPLAY_HAS_BOOST_SYSTEM
282 IMP_DISPLAY_HAS_CGAL = _IMP_bayesianem.IMP_DISPLAY_HAS_CGAL
284 IMP_DISPLAY_HAS_NUMPY = _IMP_bayesianem.IMP_DISPLAY_HAS_NUMPY
286 IMPDISPLAY_SHOW_WARNINGS = _IMP_bayesianem.IMPDISPLAY_SHOW_WARNINGS
289 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_bayesianem.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
291 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_bayesianem.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
293 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_bayesianem.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
295 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_bayesianem.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
297 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_bayesianem.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
299 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_bayesianem.IMP_SCORE_FUNCTOR_HAS_CGAL
301 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_bayesianem.IMP_SCORE_FUNCTOR_HAS_HDF5
303 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_bayesianem.IMP_SCORE_FUNCTOR_HAS_NUMPY
305 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_bayesianem.IMPSCOREFUNCTOR_SHOW_WARNINGS
308 IMP_STATISTICS_HAS_IMP_CGAL = _IMP_bayesianem.IMP_STATISTICS_HAS_IMP_CGAL
310 IMP_STATISTICS_HAS_BOOST_FILESYSTEM = _IMP_bayesianem.IMP_STATISTICS_HAS_BOOST_FILESYSTEM
312 IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS = _IMP_bayesianem.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS
314 IMP_STATISTICS_HAS_BOOST_RANDOM = _IMP_bayesianem.IMP_STATISTICS_HAS_BOOST_RANDOM
316 IMP_STATISTICS_HAS_BOOST_SYSTEM = _IMP_bayesianem.IMP_STATISTICS_HAS_BOOST_SYSTEM
318 IMP_STATISTICS_HAS_CGAL = _IMP_bayesianem.IMP_STATISTICS_HAS_CGAL
320 IMP_STATISTICS_HAS_NUMPY = _IMP_bayesianem.IMP_STATISTICS_HAS_NUMPY
322 IMPSTATISTICS_SHOW_WARNINGS = _IMP_bayesianem.IMPSTATISTICS_SHOW_WARNINGS
325 IMP_CORE_HAS_IMP_CGAL = _IMP_bayesianem.IMP_CORE_HAS_IMP_CGAL
327 IMP_CORE_HAS_IMP_KERNEL = _IMP_bayesianem.IMP_CORE_HAS_IMP_KERNEL
329 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_bayesianem.IMP_CORE_HAS_BOOST_FILESYSTEM
331 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_bayesianem.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
333 IMP_CORE_HAS_BOOST_RANDOM = _IMP_bayesianem.IMP_CORE_HAS_BOOST_RANDOM
335 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_bayesianem.IMP_CORE_HAS_BOOST_SYSTEM
337 IMP_CORE_HAS_CGAL = _IMP_bayesianem.IMP_CORE_HAS_CGAL
339 IMP_CORE_HAS_HDF5 = _IMP_bayesianem.IMP_CORE_HAS_HDF5
341 IMP_CORE_HAS_NUMPY = _IMP_bayesianem.IMP_CORE_HAS_NUMPY
343 IMPCORE_SHOW_WARNINGS = _IMP_bayesianem.IMPCORE_SHOW_WARNINGS
346 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_bayesianem.IMP_CONTAINER_HAS_IMP_ALGEBRA
348 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_bayesianem.IMP_CONTAINER_HAS_IMP_CGAL
350 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_bayesianem.IMP_CONTAINER_HAS_IMP_DISPLAY
352 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_bayesianem.IMP_CONTAINER_HAS_IMP_KERNEL
354 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_bayesianem.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
356 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_bayesianem.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
358 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_bayesianem.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
360 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_bayesianem.IMP_CONTAINER_HAS_BOOST_RANDOM
362 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_bayesianem.IMP_CONTAINER_HAS_BOOST_SYSTEM
364 IMP_CONTAINER_HAS_CGAL = _IMP_bayesianem.IMP_CONTAINER_HAS_CGAL
366 IMP_CONTAINER_HAS_HDF5 = _IMP_bayesianem.IMP_CONTAINER_HAS_HDF5
368 IMP_CONTAINER_HAS_NUMPY = _IMP_bayesianem.IMP_CONTAINER_HAS_NUMPY
370 IMP_CONTAINER_HAS_PYTHON_IHM = _IMP_bayesianem.IMP_CONTAINER_HAS_PYTHON_IHM
372 IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP = _IMP_bayesianem.IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP
374 IMP_CONTAINER_HAS_ROBIN_MAP = _IMP_bayesianem.IMP_CONTAINER_HAS_ROBIN_MAP
376 IMPCONTAINER_SHOW_WARNINGS = _IMP_bayesianem.IMPCONTAINER_SHOW_WARNINGS
379 IMP_ATOM_HAS_IMP_CGAL = _IMP_bayesianem.IMP_ATOM_HAS_IMP_CGAL
381 IMP_ATOM_HAS_IMP_KERNEL = _IMP_bayesianem.IMP_ATOM_HAS_IMP_KERNEL
383 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_bayesianem.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
385 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_bayesianem.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
387 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_bayesianem.IMP_ATOM_HAS_BOOST_RANDOM
389 IMP_ATOM_HAS_BOOST_REGEX = _IMP_bayesianem.IMP_ATOM_HAS_BOOST_REGEX
391 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_bayesianem.IMP_ATOM_HAS_BOOST_SYSTEM
393 IMP_ATOM_HAS_CGAL = _IMP_bayesianem.IMP_ATOM_HAS_CGAL
395 IMP_ATOM_HAS_HDF5 = _IMP_bayesianem.IMP_ATOM_HAS_HDF5
397 IMP_ATOM_HAS_NUMPY = _IMP_bayesianem.IMP_ATOM_HAS_NUMPY
399 IMP_ATOM_HAS_PYTHON_IHM = _IMP_bayesianem.IMP_ATOM_HAS_PYTHON_IHM
401 IMPATOM_SHOW_WARNINGS = _IMP_bayesianem.IMPATOM_SHOW_WARNINGS
403 IMP_ATOM_TYPE_INDEX = _IMP_bayesianem.IMP_ATOM_TYPE_INDEX
405 IMP_RESIDUE_TYPE_INDEX = _IMP_bayesianem.IMP_RESIDUE_TYPE_INDEX
407 IMP_HIERARCHY_TYPE_INDEX = _IMP_bayesianem.IMP_HIERARCHY_TYPE_INDEX
409 IMP_CHAIN_TYPE_INDEX = _IMP_bayesianem.IMP_CHAIN_TYPE_INDEX
412 IMP_EM_HAS_IMP_CGAL = _IMP_bayesianem.IMP_EM_HAS_IMP_CGAL
414 IMP_EM_HAS_IMP_CONTAINER = _IMP_bayesianem.IMP_EM_HAS_IMP_CONTAINER
416 IMP_EM_HAS_IMP_DISPLAY = _IMP_bayesianem.IMP_EM_HAS_IMP_DISPLAY
418 IMP_EM_HAS_IMP_SCORE_FUNCTOR = _IMP_bayesianem.IMP_EM_HAS_IMP_SCORE_FUNCTOR
420 IMP_EM_HAS_BOOST_FILESYSTEM = _IMP_bayesianem.IMP_EM_HAS_BOOST_FILESYSTEM
422 IMP_EM_HAS_BOOST_PROGRAMOPTIONS = _IMP_bayesianem.IMP_EM_HAS_BOOST_PROGRAMOPTIONS
424 IMP_EM_HAS_BOOST_RANDOM = _IMP_bayesianem.IMP_EM_HAS_BOOST_RANDOM
426 IMP_EM_HAS_BOOST_REGEX = _IMP_bayesianem.IMP_EM_HAS_BOOST_REGEX
428 IMP_EM_HAS_BOOST_SYSTEM = _IMP_bayesianem.IMP_EM_HAS_BOOST_SYSTEM
430 IMP_EM_HAS_CGAL = _IMP_bayesianem.IMP_EM_HAS_CGAL
432 IMP_EM_HAS_HDF5 = _IMP_bayesianem.IMP_EM_HAS_HDF5
434 IMP_EM_HAS_NUMPY = _IMP_bayesianem.IMP_EM_HAS_NUMPY
436 IMP_EM_HAS_PYTHON_IHM = _IMP_bayesianem.IMP_EM_HAS_PYTHON_IHM
438 IMPEM_SHOW_WARNINGS = _IMP_bayesianem.IMPEM_SHOW_WARNINGS
441 IMP_SAXS_HAS_IMP_CGAL = _IMP_bayesianem.IMP_SAXS_HAS_IMP_CGAL
443 IMP_SAXS_HAS_IMP_CONTAINER = _IMP_bayesianem.IMP_SAXS_HAS_IMP_CONTAINER
445 IMP_SAXS_HAS_IMP_DISPLAY = _IMP_bayesianem.IMP_SAXS_HAS_IMP_DISPLAY
447 IMP_SAXS_HAS_IMP_KERNEL = _IMP_bayesianem.IMP_SAXS_HAS_IMP_KERNEL
449 IMP_SAXS_HAS_IMP_SCORE_FUNCTOR = _IMP_bayesianem.IMP_SAXS_HAS_IMP_SCORE_FUNCTOR
451 IMP_SAXS_HAS_BOOST_FILESYSTEM = _IMP_bayesianem.IMP_SAXS_HAS_BOOST_FILESYSTEM
453 IMP_SAXS_HAS_BOOST_PROGRAMOPTIONS = _IMP_bayesianem.IMP_SAXS_HAS_BOOST_PROGRAMOPTIONS
455 IMP_SAXS_HAS_BOOST_RANDOM = _IMP_bayesianem.IMP_SAXS_HAS_BOOST_RANDOM
457 IMP_SAXS_HAS_BOOST_REGEX = _IMP_bayesianem.IMP_SAXS_HAS_BOOST_REGEX
459 IMP_SAXS_HAS_BOOST_SYSTEM = _IMP_bayesianem.IMP_SAXS_HAS_BOOST_SYSTEM
461 IMP_SAXS_HAS_CGAL = _IMP_bayesianem.IMP_SAXS_HAS_CGAL
463 IMP_SAXS_HAS_HDF5 = _IMP_bayesianem.IMP_SAXS_HAS_HDF5
465 IMP_SAXS_HAS_NUMPY = _IMP_bayesianem.IMP_SAXS_HAS_NUMPY
467 IMP_SAXS_HAS_PYTHON_IHM = _IMP_bayesianem.IMP_SAXS_HAS_PYTHON_IHM
469 IMPSAXS_SHOW_WARNINGS = _IMP_bayesianem.IMPSAXS_SHOW_WARNINGS
472 IMP_ISD_HAS_IMP_CGAL = _IMP_bayesianem.IMP_ISD_HAS_IMP_CGAL
474 IMP_ISD_HAS_IMP_DISPLAY = _IMP_bayesianem.IMP_ISD_HAS_IMP_DISPLAY
476 IMP_ISD_HAS_IMP_SCORE_FUNCTOR = _IMP_bayesianem.IMP_ISD_HAS_IMP_SCORE_FUNCTOR
478 IMP_ISD_HAS_BOOST_FILESYSTEM = _IMP_bayesianem.IMP_ISD_HAS_BOOST_FILESYSTEM
480 IMP_ISD_HAS_BOOST_PROGRAMOPTIONS = _IMP_bayesianem.IMP_ISD_HAS_BOOST_PROGRAMOPTIONS
482 IMP_ISD_HAS_BOOST_RANDOM = _IMP_bayesianem.IMP_ISD_HAS_BOOST_RANDOM
484 IMP_ISD_HAS_BOOST_REGEX = _IMP_bayesianem.IMP_ISD_HAS_BOOST_REGEX
486 IMP_ISD_HAS_BOOST_SYSTEM = _IMP_bayesianem.IMP_ISD_HAS_BOOST_SYSTEM
488 IMP_ISD_HAS_CGAL = _IMP_bayesianem.IMP_ISD_HAS_CGAL
490 IMP_ISD_HAS_HDF5 = _IMP_bayesianem.IMP_ISD_HAS_HDF5
492 IMP_ISD_HAS_NUMPY = _IMP_bayesianem.IMP_ISD_HAS_NUMPY
494 IMP_ISD_HAS_PYTHON_IHM = _IMP_bayesianem.IMP_ISD_HAS_PYTHON_IHM
496 IMPISD_SHOW_WARNINGS = _IMP_bayesianem.IMPISD_SHOW_WARNINGS
499 IMP_BAYESIANEM_HAS_IMP_CGAL = _IMP_bayesianem.IMP_BAYESIANEM_HAS_IMP_CGAL
501 IMP_BAYESIANEM_HAS_IMP_DISPLAY = _IMP_bayesianem.IMP_BAYESIANEM_HAS_IMP_DISPLAY
503 IMP_BAYESIANEM_HAS_IMP_SCORE_FUNCTOR = _IMP_bayesianem.IMP_BAYESIANEM_HAS_IMP_SCORE_FUNCTOR
505 IMP_BAYESIANEM_HAS_BOOST_FILESYSTEM = _IMP_bayesianem.IMP_BAYESIANEM_HAS_BOOST_FILESYSTEM
507 IMP_BAYESIANEM_HAS_BOOST_PROGRAMOPTIONS = _IMP_bayesianem.IMP_BAYESIANEM_HAS_BOOST_PROGRAMOPTIONS
509 IMP_BAYESIANEM_HAS_BOOST_RANDOM = _IMP_bayesianem.IMP_BAYESIANEM_HAS_BOOST_RANDOM
511 IMP_BAYESIANEM_HAS_BOOST_REGEX = _IMP_bayesianem.IMP_BAYESIANEM_HAS_BOOST_REGEX
513 IMP_BAYESIANEM_HAS_BOOST_SYSTEM = _IMP_bayesianem.IMP_BAYESIANEM_HAS_BOOST_SYSTEM
515 IMP_BAYESIANEM_HAS_CGAL = _IMP_bayesianem.IMP_BAYESIANEM_HAS_CGAL
517 IMP_BAYESIANEM_HAS_HDF5 = _IMP_bayesianem.IMP_BAYESIANEM_HAS_HDF5
519 IMP_BAYESIANEM_HAS_NUMPY = _IMP_bayesianem.IMP_BAYESIANEM_HAS_NUMPY
521 IMP_BAYESIANEM_HAS_PYTHON_IHM = _IMP_bayesianem.IMP_BAYESIANEM_HAS_PYTHON_IHM
523 IMPBAYESIANEM_SHOW_WARNINGS = _IMP_bayesianem.IMPBAYESIANEM_SHOW_WARNINGS
526 _object_types.append(
"GaussianEMRestraint")
529 r"""Proxy of C++ IMP::bayesianem::GaussianEMRestraint class."""
531 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
533 def __init__(self, *args):
534 r"""__init__(GaussianEMRestraint self, Model mdl, IMP::ParticleIndexes model_ps, IMP::ParticleIndexes density_ps, ParticleIndex global_sigma, IMP::Float model_cutoff_dist, IMP::Float density_cutoff_dist, IMP::Float slope, bool update_model=True, bool backbone_slope=False, std::string name="GaussianEMRestraint%1%") -> GaussianEMRestraint"""
535 _IMP_bayesianem.GaussianEMRestraint_swiginit(self, _IMP_bayesianem.new_GaussianEMRestraint(*args))
537 def get_probability(self):
538 r"""get_probability(GaussianEMRestraint self) -> double"""
539 return _IMP_bayesianem.GaussianEMRestraint_get_probability(self)
541 def set_density_filename(self, density_fn):
542 r"""set_density_filename(GaussianEMRestraint self, std::string density_fn)"""
543 return _IMP_bayesianem.GaussianEMRestraint_set_density_filename(self, density_fn)
545 def compute_initial_scores(self):
546 r"""compute_initial_scores(GaussianEMRestraint self)"""
547 return _IMP_bayesianem.GaussianEMRestraint_compute_initial_scores(self)
550 r"""get_indexes(GaussianEMRestraint self) -> IMP::ParticleIndexes const"""
551 return _IMP_bayesianem.GaussianEMRestraint_get_indexes(self)
554 r"""get_log2(GaussianEMRestraint self) -> IMP::Floats const"""
555 return _IMP_bayesianem.GaussianEMRestraint_get_log2(self)
558 r"""debug(GaussianEMRestraint self)"""
559 return _IMP_bayesianem.GaussianEMRestraint_debug(self)
561 def set_slope(self, s):
562 r"""set_slope(GaussianEMRestraint self, IMP::Float s)"""
563 return _IMP_bayesianem.GaussianEMRestraint_set_slope(self, s)
566 r"""get_slope(GaussianEMRestraint self) -> IMP::Float"""
567 return _IMP_bayesianem.GaussianEMRestraint_get_slope(self)
569 def do_get_inputs(self):
570 r"""do_get_inputs(GaussianEMRestraint self) -> IMP::ModelObjectsTemp"""
571 return _IMP_bayesianem.GaussianEMRestraint_do_get_inputs(self)
574 r"""show(GaussianEMRestraint self, _ostream out)"""
575 return _IMP_bayesianem.GaussianEMRestraint_show(self, out)
577 def get_version_info(self):
578 r"""get_version_info(GaussianEMRestraint self) -> VersionInfo"""
579 return _IMP_bayesianem.GaussianEMRestraint_get_version_info(self)
580 __swig_destroy__ = _IMP_bayesianem.delete_GaussianEMRestraint
583 r"""__str__(GaussianEMRestraint self) -> std::string"""
584 return _IMP_bayesianem.GaussianEMRestraint___str__(self)
587 r"""__repr__(GaussianEMRestraint self) -> std::string"""
588 return _IMP_bayesianem.GaussianEMRestraint___repr__(self)
592 return _object_cast_to_GaussianEMRestraint(o)
596 _IMP_bayesianem.GaussianEMRestraint_swigregister(GaussianEMRestraint)
598 def get_rmsd_excluding_higher_than(m1, m2, t):
599 r"""get_rmsd_excluding_higher_than(IMP::core::XYZs const & m1, IMP::core::XYZs const & m2, double const t) -> double"""
600 return _IMP_bayesianem.get_rmsd_excluding_higher_than(m1, m2, t)
602 def get_percentage_closer_than(m1, m2, t):
603 r"""get_percentage_closer_than(IMP::core::XYZs const & m1, IMP::core::XYZs const & m2, double const t) -> double"""
604 return _IMP_bayesianem.get_percentage_closer_than(m1, m2, t)
607 r"""get_transformation_aligning_first_to_second(Selection s1, Selection s2) -> Transformation3D"""
608 return _IMP_bayesianem.get_transformation_aligning_first_to_second(s1, s2)
610 def get_rmsd_of_best_population(*args):
612 get_rmsd_of_best_population(IMP::core::XYZs const & m1, IMP::core::XYZs const & m2, double const percentage) -> double
613 get_rmsd_of_best_population(Selection s1, Selection s2, double const percentage) -> double
614 get_rmsd_of_best_population(IMP::algebra::Vector3Ds const & m1, IMP::algebra::Vector3Ds const & m2, double const percentage) -> double
616 return _IMP_bayesianem.get_rmsd_of_best_population(*args)
618 def gem_score_cc(model_ps, density_ps):
619 r"""gem_score_cc(IMP::Particles model_ps, IMP::Particles density_ps) -> double"""
620 return _IMP_bayesianem.gem_score_cc(model_ps, density_ps)
623 r"""get_grid(DensityMap _in) -> DenseDoubleGrid3D"""
624 return _IMP_bayesianem.get_grid(_in)
626 def get_masked_map(gmm, weights, densitymap, threshold):
627 r"""get_masked_map(IMP::algebra::Gaussian3Ds const & gmm, IMP::Floats const & weights, DensityMap densitymap, double threshold) -> DensityMap"""
628 return _IMP_bayesianem.get_masked_map(gmm, weights, densitymap, threshold)
630 def get_sub_map(dm, sub_gmm, gmm):
631 r"""get_sub_map(DensityMap dm, DensityMap sub_gmm, DensityMap gmm) -> DensityMap"""
632 return _IMP_bayesianem.get_sub_map(dm, sub_gmm, gmm)
634 def get_overlap_fast(gmm, weights, dm, factor=2.5):
635 r"""get_overlap_fast(IMP::algebra::Gaussian3Ds const & gmm, IMP::Floats const & weights, DensityMap dm, double factor=2.5) -> double"""
636 return _IMP_bayesianem.get_overlap_fast(gmm, weights, dm, factor)
638 def get_overlap_binned(gmm, weights, dm, factor=2.5, Nbin=100):
639 r"""get_overlap_binned(IMP::algebra::Gaussian3Ds const & gmm, IMP::Floats const & weights, DensityMap dm, double factor=2.5, int Nbin=100) -> IMP::algebra::Vector3Ds"""
640 return _IMP_bayesianem.get_overlap_binned(gmm, weights, dm, factor, Nbin)
642 def get_rotation_matrix(x, y):
643 r"""get_rotation_matrix(Vector3D x, Vector3D y) -> Rotation3D"""
644 return _IMP_bayesianem.get_rotation_matrix(x, y)
647 r"""sgn(double v) -> float"""
648 return _IMP_bayesianem.sgn(v)
650 def NormalizePCA(pca, ps):
651 r"""NormalizePCA(PrincipalComponentAnalysis3D pca, IMP::Particles const & ps) -> PrincipalComponentAnalysis3D"""
652 return _IMP_bayesianem.NormalizePCA(pca, ps)
654 def PCAalign(pca1, pca2):
655 r"""PCAalign(PrincipalComponentAnalysis3D pca1, PrincipalComponentAnalysis3D pca2) -> IMP::algebra::Transformation3Ds"""
656 return _IMP_bayesianem.PCAalign(pca1, pca2)
659 r"""get_module_version() -> std::string const"""
660 return _IMP_bayesianem.get_module_version()
663 r"""get_example_path(std::string fname) -> std::string"""
664 return _IMP_bayesianem.get_example_path(fname)
667 r"""get_data_path(std::string fname) -> std::string"""
668 return _IMP_bayesianem.get_data_path(fname)
670 from .
import _version_check
Various classes to hold sets of particles.
Make CGAL functionality available to IMP.
std::string get_data_path(std::string file_name)
Return the full path to one of this module's data files.
Composable functors to implement scores via compile-time composition.
Code to compute statistical measures.
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.
Basic utilities for handling cryo-electron microscopy 3D density maps.
std::ostream & show(Hierarchy h, std::ostream &out=std::cout)
Print the hierarchy using a given decorator to display each node.
DensityGrid get_grid(IMP::em::DensityMap *in)
Return a dense grid containing the voxels of the passed density map.
Basic functionality that is expected to be used by a wide variety of IMP users.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
Output IMP model data in various file formats.
Functionality for loading, creating, manipulating and scoring atomic structures.
ParticleIndexes get_indexes(const ParticlesTemp &ps)
Get the indexes from a list of particles.
Support for small angle X-ray scattering (SAXS) data.
std::string get_module_version()
Return the version of this module, as a string.
Inferential scoring building on methods developed as part of the Inferential Structure Determination ...
A restraint is a term in an IMP ScoringFunction.