11 from __future__
import print_function, division, absolute_import
17 from sys
import version_info
18 if version_info >= (2, 6, 0):
19 def swig_import_helper():
20 from os.path
import dirname
24 fp, pathname, description = imp.find_module(
'_IMP_em', [dirname(__file__)])
30 _mod = imp.load_module(
'_IMP_em', fp, pathname, description)
34 _IMP_em = swig_import_helper()
35 del swig_import_helper
40 _swig_property = property
45 def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
46 if (name ==
"thisown"):
47 return self.this.own(value)
49 if type(value).__name__ ==
'SwigPyObject':
50 self.__dict__[name] = value
52 method = class_type.__swig_setmethods__.get(name,
None)
54 return method(self, value)
56 object.__setattr__(self, name, value)
58 raise AttributeError(
"You cannot add attributes to %s" % self)
61 def _swig_setattr(self, class_type, name, value):
62 return _swig_setattr_nondynamic(self, class_type, name, value, 0)
65 def _swig_getattr_nondynamic(self, class_type, name, static=1):
66 if (name ==
"thisown"):
67 return self.this.own()
68 method = class_type.__swig_getmethods__.get(name,
None)
72 return object.__getattr__(self, name)
74 raise AttributeError(name)
76 def _swig_getattr(self, class_type, name):
77 return _swig_getattr_nondynamic(self, class_type, name, 0)
82 strthis =
"proxy of " + self.this.__repr__()
85 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
90 except AttributeError:
97 def _swig_setattr_nondynamic_method(set):
98 def set_attr(self, name, value):
99 if (name ==
"thisown"):
100 return self.this.own(value)
101 if hasattr(self, name)
or (name ==
"this"):
102 set(self, name, value)
104 raise AttributeError(
"You cannot add attributes to %s" % self)
110 weakref_proxy = weakref.proxy
112 weakref_proxy =
lambda x: x
115 class IMP_EM_SwigPyIterator(object):
116 """Proxy of C++ swig::IMP_EM_SwigPyIterator class"""
117 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
119 def __init__(self, *args, **kwargs):
120 raise AttributeError(
"No constructor defined - class is abstract")
121 __repr__ = _swig_repr
122 __swig_destroy__ = _IMP_em.delete_IMP_EM_SwigPyIterator
123 __del__ =
lambda self:
None
126 """value(IMP_EM_SwigPyIterator self) -> PyObject *"""
127 return _IMP_em.IMP_EM_SwigPyIterator_value(self)
132 incr(IMP_EM_SwigPyIterator self, size_t n=1) -> IMP_EM_SwigPyIterator
133 incr(IMP_EM_SwigPyIterator self) -> IMP_EM_SwigPyIterator
135 return _IMP_em.IMP_EM_SwigPyIterator_incr(self, n)
140 decr(IMP_EM_SwigPyIterator self, size_t n=1) -> IMP_EM_SwigPyIterator
141 decr(IMP_EM_SwigPyIterator self) -> IMP_EM_SwigPyIterator
143 return _IMP_em.IMP_EM_SwigPyIterator_decr(self, n)
146 def distance(self, x):
147 """distance(IMP_EM_SwigPyIterator self, IMP_EM_SwigPyIterator x) -> ptrdiff_t"""
148 return _IMP_em.IMP_EM_SwigPyIterator_distance(self, x)
152 """equal(IMP_EM_SwigPyIterator self, IMP_EM_SwigPyIterator x) -> bool"""
153 return _IMP_em.IMP_EM_SwigPyIterator_equal(self, x)
157 """copy(IMP_EM_SwigPyIterator self) -> IMP_EM_SwigPyIterator"""
158 return _IMP_em.IMP_EM_SwigPyIterator_copy(self)
162 """next(IMP_EM_SwigPyIterator self) -> PyObject *"""
163 return _IMP_em.IMP_EM_SwigPyIterator_next(self)
167 """__next__(IMP_EM_SwigPyIterator self) -> PyObject *"""
168 return _IMP_em.IMP_EM_SwigPyIterator___next__(self)
172 """previous(IMP_EM_SwigPyIterator self) -> PyObject *"""
173 return _IMP_em.IMP_EM_SwigPyIterator_previous(self)
176 def advance(self, n):
177 """advance(IMP_EM_SwigPyIterator self, ptrdiff_t n) -> IMP_EM_SwigPyIterator"""
178 return _IMP_em.IMP_EM_SwigPyIterator_advance(self, n)
182 """__eq__(IMP_EM_SwigPyIterator self, IMP_EM_SwigPyIterator x) -> bool"""
183 return _IMP_em.IMP_EM_SwigPyIterator___eq__(self, x)
187 """__ne__(IMP_EM_SwigPyIterator self, IMP_EM_SwigPyIterator x) -> bool"""
188 return _IMP_em.IMP_EM_SwigPyIterator___ne__(self, x)
191 def __iadd__(self, n):
192 """__iadd__(IMP_EM_SwigPyIterator self, ptrdiff_t n) -> IMP_EM_SwigPyIterator"""
193 return _IMP_em.IMP_EM_SwigPyIterator___iadd__(self, n)
196 def __isub__(self, n):
197 """__isub__(IMP_EM_SwigPyIterator self, ptrdiff_t n) -> IMP_EM_SwigPyIterator"""
198 return _IMP_em.IMP_EM_SwigPyIterator___isub__(self, n)
201 def __add__(self, n):
202 """__add__(IMP_EM_SwigPyIterator self, ptrdiff_t n) -> IMP_EM_SwigPyIterator"""
203 return _IMP_em.IMP_EM_SwigPyIterator___add__(self, n)
206 def __sub__(self, *args):
208 __sub__(IMP_EM_SwigPyIterator self, ptrdiff_t n) -> IMP_EM_SwigPyIterator
209 __sub__(IMP_EM_SwigPyIterator self, IMP_EM_SwigPyIterator x) -> ptrdiff_t
211 return _IMP_em.IMP_EM_SwigPyIterator___sub__(self, *args)
215 IMP_EM_SwigPyIterator_swigregister = _IMP_em.IMP_EM_SwigPyIterator_swigregister
216 IMP_EM_SwigPyIterator_swigregister(IMP_EM_SwigPyIterator)
225 _IMP_em.IMP_DEBUG_swigconstant(_IMP_em)
226 IMP_DEBUG = _IMP_em.IMP_DEBUG
228 _IMP_em.IMP_RELEASE_swigconstant(_IMP_em)
229 IMP_RELEASE = _IMP_em.IMP_RELEASE
231 _IMP_em.IMP_SILENT_swigconstant(_IMP_em)
232 IMP_SILENT = _IMP_em.IMP_SILENT
234 _IMP_em.IMP_PROGRESS_swigconstant(_IMP_em)
235 IMP_PROGRESS = _IMP_em.IMP_PROGRESS
237 _IMP_em.IMP_TERSE_swigconstant(_IMP_em)
238 IMP_TERSE = _IMP_em.IMP_TERSE
240 _IMP_em.IMP_VERBOSE_swigconstant(_IMP_em)
241 IMP_VERBOSE = _IMP_em.IMP_VERBOSE
243 _IMP_em.IMP_MEMORY_swigconstant(_IMP_em)
244 IMP_MEMORY = _IMP_em.IMP_MEMORY
246 _IMP_em.IMP_NONE_swigconstant(_IMP_em)
247 IMP_NONE = _IMP_em.IMP_NONE
249 _IMP_em.IMP_USAGE_swigconstant(_IMP_em)
250 IMP_USAGE = _IMP_em.IMP_USAGE
252 _IMP_em.IMP_INTERNAL_swigconstant(_IMP_em)
253 IMP_INTERNAL = _IMP_em.IMP_INTERNAL
255 _IMP_em.IMP_KERNEL_HAS_LOG4CXX_swigconstant(_IMP_em)
256 IMP_KERNEL_HAS_LOG4CXX = _IMP_em.IMP_KERNEL_HAS_LOG4CXX
258 _IMP_em.IMP_COMPILER_HAS_DEBUG_VECTOR_swigconstant(_IMP_em)
259 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_em.IMP_COMPILER_HAS_DEBUG_VECTOR
261 _IMP_em.IMP_COMPILER_HAS_RANDOM_SHUFFLE_swigconstant(_IMP_em)
262 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_em.IMP_COMPILER_HAS_RANDOM_SHUFFLE
264 _IMP_em.IMP_COMPILER_HAS_THREE_WAY_swigconstant(_IMP_em)
265 IMP_COMPILER_HAS_THREE_WAY = _IMP_em.IMP_COMPILER_HAS_THREE_WAY
267 _IMP_em.IMP_KERNEL_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
268 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_em.IMP_KERNEL_HAS_BOOST_RANDOM
270 _IMP_em.IMP_KERNEL_HAS_NUMPY_swigconstant(_IMP_em)
271 IMP_KERNEL_HAS_NUMPY = _IMP_em.IMP_KERNEL_HAS_NUMPY
273 _IMP_em.IMP_KERNEL_HAS_GPERFTOOLS_swigconstant(_IMP_em)
274 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_em.IMP_KERNEL_HAS_GPERFTOOLS
276 _IMP_em.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER_swigconstant(_IMP_em)
277 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_em.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
279 _IMP_em.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER_swigconstant(_IMP_em)
280 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_em.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
282 _IMP_em.IMPKERNEL_SHOW_WARNINGS_swigconstant(_IMP_em)
283 IMPKERNEL_SHOW_WARNINGS = _IMP_em.IMPKERNEL_SHOW_WARNINGS
286 class _DirectorObjects(object):
287 """@internal Simple class to keep references to director objects
288 to prevent premature deletion."""
291 def register(self, obj):
292 """Take a reference to a director object; will only work for
293 refcounted C++ classes"""
294 if hasattr(obj,
'get_ref_count'):
295 self._objects.append(obj)
297 """Only drop our reference and allow cleanup by Python if no other
298 Python references exist (we hold 3 references: one in self._objects,
299 one in x, and one in the argument list for getrefcount) *and* no
300 other C++ references exist (the Python object always holds one)"""
301 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
302 or x.get_ref_count() > 1]
306 def get_object_count(self):
307 """Get number of director objects (useful for testing only)"""
308 return len(self._objects)
309 _director_objects = _DirectorObjects()
311 class _ostream(object):
312 """Proxy of C++ std::ostream class"""
313 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
315 def __init__(self, *args, **kwargs):
316 raise AttributeError(
"No constructor defined")
317 __repr__ = _swig_repr
319 def write(self, osa_buf):
320 """write(_ostream self, char const * osa_buf)"""
321 return _IMP_em._ostream_write(self, osa_buf)
323 _ostream_swigregister = _IMP_em._ostream_swigregister
324 _ostream_swigregister(_ostream)
327 _IMP_em.IMP_HAS_NOEXCEPT_swigconstant(_IMP_em)
328 IMP_HAS_NOEXCEPT = _IMP_em.IMP_HAS_NOEXCEPT
330 _IMP_em.IMP_C_OPEN_BINARY_swigconstant(_IMP_em)
331 IMP_C_OPEN_BINARY = _IMP_em.IMP_C_OPEN_BINARY
334 _IMP_em.IMP_CGAL_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
335 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_CGAL_HAS_BOOST_FILESYSTEM
337 _IMP_em.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
338 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
340 _IMP_em.IMP_CGAL_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
341 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_em.IMP_CGAL_HAS_BOOST_RANDOM
343 _IMP_em.IMP_CGAL_HAS_BOOST_SERIALIZATION_swigconstant(_IMP_em)
344 IMP_CGAL_HAS_BOOST_SERIALIZATION = _IMP_em.IMP_CGAL_HAS_BOOST_SERIALIZATION
346 _IMP_em.IMP_CGAL_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
347 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_em.IMP_CGAL_HAS_BOOST_SYSTEM
349 _IMP_em.IMP_CGAL_HAS_NUMPY_swigconstant(_IMP_em)
350 IMP_CGAL_HAS_NUMPY = _IMP_em.IMP_CGAL_HAS_NUMPY
352 _IMP_em.IMPCGAL_SHOW_WARNINGS_swigconstant(_IMP_em)
353 IMPCGAL_SHOW_WARNINGS = _IMP_em.IMPCGAL_SHOW_WARNINGS
356 _IMP_em.IMP_ALGEBRA_HAS_IMP_CGAL_swigconstant(_IMP_em)
357 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_em.IMP_ALGEBRA_HAS_IMP_CGAL
359 _IMP_em.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
360 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
362 _IMP_em.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
363 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
365 _IMP_em.IMP_ALGEBRA_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
366 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_em.IMP_ALGEBRA_HAS_BOOST_RANDOM
368 _IMP_em.IMP_ALGEBRA_HAS_BOOST_SERIALIZATION_swigconstant(_IMP_em)
369 IMP_ALGEBRA_HAS_BOOST_SERIALIZATION = _IMP_em.IMP_ALGEBRA_HAS_BOOST_SERIALIZATION
371 _IMP_em.IMP_ALGEBRA_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
372 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_em.IMP_ALGEBRA_HAS_BOOST_SYSTEM
374 _IMP_em.IMP_ALGEBRA_HAS_CGAL_swigconstant(_IMP_em)
375 IMP_ALGEBRA_HAS_CGAL = _IMP_em.IMP_ALGEBRA_HAS_CGAL
377 _IMP_em.IMP_ALGEBRA_HAS_NUMPY_swigconstant(_IMP_em)
378 IMP_ALGEBRA_HAS_NUMPY = _IMP_em.IMP_ALGEBRA_HAS_NUMPY
380 _IMP_em.IMP_ALGEBRA_HAS_ANN_swigconstant(_IMP_em)
381 IMP_ALGEBRA_HAS_ANN = _IMP_em.IMP_ALGEBRA_HAS_ANN
383 _IMP_em.IMPALGEBRA_SHOW_WARNINGS_swigconstant(_IMP_em)
384 IMPALGEBRA_SHOW_WARNINGS = _IMP_em.IMPALGEBRA_SHOW_WARNINGS
387 _IMP_em.IMP_DISPLAY_HAS_IMP_CGAL_swigconstant(_IMP_em)
388 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_em.IMP_DISPLAY_HAS_IMP_CGAL
390 _IMP_em.IMP_DISPLAY_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
391 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
393 _IMP_em.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
394 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
396 _IMP_em.IMP_DISPLAY_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
397 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_em.IMP_DISPLAY_HAS_BOOST_RANDOM
399 _IMP_em.IMP_DISPLAY_HAS_BOOST_SERIALIZATION_swigconstant(_IMP_em)
400 IMP_DISPLAY_HAS_BOOST_SERIALIZATION = _IMP_em.IMP_DISPLAY_HAS_BOOST_SERIALIZATION
402 _IMP_em.IMP_DISPLAY_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
403 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_em.IMP_DISPLAY_HAS_BOOST_SYSTEM
405 _IMP_em.IMP_DISPLAY_HAS_CGAL_swigconstant(_IMP_em)
406 IMP_DISPLAY_HAS_CGAL = _IMP_em.IMP_DISPLAY_HAS_CGAL
408 _IMP_em.IMP_DISPLAY_HAS_NUMPY_swigconstant(_IMP_em)
409 IMP_DISPLAY_HAS_NUMPY = _IMP_em.IMP_DISPLAY_HAS_NUMPY
411 _IMP_em.IMPDISPLAY_SHOW_WARNINGS_swigconstant(_IMP_em)
412 IMPDISPLAY_SHOW_WARNINGS = _IMP_em.IMPDISPLAY_SHOW_WARNINGS
415 _IMP_em.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL_swigconstant(_IMP_em)
416 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_em.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
418 _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
419 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
421 _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
422 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
424 _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
425 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
427 _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_SERIALIZATION_swigconstant(_IMP_em)
428 IMP_SCORE_FUNCTOR_HAS_BOOST_SERIALIZATION = _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_SERIALIZATION
430 _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
431 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
433 _IMP_em.IMP_SCORE_FUNCTOR_HAS_CGAL_swigconstant(_IMP_em)
434 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_em.IMP_SCORE_FUNCTOR_HAS_CGAL
436 _IMP_em.IMP_SCORE_FUNCTOR_HAS_HDF5_swigconstant(_IMP_em)
437 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_em.IMP_SCORE_FUNCTOR_HAS_HDF5
439 _IMP_em.IMP_SCORE_FUNCTOR_HAS_NUMPY_swigconstant(_IMP_em)
440 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_em.IMP_SCORE_FUNCTOR_HAS_NUMPY
442 _IMP_em.IMPSCOREFUNCTOR_SHOW_WARNINGS_swigconstant(_IMP_em)
443 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_em.IMPSCOREFUNCTOR_SHOW_WARNINGS
446 _IMP_em.IMP_STATISTICS_HAS_IMP_CGAL_swigconstant(_IMP_em)
447 IMP_STATISTICS_HAS_IMP_CGAL = _IMP_em.IMP_STATISTICS_HAS_IMP_CGAL
449 _IMP_em.IMP_STATISTICS_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
450 IMP_STATISTICS_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_STATISTICS_HAS_BOOST_FILESYSTEM
452 _IMP_em.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
453 IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS
455 _IMP_em.IMP_STATISTICS_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
456 IMP_STATISTICS_HAS_BOOST_RANDOM = _IMP_em.IMP_STATISTICS_HAS_BOOST_RANDOM
458 _IMP_em.IMP_STATISTICS_HAS_BOOST_SERIALIZATION_swigconstant(_IMP_em)
459 IMP_STATISTICS_HAS_BOOST_SERIALIZATION = _IMP_em.IMP_STATISTICS_HAS_BOOST_SERIALIZATION
461 _IMP_em.IMP_STATISTICS_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
462 IMP_STATISTICS_HAS_BOOST_SYSTEM = _IMP_em.IMP_STATISTICS_HAS_BOOST_SYSTEM
464 _IMP_em.IMP_STATISTICS_HAS_CGAL_swigconstant(_IMP_em)
465 IMP_STATISTICS_HAS_CGAL = _IMP_em.IMP_STATISTICS_HAS_CGAL
467 _IMP_em.IMP_STATISTICS_HAS_NUMPY_swigconstant(_IMP_em)
468 IMP_STATISTICS_HAS_NUMPY = _IMP_em.IMP_STATISTICS_HAS_NUMPY
470 _IMP_em.IMPSTATISTICS_SHOW_WARNINGS_swigconstant(_IMP_em)
471 IMPSTATISTICS_SHOW_WARNINGS = _IMP_em.IMPSTATISTICS_SHOW_WARNINGS
474 _IMP_em.IMP_CORE_HAS_IMP_CGAL_swigconstant(_IMP_em)
475 IMP_CORE_HAS_IMP_CGAL = _IMP_em.IMP_CORE_HAS_IMP_CGAL
477 _IMP_em.IMP_CORE_HAS_IMP_KERNEL_swigconstant(_IMP_em)
478 IMP_CORE_HAS_IMP_KERNEL = _IMP_em.IMP_CORE_HAS_IMP_KERNEL
480 _IMP_em.IMP_CORE_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
481 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_CORE_HAS_BOOST_FILESYSTEM
483 _IMP_em.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
484 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
486 _IMP_em.IMP_CORE_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
487 IMP_CORE_HAS_BOOST_RANDOM = _IMP_em.IMP_CORE_HAS_BOOST_RANDOM
489 _IMP_em.IMP_CORE_HAS_BOOST_SERIALIZATION_swigconstant(_IMP_em)
490 IMP_CORE_HAS_BOOST_SERIALIZATION = _IMP_em.IMP_CORE_HAS_BOOST_SERIALIZATION
492 _IMP_em.IMP_CORE_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
493 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_em.IMP_CORE_HAS_BOOST_SYSTEM
495 _IMP_em.IMP_CORE_HAS_CGAL_swigconstant(_IMP_em)
496 IMP_CORE_HAS_CGAL = _IMP_em.IMP_CORE_HAS_CGAL
498 _IMP_em.IMP_CORE_HAS_HDF5_swigconstant(_IMP_em)
499 IMP_CORE_HAS_HDF5 = _IMP_em.IMP_CORE_HAS_HDF5
501 _IMP_em.IMP_CORE_HAS_NUMPY_swigconstant(_IMP_em)
502 IMP_CORE_HAS_NUMPY = _IMP_em.IMP_CORE_HAS_NUMPY
504 _IMP_em.IMPCORE_SHOW_WARNINGS_swigconstant(_IMP_em)
505 IMPCORE_SHOW_WARNINGS = _IMP_em.IMPCORE_SHOW_WARNINGS
508 _IMP_em.IMP_CONTAINER_HAS_IMP_ALGEBRA_swigconstant(_IMP_em)
509 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_em.IMP_CONTAINER_HAS_IMP_ALGEBRA
511 _IMP_em.IMP_CONTAINER_HAS_IMP_CGAL_swigconstant(_IMP_em)
512 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_em.IMP_CONTAINER_HAS_IMP_CGAL
514 _IMP_em.IMP_CONTAINER_HAS_IMP_DISPLAY_swigconstant(_IMP_em)
515 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_em.IMP_CONTAINER_HAS_IMP_DISPLAY
517 _IMP_em.IMP_CONTAINER_HAS_IMP_KERNEL_swigconstant(_IMP_em)
518 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_em.IMP_CONTAINER_HAS_IMP_KERNEL
520 _IMP_em.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_em)
521 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_em.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
523 _IMP_em.IMP_CONTAINER_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
524 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
526 _IMP_em.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
527 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
529 _IMP_em.IMP_CONTAINER_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
530 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_em.IMP_CONTAINER_HAS_BOOST_RANDOM
532 _IMP_em.IMP_CONTAINER_HAS_BOOST_SERIALIZATION_swigconstant(_IMP_em)
533 IMP_CONTAINER_HAS_BOOST_SERIALIZATION = _IMP_em.IMP_CONTAINER_HAS_BOOST_SERIALIZATION
535 _IMP_em.IMP_CONTAINER_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
536 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_em.IMP_CONTAINER_HAS_BOOST_SYSTEM
538 _IMP_em.IMP_CONTAINER_HAS_CGAL_swigconstant(_IMP_em)
539 IMP_CONTAINER_HAS_CGAL = _IMP_em.IMP_CONTAINER_HAS_CGAL
541 _IMP_em.IMP_CONTAINER_HAS_HDF5_swigconstant(_IMP_em)
542 IMP_CONTAINER_HAS_HDF5 = _IMP_em.IMP_CONTAINER_HAS_HDF5
544 _IMP_em.IMP_CONTAINER_HAS_NUMPY_swigconstant(_IMP_em)
545 IMP_CONTAINER_HAS_NUMPY = _IMP_em.IMP_CONTAINER_HAS_NUMPY
547 _IMP_em.IMP_CONTAINER_HAS_PYTHON_IHM_swigconstant(_IMP_em)
548 IMP_CONTAINER_HAS_PYTHON_IHM = _IMP_em.IMP_CONTAINER_HAS_PYTHON_IHM
550 _IMP_em.IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP_swigconstant(_IMP_em)
551 IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP = _IMP_em.IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP
553 _IMP_em.IMP_CONTAINER_HAS_ROBIN_MAP_swigconstant(_IMP_em)
554 IMP_CONTAINER_HAS_ROBIN_MAP = _IMP_em.IMP_CONTAINER_HAS_ROBIN_MAP
556 _IMP_em.IMPCONTAINER_SHOW_WARNINGS_swigconstant(_IMP_em)
557 IMPCONTAINER_SHOW_WARNINGS = _IMP_em.IMPCONTAINER_SHOW_WARNINGS
560 _IMP_em.IMP_ATOM_HAS_IMP_CGAL_swigconstant(_IMP_em)
561 IMP_ATOM_HAS_IMP_CGAL = _IMP_em.IMP_ATOM_HAS_IMP_CGAL
563 _IMP_em.IMP_ATOM_HAS_IMP_KERNEL_swigconstant(_IMP_em)
564 IMP_ATOM_HAS_IMP_KERNEL = _IMP_em.IMP_ATOM_HAS_IMP_KERNEL
566 _IMP_em.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_em)
567 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_em.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
569 _IMP_em.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
570 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
572 _IMP_em.IMP_ATOM_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
573 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_em.IMP_ATOM_HAS_BOOST_RANDOM
575 _IMP_em.IMP_ATOM_HAS_BOOST_REGEX_swigconstant(_IMP_em)
576 IMP_ATOM_HAS_BOOST_REGEX = _IMP_em.IMP_ATOM_HAS_BOOST_REGEX
578 _IMP_em.IMP_ATOM_HAS_BOOST_SERIALIZATION_swigconstant(_IMP_em)
579 IMP_ATOM_HAS_BOOST_SERIALIZATION = _IMP_em.IMP_ATOM_HAS_BOOST_SERIALIZATION
581 _IMP_em.IMP_ATOM_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
582 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_em.IMP_ATOM_HAS_BOOST_SYSTEM
584 _IMP_em.IMP_ATOM_HAS_CGAL_swigconstant(_IMP_em)
585 IMP_ATOM_HAS_CGAL = _IMP_em.IMP_ATOM_HAS_CGAL
587 _IMP_em.IMP_ATOM_HAS_HDF5_swigconstant(_IMP_em)
588 IMP_ATOM_HAS_HDF5 = _IMP_em.IMP_ATOM_HAS_HDF5
590 _IMP_em.IMP_ATOM_HAS_NUMPY_swigconstant(_IMP_em)
591 IMP_ATOM_HAS_NUMPY = _IMP_em.IMP_ATOM_HAS_NUMPY
593 _IMP_em.IMP_ATOM_HAS_PYTHON_IHM_swigconstant(_IMP_em)
594 IMP_ATOM_HAS_PYTHON_IHM = _IMP_em.IMP_ATOM_HAS_PYTHON_IHM
596 _IMP_em.IMPATOM_SHOW_WARNINGS_swigconstant(_IMP_em)
597 IMPATOM_SHOW_WARNINGS = _IMP_em.IMPATOM_SHOW_WARNINGS
599 _IMP_em.IMP_ATOM_TYPE_INDEX_swigconstant(_IMP_em)
600 IMP_ATOM_TYPE_INDEX = _IMP_em.IMP_ATOM_TYPE_INDEX
602 _IMP_em.IMP_RESIDUE_TYPE_INDEX_swigconstant(_IMP_em)
603 IMP_RESIDUE_TYPE_INDEX = _IMP_em.IMP_RESIDUE_TYPE_INDEX
605 _IMP_em.IMP_HIERARCHY_TYPE_INDEX_swigconstant(_IMP_em)
606 IMP_HIERARCHY_TYPE_INDEX = _IMP_em.IMP_HIERARCHY_TYPE_INDEX
608 _IMP_em.IMP_CHAIN_TYPE_INDEX_swigconstant(_IMP_em)
609 IMP_CHAIN_TYPE_INDEX = _IMP_em.IMP_CHAIN_TYPE_INDEX
612 _IMP_em.IMP_EM_HAS_IMP_CGAL_swigconstant(_IMP_em)
613 IMP_EM_HAS_IMP_CGAL = _IMP_em.IMP_EM_HAS_IMP_CGAL
615 _IMP_em.IMP_EM_HAS_IMP_CONTAINER_swigconstant(_IMP_em)
616 IMP_EM_HAS_IMP_CONTAINER = _IMP_em.IMP_EM_HAS_IMP_CONTAINER
618 _IMP_em.IMP_EM_HAS_IMP_DISPLAY_swigconstant(_IMP_em)
619 IMP_EM_HAS_IMP_DISPLAY = _IMP_em.IMP_EM_HAS_IMP_DISPLAY
621 _IMP_em.IMP_EM_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_em)
622 IMP_EM_HAS_IMP_SCORE_FUNCTOR = _IMP_em.IMP_EM_HAS_IMP_SCORE_FUNCTOR
624 _IMP_em.IMP_EM_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
625 IMP_EM_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_EM_HAS_BOOST_FILESYSTEM
627 _IMP_em.IMP_EM_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
628 IMP_EM_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_EM_HAS_BOOST_PROGRAMOPTIONS
630 _IMP_em.IMP_EM_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
631 IMP_EM_HAS_BOOST_RANDOM = _IMP_em.IMP_EM_HAS_BOOST_RANDOM
633 _IMP_em.IMP_EM_HAS_BOOST_REGEX_swigconstant(_IMP_em)
634 IMP_EM_HAS_BOOST_REGEX = _IMP_em.IMP_EM_HAS_BOOST_REGEX
636 _IMP_em.IMP_EM_HAS_BOOST_SERIALIZATION_swigconstant(_IMP_em)
637 IMP_EM_HAS_BOOST_SERIALIZATION = _IMP_em.IMP_EM_HAS_BOOST_SERIALIZATION
639 _IMP_em.IMP_EM_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
640 IMP_EM_HAS_BOOST_SYSTEM = _IMP_em.IMP_EM_HAS_BOOST_SYSTEM
642 _IMP_em.IMP_EM_HAS_CGAL_swigconstant(_IMP_em)
643 IMP_EM_HAS_CGAL = _IMP_em.IMP_EM_HAS_CGAL
645 _IMP_em.IMP_EM_HAS_HDF5_swigconstant(_IMP_em)
646 IMP_EM_HAS_HDF5 = _IMP_em.IMP_EM_HAS_HDF5
648 _IMP_em.IMP_EM_HAS_NUMPY_swigconstant(_IMP_em)
649 IMP_EM_HAS_NUMPY = _IMP_em.IMP_EM_HAS_NUMPY
651 _IMP_em.IMP_EM_HAS_PYTHON_IHM_swigconstant(_IMP_em)
652 IMP_EM_HAS_PYTHON_IHM = _IMP_em.IMP_EM_HAS_PYTHON_IHM
654 _IMP_em.IMPEM_SHOW_WARNINGS_swigconstant(_IMP_em)
655 IMPEM_SHOW_WARNINGS = _IMP_em.IMPEM_SHOW_WARNINGS
657 _object_types.append(
"DensityMap")
660 def _object_cast_to_DensityMap(o):
661 """_object_cast_to_DensityMap(Object o) -> DensityMap"""
662 return _IMP_em._object_cast_to_DensityMap(o)
664 _object_types.append(
"SampledDensityMap")
667 def _object_cast_to_SampledDensityMap(o):
668 """_object_cast_to_SampledDensityMap(Object o) -> SampledDensityMap"""
669 return _IMP_em._object_cast_to_SampledDensityMap(o)
671 _object_types.append(
"SurfaceShellDensityMap")
674 def _object_cast_to_SurfaceShellDensityMap(o):
675 """_object_cast_to_SurfaceShellDensityMap(Object o) -> SurfaceShellDensityMap"""
676 return _IMP_em._object_cast_to_SurfaceShellDensityMap(o)
678 _object_types.append(
"FitRestraint")
681 def _object_cast_to_FitRestraint(o):
682 """_object_cast_to_FitRestraint(Object o) -> FitRestraint"""
683 return _IMP_em._object_cast_to_FitRestraint(o)
685 _object_types.append(
"FitRestraintBayesEM3D")
688 def _object_cast_to_FitRestraintBayesEM3D(o):
689 """_object_cast_to_FitRestraintBayesEM3D(Object o) -> FitRestraintBayesEM3D"""
690 return _IMP_em._object_cast_to_FitRestraintBayesEM3D(o)
692 _object_types.append(
"PCAFitRestraint")
695 def _object_cast_to_PCAFitRestraint(o):
696 """_object_cast_to_PCAFitRestraint(Object o) -> PCAFitRestraint"""
697 return _IMP_em._object_cast_to_PCAFitRestraint(o)
699 _object_types.append(
"EnvelopePenetrationRestraint")
702 def _object_cast_to_EnvelopePenetrationRestraint(o):
703 """_object_cast_to_EnvelopePenetrationRestraint(Object o) -> EnvelopePenetrationRestraint"""
704 return _IMP_em._object_cast_to_EnvelopePenetrationRestraint(o)
706 _object_types.append(
"EnvelopeFitRestraint")
709 def _object_cast_to_EnvelopeFitRestraint(o):
710 """_object_cast_to_EnvelopeFitRestraint(Object o) -> EnvelopeFitRestraint"""
711 return _IMP_em._object_cast_to_EnvelopeFitRestraint(o)
713 KernelParametersList=list
714 _plural_types.append(
"KernelParametersList")
715 _value_types.append(
"KernelParameters")
718 _object_types.append(
"HighDensityEmbedding")
721 def _object_cast_to_HighDensityEmbedding(o):
722 """_object_cast_to_HighDensityEmbedding(Object o) -> HighDensityEmbedding"""
723 return _IMP_em._object_cast_to_HighDensityEmbedding(o)
725 _object_types.append(
"MapReaderWriter")
728 def _object_cast_to_MapReaderWriter(o):
729 """_object_cast_to_MapReaderWriter(Object o) -> MapReaderWriter"""
730 return _IMP_em._object_cast_to_MapReaderWriter(o)
732 _object_types.append(
"MRCReaderWriter")
735 def _object_cast_to_MRCReaderWriter(o):
736 """_object_cast_to_MRCReaderWriter(Object o) -> MRCReaderWriter"""
737 return _IMP_em._object_cast_to_MRCReaderWriter(o)
739 _object_types.append(
"SpiderMapReaderWriter")
742 def _object_cast_to_SpiderMapReaderWriter(o):
743 """_object_cast_to_SpiderMapReaderWriter(Object o) -> SpiderMapReaderWriter"""
744 return _IMP_em._object_cast_to_SpiderMapReaderWriter(o)
746 _object_types.append(
"EMReaderWriter")
749 def _object_cast_to_EMReaderWriter(o):
750 """_object_cast_to_EMReaderWriter(Object o) -> EMReaderWriter"""
751 return _IMP_em._object_cast_to_EMReaderWriter(o)
753 _object_types.append(
"XplorReaderWriter")
756 def _object_cast_to_XplorReaderWriter(o):
757 """_object_cast_to_XplorReaderWriter(Object o) -> XplorReaderWriter"""
758 return _IMP_em._object_cast_to_XplorReaderWriter(o)
760 _object_types.append(
"CoarseCCatIntervals")
763 def _object_cast_to_CoarseCCatIntervals(o):
764 """_object_cast_to_CoarseCCatIntervals(Object o) -> CoarseCCatIntervals"""
765 return _IMP_em._object_cast_to_CoarseCCatIntervals(o)
767 FittingSolutionsList=list
768 _plural_types.append(
"FittingSolutionsList")
769 _value_types.append(
"FittingSolutions")
772 _object_types.append(
"MapDistanceTransform")
775 def _object_cast_to_MapDistanceTransform(o):
776 """_object_cast_to_MapDistanceTransform(Object o) -> MapDistanceTransform"""
777 return _IMP_em._object_cast_to_MapDistanceTransform(o)
779 _object_types.append(
"EnvelopeScore")
782 def _object_cast_to_EnvelopeScore(o):
783 """_object_cast_to_EnvelopeScore(Object o) -> EnvelopeScore"""
784 return _IMP_em._object_cast_to_EnvelopeScore(o)
786 def _get_density_map_x_loc(m, pyobj):
787 """_get_density_map_x_loc(DensityMap m, PyObject * pyobj) -> PyObject *"""
788 return _IMP_em._get_density_map_x_loc(m, pyobj)
790 def _get_density_map_y_loc(m, pyobj):
791 """_get_density_map_y_loc(DensityMap m, PyObject * pyobj) -> PyObject *"""
792 return _IMP_em._get_density_map_y_loc(m, pyobj)
794 def _get_density_map_z_loc(m, pyobj):
795 """_get_density_map_z_loc(DensityMap m, PyObject * pyobj) -> PyObject *"""
796 return _IMP_em._get_density_map_z_loc(m, pyobj)
798 def _get_density_map_data(m, pyobj):
799 """_get_density_map_data(DensityMap m, PyObject * pyobj) -> PyObject *"""
800 return _IMP_em._get_density_map_data(m, pyobj)
802 """Proxy of C++ IMP::em::MapReaderWriter class"""
803 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
806 """__init__(IMP::em::MapReaderWriter self) -> MapReaderWriter"""
807 this = _IMP_em.new_MapReaderWriter()
809 self.this.append(this)
813 def get_version_info(self):
814 """get_version_info(MapReaderWriter self) -> VersionInfo"""
815 return _IMP_em.MapReaderWriter_get_version_info(self)
819 """__str__(MapReaderWriter self) -> std::string"""
820 return _IMP_em.MapReaderWriter___str__(self)
824 """__repr__(MapReaderWriter self) -> std::string"""
825 return _IMP_em.MapReaderWriter___repr__(self)
830 return _object_cast_to_MapReaderWriter(o)
832 MapReaderWriter_swigregister = _IMP_em.MapReaderWriter_swigregister
833 MapReaderWriter_swigregister(MapReaderWriter)
837 class DensityHeader(object):
838 """Proxy of C++ IMP::em::DensityHeader class"""
839 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
840 __repr__ = _swig_repr
843 """__init__(IMP::em::DensityHeader self) -> DensityHeader"""
844 this = _IMP_em.new_DensityHeader()
846 self.this.append(this)
850 def get_top(self, ind):
851 """get_top(DensityHeader self, int ind) -> double"""
852 return _IMP_em.DensityHeader_get_top(self, ind)
855 def compute_xyz_top(self, force=False):
857 compute_xyz_top(DensityHeader self, bool force=False)
858 compute_xyz_top(DensityHeader self)
860 return _IMP_em.DensityHeader_compute_xyz_top(self, force)
863 def update_map_dimensions(self, nnx, nny, nnz):
864 """update_map_dimensions(DensityHeader self, int nnx, int nny, int nnz)"""
865 return _IMP_em.DensityHeader_update_map_dimensions(self, nnx, nny, nnz)
868 def update_cell_dimensions(self):
869 """update_cell_dimensions(DensityHeader self)"""
870 return _IMP_em.DensityHeader_update_cell_dimensions(self)
873 def show(self, *args):
875 show(DensityHeader self, _ostream out)
876 show(DensityHeader self)
878 return _IMP_em.DensityHeader_show(self, *args)
880 MAP_FIELD_SIZE = _IMP_em.DensityHeader_MAP_FIELD_SIZE
881 USER_FIELD_SIZE = _IMP_em.DensityHeader_USER_FIELD_SIZE
882 COMMENT_FIELD_NUM_OF = _IMP_em.DensityHeader_COMMENT_FIELD_NUM_OF
883 COMMENT_FIELD_SINGLE_SIZE = _IMP_em.DensityHeader_COMMENT_FIELD_SINGLE_SIZE
884 nxstart = _swig_property(_IMP_em.DensityHeader_nxstart_get, _IMP_em.DensityHeader_nxstart_set)
885 nystart = _swig_property(_IMP_em.DensityHeader_nystart_get, _IMP_em.DensityHeader_nystart_set)
886 nzstart = _swig_property(_IMP_em.DensityHeader_nzstart_get, _IMP_em.DensityHeader_nzstart_set)
887 mx = _swig_property(_IMP_em.DensityHeader_mx_get, _IMP_em.DensityHeader_mx_set)
888 my = _swig_property(_IMP_em.DensityHeader_my_get, _IMP_em.DensityHeader_my_set)
889 mz = _swig_property(_IMP_em.DensityHeader_mz_get, _IMP_em.DensityHeader_mz_set)
890 xlen = _swig_property(_IMP_em.DensityHeader_xlen_get, _IMP_em.DensityHeader_xlen_set)
891 ylen = _swig_property(_IMP_em.DensityHeader_ylen_get, _IMP_em.DensityHeader_ylen_set)
892 zlen = _swig_property(_IMP_em.DensityHeader_zlen_get, _IMP_em.DensityHeader_zlen_set)
893 alpha = _swig_property(_IMP_em.DensityHeader_alpha_get, _IMP_em.DensityHeader_alpha_set)
894 beta = _swig_property(_IMP_em.DensityHeader_beta_get, _IMP_em.DensityHeader_beta_set)
895 gamma = _swig_property(_IMP_em.DensityHeader_gamma_get, _IMP_em.DensityHeader_gamma_set)
896 mapc = _swig_property(_IMP_em.DensityHeader_mapc_get, _IMP_em.DensityHeader_mapc_set)
897 mapr = _swig_property(_IMP_em.DensityHeader_mapr_get, _IMP_em.DensityHeader_mapr_set)
898 maps = _swig_property(_IMP_em.DensityHeader_maps_get, _IMP_em.DensityHeader_maps_set)
899 dmin = _swig_property(_IMP_em.DensityHeader_dmin_get, _IMP_em.DensityHeader_dmin_set)
900 dmax = _swig_property(_IMP_em.DensityHeader_dmax_get, _IMP_em.DensityHeader_dmax_set)
901 dmean = _swig_property(_IMP_em.DensityHeader_dmean_get, _IMP_em.DensityHeader_dmean_set)
902 ispg = _swig_property(_IMP_em.DensityHeader_ispg_get, _IMP_em.DensityHeader_ispg_set)
903 nsymbt = _swig_property(_IMP_em.DensityHeader_nsymbt_get, _IMP_em.DensityHeader_nsymbt_set)
904 user = _swig_property(_IMP_em.DensityHeader_user_get, _IMP_em.DensityHeader_user_set)
905 map = _swig_property(_IMP_em.DensityHeader_map_get, _IMP_em.DensityHeader_map_set)
906 machinestamp = _swig_property(_IMP_em.DensityHeader_machinestamp_get, _IMP_em.DensityHeader_machinestamp_set)
907 rms = _swig_property(_IMP_em.DensityHeader_rms_get, _IMP_em.DensityHeader_rms_set)
908 nlabl = _swig_property(_IMP_em.DensityHeader_nlabl_get, _IMP_em.DensityHeader_nlabl_set)
909 comments = _swig_property(_IMP_em.DensityHeader_comments_get, _IMP_em.DensityHeader_comments_set)
910 magic = _swig_property(_IMP_em.DensityHeader_magic_get, _IMP_em.DensityHeader_magic_set)
911 voltage = _swig_property(_IMP_em.DensityHeader_voltage_get, _IMP_em.DensityHeader_voltage_set)
912 Cs = _swig_property(_IMP_em.DensityHeader_Cs_get, _IMP_em.DensityHeader_Cs_set)
913 Aperture = _swig_property(_IMP_em.DensityHeader_Aperture_get, _IMP_em.DensityHeader_Aperture_set)
914 Magnification = _swig_property(_IMP_em.DensityHeader_Magnification_get, _IMP_em.DensityHeader_Magnification_set)
915 Postmagnification = _swig_property(_IMP_em.DensityHeader_Postmagnification_get, _IMP_em.DensityHeader_Postmagnification_set)
916 Exposuretime = _swig_property(_IMP_em.DensityHeader_Exposuretime_get, _IMP_em.DensityHeader_Exposuretime_set)
917 Microscope = _swig_property(_IMP_em.DensityHeader_Microscope_get, _IMP_em.DensityHeader_Microscope_set)
918 Pixelsize = _swig_property(_IMP_em.DensityHeader_Pixelsize_get, _IMP_em.DensityHeader_Pixelsize_set)
919 CCDArea = _swig_property(_IMP_em.DensityHeader_CCDArea_get, _IMP_em.DensityHeader_CCDArea_set)
920 Defocus = _swig_property(_IMP_em.DensityHeader_Defocus_get, _IMP_em.DensityHeader_Defocus_set)
921 Astigmatism = _swig_property(_IMP_em.DensityHeader_Astigmatism_get, _IMP_em.DensityHeader_Astigmatism_set)
922 AstigmatismAngle = _swig_property(_IMP_em.DensityHeader_AstigmatismAngle_get, _IMP_em.DensityHeader_AstigmatismAngle_set)
923 FocusIncrement = _swig_property(_IMP_em.DensityHeader_FocusIncrement_get, _IMP_em.DensityHeader_FocusIncrement_set)
924 CountsPerElectron = _swig_property(_IMP_em.DensityHeader_CountsPerElectron_get, _IMP_em.DensityHeader_CountsPerElectron_set)
925 Intensity = _swig_property(_IMP_em.DensityHeader_Intensity_get, _IMP_em.DensityHeader_Intensity_set)
926 EnergySlitwidth = _swig_property(_IMP_em.DensityHeader_EnergySlitwidth_get, _IMP_em.DensityHeader_EnergySlitwidth_set)
927 EnergyOffset = _swig_property(_IMP_em.DensityHeader_EnergyOffset_get, _IMP_em.DensityHeader_EnergyOffset_set)
928 Tiltangle = _swig_property(_IMP_em.DensityHeader_Tiltangle_get, _IMP_em.DensityHeader_Tiltangle_set)
929 Tiltaxis = _swig_property(_IMP_em.DensityHeader_Tiltaxis_get, _IMP_em.DensityHeader_Tiltaxis_set)
930 MarkerX = _swig_property(_IMP_em.DensityHeader_MarkerX_get, _IMP_em.DensityHeader_MarkerX_set)
931 MarkerY = _swig_property(_IMP_em.DensityHeader_MarkerY_get, _IMP_em.DensityHeader_MarkerY_set)
932 lswap = _swig_property(_IMP_em.DensityHeader_lswap_get, _IMP_em.DensityHeader_lswap_set)
935 """get_resolution(DensityHeader self) -> float"""
936 return _IMP_em.DensityHeader_get_resolution(self)
939 def get_has_resolution(self):
940 """get_has_resolution(DensityHeader self) -> bool"""
941 return _IMP_em.DensityHeader_get_has_resolution(self)
944 def set_resolution(self, resolution):
945 """set_resolution(DensityHeader self, float resolution)"""
946 return _IMP_em.DensityHeader_set_resolution(self, resolution)
949 def get_spacing(self):
950 """get_spacing(DensityHeader self) -> float"""
951 return _IMP_em.DensityHeader_get_spacing(self)
954 def get_xorigin(self):
955 """get_xorigin(DensityHeader self) -> float"""
956 return _IMP_em.DensityHeader_get_xorigin(self)
959 def get_yorigin(self):
960 """get_yorigin(DensityHeader self) -> float"""
961 return _IMP_em.DensityHeader_get_yorigin(self)
964 def get_zorigin(self):
965 """get_zorigin(DensityHeader self) -> float"""
966 return _IMP_em.DensityHeader_get_zorigin(self)
969 def get_origin(self, i):
970 """get_origin(DensityHeader self, int i) -> float"""
971 return _IMP_em.DensityHeader_get_origin(self, i)
974 def set_xorigin(self, x):
975 """set_xorigin(DensityHeader self, float x)"""
976 return _IMP_em.DensityHeader_set_xorigin(self, x)
979 def set_yorigin(self, y):
980 """set_yorigin(DensityHeader self, float y)"""
981 return _IMP_em.DensityHeader_set_yorigin(self, y)
984 def set_zorigin(self, z):
985 """set_zorigin(DensityHeader self, float z)"""
986 return _IMP_em.DensityHeader_set_zorigin(self, z)
989 def is_top_calculated(self):
990 """is_top_calculated(DensityHeader self) -> bool"""
991 return _IMP_em.DensityHeader_is_top_calculated(self)
993 Objectpixelsize_ = _swig_property(_IMP_em.DensityHeader_Objectpixelsize__get, _IMP_em.DensityHeader_Objectpixelsize__set)
996 """get_nx(DensityHeader self) -> int"""
997 return _IMP_em.DensityHeader_get_nx(self)
1001 """get_ny(DensityHeader self) -> int"""
1002 return _IMP_em.DensityHeader_get_ny(self)
1006 """get_nz(DensityHeader self) -> int"""
1007 return _IMP_em.DensityHeader_get_nz(self)
1010 def get_number_of_voxels(self):
1011 """get_number_of_voxels(DensityHeader self) -> int"""
1012 return _IMP_em.DensityHeader_get_number_of_voxels(self)
1015 def get_data_type(self):
1016 """get_data_type(DensityHeader self) -> int"""
1017 return _IMP_em.DensityHeader_get_data_type(self)
1020 def set_data_type(self, data_type):
1021 """set_data_type(DensityHeader self, int data_type)"""
1022 return _IMP_em.DensityHeader_set_data_type(self, data_type)
1024 __swig_destroy__ = _IMP_em.delete_DensityHeader
1025 __del__ =
lambda self:
None
1026 DensityHeader_swigregister = _IMP_em.DensityHeader_swigregister
1027 DensityHeader_swigregister(DensityHeader)
1031 """create_density_header(BoundingBox3D bb, float spacing) -> DensityHeader"""
1032 return _IMP_em.create_density_header(bb, spacing)
1034 def read_map(*args):
1036 read_map(std::string filename, MapReaderWriter reader) -> DensityMap
1037 read_map(std::string filename) -> DensityMap
1039 return _IMP_em.read_map(*args)
1041 def write_map(*args):
1043 write_map(DensityMap m, std::string filename, MapReaderWriter writer)
1044 write_map(DensityMap m, std::string filename)
1046 return _IMP_em.write_map(*args)
1049 """approximate_molecular_mass(DensityMap m, IMP::Float threshold) -> IMP::Float"""
1050 return _IMP_em.approximate_molecular_mass(m, threshold)
1052 """Proxy of C++ IMP::em::DensityMap class"""
1053 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1055 def __init__(self, *args):
1057 __init__(IMP::em::DensityMap self, std::string name) -> DensityMap
1058 __init__(IMP::em::DensityMap self) -> DensityMap
1059 __init__(IMP::em::DensityMap self, DensityHeader header, std::string name) -> DensityMap
1060 __init__(IMP::em::DensityMap self, DensityHeader header) -> DensityMap
1062 this = _IMP_em.new_DensityMap(*args)
1064 self.this.append(this)
1068 def reset_data(self, value=0.0):
1070 reset_data(DensityMap self, float value=0.0)
1071 reset_data(DensityMap self)
1073 return _IMP_em.DensityMap_reset_data(self, value)
1077 """calcRMS(DensityMap self) -> double"""
1078 return _IMP_em.DensityMap_calcRMS(self)
1081 def std_normalize(self):
1082 """std_normalize(DensityMap self)"""
1083 return _IMP_em.DensityMap_std_normalize(self)
1086 def is_normalized(self):
1087 """is_normalized(DensityMap self) -> bool"""
1088 return _IMP_em.DensityMap_is_normalized(self)
1091 def get_location_in_dim_by_voxel(self, index, dim):
1092 """get_location_in_dim_by_voxel(DensityMap self, long index, int dim) -> float"""
1093 return _IMP_em.DensityMap_get_location_in_dim_by_voxel(self, index, dim)
1096 def xyz_ind2voxel(self, x, y, z):
1097 """xyz_ind2voxel(DensityMap self, int x, int y, int z) -> long"""
1098 return _IMP_em.DensityMap_xyz_ind2voxel(self, x, y, z)
1101 def get_voxel_by_location(self, *args):
1103 get_voxel_by_location(DensityMap self, float x, float y, float z) -> long
1104 get_voxel_by_location(DensityMap self, Vector3D v) -> long
1106 return _IMP_em.DensityMap_get_voxel_by_location(self, *args)
1109 def get_location_by_voxel(self, index):
1110 """get_location_by_voxel(DensityMap self, long index) -> Vector3D"""
1111 return _IMP_em.DensityMap_get_location_by_voxel(self, index)
1114 def is_xyz_ind_part_of_volume(self, ix, iy, iz):
1115 """is_xyz_ind_part_of_volume(DensityMap self, int ix, int iy, int iz) -> bool"""
1116 return _IMP_em.DensityMap_is_xyz_ind_part_of_volume(self, ix, iy, iz)
1119 def is_part_of_volume(self, *args):
1121 is_part_of_volume(DensityMap self, float x, float y, float z) -> bool
1122 is_part_of_volume(DensityMap self, Vector3D v) -> bool
1124 return _IMP_em.DensityMap_is_part_of_volume(self, *args)
1127 def get_value(self, *args):
1129 get_value(DensityMap self, float x, float y, float z) -> double
1130 get_value(DensityMap self, Vector3D point) -> double
1131 get_value(DensityMap self, long index) -> double
1133 return _IMP_em.DensityMap_get_value(self, *args)
1136 def set_value(self, *args):
1138 set_value(DensityMap self, long index, double value)
1139 set_value(DensityMap self, float x, float y, float z, double value)
1141 return _IMP_em.DensityMap_set_value(self, *args)
1144 def set_origin(self, *args):
1146 set_origin(DensityMap self, float x, float y, float z)
1147 set_origin(DensityMap self, Vector3D v)
1149 return _IMP_em.DensityMap_set_origin(self, *args)
1152 def get_origin(self):
1153 """get_origin(DensityMap self) -> Vector3D"""
1154 return _IMP_em.DensityMap_get_origin(self)
1158 """get_top(DensityMap self) -> Vector3D"""
1159 return _IMP_em.DensityMap_get_top(self)
1162 def get_header(self):
1163 h = _IMP_em.DensityMap_get_header(self)
1169 def get_header_writable(self):
1170 h = _IMP_em.DensityMap_get_header_writable(self)
1176 def same_origin(self, other):
1177 """same_origin(DensityMap self, DensityMap other) -> bool"""
1178 return _IMP_em.DensityMap_same_origin(self, other)
1181 def same_dimensions(self, other):
1182 """same_dimensions(DensityMap self, DensityMap other) -> bool"""
1183 return _IMP_em.DensityMap_same_dimensions(self, other)
1186 def same_voxel_size(self, other):
1187 """same_voxel_size(DensityMap self, DensityMap other) -> bool"""
1188 return _IMP_em.DensityMap_same_voxel_size(self, other)
1193 get_centroid(DensityMap self, double threshold=0.0) -> Vector3D
1194 get_centroid(DensityMap self) -> Vector3D
1196 return _IMP_em.DensityMap_get_centroid(self, threshold)
1199 def get_max_value(self):
1200 """get_max_value(DensityMap self) -> double"""
1201 return _IMP_em.DensityMap_get_max_value(self)
1204 def get_min_value(self):
1205 """get_min_value(DensityMap self) -> double"""
1206 return _IMP_em.DensityMap_get_min_value(self)
1209 def add(self, *args):
1211 add(DensityMap self, DensityMap other)
1212 add(DensityMap self, IMP::Float d)
1214 return _IMP_em.DensityMap_add(self, *args)
1217 def pick_max(self, other):
1218 """pick_max(DensityMap self, DensityMap other)"""
1219 return _IMP_em.DensityMap_pick_max(self, other)
1222 def get_number_of_voxels(self):
1223 """get_number_of_voxels(DensityMap self) -> long"""
1224 return _IMP_em.DensityMap_get_number_of_voxels(self)
1227 def set_void_map(self, nx, ny, nz):
1228 """set_void_map(DensityMap self, int nx, int ny, int nz)"""
1229 return _IMP_em.DensityMap_set_void_map(self, nx, ny, nz)
1232 def pad(self, nx, ny, nz, val=0.0):
1234 pad(DensityMap self, int nx, int ny, int nz, float val=0.0)
1235 pad(DensityMap self, int nx, int ny, int nz)
1237 return _IMP_em.DensityMap_pad(self, nx, ny, nz, val)
1240 def pad_margin(self, mrg_x, mrg_y, mrg_z, val=0.0):
1242 pad_margin(DensityMap self, int mrg_x, int mrg_y, int mrg_z, float val=0.0) -> DensityMap
1243 pad_margin(DensityMap self, int mrg_x, int mrg_y, int mrg_z) -> DensityMap
1245 return _IMP_em.DensityMap_pad_margin(self, mrg_x, mrg_y, mrg_z, val)
1248 def get_cropped(self, *args):
1250 get_cropped(DensityMap self, float threshold) -> DensityMap
1251 get_cropped(DensityMap self, IMP::Particles ps, double distance, bool inverse=False, bool keep_map_dimensions=False) -> DensityMap
1252 get_cropped(DensityMap self, IMP::Particles ps, double distance, bool inverse=False) -> DensityMap
1253 get_cropped(DensityMap self, IMP::Particles ps, double distance) -> DensityMap
1254 get_cropped(DensityMap self, BoundingBox3D bb) -> DensityMap
1256 return _IMP_em.DensityMap_get_cropped(self, *args)
1259 def get_maximum_value_in_xy_plane(self, z_ind):
1260 """get_maximum_value_in_xy_plane(DensityMap self, int z_ind) -> float"""
1261 return _IMP_em.DensityMap_get_maximum_value_in_xy_plane(self, z_ind)
1264 def get_maximum_value_in_xz_plane(self, y_ind):
1265 """get_maximum_value_in_xz_plane(DensityMap self, int y_ind) -> float"""
1266 return _IMP_em.DensityMap_get_maximum_value_in_xz_plane(self, y_ind)
1269 def get_maximum_value_in_yz_plane(self, x_ind):
1270 """get_maximum_value_in_yz_plane(DensityMap self, int x_ind) -> float"""
1271 return _IMP_em.DensityMap_get_maximum_value_in_yz_plane(self, x_ind)
1275 """multiply(DensityMap self, float factor)"""
1276 return _IMP_em.DensityMap_multiply(self, factor)
1279 def get_locations_string(self, t):
1280 """get_locations_string(DensityMap self, float t) -> std::string"""
1281 return _IMP_em.DensityMap_get_locations_string(self, t)
1284 def update_voxel_size(self, new_apix):
1285 """update_voxel_size(DensityMap self, float new_apix)"""
1286 return _IMP_em.DensityMap_update_voxel_size(self, new_apix)
1289 def get_spacing(self):
1290 """get_spacing(DensityMap self) -> IMP::Float"""
1291 return _IMP_em.DensityMap_get_spacing(self)
1294 def calc_all_voxel2loc(self):
1295 """calc_all_voxel2loc(DensityMap self)"""
1296 return _IMP_em.DensityMap_calc_all_voxel2loc(self)
1299 def copy_map(self, other):
1300 """copy_map(DensityMap self, DensityMap other)"""
1301 return _IMP_em.DensityMap_copy_map(self, other)
1304 def get_version_info(self):
1305 """get_version_info(DensityMap self) -> VersionInfo"""
1306 return _IMP_em.DensityMap_get_version_info(self)
1309 def lower_voxel_shift(self, loc, kdist, orig, ndim):
1310 """lower_voxel_shift(DensityMap self, double loc, double kdist, double orig, int ndim) -> int"""
1311 return _IMP_em.DensityMap_lower_voxel_shift(self, loc, kdist, orig, ndim)
1314 def upper_voxel_shift(self, loc, kdist, orig, ndim):
1315 """upper_voxel_shift(DensityMap self, double loc, double kdist, double orig, int ndim) -> int"""
1316 return _IMP_em.DensityMap_upper_voxel_shift(self, loc, kdist, orig, ndim)
1319 def get_rms_calculated(self):
1320 """get_rms_calculated(DensityMap self) -> bool"""
1321 return _IMP_em.DensityMap_get_rms_calculated(self)
1324 def get_dim_index_by_location(self, *args):
1326 get_dim_index_by_location(DensityMap self, Vector3D v, int ind) -> int
1327 get_dim_index_by_location(DensityMap self, float loc_val, int ind) -> int
1329 return _IMP_em.DensityMap_get_dim_index_by_location(self, *args)
1333 """__str__(DensityMap self) -> std::string"""
1334 return _IMP_em.DensityMap___str__(self)
1338 """__repr__(DensityMap self) -> std::string"""
1339 return _IMP_em.DensityMap___repr__(self)
1344 return _object_cast_to_DensityMap(o)
1347 def get_x_loc(self):
1348 return _get_density_map_x_loc(self, self)
1350 def get_y_loc(self):
1351 return _get_density_map_y_loc(self, self)
1353 def get_z_loc(self):
1354 return _get_density_map_z_loc(self, self)
1357 return _get_density_map_data(self, self)
1359 DensityMap_swigregister = _IMP_em.DensityMap_swigregister
1360 DensityMap_swigregister(DensityMap)
1365 get_bounding_box(DensityMap m, IMP::Float threshold) -> BoundingBox3D
1366 get_bounding_box(DensityMap m) -> BoundingBox3D
1368 return _IMP_em.get_bounding_box(*args)
1370 def get_density(m, v):
1371 """get_density(DensityMap m, Vector3D v) -> double"""
1372 return _IMP_em.get_density(m, v)
1374 def get_transformed(*args):
1376 get_transformed(DensityMap input, Transformation3D tr, double threshold) -> DensityMap
1377 get_transformed(DensityMap input, Transformation3D tr) -> DensityMap
1379 return _IMP_em.get_transformed(*args)
1381 def get_resampled(input, scaling):
1382 """get_resampled(DensityMap input, double scaling) -> DensityMap"""
1383 return _IMP_em.get_resampled(input, scaling)
1385 def get_transformed_into(source, tr, into, calc_rms=True):
1387 get_transformed_into(DensityMap source, Transformation3D tr, DensityMap into, bool calc_rms=True)
1388 get_transformed_into(DensityMap source, Transformation3D tr, DensityMap into)
1390 return _IMP_em.get_transformed_into(source, tr, into, calc_rms)
1392 def get_transformed_into2(source, tr, into):
1393 """get_transformed_into2(DensityMap source, Transformation3D tr, DensityMap into)"""
1394 return _IMP_em.get_transformed_into2(source, tr, into)
1396 def get_interiors_intersect(d1, d2):
1397 """get_interiors_intersect(DensityMap d1, DensityMap d2) -> bool"""
1398 return _IMP_em.get_interiors_intersect(d1, d2)
1402 get_segment(DensityMap map_to_segment, int nx_start, int nx_end, int ny_start, int ny_end, int nz_start, int nz_end) -> DensityMap
1403 get_segment(DensityMap map_to_segment, IMP::algebra::Vector3Ds vecs, float dist) -> DensityMap
1405 return _IMP_em.get_segment(*args)
1408 """get_segment_by_masking(DensityMap map_to_segment, DensityMap mask, float mas_threshold) -> DensityMap"""
1409 return _IMP_em.get_segment_by_masking(map_to_segment, mask, mas_threshold)
1411 def binarize(orig_map, threshold, reverse=False):
1413 binarize(DensityMap orig_map, float threshold, bool reverse=False) -> DensityMap
1414 binarize(DensityMap orig_map, float threshold) -> DensityMap
1416 return _IMP_em.binarize(orig_map, threshold, reverse)
1419 """get_threshold_map(DensityMap orig_map, float threshold) -> DensityMap"""
1420 return _IMP_em.get_threshold_map(orig_map, threshold)
1423 """multiply(DensityMap m1, DensityMap m2) -> DensityMap"""
1424 return _IMP_em.multiply(m1, m2)
1427 """convolute(DensityMap m1, DensityMap m2) -> double"""
1428 return _IMP_em.convolute(m1, m2)
1431 """get_sum(DensityMap m1) -> double"""
1432 return _IMP_em.get_sum(m1)
1435 """get_max_map(IMP::em::DensityMaps maps) -> DensityMap"""
1436 return _IMP_em.get_max_map(maps)
1439 """interpolate_map(DensityMap in_map, double new_spacing) -> DensityMap"""
1440 return _IMP_em.interpolate_map(in_map, new_spacing)
1443 """get_grid(DensityMap in_map) -> IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,float >,float,IMP::algebra::DefaultEmbeddingD< 3 > >"""
1444 return _IMP_em.get_grid(in_map)
1448 create_density_map(DensityMap other) -> DensityMap
1449 create_density_map(BoundingBox3D bb, double spacing) -> DensityMap
1450 create_density_map(int nx, int ny, int nz, double spacing) -> DensityMap
1451 create_density_map(DenseFloatGrid3D grid) -> DensityMap
1452 create_density_map(DenseDoubleGrid3D grid) -> DensityMap
1454 return _IMP_em.create_density_map(*args)
1456 def get_binarized_interior(dmap):
1457 """get_binarized_interior(DensityMap dmap) -> DensityMap"""
1458 return _IMP_em.get_binarized_interior(dmap)
1460 def add_to_map(dm, pis):
1461 """add_to_map(DensityMap dm, IMP::Particles const & pis)"""
1462 return _IMP_em.add_to_map(dm, pis)
1463 class RadiusDependentDistanceMask(object):
1464 """Proxy of C++ IMP::em::RadiusDependentDistanceMask class"""
1465 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1466 __repr__ = _swig_repr
1468 def __init__(self, sampling_radius, header):
1469 """__init__(IMP::em::RadiusDependentDistanceMask self, float sampling_radius, DensityHeader header) -> RadiusDependentDistanceMask"""
1470 this = _IMP_em.new_RadiusDependentDistanceMask(sampling_radius, header)
1472 self.this.append(this)
1476 def get_neighbor_shift(self):
1477 """get_neighbor_shift(RadiusDependentDistanceMask self) -> std::vector< double,std::allocator< double > > const *"""
1478 return _IMP_em.RadiusDependentDistanceMask_get_neighbor_shift(self)
1481 def get_neighbor_dist(self):
1482 """get_neighbor_dist(RadiusDependentDistanceMask self) -> std::vector< double,std::allocator< double > > const *"""
1483 return _IMP_em.RadiusDependentDistanceMask_get_neighbor_dist(self)
1486 def get_neighbor_dist_exp(self):
1487 """get_neighbor_dist_exp(RadiusDependentDistanceMask self) -> std::vector< double,std::allocator< double > > const *"""
1488 return _IMP_em.RadiusDependentDistanceMask_get_neighbor_dist_exp(self)
1491 def show(self, out):
1492 """show(RadiusDependentDistanceMask self, _ostream out)"""
1493 return _IMP_em.RadiusDependentDistanceMask_show(self, out)
1495 __swig_destroy__ = _IMP_em.delete_RadiusDependentDistanceMask
1496 __del__ =
lambda self:
None
1497 RadiusDependentDistanceMask_swigregister = _IMP_em.RadiusDependentDistanceMask_swigregister
1498 RadiusDependentDistanceMask_swigregister(RadiusDependentDistanceMask)
1500 class DistanceMask(object):
1501 """Proxy of C++ IMP::em::DistanceMask class"""
1502 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1503 __repr__ = _swig_repr
1505 def __init__(self, *args):
1507 __init__(IMP::em::DistanceMask self) -> DistanceMask
1508 __init__(IMP::em::DistanceMask self, DensityHeader header) -> DistanceMask
1510 this = _IMP_em.new_DistanceMask(*args)
1512 self.this.append(this)
1516 def show(self, out):
1517 """show(DistanceMask self, _ostream out)"""
1518 return _IMP_em.DistanceMask_show(self, out)
1521 def is_mask_set(self, radius, eps=0.001):
1523 is_mask_set(DistanceMask self, float radius, float eps=0.001) -> bool
1524 is_mask_set(DistanceMask self, float radius) -> bool
1526 return _IMP_em.DistanceMask_is_mask_set(self, radius, eps)
1528 __swig_destroy__ = _IMP_em.delete_DistanceMask
1529 __del__ =
lambda self:
None
1530 DistanceMask_swigregister = _IMP_em.DistanceMask_swigregister
1531 DistanceMask_swigregister(DistanceMask)
1533 class EMReaderWriter(MapReaderWriter):
1534 """Proxy of C++ IMP::em::EMReaderWriter class"""
1535 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1538 """__str__(EMReaderWriter self) -> std::string"""
1539 return _IMP_em.EMReaderWriter___str__(self)
1543 """__repr__(EMReaderWriter self) -> std::string"""
1544 return _IMP_em.EMReaderWriter___repr__(self)
1549 return _object_cast_to_EMReaderWriter(o)
1553 """__init__(IMP::em::EMReaderWriter self) -> EMReaderWriter"""
1554 this = _IMP_em.new_EMReaderWriter()
1556 self.this.append(this)
1559 EMReaderWriter_swigregister = _IMP_em.EMReaderWriter_swigregister
1560 EMReaderWriter_swigregister(EMReaderWriter)
1562 class XplorReaderWriter(MapReaderWriter):
1563 """Proxy of C++ IMP::em::XplorReaderWriter class"""
1564 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1567 """__str__(XplorReaderWriter self) -> std::string"""
1568 return _IMP_em.XplorReaderWriter___str__(self)
1572 """__repr__(XplorReaderWriter self) -> std::string"""
1573 return _IMP_em.XplorReaderWriter___repr__(self)
1578 return _object_cast_to_XplorReaderWriter(o)
1582 """__init__(IMP::em::XplorReaderWriter self) -> XplorReaderWriter"""
1583 this = _IMP_em.new_XplorReaderWriter()
1585 self.this.append(this)
1588 XplorReaderWriter_swigregister = _IMP_em.XplorReaderWriter_swigregister
1589 XplorReaderWriter_swigregister(XplorReaderWriter)
1591 class MRCReaderWriter(MapReaderWriter):
1592 """Proxy of C++ IMP::em::MRCReaderWriter class"""
1593 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1595 def __init__(self, *args):
1597 __init__(IMP::em::MRCReaderWriter self) -> MRCReaderWriter
1598 __init__(IMP::em::MRCReaderWriter self, std::string fn) -> MRCReaderWriter
1600 this = _IMP_em.new_MRCReaderWriter(*args)
1602 self.this.append(this)
1607 """__str__(MRCReaderWriter self) -> std::string"""
1608 return _IMP_em.MRCReaderWriter___str__(self)
1612 """__repr__(MRCReaderWriter self) -> std::string"""
1613 return _IMP_em.MRCReaderWriter___repr__(self)
1618 return _object_cast_to_MRCReaderWriter(o)
1620 MRCReaderWriter_swigregister = _IMP_em.MRCReaderWriter_swigregister
1621 MRCReaderWriter_swigregister(MRCReaderWriter)
1623 class KernelParameters(object):
1624 """Proxy of C++ IMP::em::KernelParameters class"""
1625 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1627 def __init__(self, *args):
1629 __init__(IMP::em::KernelParameters self) -> KernelParameters
1630 __init__(IMP::em::KernelParameters self, float resolution) -> KernelParameters
1632 this = _IMP_em.new_KernelParameters(*args)
1634 self.this.append(this)
1637 __swig_destroy__ = _IMP_em.delete_KernelParameters
1638 __del__ =
lambda self:
None
1641 """get_rsig(KernelParameters self) -> float"""
1642 return _IMP_em.KernelParameters_get_rsig(self)
1645 def get_rsigsq(self):
1646 """get_rsigsq(KernelParameters self) -> float"""
1647 return _IMP_em.KernelParameters_get_rsigsq(self)
1650 def get_inv_rsigsq(self):
1651 """get_inv_rsigsq(KernelParameters self) -> float"""
1652 return _IMP_em.KernelParameters_get_inv_rsigsq(self)
1655 def get_timessig(self):
1656 """get_timessig(KernelParameters self) -> float"""
1657 return _IMP_em.KernelParameters_get_timessig(self)
1660 def get_sq2pi3(self):
1661 """get_sq2pi3(KernelParameters self) -> float"""
1662 return _IMP_em.KernelParameters_get_sq2pi3(self)
1665 def get_rnormfac(self):
1666 """get_rnormfac(KernelParameters self) -> float"""
1667 return _IMP_em.KernelParameters_get_rnormfac(self)
1670 def get_rkdist(self):
1671 """get_rkdist(KernelParameters self) -> float"""
1672 return _IMP_em.KernelParameters_get_rkdist(self)
1675 def get_rkdistsq(self):
1676 """get_rkdistsq(KernelParameters self) -> float"""
1677 return _IMP_em.KernelParameters_get_rkdistsq(self)
1681 """get_lim(KernelParameters self) -> float"""
1682 return _IMP_em.KernelParameters_get_lim(self)
1685 def show(self, *args):
1687 show(KernelParameters self, _ostream out)
1688 show(KernelParameters self)
1690 return _IMP_em.KernelParameters_show(self, *args)
1694 """__str__(KernelParameters self) -> std::string"""
1695 return _IMP_em.KernelParameters___str__(self)
1699 """__repr__(KernelParameters self) -> std::string"""
1700 return _IMP_em.KernelParameters___repr__(self)
1703 def _get_as_binary(self):
1704 """_get_as_binary(KernelParameters self) -> PyObject *"""
1705 return _IMP_em.KernelParameters__get_as_binary(self)
1708 def _set_from_binary(self, p):
1709 """_set_from_binary(KernelParameters self, PyObject * p)"""
1710 return _IMP_em.KernelParameters__set_from_binary(self, p)
1713 def __getstate__(self):
1714 p = self._get_as_binary()
1715 if len(self.__dict__) > 1:
1716 d = self.__dict__.copy()
1721 def __setstate__(self, p):
1722 if not hasattr(self,
'this'):
1724 if isinstance(p, tuple):
1726 self.__dict__.update(d)
1727 return self._set_from_binary(p)
1729 KernelParameters_swigregister = _IMP_em.KernelParameters_swigregister
1730 KernelParameters_swigregister(KernelParameters)
1733 _IMP_em.GAUSSIAN_swigconstant(_IMP_em)
1734 GAUSSIAN = _IMP_em.GAUSSIAN
1736 _IMP_em.BINARIZED_SPHERE_swigconstant(_IMP_em)
1737 BINARIZED_SPHERE = _IMP_em.BINARIZED_SPHERE
1739 _IMP_em.SPHERE_swigconstant(_IMP_em)
1740 SPHERE = _IMP_em.SPHERE
1741 class SampledDensityMap(DensityMap):
1742 """Proxy of C++ IMP::em::SampledDensityMap class"""
1743 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1745 def __init__(self, *args):
1747 __init__(IMP::em::SampledDensityMap self, IMP::em::KernelType kt) -> SampledDensityMap
1748 __init__(IMP::em::SampledDensityMap self) -> SampledDensityMap
1749 __init__(IMP::em::SampledDensityMap self, DensityHeader header, IMP::em::KernelType kt) -> SampledDensityMap
1750 __init__(IMP::em::SampledDensityMap self, DensityHeader header) -> SampledDensityMap
1751 __init__(IMP::em::SampledDensityMap self, IMP::ParticlesTemp const & ps, double resolution, double voxel_size, FloatKey mass_key, int sig_cutoff=3, IMP::em::KernelType kt) -> SampledDensityMap
1752 __init__(IMP::em::SampledDensityMap self, IMP::ParticlesTemp const & ps, double resolution, double voxel_size, FloatKey mass_key, int sig_cutoff=3) -> SampledDensityMap
1753 __init__(IMP::em::SampledDensityMap self, IMP::ParticlesTemp const & ps, double resolution, double voxel_size, FloatKey mass_key) -> SampledDensityMap
1754 __init__(IMP::em::SampledDensityMap self, IMP::ParticlesTemp const & ps, double resolution, double voxel_size) -> SampledDensityMap
1756 this = _IMP_em.new_SampledDensityMap(*args)
1758 self.this.append(this)
1763 """resample(SampledDensityMap self)"""
1764 return _IMP_em.SampledDensityMap_resample(self)
1767 def project(self, *args):
1769 project(SampledDensityMap self, IMP::ParticlesTemp const & ps, int x_margin, int y_margin, int z_margin, Vector3D shift, FloatKey mass_key)
1770 project(SampledDensityMap self, IMP::ParticlesTemp const & ps, int x_margin, int y_margin, int z_margin, Vector3D shift)
1771 project(SampledDensityMap self, IMP::ParticlesTemp const & ps, int x_margin, int y_margin, int z_margin)
1773 return _IMP_em.SampledDensityMap_project(self, *args)
1776 def set_particles(self, *args):
1778 set_particles(SampledDensityMap self, IMP::ParticlesTemp const & ps, FloatKey mass_key)
1779 set_particles(SampledDensityMap self, IMP::ParticlesTemp const & ps)
1781 return _IMP_em.SampledDensityMap_set_particles(self, *args)
1784 def get_xyzr_particles(self):
1785 """get_xyzr_particles(SampledDensityMap self) -> IMP::core::XYZRs const &"""
1786 return _IMP_em.SampledDensityMap_get_xyzr_particles(self)
1789 def get_sampled_particles(self):
1790 """get_sampled_particles(SampledDensityMap self) -> IMP::Particles const &"""
1791 return _IMP_em.SampledDensityMap_get_sampled_particles(self)
1794 def get_weight_key(self):
1795 """get_weight_key(SampledDensityMap self) -> FloatKey"""
1796 return _IMP_em.SampledDensityMap_get_weight_key(self)
1799 def get_minimum_resampled_value(self):
1800 """get_minimum_resampled_value(SampledDensityMap self) -> float"""
1801 return _IMP_em.SampledDensityMap_get_minimum_resampled_value(self)
1804 def update_resolution(self, res):
1805 """update_resolution(SampledDensityMap self, IMP::Float res)"""
1806 return _IMP_em.SampledDensityMap_update_resolution(self, res)
1808 __swig_destroy__ = _IMP_em.delete_SampledDensityMap
1809 __del__ =
lambda self:
None
1812 """__str__(SampledDensityMap self) -> std::string"""
1813 return _IMP_em.SampledDensityMap___str__(self)
1817 """__repr__(SampledDensityMap self) -> std::string"""
1818 return _IMP_em.SampledDensityMap___repr__(self)
1823 return _object_cast_to_SampledDensityMap(o)
1825 SampledDensityMap_swigregister = _IMP_em.SampledDensityMap_swigregister
1826 SampledDensityMap_swigregister(SampledDensityMap)
1829 _IMP_em.IMP_DEFAULT_NUM_SHELLS_swigconstant(_IMP_em)
1830 IMP_DEFAULT_NUM_SHELLS = _IMP_em.IMP_DEFAULT_NUM_SHELLS
1832 _IMP_em.IMP_SIG_CUTOFF_swigconstant(_IMP_em)
1833 IMP_SIG_CUTOFF = _IMP_em.IMP_SIG_CUTOFF
1834 class SurfaceShellDensityMap(SampledDensityMap):
1835 """Proxy of C++ IMP::em::SurfaceShellDensityMap class"""
1836 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1838 def __init__(self, *args):
1840 __init__(IMP::em::SurfaceShellDensityMap self) -> SurfaceShellDensityMap
1841 __init__(IMP::em::SurfaceShellDensityMap self, DensityHeader header) -> SurfaceShellDensityMap
1842 __init__(IMP::em::SurfaceShellDensityMap self, IMP::ParticlesTemp const & ps, float voxel_size, FloatKey mass_key, int num_shells=5) -> SurfaceShellDensityMap
1843 __init__(IMP::em::SurfaceShellDensityMap self, IMP::ParticlesTemp const & ps, float voxel_size, FloatKey mass_key) -> SurfaceShellDensityMap
1844 __init__(IMP::em::SurfaceShellDensityMap self, IMP::ParticlesTemp const & ps, float voxel_size) -> SurfaceShellDensityMap
1846 this = _IMP_em.new_SurfaceShellDensityMap(*args)
1848 self.this.append(this)
1853 """binarize(SurfaceShellDensityMap self, float scene_val)"""
1854 return _IMP_em.SurfaceShellDensityMap_binarize(self, scene_val)
1857 def has_background_neighbor(self, voxel_ind):
1858 """has_background_neighbor(SurfaceShellDensityMap self, long voxel_ind) -> bool"""
1859 return _IMP_em.SurfaceShellDensityMap_has_background_neighbor(self, voxel_ind)
1861 __swig_destroy__ = _IMP_em.delete_SurfaceShellDensityMap
1862 __del__ =
lambda self:
None
1865 """__str__(SurfaceShellDensityMap self) -> std::string"""
1866 return _IMP_em.SurfaceShellDensityMap___str__(self)
1870 """__repr__(SurfaceShellDensityMap self) -> std::string"""
1871 return _IMP_em.SurfaceShellDensityMap___repr__(self)
1876 return _object_cast_to_SurfaceShellDensityMap(o)
1878 SurfaceShellDensityMap_swigregister = _IMP_em.SurfaceShellDensityMap_swigregister
1879 SurfaceShellDensityMap_swigregister(SurfaceShellDensityMap)
1884 get_coarse_cc_score(DensityMap data, SampledDensityMap model_map, double scalefactor, bool recalc_rms=True, bool resample=True, IMP::FloatPair norm_factors) -> double
1885 get_coarse_cc_score(DensityMap data, SampledDensityMap model_map, double scalefactor, bool recalc_rms=True, bool resample=True) -> double
1886 get_coarse_cc_score(DensityMap data, SampledDensityMap model_map, double scalefactor, bool recalc_rms=True) -> double
1887 get_coarse_cc_score(DensityMap data, SampledDensityMap model_map, double scalefactor) -> double
1889 return _IMP_em.get_coarse_cc_score(*args)
1893 get_coarse_cc_coefficient(DensityMap grid1, DensityMap grid2, double grid2_voxel_data_threshold, bool allow_padding=False, IMP::FloatPair norm_factors) -> double
1894 get_coarse_cc_coefficient(DensityMap grid1, DensityMap grid2, double grid2_voxel_data_threshold, bool allow_padding=False) -> double
1895 get_coarse_cc_coefficient(DensityMap grid1, DensityMap grid2, double grid2_voxel_data_threshold) -> double
1897 return _IMP_em.get_coarse_cc_coefficient(*args)
1900 """get_coarse_cc_local_coefficient(DensityMap em_map, DensityMap model_map, double voxel_data_threshold) -> double"""
1901 return _IMP_em.get_coarse_cc_local_coefficient(em_map, model_map, voxel_data_threshold)
1902 class CoarseConvolution(object):
1903 """Proxy of C++ IMP::em::CoarseConvolution class"""
1904 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1905 __repr__ = _swig_repr
1907 def convolution(em_map, model_map, voxel_data_threshold, recalc_ccnormfac=True):
1909 convolution(DensityMap em_map, DensityMap model_map, float voxel_data_threshold, bool recalc_ccnormfac=True) -> float
1910 convolution(DensityMap em_map, DensityMap model_map, float voxel_data_threshold) -> float
1912 return _IMP_em.CoarseConvolution_convolution(em_map, model_map, voxel_data_threshold, recalc_ccnormfac)
1914 convolution = staticmethod(convolution)
1917 """__init__(IMP::em::CoarseConvolution self) -> CoarseConvolution"""
1918 this = _IMP_em.new_CoarseConvolution()
1920 self.this.append(this)
1923 __swig_destroy__ = _IMP_em.delete_CoarseConvolution
1924 __del__ =
lambda self:
None
1925 CoarseConvolution_swigregister = _IMP_em.CoarseConvolution_swigregister
1926 CoarseConvolution_swigregister(CoarseConvolution)
1928 def CoarseConvolution_convolution(em_map, model_map, voxel_data_threshold, recalc_ccnormfac=True):
1930 convolution(DensityMap em_map, DensityMap model_map, float voxel_data_threshold, bool recalc_ccnormfac=True) -> float
1931 CoarseConvolution_convolution(DensityMap em_map, DensityMap model_map, float voxel_data_threshold) -> float
1933 return _IMP_em.CoarseConvolution_convolution(em_map, model_map, voxel_data_threshold, recalc_ccnormfac)
1936 """Proxy of C++ IMP::em::CoarseCCatIntervals class"""
1937 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1939 def __init__(self, *args):
1941 __init__(IMP::em::CoarseCCatIntervals self, int const & ncd) -> CoarseCCatIntervals
1942 __init__(IMP::em::CoarseCCatIntervals self) -> CoarseCCatIntervals
1944 this = _IMP_em.new_CoarseCCatIntervals(*args)
1946 self.this.append(this)
1950 def evaluate(self, em_map, model_map, deriv, scalefac, lderiv, eval_interval):
1951 """evaluate(CoarseCCatIntervals self, DensityMap em_map, SampledDensityMap model_map, IMP::algebra::Vector3Ds const & deriv, float scalefac, bool lderiv, unsigned long eval_interval) -> std::pair< double,IMP::algebra::Vector3Ds >"""
1952 return _IMP_em.CoarseCCatIntervals_evaluate(self, em_map, model_map, deriv, scalefac, lderiv, eval_interval)
1955 def get_version_info(self):
1956 """get_version_info(CoarseCCatIntervals self) -> VersionInfo"""
1957 return _IMP_em.CoarseCCatIntervals_get_version_info(self)
1961 """__str__(CoarseCCatIntervals self) -> std::string"""
1962 return _IMP_em.CoarseCCatIntervals___str__(self)
1966 """__repr__(CoarseCCatIntervals self) -> std::string"""
1967 return _IMP_em.CoarseCCatIntervals___repr__(self)
1972 return _object_cast_to_CoarseCCatIntervals(o)
1974 CoarseCCatIntervals_swigregister = _IMP_em.CoarseCCatIntervals_swigregister
1975 CoarseCCatIntervals_swigregister(CoarseCCatIntervals)
1979 """bayesem3d_get_distinct_and_counts(DensityMap em) -> std::map< double,int >"""
1980 return _IMP_em.bayesem3d_get_distinct_and_counts(em)
1983 """bayesem3d_get_cumulative_sum(DensityMap em) -> IMP::Floats"""
1984 return _IMP_em.bayesem3d_get_cumulative_sum(em)
1987 """bayesem3d_get_cumulative_sum_with_reference(DensityMap em) -> std::map< double,double >"""
1988 return _IMP_em.bayesem3d_get_cumulative_sum_with_reference(em)
1991 """bayesem3d_linear_interpolate(IMP::Floats const & x_data, IMP::Floats const & y_data, double x, bool extrapolate) -> double"""
1992 return _IMP_em.bayesem3d_linear_interpolate(x_data, y_data, x, extrapolate)
1995 """bayesem3d_get_logabssumexp(double x, double y, double sx, double sy) -> IMP::FloatPair"""
1996 return _IMP_em.bayesem3d_get_logabssumexp(x, y, sx, sy)
1999 """bayesem3d_get_logabssumprodexp(double x, double y, double wx, double wy) -> IMP::FloatPair"""
2000 return _IMP_em.bayesem3d_get_logabssumprodexp(x, y, wx, wy)
2003 """bayesem3d_get_logsumexp(double x, double y) -> double"""
2004 return _IMP_em.bayesem3d_get_logsumexp(x, y)
2007 """bayesem3d_get_logsumprodexp(double x, double y, double wx, double wy) -> double"""
2008 return _IMP_em.bayesem3d_get_logsumprodexp(x, y, wx, wy)
2011 """bayesem3d_get_em_density_squared(DensityMap em, long number_of_voxels) -> IMP::FloatPair"""
2012 return _IMP_em.bayesem3d_get_em_density_squared(em, number_of_voxels)
2015 """bayesem3d_get_value(Particle p, Vector3D pt, double mass_ii, KernelParameters kps) -> std::vector< double,std::allocator< double > >"""
2016 return _IMP_em.bayesem3d_get_value(p, pt, mass_ii, kps)
2019 """bayesem3d_get_value_no_deriv(Particle p, Vector3D pt, double mass_ii, KernelParameters kps) -> std::vector< double,std::allocator< double > >"""
2020 return _IMP_em.bayesem3d_get_value_no_deriv(p, pt, mass_ii, kps)
2024 bayesem3d_get_density_from_particle(DensityMap em, IMP::ParticlesTemp const & ps, double resolution, double const window_size=1.0) -> DensityMap
2025 bayesem3d_get_density_from_particle(DensityMap em, IMP::ParticlesTemp const & ps, double resolution) -> DensityMap
2027 return _IMP_em.bayesem3d_get_density_from_particle(em, ps, resolution, window_size)
2030 """bayesem3d_get_cross_correlation_coefficient(DensityMap em1, DensityMap em2) -> double"""
2031 return _IMP_em.bayesem3d_get_cross_correlation_coefficient(em1, em2)
2035 bayesem3d_get_score_and_derivative(DensityMap em, IMP::ParticlesTemp const & ps, double resolution, double sigma, double const window_size=1.0) -> std::pair< double,IMP::algebra::Vector3Ds >
2036 bayesem3d_get_score_and_derivative(DensityMap em, IMP::ParticlesTemp const & ps, double resolution, double sigma) -> std::pair< double,IMP::algebra::Vector3Ds >
2038 return _IMP_em.bayesem3d_get_score_and_derivative(em, ps, resolution, sigma, window_size)
2041 """bayesem3d_get_normalized_intensities(DensityMap em, IMP::ParticlesTemp const & ps, double resolution)"""
2042 return _IMP_em.bayesem3d_get_normalized_intensities(em, ps, resolution)
2044 """Proxy of C++ IMP::em::FitRestraint class"""
2045 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2047 def __init__(self, *args):
2049 __init__(IMP::em::FitRestraint self, IMP::ParticlesTemp ps, DensityMap em_map, IMP::FloatPair norm_factors, FloatKey weight_key, float scale=1, bool use_rigid_bodies=True, IMP::em::KernelType kt) -> FitRestraint
2050 __init__(IMP::em::FitRestraint self, IMP::ParticlesTemp ps, DensityMap em_map, IMP::FloatPair norm_factors, FloatKey weight_key, float scale=1, bool use_rigid_bodies=True) -> FitRestraint
2051 __init__(IMP::em::FitRestraint self, IMP::ParticlesTemp ps, DensityMap em_map, IMP::FloatPair norm_factors, FloatKey weight_key, float scale=1) -> FitRestraint
2052 __init__(IMP::em::FitRestraint self, IMP::ParticlesTemp ps, DensityMap em_map, IMP::FloatPair norm_factors, FloatKey weight_key) -> FitRestraint
2053 __init__(IMP::em::FitRestraint self, IMP::ParticlesTemp ps, DensityMap em_map, IMP::FloatPair norm_factors) -> FitRestraint
2054 __init__(IMP::em::FitRestraint self, IMP::ParticlesTemp ps, DensityMap em_map) -> FitRestraint
2056 this = _IMP_em.new_FitRestraint(*args)
2058 self.this.append(this)
2062 def get_model_dens_map(self):
2063 """get_model_dens_map(FitRestraint self) -> SampledDensityMap"""
2064 return _IMP_em.FitRestraint_get_model_dens_map(self)
2067 def set_scale_factor(self, scale):
2068 """set_scale_factor(FitRestraint self, float scale)"""
2069 return _IMP_em.FitRestraint_set_scale_factor(self, scale)
2072 def get_scale_factor(self):
2073 """get_scale_factor(FitRestraint self) -> float"""
2074 return _IMP_em.FitRestraint_get_scale_factor(self)
2077 def do_get_inputs(self):
2078 """do_get_inputs(FitRestraint self) -> IMP::ModelObjectsTemp"""
2079 return _IMP_em.FitRestraint_do_get_inputs(self)
2082 def get_version_info(self):
2083 """get_version_info(FitRestraint self) -> VersionInfo"""
2084 return _IMP_em.FitRestraint_get_version_info(self)
2088 """__str__(FitRestraint self) -> std::string"""
2089 return _IMP_em.FitRestraint___str__(self)
2093 """__repr__(FitRestraint self) -> std::string"""
2094 return _IMP_em.FitRestraint___repr__(self)
2099 return _object_cast_to_FitRestraint(o)
2101 FitRestraint_swigregister = _IMP_em.FitRestraint_swigregister
2102 FitRestraint_swigregister(FitRestraint)
2105 """Proxy of C++ IMP::em::FitRestraintBayesEM3D class"""
2106 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2108 def __init__(self, *args):
2110 __init__(IMP::em::FitRestraintBayesEM3D self, IMP::ParticlesTemp ps, DensityMap em_map, FloatKey weight_key, bool use_rigid_bodies=True, double sigma=.1, double window_size=1.0) -> FitRestraintBayesEM3D
2111 __init__(IMP::em::FitRestraintBayesEM3D self, IMP::ParticlesTemp ps, DensityMap em_map, FloatKey weight_key, bool use_rigid_bodies=True, double sigma=.1) -> FitRestraintBayesEM3D
2112 __init__(IMP::em::FitRestraintBayesEM3D self, IMP::ParticlesTemp ps, DensityMap em_map, FloatKey weight_key, bool use_rigid_bodies=True) -> FitRestraintBayesEM3D
2113 __init__(IMP::em::FitRestraintBayesEM3D self, IMP::ParticlesTemp ps, DensityMap em_map, FloatKey weight_key) -> FitRestraintBayesEM3D
2114 __init__(IMP::em::FitRestraintBayesEM3D self, IMP::ParticlesTemp ps, DensityMap em_map) -> FitRestraintBayesEM3D
2116 this = _IMP_em.new_FitRestraintBayesEM3D(*args)
2118 self.this.append(this)
2122 def do_get_inputs(self):
2123 """do_get_inputs(FitRestraintBayesEM3D self) -> IMP::ModelObjectsTemp"""
2124 return _IMP_em.FitRestraintBayesEM3D_do_get_inputs(self)
2127 def get_version_info(self):
2128 """get_version_info(FitRestraintBayesEM3D self) -> VersionInfo"""
2129 return _IMP_em.FitRestraintBayesEM3D_get_version_info(self)
2133 """__str__(FitRestraintBayesEM3D self) -> std::string"""
2134 return _IMP_em.FitRestraintBayesEM3D___str__(self)
2138 """__repr__(FitRestraintBayesEM3D self) -> std::string"""
2139 return _IMP_em.FitRestraintBayesEM3D___repr__(self)
2144 return _object_cast_to_FitRestraintBayesEM3D(o)
2146 FitRestraintBayesEM3D_swigregister = _IMP_em.FitRestraintBayesEM3D_swigregister
2147 FitRestraintBayesEM3D_swigregister(FitRestraintBayesEM3D)
2152 density2particles(DensityMap dmap, IMP::Float threshold, Model m, int step=1) -> IMP::Particles
2153 density2particles(DensityMap dmap, IMP::Float threshold, Model m) -> IMP::Particles
2155 return _IMP_em.density2particles(dmap, threshold, m, step)
2158 """density2vectors(DensityMap dmap, IMP::Float threshold) -> IMP::algebra::Vector3Ds"""
2159 return _IMP_em.density2vectors(dmap, threshold)
2163 particles2density(IMP::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix, int sig_cutoff=3, FloatKey weight_key) -> SampledDensityMap
2164 particles2density(IMP::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix, int sig_cutoff=3) -> SampledDensityMap
2165 particles2density(IMP::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix) -> SampledDensityMap
2167 return _IMP_em.particles2density(*args)
2171 particles2binarized_density(IMP::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix, int sig_cutoff=3, FloatKey weight_key) -> SampledDensityMap
2172 particles2binarized_density(IMP::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix, int sig_cutoff=3) -> SampledDensityMap
2173 particles2binarized_density(IMP::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix) -> SampledDensityMap
2175 return _IMP_em.particles2binarized_density(*args)
2179 particles2surface(IMP::ParticlesTemp const & ps, IMP::Float apix, FloatKey weight_key) -> SurfaceShellDensityMap
2180 particles2surface(IMP::ParticlesTemp const & ps, IMP::Float apix) -> SurfaceShellDensityMap
2182 return _IMP_em.particles2surface(*args)
2184 def calculate_intersection_score(d1, d2):
2185 """calculate_intersection_score(SurfaceShellDensityMap d1, SurfaceShellDensityMap d2) -> IMP::Float"""
2186 return _IMP_em.calculate_intersection_score(d1, d2)
2187 class SpiderHeader(object):
2188 """Proxy of C++ IMP::em::SpiderHeader class"""
2189 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2190 __repr__ = _swig_repr
2191 fNslice = _swig_property(_IMP_em.SpiderHeader_fNslice_get, _IMP_em.SpiderHeader_fNslice_set)
2192 fNrow = _swig_property(_IMP_em.SpiderHeader_fNrow_get, _IMP_em.SpiderHeader_fNrow_set)
2193 fNrec = _swig_property(_IMP_em.SpiderHeader_fNrec_get, _IMP_em.SpiderHeader_fNrec_set)
2194 fNlabel = _swig_property(_IMP_em.SpiderHeader_fNlabel_get, _IMP_em.SpiderHeader_fNlabel_set)
2195 fIform = _swig_property(_IMP_em.SpiderHeader_fIform_get, _IMP_em.SpiderHeader_fIform_set)
2196 fImami = _swig_property(_IMP_em.SpiderHeader_fImami_get, _IMP_em.SpiderHeader_fImami_set)
2197 fFmax = _swig_property(_IMP_em.SpiderHeader_fFmax_get, _IMP_em.SpiderHeader_fFmax_set)
2198 fFmin = _swig_property(_IMP_em.SpiderHeader_fFmin_get, _IMP_em.SpiderHeader_fFmin_set)
2199 fAv = _swig_property(_IMP_em.SpiderHeader_fAv_get, _IMP_em.SpiderHeader_fAv_set)
2200 fSig = _swig_property(_IMP_em.SpiderHeader_fSig_get, _IMP_em.SpiderHeader_fSig_set)
2201 fIhist = _swig_property(_IMP_em.SpiderHeader_fIhist_get, _IMP_em.SpiderHeader_fIhist_set)
2202 fNcol = _swig_property(_IMP_em.SpiderHeader_fNcol_get, _IMP_em.SpiderHeader_fNcol_set)
2203 fLabrec = _swig_property(_IMP_em.SpiderHeader_fLabrec_get, _IMP_em.SpiderHeader_fLabrec_set)
2204 fIangle = _swig_property(_IMP_em.SpiderHeader_fIangle_get, _IMP_em.SpiderHeader_fIangle_set)
2205 fPhi = _swig_property(_IMP_em.SpiderHeader_fPhi_get, _IMP_em.SpiderHeader_fPhi_set)
2206 fTheta = _swig_property(_IMP_em.SpiderHeader_fTheta_get, _IMP_em.SpiderHeader_fTheta_set)
2207 fPsi = _swig_property(_IMP_em.SpiderHeader_fPsi_get, _IMP_em.SpiderHeader_fPsi_set)
2208 fXoff = _swig_property(_IMP_em.SpiderHeader_fXoff_get, _IMP_em.SpiderHeader_fXoff_set)
2209 fYoff = _swig_property(_IMP_em.SpiderHeader_fYoff_get, _IMP_em.SpiderHeader_fYoff_set)
2210 fZoff = _swig_property(_IMP_em.SpiderHeader_fZoff_get, _IMP_em.SpiderHeader_fZoff_set)
2211 fScale = _swig_property(_IMP_em.SpiderHeader_fScale_get, _IMP_em.SpiderHeader_fScale_set)
2212 fLabbyt = _swig_property(_IMP_em.SpiderHeader_fLabbyt_get, _IMP_em.SpiderHeader_fLabbyt_set)
2213 fLenbyt = _swig_property(_IMP_em.SpiderHeader_fLenbyt_get, _IMP_em.SpiderHeader_fLenbyt_set)
2214 fNothing = _swig_property(_IMP_em.SpiderHeader_fNothing_get, _IMP_em.SpiderHeader_fNothing_set)
2215 fFlag = _swig_property(_IMP_em.SpiderHeader_fFlag_get, _IMP_em.SpiderHeader_fFlag_set)
2216 fPhi1 = _swig_property(_IMP_em.SpiderHeader_fPhi1_get, _IMP_em.SpiderHeader_fPhi1_set)
2217 fTheta1 = _swig_property(_IMP_em.SpiderHeader_fTheta1_get, _IMP_em.SpiderHeader_fTheta1_set)
2218 fPsi1 = _swig_property(_IMP_em.SpiderHeader_fPsi1_get, _IMP_em.SpiderHeader_fPsi1_set)
2219 fPhi2 = _swig_property(_IMP_em.SpiderHeader_fPhi2_get, _IMP_em.SpiderHeader_fPhi2_set)
2220 fTheta2 = _swig_property(_IMP_em.SpiderHeader_fTheta2_get, _IMP_em.SpiderHeader_fTheta2_set)
2221 fPsi2 = _swig_property(_IMP_em.SpiderHeader_fPsi2_get, _IMP_em.SpiderHeader_fPsi2_set)
2222 fGeo_matrix = _swig_property(_IMP_em.SpiderHeader_fGeo_matrix_get, _IMP_em.SpiderHeader_fGeo_matrix_set)
2223 fAngle1 = _swig_property(_IMP_em.SpiderHeader_fAngle1_get, _IMP_em.SpiderHeader_fAngle1_set)
2224 fr1 = _swig_property(_IMP_em.SpiderHeader_fr1_get, _IMP_em.SpiderHeader_fr1_set)
2225 fr2 = _swig_property(_IMP_em.SpiderHeader_fr2_get, _IMP_em.SpiderHeader_fr2_set)
2226 RTflag = _swig_property(_IMP_em.SpiderHeader_RTflag_get, _IMP_em.SpiderHeader_RTflag_set)
2227 Astart = _swig_property(_IMP_em.SpiderHeader_Astart_get, _IMP_em.SpiderHeader_Astart_set)
2228 Aend = _swig_property(_IMP_em.SpiderHeader_Aend_get, _IMP_em.SpiderHeader_Aend_set)
2229 Ainc = _swig_property(_IMP_em.SpiderHeader_Ainc_get, _IMP_em.SpiderHeader_Ainc_set)
2230 Rsigma = _swig_property(_IMP_em.SpiderHeader_Rsigma_get, _IMP_em.SpiderHeader_Rsigma_set)
2231 Tstart = _swig_property(_IMP_em.SpiderHeader_Tstart_get, _IMP_em.SpiderHeader_Tstart_set)
2232 Tend = _swig_property(_IMP_em.SpiderHeader_Tend_get, _IMP_em.SpiderHeader_Tend_set)
2233 Tinc = _swig_property(_IMP_em.SpiderHeader_Tinc_get, _IMP_em.SpiderHeader_Tinc_set)
2234 Weight = _swig_property(_IMP_em.SpiderHeader_Weight_get, _IMP_em.SpiderHeader_Weight_set)
2235 Flip = _swig_property(_IMP_em.SpiderHeader_Flip_get, _IMP_em.SpiderHeader_Flip_set)
2236 empty = _swig_property(_IMP_em.SpiderHeader_empty_get, _IMP_em.SpiderHeader_empty_set)
2237 szIDat = _swig_property(_IMP_em.SpiderHeader_szIDat_get, _IMP_em.SpiderHeader_szIDat_set)
2238 szITim = _swig_property(_IMP_em.SpiderHeader_szITim_get, _IMP_em.SpiderHeader_szITim_set)
2239 szITit = _swig_property(_IMP_em.SpiderHeader_szITit_get, _IMP_em.SpiderHeader_szITit_set)
2241 def show(self, out):
2242 """show(SpiderHeader self, _ostream out)"""
2243 return _IMP_em.SpiderHeader_show(self, out)
2247 """__init__(IMP::em::SpiderHeader self) -> SpiderHeader"""
2248 this = _IMP_em.new_SpiderHeader()
2250 self.this.append(this)
2253 __swig_destroy__ = _IMP_em.delete_SpiderHeader
2254 __del__ =
lambda self:
None
2255 SpiderHeader_swigregister = _IMP_em.SpiderHeader_swigregister
2256 SpiderHeader_swigregister(SpiderHeader)
2258 class ImageHeader(object):
2259 """Proxy of C++ IMP::em::ImageHeader class"""
2260 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2261 __repr__ = _swig_repr
2262 IMG_BYTE = _IMP_em.ImageHeader_IMG_BYTE
2263 IMG_IMPEM = _IMP_em.ImageHeader_IMG_IMPEM
2264 IMG_INT = _IMP_em.ImageHeader_IMG_INT
2265 VOL_BYTE = _IMP_em.ImageHeader_VOL_BYTE
2266 VOL_IMPEM = _IMP_em.ImageHeader_VOL_IMPEM
2267 VOL_INT = _IMP_em.ImageHeader_VOL_INT
2268 IMG_FOURIER = _IMP_em.ImageHeader_IMG_FOURIER
2269 VOL_FOURIER = _IMP_em.ImageHeader_VOL_FOURIER
2271 def __init__(self, *args):
2273 __init__(IMP::em::ImageHeader self) -> ImageHeader
2274 __init__(IMP::em::ImageHeader self, IMP::em::ImageHeader::img_type im) -> ImageHeader
2275 __init__(IMP::em::ImageHeader self, float im) -> ImageHeader
2277 this = _IMP_em.new_ImageHeader(*args)
2279 self.this.append(this)
2283 def get_image_type(self):
2284 """get_image_type(ImageHeader self) -> float"""
2285 return _IMP_em.ImageHeader_get_image_type(self)
2288 def set_image_type(self, *args):
2290 set_image_type(ImageHeader self, IMP::em::ImageHeader::img_type im)
2291 set_image_type(ImageHeader self, float im)
2293 return _IMP_em.ImageHeader_set_image_type(self, *args)
2296 def do_show(self, out):
2297 """do_show(ImageHeader self, _ostream out)"""
2298 return _IMP_em.ImageHeader_do_show(self, out)
2301 def show(self, *args):
2303 show(ImageHeader self, _ostream out)
2304 show(ImageHeader self)
2306 return _IMP_em.ImageHeader_show(self, *args)
2309 def print_hard(self, out):
2310 """print_hard(ImageHeader self, _ostream out)"""
2311 return _IMP_em.ImageHeader_print_hard(self, out)
2314 def show_projection_params(self, out):
2315 """show_projection_params(ImageHeader self, _ostream out)"""
2316 return _IMP_em.ImageHeader_show_projection_params(self, out)
2319 def read(self, *args):
2321 read(ImageHeader self, IMP::String const filename, bool skip_type_check=False, bool force_reversed=False, bool skip_extra_checkings=False) -> int
2322 read(ImageHeader self, IMP::String const filename, bool skip_type_check=False, bool force_reversed=False) -> int
2323 read(ImageHeader self, IMP::String const filename, bool skip_type_check=False) -> int
2324 read(ImageHeader self, IMP::String const filename) -> int
2325 read(ImageHeader self, std::ifstream & f, bool skip_type_check=False, bool force_reversed=False, bool skip_extra_checkings=False) -> bool
2326 read(ImageHeader self, std::ifstream & f, bool skip_type_check=False, bool force_reversed=False) -> bool
2327 read(ImageHeader self, std::ifstream & f, bool skip_type_check=False) -> bool
2328 read(ImageHeader self, std::ifstream & f) -> bool
2330 return _IMP_em.ImageHeader_read(self, *args)
2333 def write(self, *args):
2335 write(ImageHeader self, IMP::String const & filename, bool force_reversed=False)
2336 write(ImageHeader self, IMP::String const & filename)
2337 write(ImageHeader self, std::ofstream & f, bool force_reversed=False)
2338 write(ImageHeader self, std::ofstream & f)
2340 return _IMP_em.ImageHeader_write(self, *args)
2344 """clear(ImageHeader self)"""
2345 return _IMP_em.ImageHeader_clear(self)
2348 def set_header(self):
2349 """set_header(ImageHeader self)"""
2350 return _IMP_em.ImageHeader_set_header(self)
2353 def get_reversed(self):
2354 """get_reversed(ImageHeader self) -> bool"""
2355 return _IMP_em.ImageHeader_get_reversed(self)
2358 def set_reversed(self, value):
2359 """set_reversed(ImageHeader self, bool value)"""
2360 return _IMP_em.ImageHeader_set_reversed(self, value)
2363 def get_number_of_slices(self):
2364 """get_number_of_slices(ImageHeader self) -> unsigned int"""
2365 return _IMP_em.ImageHeader_get_number_of_slices(self)
2368 def set_number_of_slices(self, n):
2369 """set_number_of_slices(ImageHeader self, unsigned int n)"""
2370 return _IMP_em.ImageHeader_set_number_of_slices(self, n)
2373 def get_number_of_rows(self):
2374 """get_number_of_rows(ImageHeader self) -> unsigned int"""
2375 return _IMP_em.ImageHeader_get_number_of_rows(self)
2378 def set_number_of_rows(self, n):
2379 """set_number_of_rows(ImageHeader self, unsigned int n)"""
2380 return _IMP_em.ImageHeader_set_number_of_rows(self, n)
2383 def get_number_of_columns(self):
2384 """get_number_of_columns(ImageHeader self) -> unsigned int"""
2385 return _IMP_em.ImageHeader_get_number_of_columns(self)
2388 def set_number_of_columns(self, n):
2389 """set_number_of_columns(ImageHeader self, unsigned int n)"""
2390 return _IMP_em.ImageHeader_set_number_of_columns(self, n)
2393 def get_old_rot(self):
2394 """get_old_rot(ImageHeader self) -> float"""
2395 return _IMP_em.ImageHeader_get_old_rot(self)
2398 def set_old_rot(self, value):
2399 """set_old_rot(ImageHeader self, float value)"""
2400 return _IMP_em.ImageHeader_set_old_rot(self, value)
2403 def get_fAngle1(self):
2404 """get_fAngle1(ImageHeader self) -> float"""
2405 return _IMP_em.ImageHeader_get_fAngle1(self)
2408 def set_fAngle1(self, value):
2409 """set_fAngle1(ImageHeader self, float value)"""
2410 return _IMP_em.ImageHeader_set_fAngle1(self, value)
2413 def get_Scale(self):
2414 """get_Scale(ImageHeader self) -> float"""
2415 return _IMP_em.ImageHeader_get_Scale(self)
2418 def set_Scale(self, value):
2419 """set_Scale(ImageHeader self, float value)"""
2420 return _IMP_em.ImageHeader_set_Scale(self, value)
2424 """get_Flip(ImageHeader self) -> float"""
2425 return _IMP_em.ImageHeader_get_Flip(self)
2428 def set_Flip(self, value):
2429 """set_Flip(ImageHeader self, float value)"""
2430 return _IMP_em.ImageHeader_set_Flip(self, value)
2433 def get_Weight(self):
2434 """get_Weight(ImageHeader self) -> float"""
2435 return _IMP_em.ImageHeader_get_Weight(self)
2438 def set_Weight(self, value):
2439 """set_Weight(ImageHeader self, float value)"""
2440 return _IMP_em.ImageHeader_set_Weight(self, value)
2443 def get_fNrec(self):
2444 """get_fNrec(ImageHeader self) -> float"""
2445 return _IMP_em.ImageHeader_get_fNrec(self)
2448 def set_fNrec(self, value):
2449 """set_fNrec(ImageHeader self, float value)"""
2450 return _IMP_em.ImageHeader_set_fNrec(self, value)
2453 def get_fNlabel(self):
2454 """get_fNlabel(ImageHeader self) -> float"""
2455 return _IMP_em.ImageHeader_get_fNlabel(self)
2458 def set_fNlabel(self, value):
2459 """set_fNlabel(ImageHeader self, float value)"""
2460 return _IMP_em.ImageHeader_set_fNlabel(self, value)
2463 def get_fIform(self):
2464 """get_fIform(ImageHeader self) -> float"""
2465 return _IMP_em.ImageHeader_get_fIform(self)
2468 def set_fIform(self, value):
2469 """set_fIform(ImageHeader self, float value)"""
2470 return _IMP_em.ImageHeader_set_fIform(self, value)
2473 def get_fImami(self):
2474 """get_fImami(ImageHeader self) -> float"""
2475 return _IMP_em.ImageHeader_get_fImami(self)
2478 def set_fImami(self, value):
2479 """set_fImami(ImageHeader self, float value)"""
2480 return _IMP_em.ImageHeader_set_fImami(self, value)
2483 def get_fFmax(self):
2484 """get_fFmax(ImageHeader self) -> float"""
2485 return _IMP_em.ImageHeader_get_fFmax(self)
2488 def set_fFmax(self, value):
2489 """set_fFmax(ImageHeader self, float value)"""
2490 return _IMP_em.ImageHeader_set_fFmax(self, value)
2493 def get_fFmin(self):
2494 """get_fFmin(ImageHeader self) -> float"""
2495 return _IMP_em.ImageHeader_get_fFmin(self)
2498 def set_fFmin(self, value):
2499 """set_fFmin(ImageHeader self, float value)"""
2500 return _IMP_em.ImageHeader_set_fFmin(self, value)
2504 """get_fAv(ImageHeader self) -> float"""
2505 return _IMP_em.ImageHeader_get_fAv(self)
2508 def set_fAv(self, value):
2509 """set_fAv(ImageHeader self, float value)"""
2510 return _IMP_em.ImageHeader_set_fAv(self, value)
2514 """get_fSig(ImageHeader self) -> float"""
2515 return _IMP_em.ImageHeader_get_fSig(self)
2518 def set_fSig(self, value):
2519 """set_fSig(ImageHeader self, float value)"""
2520 return _IMP_em.ImageHeader_set_fSig(self, value)
2523 def get_fIhist(self):
2524 """get_fIhist(ImageHeader self) -> float"""
2525 return _IMP_em.ImageHeader_get_fIhist(self)
2528 def set_fIhist(self, value):
2529 """set_fIhist(ImageHeader self, float value)"""
2530 return _IMP_em.ImageHeader_set_fIhist(self, value)
2533 def get_fLabrec(self):
2534 """get_fLabrec(ImageHeader self) -> float"""
2535 return _IMP_em.ImageHeader_get_fLabrec(self)
2538 def set_fLabrec(self, value):
2539 """set_fLabrec(ImageHeader self, float value)"""
2540 return _IMP_em.ImageHeader_set_fLabrec(self, value)
2543 def get_fIangle(self):
2544 """get_fIangle(ImageHeader self) -> float"""
2545 return _IMP_em.ImageHeader_get_fIangle(self)
2548 def set_fIangle(self, value):
2549 """set_fIangle(ImageHeader self, float value)"""
2550 return _IMP_em.ImageHeader_set_fIangle(self, value)
2553 def get_origin(self):
2554 """get_origin(ImageHeader self) -> Vector3D"""
2555 return _IMP_em.ImageHeader_get_origin(self)
2558 def set_origin(self, *args):
2560 set_origin(ImageHeader self, Vector3D v)
2561 set_origin(ImageHeader self, Vector2D v)
2563 return _IMP_em.ImageHeader_set_origin(self, *args)
2566 def get_object_pixel_size(self):
2567 """get_object_pixel_size(ImageHeader self) -> float"""
2568 return _IMP_em.ImageHeader_get_object_pixel_size(self)
2571 def set_object_pixel_size(self, value):
2572 """set_object_pixel_size(ImageHeader self, float value)"""
2573 return _IMP_em.ImageHeader_set_object_pixel_size(self, value)
2576 def get_fLabbyt(self):
2577 """get_fLabbyt(ImageHeader self) -> float"""
2578 return _IMP_em.ImageHeader_get_fLabbyt(self)
2581 def set_fLabbyt(self, value):
2582 """set_fLabbyt(ImageHeader self, float value)"""
2583 return _IMP_em.ImageHeader_set_fLabbyt(self, value)
2586 def get_fLenbyt(self):
2587 """get_fLenbyt(ImageHeader self) -> float"""
2588 return _IMP_em.ImageHeader_get_fLenbyt(self)
2591 def set_fLenbyt(self, value):
2592 """set_fLenbyt(ImageHeader self, float value)"""
2593 return _IMP_em.ImageHeader_set_fLenbyt(self, value)
2596 def get_fGeo_matrix(self, i, j):
2597 """get_fGeo_matrix(ImageHeader self, unsigned int i, unsigned int j) -> double"""
2598 return _IMP_em.ImageHeader_get_fGeo_matrix(self, i, j)
2601 def get_fFlag(self):
2602 """get_fFlag(ImageHeader self) -> float"""
2603 return _IMP_em.ImageHeader_get_fFlag(self)
2606 def set_fFlag(self, value):
2607 """set_fFlag(ImageHeader self, float value)"""
2608 return _IMP_em.ImageHeader_set_fFlag(self, value)
2611 def get_euler_angles(self):
2612 """get_euler_angles(ImageHeader self) -> Vector3D"""
2613 return _IMP_em.ImageHeader_get_euler_angles(self)
2616 def get_euler_angles1(self):
2617 """get_euler_angles1(ImageHeader self) -> Vector3D"""
2618 return _IMP_em.ImageHeader_get_euler_angles1(self)
2621 def get_euler_angles2(self):
2622 """get_euler_angles2(ImageHeader self) -> Vector3D"""
2623 return _IMP_em.ImageHeader_get_euler_angles2(self)
2626 def set_euler_angles(self, euler):
2627 """set_euler_angles(ImageHeader self, Vector3D euler)"""
2628 return _IMP_em.ImageHeader_set_euler_angles(self, euler)
2631 def set_euler_angles1(self, euler):
2632 """set_euler_angles1(ImageHeader self, Vector3D euler)"""
2633 return _IMP_em.ImageHeader_set_euler_angles1(self, euler)
2636 def set_euler_angles2(self, euler):
2637 """set_euler_angles2(ImageHeader self, Vector3D euler)"""
2638 return _IMP_em.ImageHeader_set_euler_angles2(self, euler)
2641 def is_normalized(self):
2642 """is_normalized(ImageHeader self) -> bool"""
2643 return _IMP_em.ImageHeader_is_normalized(self)
2647 """set_date(ImageHeader self)"""
2648 return _IMP_em.ImageHeader_set_date(self)
2652 """set_time(ImageHeader self)"""
2653 return _IMP_em.ImageHeader_set_time(self)
2656 def set_title(self, newName):
2657 """set_title(ImageHeader self, IMP::String newName)"""
2658 return _IMP_em.ImageHeader_set_title(self, newName)
2660 __swig_destroy__ = _IMP_em.delete_ImageHeader
2661 __del__ =
lambda self:
None
2662 ImageHeader_swigregister = _IMP_em.ImageHeader_swigregister
2663 ImageHeader_swigregister(ImageHeader)
2665 class SpiderMapReaderWriter(MapReaderWriter):
2666 """Proxy of C++ IMP::em::SpiderMapReaderWriter class"""
2667 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2668 filename_ = _swig_property(_IMP_em.SpiderMapReaderWriter_filename__get, _IMP_em.SpiderMapReaderWriter_filename__set)
2669 skip_type_check_ = _swig_property(_IMP_em.SpiderMapReaderWriter_skip_type_check__get, _IMP_em.SpiderMapReaderWriter_skip_type_check__set)
2670 force_reversed_ = _swig_property(_IMP_em.SpiderMapReaderWriter_force_reversed__get, _IMP_em.SpiderMapReaderWriter_force_reversed__set)
2671 skip_extra_checkings_ = _swig_property(_IMP_em.SpiderMapReaderWriter_skip_extra_checkings__get, _IMP_em.SpiderMapReaderWriter_skip_extra_checkings__set)
2673 def __init__(self, *args):
2675 __init__(IMP::em::SpiderMapReaderWriter self) -> SpiderMapReaderWriter
2676 __init__(IMP::em::SpiderMapReaderWriter self, IMP::String filename, bool skip_type_check, bool force_reversed, bool skip_extra_checkings) -> SpiderMapReaderWriter
2678 this = _IMP_em.new_SpiderMapReaderWriter(*args)
2680 self.this.append(this)
2685 """__str__(SpiderMapReaderWriter self) -> std::string"""
2686 return _IMP_em.SpiderMapReaderWriter___str__(self)
2690 """__repr__(SpiderMapReaderWriter self) -> std::string"""
2691 return _IMP_em.SpiderMapReaderWriter___repr__(self)
2696 return _object_cast_to_SpiderMapReaderWriter(o)
2698 SpiderMapReaderWriter_swigregister = _IMP_em.SpiderMapReaderWriter_swigregister
2699 SpiderMapReaderWriter_swigregister(SpiderMapReaderWriter)
2701 class FittingSolutions(object):
2702 """Proxy of C++ IMP::em::FittingSolutions class"""
2703 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2706 """__init__(IMP::em::FittingSolutions self) -> FittingSolutions"""
2707 this = _IMP_em.new_FittingSolutions()
2709 self.this.append(this)
2713 def get_number_of_solutions(self):
2714 """get_number_of_solutions(FittingSolutions self) -> int"""
2715 return _IMP_em.FittingSolutions_get_number_of_solutions(self)
2718 def get_transformation(self, i):
2719 """get_transformation(FittingSolutions self, unsigned int i) -> Transformation3D"""
2720 return _IMP_em.FittingSolutions_get_transformation(self, i)
2723 def get_score(self, i):
2724 """get_score(FittingSolutions self, unsigned int i) -> IMP::Float"""
2725 return _IMP_em.FittingSolutions_get_score(self, i)
2728 def set_score(self, i, score):
2729 """set_score(FittingSolutions self, unsigned int i, IMP::Float score)"""
2730 return _IMP_em.FittingSolutions_set_score(self, i, score)
2733 def add_solution(self, t, score):
2734 """add_solution(FittingSolutions self, Transformation3D t, IMP::Float score)"""
2735 return _IMP_em.FittingSolutions_add_solution(self, t, score)
2738 def sort(self, reverse=False):
2740 sort(FittingSolutions self, bool reverse=False)
2741 sort(FittingSolutions self)
2743 return _IMP_em.FittingSolutions_sort(self, reverse)
2747 """multiply(FittingSolutions self, Transformation3D t)"""
2748 return _IMP_em.FittingSolutions_multiply(self, t)
2751 def get_transformations(self):
2752 """get_transformations(FittingSolutions self) -> IMP::algebra::Transformation3Ds"""
2753 return _IMP_em.FittingSolutions_get_transformations(self)
2756 def show(self, *args):
2758 show(FittingSolutions self, _ostream out)
2759 show(FittingSolutions self)
2761 return _IMP_em.FittingSolutions_show(self, *args)
2765 """__str__(FittingSolutions self) -> std::string"""
2766 return _IMP_em.FittingSolutions___str__(self)
2770 """__repr__(FittingSolutions self) -> std::string"""
2771 return _IMP_em.FittingSolutions___repr__(self)
2774 def _get_as_binary(self):
2775 """_get_as_binary(FittingSolutions self) -> PyObject *"""
2776 return _IMP_em.FittingSolutions__get_as_binary(self)
2779 def _set_from_binary(self, p):
2780 """_set_from_binary(FittingSolutions self, PyObject * p)"""
2781 return _IMP_em.FittingSolutions__set_from_binary(self, p)
2784 def __getstate__(self):
2785 p = self._get_as_binary()
2786 if len(self.__dict__) > 1:
2787 d = self.__dict__.copy()
2792 def __setstate__(self, p):
2793 if not hasattr(self,
'this'):
2795 if isinstance(p, tuple):
2797 self.__dict__.update(d)
2798 return self._set_from_binary(p)
2800 __swig_destroy__ = _IMP_em.delete_FittingSolutions
2801 __del__ =
lambda self:
None
2802 FittingSolutions_swigregister = _IMP_em.FittingSolutions_swigregister
2803 FittingSolutions_swigregister(FittingSolutions)
2806 def local_rigid_fitting_around_point(p, refiner, weight_key, dmap, anchor_centroid, display_log, number_of_optimization_runs=5, number_of_mc_steps=10, number_of_cg_steps=100, max_translation=2., max_rotation=.3, fast=False):
2808 local_rigid_fitting_around_point(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, Vector3D anchor_centroid, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10, IMP::Int number_of_cg_steps=100, IMP::Float max_translation=2., IMP::Float max_rotation=.3, bool fast=False) -> FittingSolutions
2809 local_rigid_fitting_around_point(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, Vector3D anchor_centroid, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10, IMP::Int number_of_cg_steps=100, IMP::Float max_translation=2., IMP::Float max_rotation=.3) -> FittingSolutions
2810 local_rigid_fitting_around_point(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, Vector3D anchor_centroid, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10, IMP::Int number_of_cg_steps=100, IMP::Float max_translation=2.) -> FittingSolutions
2811 local_rigid_fitting_around_point(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, Vector3D anchor_centroid, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10, IMP::Int number_of_cg_steps=100) -> FittingSolutions
2812 local_rigid_fitting_around_point(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, Vector3D anchor_centroid, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10) -> FittingSolutions
2813 local_rigid_fitting_around_point(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, Vector3D anchor_centroid, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5) -> FittingSolutions
2814 local_rigid_fitting_around_point(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, Vector3D anchor_centroid, IMP::OptimizerStates display_log) -> FittingSolutions
2816 return _IMP_em.local_rigid_fitting_around_point(p, refiner, weight_key, dmap, anchor_centroid, display_log, number_of_optimization_runs, number_of_mc_steps, number_of_cg_steps, max_translation, max_rotation, fast)
2818 def local_rigid_fitting(p, refiner, weight_key, dmap, display_log, number_of_optimization_runs=5, number_of_mc_steps=10, number_of_cg_steps=100, max_translation=2., max_rotation=.3, fast=True):
2820 local_rigid_fitting(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10, IMP::Int number_of_cg_steps=100, IMP::Float max_translation=2., IMP::Float max_rotation=.3, bool fast=True) -> FittingSolutions
2821 local_rigid_fitting(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10, IMP::Int number_of_cg_steps=100, IMP::Float max_translation=2., IMP::Float max_rotation=.3) -> FittingSolutions
2822 local_rigid_fitting(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10, IMP::Int number_of_cg_steps=100, IMP::Float max_translation=2.) -> FittingSolutions
2823 local_rigid_fitting(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10, IMP::Int number_of_cg_steps=100) -> FittingSolutions
2824 local_rigid_fitting(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10) -> FittingSolutions
2825 local_rigid_fitting(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5) -> FittingSolutions
2826 local_rigid_fitting(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, IMP::OptimizerStates display_log) -> FittingSolutions
2828 return _IMP_em.local_rigid_fitting(p, refiner, weight_key, dmap, display_log, number_of_optimization_runs, number_of_mc_steps, number_of_cg_steps, max_translation, max_rotation, fast)
2830 def local_rigid_fitting_around_points(p, refiner, wei_key, dmap, anchor_centroids, display_log, number_of_optimization_runs=5, number_of_mc_steps=10, number_of_cg_steps=100, max_translation=2., max_rotation=.3):
2832 local_rigid_fitting_around_points(Particle p, Refiner refiner, FloatKey wei_key, DensityMap dmap, IMP::algebra::Vector3Ds const & anchor_centroids, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10, IMP::Int number_of_cg_steps=100, IMP::Float max_translation=2., IMP::Float max_rotation=.3) -> FittingSolutions
2833 local_rigid_fitting_around_points(Particle p, Refiner refiner, FloatKey wei_key, DensityMap dmap, IMP::algebra::Vector3Ds const & anchor_centroids, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10, IMP::Int number_of_cg_steps=100, IMP::Float max_translation=2.) -> FittingSolutions
2834 local_rigid_fitting_around_points(Particle p, Refiner refiner, FloatKey wei_key, DensityMap dmap, IMP::algebra::Vector3Ds const & anchor_centroids, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10, IMP::Int number_of_cg_steps=100) -> FittingSolutions
2835 local_rigid_fitting_around_points(Particle p, Refiner refiner, FloatKey wei_key, DensityMap dmap, IMP::algebra::Vector3Ds const & anchor_centroids, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10) -> FittingSolutions
2836 local_rigid_fitting_around_points(Particle p, Refiner refiner, FloatKey wei_key, DensityMap dmap, IMP::algebra::Vector3Ds const & anchor_centroids, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5) -> FittingSolutions
2837 local_rigid_fitting_around_points(Particle p, Refiner refiner, FloatKey wei_key, DensityMap dmap, IMP::algebra::Vector3Ds const & anchor_centroids, IMP::OptimizerStates display_log) -> FittingSolutions
2839 return _IMP_em.local_rigid_fitting_around_points(p, refiner, wei_key, dmap, anchor_centroids, display_log, number_of_optimization_runs, number_of_mc_steps, number_of_cg_steps, max_translation, max_rotation)
2841 def local_rigid_fitting_grid_search(ps, wei_key, dmap, max_voxels_translation=2, translation_step=1, max_angle_in_radians=0.174, number_of_rotations=100):
2843 local_rigid_fitting_grid_search(IMP::ParticlesTemp const & ps, FloatKey wei_key, DensityMap dmap, IMP::Int max_voxels_translation=2, IMP::Int translation_step=1, IMP::Float max_angle_in_radians=0.174, IMP::Int number_of_rotations=100) -> FittingSolutions
2844 local_rigid_fitting_grid_search(IMP::ParticlesTemp const & ps, FloatKey wei_key, DensityMap dmap, IMP::Int max_voxels_translation=2, IMP::Int translation_step=1, IMP::Float max_angle_in_radians=0.174) -> FittingSolutions
2845 local_rigid_fitting_grid_search(IMP::ParticlesTemp const & ps, FloatKey wei_key, DensityMap dmap, IMP::Int max_voxels_translation=2, IMP::Int translation_step=1) -> FittingSolutions
2846 local_rigid_fitting_grid_search(IMP::ParticlesTemp const & ps, FloatKey wei_key, DensityMap dmap, IMP::Int max_voxels_translation=2) -> FittingSolutions
2847 local_rigid_fitting_grid_search(IMP::ParticlesTemp const & ps, FloatKey wei_key, DensityMap dmap) -> FittingSolutions
2849 return _IMP_em.local_rigid_fitting_grid_search(ps, wei_key, dmap, max_voxels_translation, translation_step, max_angle_in_radians, number_of_rotations)
2853 compute_fitting_scores(IMP::ParticlesTemp const & ps, DensityMap em_map, IMP::algebra::Transformation3Ds const & transformations, bool fast_version=False, bool local_score=False, FloatKey wei_key) -> FittingSolutions
2854 compute_fitting_scores(IMP::ParticlesTemp const & ps, DensityMap em_map, IMP::algebra::Transformation3Ds const & transformations, bool fast_version=False, bool local_score=False) -> FittingSolutions
2855 compute_fitting_scores(IMP::ParticlesTemp const & ps, DensityMap em_map, IMP::algebra::Transformation3Ds const & transformations, bool fast_version=False) -> FittingSolutions
2856 compute_fitting_scores(IMP::ParticlesTemp const & ps, DensityMap em_map, IMP::algebra::Transformation3Ds const & transformations) -> FittingSolutions
2857 compute_fitting_scores(DensityMap em_map, RigidBody rb, Refiner refiner, IMP::algebra::Transformation3Ds const & transformations) -> FittingSolutions
2859 return _IMP_em.compute_fitting_scores(*args)
2863 compute_fitting_score(IMP::ParticlesTemp const & ps, DensityMap em_map, FloatKey wei_key) -> IMP::Float
2864 compute_fitting_score(IMP::ParticlesTemp const & ps, DensityMap em_map) -> IMP::Float
2866 return _IMP_em.compute_fitting_score(*args)
2870 get_number_of_particles_outside_of_the_density(DensityMap dmap, IMP::Particles const & ps, Transformation3D t, float thr=0.0) -> long
2871 get_number_of_particles_outside_of_the_density(DensityMap dmap, IMP::Particles const & ps, Transformation3D t) -> long
2872 get_number_of_particles_outside_of_the_density(DensityMap dmap, IMP::Particles const & ps) -> long
2874 return _IMP_em.get_number_of_particles_outside_of_the_density(*args)
2878 get_numbers_of_particles_outside_of_the_density(DensityMap dmap, IMP::Particles const & ps, IMP::algebra::Transformation3Ds const & transformations, float thr=0.0) -> IMP::Ints
2879 get_numbers_of_particles_outside_of_the_density(DensityMap dmap, IMP::Particles const & ps, IMP::algebra::Transformation3Ds const & transformations) -> IMP::Ints
2881 return _IMP_em.get_numbers_of_particles_outside_of_the_density(dmap, ps, transformations, thr)
2885 get_percentage_of_voxels_covered_by_particles(DensityMap dmap, IMP::Particles const & ps, float smoothing_radius=3., Transformation3D t, float thr=0.0) -> double
2886 get_percentage_of_voxels_covered_by_particles(DensityMap dmap, IMP::Particles const & ps, float smoothing_radius=3., Transformation3D t) -> double
2887 get_percentage_of_voxels_covered_by_particles(DensityMap dmap, IMP::Particles const & ps, float smoothing_radius=3.) -> double
2888 get_percentage_of_voxels_covered_by_particles(DensityMap dmap, IMP::Particles const & ps) -> double
2890 return _IMP_em.get_percentage_of_voxels_covered_by_particles(*args)
2892 """Proxy of C++ IMP::em::HighDensityEmbedding class"""
2893 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2895 def __init__(self, dm, threshold):
2896 """__init__(IMP::em::HighDensityEmbedding self, DensityMap dm, double threshold) -> HighDensityEmbedding"""
2897 this = _IMP_em.new_HighDensityEmbedding(dm, threshold)
2899 self.this.append(this)
2903 def get_version_info(self):
2904 """get_version_info(HighDensityEmbedding self) -> VersionInfo"""
2905 return _IMP_em.HighDensityEmbedding_get_version_info(self)
2909 """__str__(HighDensityEmbedding self) -> std::string"""
2910 return _IMP_em.HighDensityEmbedding___str__(self)
2914 """__repr__(HighDensityEmbedding self) -> std::string"""
2915 return _IMP_em.HighDensityEmbedding___repr__(self)
2920 return _object_cast_to_HighDensityEmbedding(o)
2922 HighDensityEmbedding_swigregister = _IMP_em.HighDensityEmbedding_swigregister
2923 HighDensityEmbedding_swigregister(HighDensityEmbedding)
2927 """mask_and_norm(DensityMap dmap, DensityMap mask) -> DensityMap"""
2928 return _IMP_em.mask_and_norm(dmap, mask)
2931 """get_volume_at_threshold(DensityMap m, IMP::Float threshold) -> IMP::Float"""
2932 return _IMP_em.get_volume_at_threshold(m, threshold)
2936 get_molecular_mass_at_threshold(DensityMap m, IMP::Float threshold, IMP::atom::ProteinDensityReference ref) -> IMP::Float
2937 get_molecular_mass_at_threshold(DensityMap m, IMP::Float threshold) -> IMP::Float
2939 return _IMP_em.get_molecular_mass_at_threshold(*args)
2942 """get_threshold_for_approximate_volume(DensityMap m, IMP::Float desired_volume) -> IMP::Float"""
2943 return _IMP_em.get_threshold_for_approximate_volume(m, desired_volume)
2947 get_threshold_for_approximate_mass(DensityMap m, IMP::Float desired_mass, IMP::atom::ProteinDensityReference ref) -> IMP::Float
2948 get_threshold_for_approximate_mass(DensityMap m, IMP::Float desired_mass) -> IMP::Float
2950 return _IMP_em.get_threshold_for_approximate_mass(*args)
2952 """Proxy of C++ IMP::em::EnvelopePenetrationRestraint class"""
2953 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2955 def __init__(self, ps, em_map, threshold):
2956 """__init__(IMP::em::EnvelopePenetrationRestraint self, IMP::Particles ps, DensityMap em_map, IMP::Float threshold) -> EnvelopePenetrationRestraint"""
2957 this = _IMP_em.new_EnvelopePenetrationRestraint(ps, em_map, threshold)
2959 self.this.append(this)
2963 def do_get_inputs(self):
2964 """do_get_inputs(EnvelopePenetrationRestraint self) -> IMP::ModelObjectsTemp"""
2965 return _IMP_em.EnvelopePenetrationRestraint_do_get_inputs(self)
2968 def get_version_info(self):
2969 """get_version_info(EnvelopePenetrationRestraint self) -> VersionInfo"""
2970 return _IMP_em.EnvelopePenetrationRestraint_get_version_info(self)
2974 """__str__(EnvelopePenetrationRestraint self) -> std::string"""
2975 return _IMP_em.EnvelopePenetrationRestraint___str__(self)
2979 """__repr__(EnvelopePenetrationRestraint self) -> std::string"""
2980 return _IMP_em.EnvelopePenetrationRestraint___repr__(self)
2985 return _object_cast_to_EnvelopePenetrationRestraint(o)
2987 EnvelopePenetrationRestraint_swigregister = _IMP_em.EnvelopePenetrationRestraint_swigregister
2988 EnvelopePenetrationRestraint_swigregister(EnvelopePenetrationRestraint)
2991 """Proxy of C++ IMP::em::PCAFitRestraint class"""
2992 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2994 def __init__(self, *args):
2996 __init__(IMP::em::PCAFitRestraint self, IMP::ParticlesTemp ps, DensityMap em_map, float threshold, float max_pca_size_diff, float max_angle_diff, float max_centroid_diff, FloatKey weight_key) -> PCAFitRestraint
2997 __init__(IMP::em::PCAFitRestraint self, IMP::ParticlesTemp ps, DensityMap em_map, float threshold, float max_pca_size_diff, float max_angle_diff, float max_centroid_diff) -> PCAFitRestraint
2999 this = _IMP_em.new_PCAFitRestraint(*args)
3001 self.this.append(this)
3005 def do_get_inputs(self):
3006 """do_get_inputs(PCAFitRestraint self) -> IMP::ModelObjectsTemp"""
3007 return _IMP_em.PCAFitRestraint_do_get_inputs(self)
3010 def get_version_info(self):
3011 """get_version_info(PCAFitRestraint self) -> VersionInfo"""
3012 return _IMP_em.PCAFitRestraint_get_version_info(self)
3016 """__str__(PCAFitRestraint self) -> std::string"""
3017 return _IMP_em.PCAFitRestraint___str__(self)
3021 """__repr__(PCAFitRestraint self) -> std::string"""
3022 return _IMP_em.PCAFitRestraint___repr__(self)
3027 return _object_cast_to_PCAFitRestraint(o)
3029 PCAFitRestraint_swigregister = _IMP_em.PCAFitRestraint_swigregister
3030 PCAFitRestraint_swigregister(PCAFitRestraint)
3033 """Proxy of C++ IMP::em::EnvelopeFitRestraint class"""
3034 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3036 def __init__(self, particles, em_map, density_threshold, penetration_threshold):
3037 """__init__(IMP::em::EnvelopeFitRestraint self, IMP::Particles particles, DensityMap em_map, double density_threshold, double penetration_threshold) -> EnvelopeFitRestraint"""
3038 this = _IMP_em.new_EnvelopeFitRestraint(particles, em_map, density_threshold, penetration_threshold)
3040 self.this.append(this)
3044 def get_transformation(self):
3045 """get_transformation(EnvelopeFitRestraint self) -> Transformation3D"""
3046 return _IMP_em.EnvelopeFitRestraint_get_transformation(self)
3049 def apply_transformation(self):
3050 """apply_transformation(EnvelopeFitRestraint self)"""
3051 return _IMP_em.EnvelopeFitRestraint_apply_transformation(self)
3054 def do_get_inputs(self):
3055 """do_get_inputs(EnvelopeFitRestraint self) -> IMP::ModelObjectsTemp"""
3056 return _IMP_em.EnvelopeFitRestraint_do_get_inputs(self)
3059 def get_version_info(self):
3060 """get_version_info(EnvelopeFitRestraint self) -> VersionInfo"""
3061 return _IMP_em.EnvelopeFitRestraint_get_version_info(self)
3065 """__str__(EnvelopeFitRestraint self) -> std::string"""
3066 return _IMP_em.EnvelopeFitRestraint___str__(self)
3070 """__repr__(EnvelopeFitRestraint self) -> std::string"""
3071 return _IMP_em.EnvelopeFitRestraint___repr__(self)
3076 return _object_cast_to_EnvelopeFitRestraint(o)
3078 EnvelopeFitRestraint_swigregister = _IMP_em.EnvelopeFitRestraint_swigregister
3079 EnvelopeFitRestraint_swigregister(EnvelopeFitRestraint)
3081 class MapDistanceTransform(DensityMap):
3082 """Proxy of C++ IMP::em::MapDistanceTransform class"""
3083 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3085 def __init__(self, map, density_threshold, max_distance):
3086 """__init__(IMP::em::MapDistanceTransform self, DensityMap map, float density_threshold, float max_distance) -> MapDistanceTransform"""
3087 this = _IMP_em.new_MapDistanceTransform(map, density_threshold, max_distance)
3089 self.this.append(this)
3093 def get_distance_from_envelope(self, v):
3094 """get_distance_from_envelope(MapDistanceTransform self, Vector3D v) -> float"""
3095 return _IMP_em.MapDistanceTransform_get_distance_from_envelope(self, v)
3099 """__str__(MapDistanceTransform self) -> std::string"""
3100 return _IMP_em.MapDistanceTransform___str__(self)
3104 """__repr__(MapDistanceTransform self) -> std::string"""
3105 return _IMP_em.MapDistanceTransform___repr__(self)
3110 return _object_cast_to_MapDistanceTransform(o)
3112 __swig_destroy__ = _IMP_em.delete_MapDistanceTransform
3113 __del__ =
lambda self:
None
3114 MapDistanceTransform_swigregister = _IMP_em.MapDistanceTransform_swigregister
3115 MapDistanceTransform_swigregister(MapDistanceTransform)
3118 """Proxy of C++ IMP::em::EnvelopeScore class"""
3119 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3121 def __init__(self, mdt):
3122 """__init__(IMP::em::EnvelopeScore self, MapDistanceTransform mdt) -> EnvelopeScore"""
3123 this = _IMP_em.new_EnvelopeScore(mdt)
3125 self.this.append(this)
3129 def is_penetrating(self, *args):
3131 is_penetrating(EnvelopeScore self, IMP::algebra::Vector3Ds const & points, float penetration_thr) -> bool
3132 is_penetrating(EnvelopeScore self, IMP::algebra::Vector3Ds const & points, Transformation3D trans, float penetration_thr) -> bool
3134 return _IMP_em.EnvelopeScore_is_penetrating(self, *args)
3137 def score(self, *args):
3139 score(EnvelopeScore self, IMP::algebra::Vector3Ds const & points) -> double
3140 score(EnvelopeScore self, IMP::algebra::Vector3Ds const & points, Transformation3D trans) -> double
3142 return _IMP_em.EnvelopeScore_score(self, *args)
3144 __swig_destroy__ = _IMP_em.delete_EnvelopeScore
3145 __del__ =
lambda self:
None
3148 """__str__(EnvelopeScore self) -> std::string"""
3149 return _IMP_em.EnvelopeScore___str__(self)
3153 """__repr__(EnvelopeScore self) -> std::string"""
3154 return _IMP_em.EnvelopeScore___repr__(self)
3159 return _object_cast_to_EnvelopeScore(o)
3161 EnvelopeScore_swigregister = _IMP_em.EnvelopeScore_swigregister
3162 EnvelopeScore_swigregister(EnvelopeScore)
3168 """Write out principal components to a file in Chimera Marker format"""
3169 eigen_values = pca.get_principal_values()
3170 eigen_vecs = pca.get_principal_components()
3171 centroid = pca.get_centroid()
3173 fh.write(
"<marker_set>\n")
3174 fh.write(
"<!-- PCA with eigen values: (%g,%g,%g) and "
3175 "centroid (%g,%g,%g) -->\n"
3176 % (math.sqrt(eigen_values[0]),
3177 math.sqrt(eigen_values[1]),
3178 math.sqrt(eigen_values[2]),
3179 centroid[0], centroid[1], centroid[2]))
3184 val = math.sqrt(eigen_values[i])
3185 v1 = centroid - val * eigen_vecs[i]
3186 v2 = centroid + val * eigen_vecs[i]
3187 for markerid, v
in ((i*2+1, v1), (i*2+2, v2)):
3188 fh.write(
"<marker id=\"%d\" x=\"%g\" y=\"%g\" z=\"%g\" "
3190 % (markerid, v[0], v[1], v[2], radius))
3192 for i
in range(1, 7, 2):
3193 fh.write(
"<link id1= \"%d\" id2=\"%d\" radius=\"%g\"/>\n"
3195 fh.write(
"</marker_set>\n")
3199 """get_module_version() -> std::string const"""
3200 return _IMP_em.get_module_version()
3203 """get_example_path(std::string fname) -> std::string"""
3204 return _IMP_em.get_example_path(fname)
3207 """get_data_path(std::string fname) -> std::string"""
3208 return _IMP_em.get_data_path(fname)
3210 from .
import _version_check
double bayesem3d_linear_interpolate(const Floats &x_data, const Floats &y_data, double x, bool extrapolate)
Basic linear interpolation given vectors of values.
Float get_threshold_for_approximate_mass(DensityMap *m, Float desired_mass, atom::ProteinDensityReference ref=atom::HARPAZ)
Computes the threshold to consider in an EM map to get a desired mass.
DensityMap * interpolate_map(DensityMap *in_map, double new_spacing)
Return a new map with an updated spacing.
Particles density2particles(DensityMap *dmap, Float threshold, Model *m, int step=1)
Convert a density grid to a set of particles.
algebra::Vector3Ds density2vectors(DensityMap *dmap, Float threshold)
Convert a density grid to a set of vectors.
algebra::BoundingBoxD< 3 > get_bounding_box(const DensityMap *m, Float threshold)
Get the bounding box for a map.
std::string get_module_version()
Return the version of this module, as a string.
DensityMap * bayesem3d_get_density_from_particle(DensityMap *em, const IMP::ParticlesTemp &ps, double resolution, const double window_size=1.0)
Ints get_numbers_of_particles_outside_of_the_density(DensityMap *dmap, const Particles &ps, const IMP::algebra::Transformation3Ds &transformations, float thr=0.0)
Get numbers of particles (mult transforms) that are outside the density.
double bayesem3d_get_logsumexp(double x, double y)
Numerically stable logsumexp.
double get_coarse_cc_coefficient(const DensityMap *grid1, const DensityMap *grid2, double grid2_voxel_data_threshold, bool allow_padding=false, FloatPair norm_factors=FloatPair(0., 0.))
Calculates the cross correlation coefficient between two maps.
Various classes to hold sets of particles.
std::vector< double > bayesem3d_get_value(Particle *p, const algebra::Vector3D &pt, double mass_ii, const IMP::em::KernelParameters &kps)
Compute the score and derivatives for a particle at a given voxel.
DensityMap * binarize(DensityMap *orig_map, float threshold, bool reverse=false)
Return a map with 0 for all voxels below the threshold and 1 for those above.
double get_sum(const DensityMap *m1)
Return the sum of all voxels.
SampledDensityMap * particles2binarized_density(const ParticlesTemp &ps, Float resolution, Float apix, int sig_cutoff=3, const FloatKey &weight_key=IMP::atom::Mass::get_mass_key())
Make CGAL functionality available to IMP.
DensityMap * mask_and_norm(em::DensityMap *dmap, em::DensityMap *mask)
Return a masked density, and normalize the output map within the mask region.
FittingSolutions compute_fitting_scores(const ParticlesTemp &ps, DensityMap *em_map, const algebra::Transformation3Ds &transformations, bool fast_version=false, bool local_score=false, const FloatKey &wei_key=atom::Mass::get_mass_key())
Compute fitting scores for a given set of rigid transformations.
DensityMap * get_threshold_map(const DensityMap *orig_map, float threshold)
Return a map with 0 for all voxels below the threshold.
DensityMap * get_segment_by_masking(DensityMap *map_to_segment, DensityMap *mask, float mas_threshold)
Get a segment of the map covered by another map.
FloatPair bayesem3d_get_logabssumexp(double x, double y, double sx, double sy)
Numerically stable logabssumexp.
std::string get_data_path(std::string file_name)
Return the full path to one of this module's data files.
SampledDensityMap * particles2density(const ParticlesTemp &ps, Float resolution, Float apix, int sig_cutoff=3, const FloatKey &weight_key=IMP::atom::Mass::get_mass_key())
Resample a set of particles into a density grid.
double get_coarse_cc_score(DensityMap *data, SampledDensityMap *model_map, double scalefactor, bool recalc_rms=true, bool resample=true, FloatPair norm_factors=FloatPair(0., 0.))
Calculates the value of the EM fitting term.
std::pair< double, algebra::Vector3Ds > bayesem3d_get_score_and_derivative(DensityMap *em, const IMP::ParticlesTemp &ps, double resolution, double sigma, const double window_size=1.0)
The function returns the negative log of the Normal distributed difference between a normalized EM de...
Composable functors to implement scores via compile-time composition.
Code to compute statistical measures.
algebra::GridD< 3, algebra::DenseGridStorageD< 3, float >, float > get_grid(DensityMap *in_map)
Return a dense grid containing the voxels of the passed density map.
void bayesem3d_get_normalized_intensities(DensityMap *em, const IMP::ParticlesTemp &ps, double resolution)
FloatPair bayesem3d_get_em_density_squared(DensityMap *em, long number_of_voxels)
Compute the sum of the density and the sum of the squares of the density.
def write_pca_cmm
Write out principal components to a file in Chimera Marker format.
double convolute(const DensityMap *m1, const DensityMap *m2)
Return a convolution between density maps m1 and m2.
Common base class for heavy weight IMP objects.
DensityMap * multiply(const DensityMap *m1, const DensityMap *m2)
Return a density map for which voxel i contains the result of m1[i]*m2[i].
std::map< double, int > bayesem3d_get_distinct_and_counts(DensityMap *em)
Get histogram of density in EM map.
DensityHeader create_density_header(const algebra::BoundingBoxD< 3 > &bb, float spacing)
Create a header from a bounding box in 3D.
Float compute_fitting_score(const ParticlesTemp &ps, DensityMap *em_map, FloatKey wei_key=atom::Mass::get_mass_key())
Compute fitting scores for a given set of rigid transformations.
double get_coarse_cc_local_coefficient(const DensityMap *em_map, DensityMap *model_map, double voxel_data_threshold)
Local cross correlation function.
double bayesem3d_get_cross_correlation_coefficient(const DensityMap *em1, const DensityMap *em2)
Compute a normalized cross-correlation coefficient.
Floats bayesem3d_get_cumulative_sum(DensityMap *em)
Compute the cumulative sum of the histogram computed from EM map.
FittingSolutions local_rigid_fitting_around_point(Particle *p, Refiner *refiner, const FloatKey &weight_key, DensityMap *dmap, const algebra::Vector3D &anchor_centroid, OptimizerStates display_log, Int number_of_optimization_runs=5, Int number_of_mc_steps=10, Int number_of_cg_steps=100, Float max_translation=2., Float max_rotation=.3, bool fast=false)
Local rigid fitting of a rigid body around a center point.
double bayesem3d_get_logsumprodexp(double x, double y, double wx, double wy)
Numerically stable logsumexpprod.
std::vector< double > bayesem3d_get_value_no_deriv(Particle *p, const algebra::Vector3D &pt, double mass_ii, const IMP::em::KernelParameters &kps)
Compute the score without its derivative.
long get_number_of_particles_outside_of_the_density(DensityMap *dmap, const Particles &ps, const IMP::algebra::Transformation3D &t=IMP::algebra::get_identity_transformation_3d(), float thr=0.0)
Get the number of particles that are outside of the density.
DensityMap * get_max_map(DensityMaps maps)
Return a map where each voxel is the maximum value from the input maps.
DensityMap * create_density_map(const DensityMap *other)
Create a copy of another map.
Store data to be clustered for embedding based algorithms.
Float approximate_molecular_mass(DensityMap *m, Float threshold)
Estimate the molecular mass from a map.
std::map< double, double > bayesem3d_get_cumulative_sum_with_reference(DensityMap *em)
Compute the cumulative sum of the histogram given a reference.
double get_percentage_of_voxels_covered_by_particles(DensityMap *dmap, const Particles &ps, float smoothing_radius=3., const IMP::algebra::Transformation3D &t=IMP::algebra::get_identity_transformation_3d(), float thr=0.0)
Get the number of density voxels that are not covered by particles.
Vector3D get_centroid(const Vector3Ds &ps)
Return the centroid of a set of vectors.
std::ostream & show(Hierarchy h, std::ostream &out=std::cout)
Print the hierarchy using a given decorator to display each node.
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
FittingSolutions local_rigid_fitting(Particle *p, Refiner *refiner, const FloatKey &weight_key, DensityMap *dmap, OptimizerStates display_log, Int number_of_optimization_runs=5, Int number_of_mc_steps=10, Int number_of_cg_steps=100, Float max_translation=2., Float max_rotation=.3, bool fast=true)
Local rigid fitting of a rigid body.
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...
SurfaceShellDensityMap * particles2surface(const ParticlesTemp &ps, Float apix, const FloatKey &weight_key=IMP::atom::Mass::get_mass_key())
Resample a set of particles into a density grid.
FittingSolutions local_rigid_fitting_around_points(Particle *p, Refiner *refiner, const FloatKey &wei_key, DensityMap *dmap, const algebra::Vector3Ds &anchor_centroids, OptimizerStates display_log, Int number_of_optimization_runs=5, Int number_of_mc_steps=10, Int number_of_cg_steps=100, Float max_translation=2., Float max_rotation=.3)
Local rigid fitting of a rigid body around a set of center points.
FittingSolutions local_rigid_fitting_grid_search(const ParticlesTemp &ps, const FloatKey &wei_key, DensityMap *dmap, Int max_voxels_translation=2, Int translation_step=1, Float max_angle_in_radians=0.174, Int number_of_rotations=100)
Local grid search rigid fitting.
double get_resolution(Model *m, ParticleIndex pi)
Estimate the resolution of the hierarchy as used by Representation.
Output IMP model data in various file formats.
Functionality for loading, creating, manipulating and scoring atomic structures.
Float get_molecular_mass_at_threshold(DensityMap *m, Float threshold, atom::ProteinDensityReference ref=atom::HARPAZ)
Compute an approximate molecular mass.
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.
Float get_threshold_for_approximate_volume(DensityMap *m, Float desired_volume)
Computes the threshold consider in an EM map to get a desired volume.
Float get_volume_at_threshold(DensityMap *m, Float threshold)
Compute an approximate volume.
A restraint is a term in an IMP ScoringFunction.
FloatPair bayesem3d_get_logabssumprodexp(double x, double y, double wx, double wy)
Numerically stable logabssumprodexp.