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_SYSTEM_swigconstant(_IMP_em)
344 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_em.IMP_CGAL_HAS_BOOST_SYSTEM
346 _IMP_em.IMP_CGAL_HAS_NUMPY_swigconstant(_IMP_em)
347 IMP_CGAL_HAS_NUMPY = _IMP_em.IMP_CGAL_HAS_NUMPY
349 _IMP_em.IMPCGAL_SHOW_WARNINGS_swigconstant(_IMP_em)
350 IMPCGAL_SHOW_WARNINGS = _IMP_em.IMPCGAL_SHOW_WARNINGS
353 _IMP_em.IMP_ALGEBRA_HAS_IMP_CGAL_swigconstant(_IMP_em)
354 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_em.IMP_ALGEBRA_HAS_IMP_CGAL
356 _IMP_em.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
357 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
359 _IMP_em.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
360 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
362 _IMP_em.IMP_ALGEBRA_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
363 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_em.IMP_ALGEBRA_HAS_BOOST_RANDOM
365 _IMP_em.IMP_ALGEBRA_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
366 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_em.IMP_ALGEBRA_HAS_BOOST_SYSTEM
368 _IMP_em.IMP_ALGEBRA_HAS_CGAL_swigconstant(_IMP_em)
369 IMP_ALGEBRA_HAS_CGAL = _IMP_em.IMP_ALGEBRA_HAS_CGAL
371 _IMP_em.IMP_ALGEBRA_HAS_NUMPY_swigconstant(_IMP_em)
372 IMP_ALGEBRA_HAS_NUMPY = _IMP_em.IMP_ALGEBRA_HAS_NUMPY
374 _IMP_em.IMP_ALGEBRA_HAS_ANN_swigconstant(_IMP_em)
375 IMP_ALGEBRA_HAS_ANN = _IMP_em.IMP_ALGEBRA_HAS_ANN
377 _IMP_em.IMPALGEBRA_SHOW_WARNINGS_swigconstant(_IMP_em)
378 IMPALGEBRA_SHOW_WARNINGS = _IMP_em.IMPALGEBRA_SHOW_WARNINGS
381 _IMP_em.IMP_DISPLAY_HAS_IMP_CGAL_swigconstant(_IMP_em)
382 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_em.IMP_DISPLAY_HAS_IMP_CGAL
384 _IMP_em.IMP_DISPLAY_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
385 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
387 _IMP_em.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
388 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
390 _IMP_em.IMP_DISPLAY_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
391 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_em.IMP_DISPLAY_HAS_BOOST_RANDOM
393 _IMP_em.IMP_DISPLAY_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
394 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_em.IMP_DISPLAY_HAS_BOOST_SYSTEM
396 _IMP_em.IMP_DISPLAY_HAS_CGAL_swigconstant(_IMP_em)
397 IMP_DISPLAY_HAS_CGAL = _IMP_em.IMP_DISPLAY_HAS_CGAL
399 _IMP_em.IMP_DISPLAY_HAS_NUMPY_swigconstant(_IMP_em)
400 IMP_DISPLAY_HAS_NUMPY = _IMP_em.IMP_DISPLAY_HAS_NUMPY
402 _IMP_em.IMPDISPLAY_SHOW_WARNINGS_swigconstant(_IMP_em)
403 IMPDISPLAY_SHOW_WARNINGS = _IMP_em.IMPDISPLAY_SHOW_WARNINGS
406 _IMP_em.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL_swigconstant(_IMP_em)
407 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_em.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
409 _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
410 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
412 _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
413 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
415 _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
416 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
418 _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
419 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
421 _IMP_em.IMP_SCORE_FUNCTOR_HAS_CGAL_swigconstant(_IMP_em)
422 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_em.IMP_SCORE_FUNCTOR_HAS_CGAL
424 _IMP_em.IMP_SCORE_FUNCTOR_HAS_HDF5_swigconstant(_IMP_em)
425 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_em.IMP_SCORE_FUNCTOR_HAS_HDF5
427 _IMP_em.IMP_SCORE_FUNCTOR_HAS_NUMPY_swigconstant(_IMP_em)
428 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_em.IMP_SCORE_FUNCTOR_HAS_NUMPY
430 _IMP_em.IMPSCOREFUNCTOR_SHOW_WARNINGS_swigconstant(_IMP_em)
431 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_em.IMPSCOREFUNCTOR_SHOW_WARNINGS
434 _IMP_em.IMP_STATISTICS_HAS_IMP_CGAL_swigconstant(_IMP_em)
435 IMP_STATISTICS_HAS_IMP_CGAL = _IMP_em.IMP_STATISTICS_HAS_IMP_CGAL
437 _IMP_em.IMP_STATISTICS_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
438 IMP_STATISTICS_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_STATISTICS_HAS_BOOST_FILESYSTEM
440 _IMP_em.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
441 IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS
443 _IMP_em.IMP_STATISTICS_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
444 IMP_STATISTICS_HAS_BOOST_RANDOM = _IMP_em.IMP_STATISTICS_HAS_BOOST_RANDOM
446 _IMP_em.IMP_STATISTICS_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
447 IMP_STATISTICS_HAS_BOOST_SYSTEM = _IMP_em.IMP_STATISTICS_HAS_BOOST_SYSTEM
449 _IMP_em.IMP_STATISTICS_HAS_CGAL_swigconstant(_IMP_em)
450 IMP_STATISTICS_HAS_CGAL = _IMP_em.IMP_STATISTICS_HAS_CGAL
452 _IMP_em.IMP_STATISTICS_HAS_NUMPY_swigconstant(_IMP_em)
453 IMP_STATISTICS_HAS_NUMPY = _IMP_em.IMP_STATISTICS_HAS_NUMPY
455 _IMP_em.IMPSTATISTICS_SHOW_WARNINGS_swigconstant(_IMP_em)
456 IMPSTATISTICS_SHOW_WARNINGS = _IMP_em.IMPSTATISTICS_SHOW_WARNINGS
459 _IMP_em.IMP_CORE_HAS_IMP_CGAL_swigconstant(_IMP_em)
460 IMP_CORE_HAS_IMP_CGAL = _IMP_em.IMP_CORE_HAS_IMP_CGAL
462 _IMP_em.IMP_CORE_HAS_IMP_KERNEL_swigconstant(_IMP_em)
463 IMP_CORE_HAS_IMP_KERNEL = _IMP_em.IMP_CORE_HAS_IMP_KERNEL
465 _IMP_em.IMP_CORE_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
466 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_CORE_HAS_BOOST_FILESYSTEM
468 _IMP_em.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
469 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
471 _IMP_em.IMP_CORE_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
472 IMP_CORE_HAS_BOOST_RANDOM = _IMP_em.IMP_CORE_HAS_BOOST_RANDOM
474 _IMP_em.IMP_CORE_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
475 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_em.IMP_CORE_HAS_BOOST_SYSTEM
477 _IMP_em.IMP_CORE_HAS_CGAL_swigconstant(_IMP_em)
478 IMP_CORE_HAS_CGAL = _IMP_em.IMP_CORE_HAS_CGAL
480 _IMP_em.IMP_CORE_HAS_HDF5_swigconstant(_IMP_em)
481 IMP_CORE_HAS_HDF5 = _IMP_em.IMP_CORE_HAS_HDF5
483 _IMP_em.IMP_CORE_HAS_NUMPY_swigconstant(_IMP_em)
484 IMP_CORE_HAS_NUMPY = _IMP_em.IMP_CORE_HAS_NUMPY
486 _IMP_em.IMPCORE_SHOW_WARNINGS_swigconstant(_IMP_em)
487 IMPCORE_SHOW_WARNINGS = _IMP_em.IMPCORE_SHOW_WARNINGS
490 _IMP_em.IMP_CONTAINER_HAS_IMP_ALGEBRA_swigconstant(_IMP_em)
491 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_em.IMP_CONTAINER_HAS_IMP_ALGEBRA
493 _IMP_em.IMP_CONTAINER_HAS_IMP_CGAL_swigconstant(_IMP_em)
494 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_em.IMP_CONTAINER_HAS_IMP_CGAL
496 _IMP_em.IMP_CONTAINER_HAS_IMP_DISPLAY_swigconstant(_IMP_em)
497 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_em.IMP_CONTAINER_HAS_IMP_DISPLAY
499 _IMP_em.IMP_CONTAINER_HAS_IMP_KERNEL_swigconstant(_IMP_em)
500 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_em.IMP_CONTAINER_HAS_IMP_KERNEL
502 _IMP_em.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_em)
503 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_em.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
505 _IMP_em.IMP_CONTAINER_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
506 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
508 _IMP_em.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
509 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
511 _IMP_em.IMP_CONTAINER_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
512 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_em.IMP_CONTAINER_HAS_BOOST_RANDOM
514 _IMP_em.IMP_CONTAINER_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
515 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_em.IMP_CONTAINER_HAS_BOOST_SYSTEM
517 _IMP_em.IMP_CONTAINER_HAS_CGAL_swigconstant(_IMP_em)
518 IMP_CONTAINER_HAS_CGAL = _IMP_em.IMP_CONTAINER_HAS_CGAL
520 _IMP_em.IMP_CONTAINER_HAS_HDF5_swigconstant(_IMP_em)
521 IMP_CONTAINER_HAS_HDF5 = _IMP_em.IMP_CONTAINER_HAS_HDF5
523 _IMP_em.IMP_CONTAINER_HAS_NUMPY_swigconstant(_IMP_em)
524 IMP_CONTAINER_HAS_NUMPY = _IMP_em.IMP_CONTAINER_HAS_NUMPY
526 _IMP_em.IMP_CONTAINER_HAS_PYTHON_IHM_swigconstant(_IMP_em)
527 IMP_CONTAINER_HAS_PYTHON_IHM = _IMP_em.IMP_CONTAINER_HAS_PYTHON_IHM
529 _IMP_em.IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP_swigconstant(_IMP_em)
530 IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP = _IMP_em.IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP
532 _IMP_em.IMP_CONTAINER_HAS_ROBIN_MAP_swigconstant(_IMP_em)
533 IMP_CONTAINER_HAS_ROBIN_MAP = _IMP_em.IMP_CONTAINER_HAS_ROBIN_MAP
535 _IMP_em.IMPCONTAINER_SHOW_WARNINGS_swigconstant(_IMP_em)
536 IMPCONTAINER_SHOW_WARNINGS = _IMP_em.IMPCONTAINER_SHOW_WARNINGS
539 _IMP_em.IMP_ATOM_HAS_IMP_CGAL_swigconstant(_IMP_em)
540 IMP_ATOM_HAS_IMP_CGAL = _IMP_em.IMP_ATOM_HAS_IMP_CGAL
542 _IMP_em.IMP_ATOM_HAS_IMP_KERNEL_swigconstant(_IMP_em)
543 IMP_ATOM_HAS_IMP_KERNEL = _IMP_em.IMP_ATOM_HAS_IMP_KERNEL
545 _IMP_em.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_em)
546 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_em.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
548 _IMP_em.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
549 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
551 _IMP_em.IMP_ATOM_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
552 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_em.IMP_ATOM_HAS_BOOST_RANDOM
554 _IMP_em.IMP_ATOM_HAS_BOOST_REGEX_swigconstant(_IMP_em)
555 IMP_ATOM_HAS_BOOST_REGEX = _IMP_em.IMP_ATOM_HAS_BOOST_REGEX
557 _IMP_em.IMP_ATOM_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
558 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_em.IMP_ATOM_HAS_BOOST_SYSTEM
560 _IMP_em.IMP_ATOM_HAS_CGAL_swigconstant(_IMP_em)
561 IMP_ATOM_HAS_CGAL = _IMP_em.IMP_ATOM_HAS_CGAL
563 _IMP_em.IMP_ATOM_HAS_HDF5_swigconstant(_IMP_em)
564 IMP_ATOM_HAS_HDF5 = _IMP_em.IMP_ATOM_HAS_HDF5
566 _IMP_em.IMP_ATOM_HAS_NUMPY_swigconstant(_IMP_em)
567 IMP_ATOM_HAS_NUMPY = _IMP_em.IMP_ATOM_HAS_NUMPY
569 _IMP_em.IMP_ATOM_HAS_PYTHON_IHM_swigconstant(_IMP_em)
570 IMP_ATOM_HAS_PYTHON_IHM = _IMP_em.IMP_ATOM_HAS_PYTHON_IHM
572 _IMP_em.IMPATOM_SHOW_WARNINGS_swigconstant(_IMP_em)
573 IMPATOM_SHOW_WARNINGS = _IMP_em.IMPATOM_SHOW_WARNINGS
575 _IMP_em.IMP_ATOM_TYPE_INDEX_swigconstant(_IMP_em)
576 IMP_ATOM_TYPE_INDEX = _IMP_em.IMP_ATOM_TYPE_INDEX
578 _IMP_em.IMP_RESIDUE_TYPE_INDEX_swigconstant(_IMP_em)
579 IMP_RESIDUE_TYPE_INDEX = _IMP_em.IMP_RESIDUE_TYPE_INDEX
581 _IMP_em.IMP_HIERARCHY_TYPE_INDEX_swigconstant(_IMP_em)
582 IMP_HIERARCHY_TYPE_INDEX = _IMP_em.IMP_HIERARCHY_TYPE_INDEX
584 _IMP_em.IMP_CHAIN_TYPE_INDEX_swigconstant(_IMP_em)
585 IMP_CHAIN_TYPE_INDEX = _IMP_em.IMP_CHAIN_TYPE_INDEX
588 _IMP_em.IMP_EM_HAS_IMP_CGAL_swigconstant(_IMP_em)
589 IMP_EM_HAS_IMP_CGAL = _IMP_em.IMP_EM_HAS_IMP_CGAL
591 _IMP_em.IMP_EM_HAS_IMP_CONTAINER_swigconstant(_IMP_em)
592 IMP_EM_HAS_IMP_CONTAINER = _IMP_em.IMP_EM_HAS_IMP_CONTAINER
594 _IMP_em.IMP_EM_HAS_IMP_DISPLAY_swigconstant(_IMP_em)
595 IMP_EM_HAS_IMP_DISPLAY = _IMP_em.IMP_EM_HAS_IMP_DISPLAY
597 _IMP_em.IMP_EM_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_em)
598 IMP_EM_HAS_IMP_SCORE_FUNCTOR = _IMP_em.IMP_EM_HAS_IMP_SCORE_FUNCTOR
600 _IMP_em.IMP_EM_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
601 IMP_EM_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_EM_HAS_BOOST_FILESYSTEM
603 _IMP_em.IMP_EM_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
604 IMP_EM_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_EM_HAS_BOOST_PROGRAMOPTIONS
606 _IMP_em.IMP_EM_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
607 IMP_EM_HAS_BOOST_RANDOM = _IMP_em.IMP_EM_HAS_BOOST_RANDOM
609 _IMP_em.IMP_EM_HAS_BOOST_REGEX_swigconstant(_IMP_em)
610 IMP_EM_HAS_BOOST_REGEX = _IMP_em.IMP_EM_HAS_BOOST_REGEX
612 _IMP_em.IMP_EM_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
613 IMP_EM_HAS_BOOST_SYSTEM = _IMP_em.IMP_EM_HAS_BOOST_SYSTEM
615 _IMP_em.IMP_EM_HAS_CGAL_swigconstant(_IMP_em)
616 IMP_EM_HAS_CGAL = _IMP_em.IMP_EM_HAS_CGAL
618 _IMP_em.IMP_EM_HAS_HDF5_swigconstant(_IMP_em)
619 IMP_EM_HAS_HDF5 = _IMP_em.IMP_EM_HAS_HDF5
621 _IMP_em.IMP_EM_HAS_NUMPY_swigconstant(_IMP_em)
622 IMP_EM_HAS_NUMPY = _IMP_em.IMP_EM_HAS_NUMPY
624 _IMP_em.IMP_EM_HAS_PYTHON_IHM_swigconstant(_IMP_em)
625 IMP_EM_HAS_PYTHON_IHM = _IMP_em.IMP_EM_HAS_PYTHON_IHM
627 _IMP_em.IMPEM_SHOW_WARNINGS_swigconstant(_IMP_em)
628 IMPEM_SHOW_WARNINGS = _IMP_em.IMPEM_SHOW_WARNINGS
630 _object_types.append(
"DensityMap")
633 def _object_cast_to_DensityMap(o):
634 """_object_cast_to_DensityMap(Object o) -> DensityMap"""
635 return _IMP_em._object_cast_to_DensityMap(o)
637 _object_types.append(
"SampledDensityMap")
640 def _object_cast_to_SampledDensityMap(o):
641 """_object_cast_to_SampledDensityMap(Object o) -> SampledDensityMap"""
642 return _IMP_em._object_cast_to_SampledDensityMap(o)
644 _object_types.append(
"SurfaceShellDensityMap")
647 def _object_cast_to_SurfaceShellDensityMap(o):
648 """_object_cast_to_SurfaceShellDensityMap(Object o) -> SurfaceShellDensityMap"""
649 return _IMP_em._object_cast_to_SurfaceShellDensityMap(o)
651 _object_types.append(
"FitRestraint")
654 def _object_cast_to_FitRestraint(o):
655 """_object_cast_to_FitRestraint(Object o) -> FitRestraint"""
656 return _IMP_em._object_cast_to_FitRestraint(o)
658 _object_types.append(
"FitRestraintBayesEM3D")
661 def _object_cast_to_FitRestraintBayesEM3D(o):
662 """_object_cast_to_FitRestraintBayesEM3D(Object o) -> FitRestraintBayesEM3D"""
663 return _IMP_em._object_cast_to_FitRestraintBayesEM3D(o)
665 _object_types.append(
"PCAFitRestraint")
668 def _object_cast_to_PCAFitRestraint(o):
669 """_object_cast_to_PCAFitRestraint(Object o) -> PCAFitRestraint"""
670 return _IMP_em._object_cast_to_PCAFitRestraint(o)
672 _object_types.append(
"EnvelopePenetrationRestraint")
675 def _object_cast_to_EnvelopePenetrationRestraint(o):
676 """_object_cast_to_EnvelopePenetrationRestraint(Object o) -> EnvelopePenetrationRestraint"""
677 return _IMP_em._object_cast_to_EnvelopePenetrationRestraint(o)
679 _object_types.append(
"EnvelopeFitRestraint")
682 def _object_cast_to_EnvelopeFitRestraint(o):
683 """_object_cast_to_EnvelopeFitRestraint(Object o) -> EnvelopeFitRestraint"""
684 return _IMP_em._object_cast_to_EnvelopeFitRestraint(o)
686 KernelParametersList=list
687 _plural_types.append(
"KernelParametersList")
688 _value_types.append(
"KernelParameters")
691 _object_types.append(
"HighDensityEmbedding")
694 def _object_cast_to_HighDensityEmbedding(o):
695 """_object_cast_to_HighDensityEmbedding(Object o) -> HighDensityEmbedding"""
696 return _IMP_em._object_cast_to_HighDensityEmbedding(o)
698 _object_types.append(
"MapReaderWriter")
701 def _object_cast_to_MapReaderWriter(o):
702 """_object_cast_to_MapReaderWriter(Object o) -> MapReaderWriter"""
703 return _IMP_em._object_cast_to_MapReaderWriter(o)
705 _object_types.append(
"MRCReaderWriter")
708 def _object_cast_to_MRCReaderWriter(o):
709 """_object_cast_to_MRCReaderWriter(Object o) -> MRCReaderWriter"""
710 return _IMP_em._object_cast_to_MRCReaderWriter(o)
712 _object_types.append(
"SpiderMapReaderWriter")
715 def _object_cast_to_SpiderMapReaderWriter(o):
716 """_object_cast_to_SpiderMapReaderWriter(Object o) -> SpiderMapReaderWriter"""
717 return _IMP_em._object_cast_to_SpiderMapReaderWriter(o)
719 _object_types.append(
"EMReaderWriter")
722 def _object_cast_to_EMReaderWriter(o):
723 """_object_cast_to_EMReaderWriter(Object o) -> EMReaderWriter"""
724 return _IMP_em._object_cast_to_EMReaderWriter(o)
726 _object_types.append(
"XplorReaderWriter")
729 def _object_cast_to_XplorReaderWriter(o):
730 """_object_cast_to_XplorReaderWriter(Object o) -> XplorReaderWriter"""
731 return _IMP_em._object_cast_to_XplorReaderWriter(o)
733 _object_types.append(
"CoarseCCatIntervals")
736 def _object_cast_to_CoarseCCatIntervals(o):
737 """_object_cast_to_CoarseCCatIntervals(Object o) -> CoarseCCatIntervals"""
738 return _IMP_em._object_cast_to_CoarseCCatIntervals(o)
740 FittingSolutionsList=list
741 _plural_types.append(
"FittingSolutionsList")
742 _value_types.append(
"FittingSolutions")
745 _object_types.append(
"MapDistanceTransform")
748 def _object_cast_to_MapDistanceTransform(o):
749 """_object_cast_to_MapDistanceTransform(Object o) -> MapDistanceTransform"""
750 return _IMP_em._object_cast_to_MapDistanceTransform(o)
752 _object_types.append(
"EnvelopeScore")
755 def _object_cast_to_EnvelopeScore(o):
756 """_object_cast_to_EnvelopeScore(Object o) -> EnvelopeScore"""
757 return _IMP_em._object_cast_to_EnvelopeScore(o)
759 def _get_density_map_x_loc(m, pyobj):
760 """_get_density_map_x_loc(DensityMap m, PyObject * pyobj) -> PyObject *"""
761 return _IMP_em._get_density_map_x_loc(m, pyobj)
763 def _get_density_map_y_loc(m, pyobj):
764 """_get_density_map_y_loc(DensityMap m, PyObject * pyobj) -> PyObject *"""
765 return _IMP_em._get_density_map_y_loc(m, pyobj)
767 def _get_density_map_z_loc(m, pyobj):
768 """_get_density_map_z_loc(DensityMap m, PyObject * pyobj) -> PyObject *"""
769 return _IMP_em._get_density_map_z_loc(m, pyobj)
771 def _get_density_map_data(m, pyobj):
772 """_get_density_map_data(DensityMap m, PyObject * pyobj) -> PyObject *"""
773 return _IMP_em._get_density_map_data(m, pyobj)
775 """Proxy of C++ IMP::em::MapReaderWriter class"""
776 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
779 """__init__(IMP::em::MapReaderWriter self) -> MapReaderWriter"""
780 this = _IMP_em.new_MapReaderWriter()
782 self.this.append(this)
786 def get_version_info(self):
787 """get_version_info(MapReaderWriter self) -> VersionInfo"""
788 return _IMP_em.MapReaderWriter_get_version_info(self)
792 """__str__(MapReaderWriter self) -> std::string"""
793 return _IMP_em.MapReaderWriter___str__(self)
797 """__repr__(MapReaderWriter self) -> std::string"""
798 return _IMP_em.MapReaderWriter___repr__(self)
803 return _object_cast_to_MapReaderWriter(o)
805 MapReaderWriter_swigregister = _IMP_em.MapReaderWriter_swigregister
806 MapReaderWriter_swigregister(MapReaderWriter)
810 class DensityHeader(object):
811 """Proxy of C++ IMP::em::DensityHeader class"""
812 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
813 __repr__ = _swig_repr
816 """__init__(IMP::em::DensityHeader self) -> DensityHeader"""
817 this = _IMP_em.new_DensityHeader()
819 self.this.append(this)
823 def get_top(self, ind):
824 """get_top(DensityHeader self, int ind) -> IMP::em::emreal"""
825 return _IMP_em.DensityHeader_get_top(self, ind)
828 def compute_xyz_top(self, force=False):
830 compute_xyz_top(DensityHeader self, bool force=False)
831 compute_xyz_top(DensityHeader self)
833 return _IMP_em.DensityHeader_compute_xyz_top(self, force)
836 def update_map_dimensions(self, nnx, nny, nnz):
837 """update_map_dimensions(DensityHeader self, int nnx, int nny, int nnz)"""
838 return _IMP_em.DensityHeader_update_map_dimensions(self, nnx, nny, nnz)
841 def update_cell_dimensions(self):
842 """update_cell_dimensions(DensityHeader self)"""
843 return _IMP_em.DensityHeader_update_cell_dimensions(self)
846 def show(self, *args):
848 show(DensityHeader self, _ostream out)
849 show(DensityHeader self)
851 return _IMP_em.DensityHeader_show(self, *args)
853 MAP_FIELD_SIZE = _IMP_em.DensityHeader_MAP_FIELD_SIZE
854 USER_FIELD_SIZE = _IMP_em.DensityHeader_USER_FIELD_SIZE
855 COMMENT_FIELD_NUM_OF = _IMP_em.DensityHeader_COMMENT_FIELD_NUM_OF
856 COMMENT_FIELD_SINGLE_SIZE = _IMP_em.DensityHeader_COMMENT_FIELD_SINGLE_SIZE
857 nxstart = _swig_property(_IMP_em.DensityHeader_nxstart_get, _IMP_em.DensityHeader_nxstart_set)
858 nystart = _swig_property(_IMP_em.DensityHeader_nystart_get, _IMP_em.DensityHeader_nystart_set)
859 nzstart = _swig_property(_IMP_em.DensityHeader_nzstart_get, _IMP_em.DensityHeader_nzstart_set)
860 mx = _swig_property(_IMP_em.DensityHeader_mx_get, _IMP_em.DensityHeader_mx_set)
861 my = _swig_property(_IMP_em.DensityHeader_my_get, _IMP_em.DensityHeader_my_set)
862 mz = _swig_property(_IMP_em.DensityHeader_mz_get, _IMP_em.DensityHeader_mz_set)
863 xlen = _swig_property(_IMP_em.DensityHeader_xlen_get, _IMP_em.DensityHeader_xlen_set)
864 ylen = _swig_property(_IMP_em.DensityHeader_ylen_get, _IMP_em.DensityHeader_ylen_set)
865 zlen = _swig_property(_IMP_em.DensityHeader_zlen_get, _IMP_em.DensityHeader_zlen_set)
866 alpha = _swig_property(_IMP_em.DensityHeader_alpha_get, _IMP_em.DensityHeader_alpha_set)
867 beta = _swig_property(_IMP_em.DensityHeader_beta_get, _IMP_em.DensityHeader_beta_set)
868 gamma = _swig_property(_IMP_em.DensityHeader_gamma_get, _IMP_em.DensityHeader_gamma_set)
869 mapc = _swig_property(_IMP_em.DensityHeader_mapc_get, _IMP_em.DensityHeader_mapc_set)
870 mapr = _swig_property(_IMP_em.DensityHeader_mapr_get, _IMP_em.DensityHeader_mapr_set)
871 maps = _swig_property(_IMP_em.DensityHeader_maps_get, _IMP_em.DensityHeader_maps_set)
872 dmin = _swig_property(_IMP_em.DensityHeader_dmin_get, _IMP_em.DensityHeader_dmin_set)
873 dmax = _swig_property(_IMP_em.DensityHeader_dmax_get, _IMP_em.DensityHeader_dmax_set)
874 dmean = _swig_property(_IMP_em.DensityHeader_dmean_get, _IMP_em.DensityHeader_dmean_set)
875 ispg = _swig_property(_IMP_em.DensityHeader_ispg_get, _IMP_em.DensityHeader_ispg_set)
876 nsymbt = _swig_property(_IMP_em.DensityHeader_nsymbt_get, _IMP_em.DensityHeader_nsymbt_set)
877 user = _swig_property(_IMP_em.DensityHeader_user_get, _IMP_em.DensityHeader_user_set)
878 map = _swig_property(_IMP_em.DensityHeader_map_get, _IMP_em.DensityHeader_map_set)
879 machinestamp = _swig_property(_IMP_em.DensityHeader_machinestamp_get, _IMP_em.DensityHeader_machinestamp_set)
880 rms = _swig_property(_IMP_em.DensityHeader_rms_get, _IMP_em.DensityHeader_rms_set)
881 nlabl = _swig_property(_IMP_em.DensityHeader_nlabl_get, _IMP_em.DensityHeader_nlabl_set)
882 comments = _swig_property(_IMP_em.DensityHeader_comments_get, _IMP_em.DensityHeader_comments_set)
883 magic = _swig_property(_IMP_em.DensityHeader_magic_get, _IMP_em.DensityHeader_magic_set)
884 voltage = _swig_property(_IMP_em.DensityHeader_voltage_get, _IMP_em.DensityHeader_voltage_set)
885 Cs = _swig_property(_IMP_em.DensityHeader_Cs_get, _IMP_em.DensityHeader_Cs_set)
886 Aperture = _swig_property(_IMP_em.DensityHeader_Aperture_get, _IMP_em.DensityHeader_Aperture_set)
887 Magnification = _swig_property(_IMP_em.DensityHeader_Magnification_get, _IMP_em.DensityHeader_Magnification_set)
888 Postmagnification = _swig_property(_IMP_em.DensityHeader_Postmagnification_get, _IMP_em.DensityHeader_Postmagnification_set)
889 Exposuretime = _swig_property(_IMP_em.DensityHeader_Exposuretime_get, _IMP_em.DensityHeader_Exposuretime_set)
890 Microscope = _swig_property(_IMP_em.DensityHeader_Microscope_get, _IMP_em.DensityHeader_Microscope_set)
891 Pixelsize = _swig_property(_IMP_em.DensityHeader_Pixelsize_get, _IMP_em.DensityHeader_Pixelsize_set)
892 CCDArea = _swig_property(_IMP_em.DensityHeader_CCDArea_get, _IMP_em.DensityHeader_CCDArea_set)
893 Defocus = _swig_property(_IMP_em.DensityHeader_Defocus_get, _IMP_em.DensityHeader_Defocus_set)
894 Astigmatism = _swig_property(_IMP_em.DensityHeader_Astigmatism_get, _IMP_em.DensityHeader_Astigmatism_set)
895 AstigmatismAngle = _swig_property(_IMP_em.DensityHeader_AstigmatismAngle_get, _IMP_em.DensityHeader_AstigmatismAngle_set)
896 FocusIncrement = _swig_property(_IMP_em.DensityHeader_FocusIncrement_get, _IMP_em.DensityHeader_FocusIncrement_set)
897 CountsPerElectron = _swig_property(_IMP_em.DensityHeader_CountsPerElectron_get, _IMP_em.DensityHeader_CountsPerElectron_set)
898 Intensity = _swig_property(_IMP_em.DensityHeader_Intensity_get, _IMP_em.DensityHeader_Intensity_set)
899 EnergySlitwidth = _swig_property(_IMP_em.DensityHeader_EnergySlitwidth_get, _IMP_em.DensityHeader_EnergySlitwidth_set)
900 EnergyOffset = _swig_property(_IMP_em.DensityHeader_EnergyOffset_get, _IMP_em.DensityHeader_EnergyOffset_set)
901 Tiltangle = _swig_property(_IMP_em.DensityHeader_Tiltangle_get, _IMP_em.DensityHeader_Tiltangle_set)
902 Tiltaxis = _swig_property(_IMP_em.DensityHeader_Tiltaxis_get, _IMP_em.DensityHeader_Tiltaxis_set)
903 MarkerX = _swig_property(_IMP_em.DensityHeader_MarkerX_get, _IMP_em.DensityHeader_MarkerX_set)
904 MarkerY = _swig_property(_IMP_em.DensityHeader_MarkerY_get, _IMP_em.DensityHeader_MarkerY_set)
905 lswap = _swig_property(_IMP_em.DensityHeader_lswap_get, _IMP_em.DensityHeader_lswap_set)
908 """get_resolution(DensityHeader self) -> float"""
909 return _IMP_em.DensityHeader_get_resolution(self)
912 def get_has_resolution(self):
913 """get_has_resolution(DensityHeader self) -> bool"""
914 return _IMP_em.DensityHeader_get_has_resolution(self)
917 def set_resolution(self, resolution):
918 """set_resolution(DensityHeader self, float resolution)"""
919 return _IMP_em.DensityHeader_set_resolution(self, resolution)
922 def get_spacing(self):
923 """get_spacing(DensityHeader self) -> float"""
924 return _IMP_em.DensityHeader_get_spacing(self)
927 def get_xorigin(self):
928 """get_xorigin(DensityHeader self) -> float"""
929 return _IMP_em.DensityHeader_get_xorigin(self)
932 def get_yorigin(self):
933 """get_yorigin(DensityHeader self) -> float"""
934 return _IMP_em.DensityHeader_get_yorigin(self)
937 def get_zorigin(self):
938 """get_zorigin(DensityHeader self) -> float"""
939 return _IMP_em.DensityHeader_get_zorigin(self)
942 def get_origin(self, i):
943 """get_origin(DensityHeader self, int i) -> float"""
944 return _IMP_em.DensityHeader_get_origin(self, i)
947 def set_xorigin(self, x):
948 """set_xorigin(DensityHeader self, float x)"""
949 return _IMP_em.DensityHeader_set_xorigin(self, x)
952 def set_yorigin(self, y):
953 """set_yorigin(DensityHeader self, float y)"""
954 return _IMP_em.DensityHeader_set_yorigin(self, y)
957 def set_zorigin(self, z):
958 """set_zorigin(DensityHeader self, float z)"""
959 return _IMP_em.DensityHeader_set_zorigin(self, z)
962 def is_top_calculated(self):
963 """is_top_calculated(DensityHeader self) -> bool"""
964 return _IMP_em.DensityHeader_is_top_calculated(self)
966 Objectpixelsize_ = _swig_property(_IMP_em.DensityHeader_Objectpixelsize__get, _IMP_em.DensityHeader_Objectpixelsize__set)
969 """get_nx(DensityHeader self) -> int"""
970 return _IMP_em.DensityHeader_get_nx(self)
974 """get_ny(DensityHeader self) -> int"""
975 return _IMP_em.DensityHeader_get_ny(self)
979 """get_nz(DensityHeader self) -> int"""
980 return _IMP_em.DensityHeader_get_nz(self)
983 def get_number_of_voxels(self):
984 """get_number_of_voxels(DensityHeader self) -> int"""
985 return _IMP_em.DensityHeader_get_number_of_voxels(self)
988 def get_data_type(self):
989 """get_data_type(DensityHeader self) -> int"""
990 return _IMP_em.DensityHeader_get_data_type(self)
993 def set_data_type(self, data_type):
994 """set_data_type(DensityHeader self, int data_type)"""
995 return _IMP_em.DensityHeader_set_data_type(self, data_type)
997 __swig_destroy__ = _IMP_em.delete_DensityHeader
998 __del__ =
lambda self:
None
999 DensityHeader_swigregister = _IMP_em.DensityHeader_swigregister
1000 DensityHeader_swigregister(DensityHeader)
1004 """create_density_header(BoundingBox3D bb, float spacing) -> DensityHeader"""
1005 return _IMP_em.create_density_header(bb, spacing)
1007 def read_map(*args):
1009 read_map(std::string filename, MapReaderWriter reader) -> DensityMap
1010 read_map(std::string filename) -> DensityMap
1012 return _IMP_em.read_map(*args)
1014 def write_map(*args):
1016 write_map(DensityMap m, std::string filename, MapReaderWriter writer)
1017 write_map(DensityMap m, std::string filename)
1019 return _IMP_em.write_map(*args)
1022 """approximate_molecular_mass(DensityMap m, IMP::Float threshold) -> IMP::Float"""
1023 return _IMP_em.approximate_molecular_mass(m, threshold)
1025 """Proxy of C++ IMP::em::DensityMap class"""
1026 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1028 def __init__(self, *args):
1030 __init__(IMP::em::DensityMap self, std::string name) -> DensityMap
1031 __init__(IMP::em::DensityMap self) -> DensityMap
1032 __init__(IMP::em::DensityMap self, DensityHeader header, std::string name) -> DensityMap
1033 __init__(IMP::em::DensityMap self, DensityHeader header) -> DensityMap
1035 this = _IMP_em.new_DensityMap(*args)
1037 self.this.append(this)
1041 def reset_data(self, value=0.0):
1043 reset_data(DensityMap self, float value=0.0)
1044 reset_data(DensityMap self)
1046 return _IMP_em.DensityMap_reset_data(self, value)
1050 """calcRMS(DensityMap self) -> IMP::em::emreal"""
1051 return _IMP_em.DensityMap_calcRMS(self)
1054 def std_normalize(self):
1055 """std_normalize(DensityMap self)"""
1056 return _IMP_em.DensityMap_std_normalize(self)
1059 def is_normalized(self):
1060 """is_normalized(DensityMap self) -> bool"""
1061 return _IMP_em.DensityMap_is_normalized(self)
1064 def get_location_in_dim_by_voxel(self, index, dim):
1065 """get_location_in_dim_by_voxel(DensityMap self, long index, int dim) -> float"""
1066 return _IMP_em.DensityMap_get_location_in_dim_by_voxel(self, index, dim)
1069 def xyz_ind2voxel(self, x, y, z):
1070 """xyz_ind2voxel(DensityMap self, int x, int y, int z) -> long"""
1071 return _IMP_em.DensityMap_xyz_ind2voxel(self, x, y, z)
1074 def get_voxel_by_location(self, *args):
1076 get_voxel_by_location(DensityMap self, float x, float y, float z) -> long
1077 get_voxel_by_location(DensityMap self, Vector3D v) -> long
1079 return _IMP_em.DensityMap_get_voxel_by_location(self, *args)
1082 def get_location_by_voxel(self, index):
1083 """get_location_by_voxel(DensityMap self, long index) -> Vector3D"""
1084 return _IMP_em.DensityMap_get_location_by_voxel(self, index)
1087 def is_xyz_ind_part_of_volume(self, ix, iy, iz):
1088 """is_xyz_ind_part_of_volume(DensityMap self, int ix, int iy, int iz) -> bool"""
1089 return _IMP_em.DensityMap_is_xyz_ind_part_of_volume(self, ix, iy, iz)
1092 def is_part_of_volume(self, *args):
1094 is_part_of_volume(DensityMap self, float x, float y, float z) -> bool
1095 is_part_of_volume(DensityMap self, Vector3D v) -> bool
1097 return _IMP_em.DensityMap_is_part_of_volume(self, *args)
1100 def get_value(self, *args):
1102 get_value(DensityMap self, float x, float y, float z) -> IMP::em::emreal
1103 get_value(DensityMap self, Vector3D point) -> IMP::em::emreal
1104 get_value(DensityMap self, long index) -> IMP::em::emreal
1106 return _IMP_em.DensityMap_get_value(self, *args)
1109 def set_value(self, *args):
1111 set_value(DensityMap self, long index, IMP::em::emreal value)
1112 set_value(DensityMap self, float x, float y, float z, IMP::em::emreal value)
1114 return _IMP_em.DensityMap_set_value(self, *args)
1117 def set_origin(self, *args):
1119 set_origin(DensityMap self, float x, float y, float z)
1120 set_origin(DensityMap self, Vector3D v)
1122 return _IMP_em.DensityMap_set_origin(self, *args)
1125 def get_origin(self):
1126 """get_origin(DensityMap self) -> Vector3D"""
1127 return _IMP_em.DensityMap_get_origin(self)
1131 """get_top(DensityMap self) -> Vector3D"""
1132 return _IMP_em.DensityMap_get_top(self)
1135 def get_header(self):
1136 h = _IMP_em.DensityMap_get_header(self)
1142 def get_header_writable(self):
1143 h = _IMP_em.DensityMap_get_header_writable(self)
1149 def same_origin(self, other):
1150 """same_origin(DensityMap self, DensityMap other) -> bool"""
1151 return _IMP_em.DensityMap_same_origin(self, other)
1154 def same_dimensions(self, other):
1155 """same_dimensions(DensityMap self, DensityMap other) -> bool"""
1156 return _IMP_em.DensityMap_same_dimensions(self, other)
1159 def same_voxel_size(self, other):
1160 """same_voxel_size(DensityMap self, DensityMap other) -> bool"""
1161 return _IMP_em.DensityMap_same_voxel_size(self, other)
1166 get_centroid(DensityMap self, IMP::em::emreal threshold=0.0) -> Vector3D
1167 get_centroid(DensityMap self) -> Vector3D
1169 return _IMP_em.DensityMap_get_centroid(self, threshold)
1172 def get_max_value(self):
1173 """get_max_value(DensityMap self) -> IMP::em::emreal"""
1174 return _IMP_em.DensityMap_get_max_value(self)
1177 def get_min_value(self):
1178 """get_min_value(DensityMap self) -> IMP::em::emreal"""
1179 return _IMP_em.DensityMap_get_min_value(self)
1182 def add(self, *args):
1184 add(DensityMap self, DensityMap other)
1185 add(DensityMap self, IMP::Float d)
1187 return _IMP_em.DensityMap_add(self, *args)
1190 def pick_max(self, other):
1191 """pick_max(DensityMap self, DensityMap other)"""
1192 return _IMP_em.DensityMap_pick_max(self, other)
1195 def get_number_of_voxels(self):
1196 """get_number_of_voxels(DensityMap self) -> long"""
1197 return _IMP_em.DensityMap_get_number_of_voxels(self)
1200 def set_void_map(self, nx, ny, nz):
1201 """set_void_map(DensityMap self, int nx, int ny, int nz)"""
1202 return _IMP_em.DensityMap_set_void_map(self, nx, ny, nz)
1205 def pad(self, nx, ny, nz, val=0.0):
1207 pad(DensityMap self, int nx, int ny, int nz, float val=0.0)
1208 pad(DensityMap self, int nx, int ny, int nz)
1210 return _IMP_em.DensityMap_pad(self, nx, ny, nz, val)
1213 def pad_margin(self, mrg_x, mrg_y, mrg_z, val=0.0):
1215 pad_margin(DensityMap self, int mrg_x, int mrg_y, int mrg_z, float val=0.0) -> DensityMap
1216 pad_margin(DensityMap self, int mrg_x, int mrg_y, int mrg_z) -> DensityMap
1218 return _IMP_em.DensityMap_pad_margin(self, mrg_x, mrg_y, mrg_z, val)
1221 def get_cropped(self, *args):
1223 get_cropped(DensityMap self, float threshold) -> DensityMap
1224 get_cropped(DensityMap self, IMP::Particles ps, double distance, bool inverse=False, bool keep_map_dimensions=False) -> DensityMap
1225 get_cropped(DensityMap self, IMP::Particles ps, double distance, bool inverse=False) -> DensityMap
1226 get_cropped(DensityMap self, IMP::Particles ps, double distance) -> DensityMap
1227 get_cropped(DensityMap self, BoundingBox3D bb) -> DensityMap
1229 return _IMP_em.DensityMap_get_cropped(self, *args)
1232 def get_maximum_value_in_xy_plane(self, z_ind):
1233 """get_maximum_value_in_xy_plane(DensityMap self, int z_ind) -> float"""
1234 return _IMP_em.DensityMap_get_maximum_value_in_xy_plane(self, z_ind)
1237 def get_maximum_value_in_xz_plane(self, y_ind):
1238 """get_maximum_value_in_xz_plane(DensityMap self, int y_ind) -> float"""
1239 return _IMP_em.DensityMap_get_maximum_value_in_xz_plane(self, y_ind)
1242 def get_maximum_value_in_yz_plane(self, x_ind):
1243 """get_maximum_value_in_yz_plane(DensityMap self, int x_ind) -> float"""
1244 return _IMP_em.DensityMap_get_maximum_value_in_yz_plane(self, x_ind)
1248 """multiply(DensityMap self, float factor)"""
1249 return _IMP_em.DensityMap_multiply(self, factor)
1252 def get_locations_string(self, t):
1253 """get_locations_string(DensityMap self, float t) -> std::string"""
1254 return _IMP_em.DensityMap_get_locations_string(self, t)
1257 def update_voxel_size(self, new_apix):
1258 """update_voxel_size(DensityMap self, float new_apix)"""
1259 return _IMP_em.DensityMap_update_voxel_size(self, new_apix)
1262 def get_spacing(self):
1263 """get_spacing(DensityMap self) -> IMP::Float"""
1264 return _IMP_em.DensityMap_get_spacing(self)
1267 def calc_all_voxel2loc(self):
1268 """calc_all_voxel2loc(DensityMap self)"""
1269 return _IMP_em.DensityMap_calc_all_voxel2loc(self)
1272 def copy_map(self, other):
1273 """copy_map(DensityMap self, DensityMap other)"""
1274 return _IMP_em.DensityMap_copy_map(self, other)
1277 def get_version_info(self):
1278 """get_version_info(DensityMap self) -> VersionInfo"""
1279 return _IMP_em.DensityMap_get_version_info(self)
1282 def lower_voxel_shift(self, loc, kdist, orig, ndim):
1283 """lower_voxel_shift(DensityMap self, IMP::em::emreal loc, IMP::em::emreal kdist, IMP::em::emreal orig, int ndim) -> int"""
1284 return _IMP_em.DensityMap_lower_voxel_shift(self, loc, kdist, orig, ndim)
1287 def upper_voxel_shift(self, loc, kdist, orig, ndim):
1288 """upper_voxel_shift(DensityMap self, IMP::em::emreal loc, IMP::em::emreal kdist, IMP::em::emreal orig, int ndim) -> int"""
1289 return _IMP_em.DensityMap_upper_voxel_shift(self, loc, kdist, orig, ndim)
1292 def get_rms_calculated(self):
1293 """get_rms_calculated(DensityMap self) -> bool"""
1294 return _IMP_em.DensityMap_get_rms_calculated(self)
1297 def get_dim_index_by_location(self, *args):
1299 get_dim_index_by_location(DensityMap self, Vector3D v, int ind) -> int
1300 get_dim_index_by_location(DensityMap self, float loc_val, int ind) -> int
1302 return _IMP_em.DensityMap_get_dim_index_by_location(self, *args)
1306 """__str__(DensityMap self) -> std::string"""
1307 return _IMP_em.DensityMap___str__(self)
1311 """__repr__(DensityMap self) -> std::string"""
1312 return _IMP_em.DensityMap___repr__(self)
1317 return _object_cast_to_DensityMap(o)
1320 def get_x_loc(self):
1321 return _get_density_map_x_loc(self, self)
1323 def get_y_loc(self):
1324 return _get_density_map_y_loc(self, self)
1326 def get_z_loc(self):
1327 return _get_density_map_z_loc(self, self)
1330 return _get_density_map_data(self, self)
1332 DensityMap_swigregister = _IMP_em.DensityMap_swigregister
1333 DensityMap_swigregister(DensityMap)
1338 get_bounding_box(DensityMap m, IMP::Float threshold) -> BoundingBox3D
1339 get_bounding_box(DensityMap m) -> BoundingBox3D
1341 return _IMP_em.get_bounding_box(*args)
1343 def get_density(m, v):
1344 """get_density(DensityMap m, Vector3D v) -> double"""
1345 return _IMP_em.get_density(m, v)
1347 def get_transformed(*args):
1349 get_transformed(DensityMap input, Transformation3D tr, double threshold) -> DensityMap
1350 get_transformed(DensityMap input, Transformation3D tr) -> DensityMap
1352 return _IMP_em.get_transformed(*args)
1354 def get_resampled(input, scaling):
1355 """get_resampled(DensityMap input, double scaling) -> DensityMap"""
1356 return _IMP_em.get_resampled(input, scaling)
1358 def get_transformed_into(source, tr, into, calc_rms=True):
1360 get_transformed_into(DensityMap source, Transformation3D tr, DensityMap into, bool calc_rms=True)
1361 get_transformed_into(DensityMap source, Transformation3D tr, DensityMap into)
1363 return _IMP_em.get_transformed_into(source, tr, into, calc_rms)
1365 def get_transformed_into2(source, tr, into):
1366 """get_transformed_into2(DensityMap source, Transformation3D tr, DensityMap into)"""
1367 return _IMP_em.get_transformed_into2(source, tr, into)
1369 def get_interiors_intersect(d1, d2):
1370 """get_interiors_intersect(DensityMap d1, DensityMap d2) -> bool"""
1371 return _IMP_em.get_interiors_intersect(d1, d2)
1375 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
1376 get_segment(DensityMap map_to_segment, IMP::algebra::Vector3Ds vecs, float dist) -> DensityMap
1378 return _IMP_em.get_segment(*args)
1381 """get_segment_by_masking(DensityMap map_to_segment, DensityMap mask, float mas_threshold) -> DensityMap"""
1382 return _IMP_em.get_segment_by_masking(map_to_segment, mask, mas_threshold)
1384 def binarize(orig_map, threshold, reverse=False):
1386 binarize(DensityMap orig_map, float threshold, bool reverse=False) -> DensityMap
1387 binarize(DensityMap orig_map, float threshold) -> DensityMap
1389 return _IMP_em.binarize(orig_map, threshold, reverse)
1392 """get_threshold_map(DensityMap orig_map, float threshold) -> DensityMap"""
1393 return _IMP_em.get_threshold_map(orig_map, threshold)
1396 """multiply(DensityMap m1, DensityMap m2) -> DensityMap"""
1397 return _IMP_em.multiply(m1, m2)
1400 """convolute(DensityMap m1, DensityMap m2) -> double"""
1401 return _IMP_em.convolute(m1, m2)
1404 """get_sum(DensityMap m1) -> double"""
1405 return _IMP_em.get_sum(m1)
1408 """get_max_map(IMP::em::DensityMaps maps) -> DensityMap"""
1409 return _IMP_em.get_max_map(maps)
1412 """interpolate_map(DensityMap in_map, double new_spacing) -> DensityMap"""
1413 return _IMP_em.interpolate_map(in_map, new_spacing)
1416 """get_grid(DensityMap in_map) -> IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,float >,float,IMP::algebra::DefaultEmbeddingD< 3 > >"""
1417 return _IMP_em.get_grid(in_map)
1421 create_density_map(DensityMap other) -> DensityMap
1422 create_density_map(BoundingBox3D bb, double spacing) -> DensityMap
1423 create_density_map(int nx, int ny, int nz, double spacing) -> DensityMap
1424 create_density_map(DenseFloatGrid3D grid) -> DensityMap
1425 create_density_map(DenseDoubleGrid3D grid) -> DensityMap
1427 return _IMP_em.create_density_map(*args)
1429 def get_binarized_interior(dmap):
1430 """get_binarized_interior(DensityMap dmap) -> DensityMap"""
1431 return _IMP_em.get_binarized_interior(dmap)
1433 def add_to_map(dm, pis):
1434 """add_to_map(DensityMap dm, IMP::Particles const & pis)"""
1435 return _IMP_em.add_to_map(dm, pis)
1436 class RadiusDependentDistanceMask(object):
1437 """Proxy of C++ IMP::em::RadiusDependentDistanceMask class"""
1438 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1439 __repr__ = _swig_repr
1441 def __init__(self, sampling_radius, header):
1442 """__init__(IMP::em::RadiusDependentDistanceMask self, float sampling_radius, DensityHeader header) -> RadiusDependentDistanceMask"""
1443 this = _IMP_em.new_RadiusDependentDistanceMask(sampling_radius, header)
1445 self.this.append(this)
1449 def get_neighbor_shift(self):
1450 """get_neighbor_shift(RadiusDependentDistanceMask self) -> std::vector< double,std::allocator< double > > const *"""
1451 return _IMP_em.RadiusDependentDistanceMask_get_neighbor_shift(self)
1454 def get_neighbor_dist(self):
1455 """get_neighbor_dist(RadiusDependentDistanceMask self) -> std::vector< double,std::allocator< double > > const *"""
1456 return _IMP_em.RadiusDependentDistanceMask_get_neighbor_dist(self)
1459 def get_neighbor_dist_exp(self):
1460 """get_neighbor_dist_exp(RadiusDependentDistanceMask self) -> std::vector< double,std::allocator< double > > const *"""
1461 return _IMP_em.RadiusDependentDistanceMask_get_neighbor_dist_exp(self)
1464 def show(self, out):
1465 """show(RadiusDependentDistanceMask self, _ostream out)"""
1466 return _IMP_em.RadiusDependentDistanceMask_show(self, out)
1468 __swig_destroy__ = _IMP_em.delete_RadiusDependentDistanceMask
1469 __del__ =
lambda self:
None
1470 RadiusDependentDistanceMask_swigregister = _IMP_em.RadiusDependentDistanceMask_swigregister
1471 RadiusDependentDistanceMask_swigregister(RadiusDependentDistanceMask)
1473 class DistanceMask(object):
1474 """Proxy of C++ IMP::em::DistanceMask class"""
1475 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1476 __repr__ = _swig_repr
1478 def __init__(self, *args):
1480 __init__(IMP::em::DistanceMask self) -> DistanceMask
1481 __init__(IMP::em::DistanceMask self, DensityHeader header) -> DistanceMask
1483 this = _IMP_em.new_DistanceMask(*args)
1485 self.this.append(this)
1489 def show(self, out):
1490 """show(DistanceMask self, _ostream out)"""
1491 return _IMP_em.DistanceMask_show(self, out)
1494 def is_mask_set(self, radius, eps=0.001):
1496 is_mask_set(DistanceMask self, float radius, float eps=0.001) -> bool
1497 is_mask_set(DistanceMask self, float radius) -> bool
1499 return _IMP_em.DistanceMask_is_mask_set(self, radius, eps)
1501 __swig_destroy__ = _IMP_em.delete_DistanceMask
1502 __del__ =
lambda self:
None
1503 DistanceMask_swigregister = _IMP_em.DistanceMask_swigregister
1504 DistanceMask_swigregister(DistanceMask)
1506 class EMReaderWriter(MapReaderWriter):
1507 """Proxy of C++ IMP::em::EMReaderWriter class"""
1508 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1511 """__str__(EMReaderWriter self) -> std::string"""
1512 return _IMP_em.EMReaderWriter___str__(self)
1516 """__repr__(EMReaderWriter self) -> std::string"""
1517 return _IMP_em.EMReaderWriter___repr__(self)
1522 return _object_cast_to_EMReaderWriter(o)
1526 """__init__(IMP::em::EMReaderWriter self) -> EMReaderWriter"""
1527 this = _IMP_em.new_EMReaderWriter()
1529 self.this.append(this)
1532 EMReaderWriter_swigregister = _IMP_em.EMReaderWriter_swigregister
1533 EMReaderWriter_swigregister(EMReaderWriter)
1535 class XplorReaderWriter(MapReaderWriter):
1536 """Proxy of C++ IMP::em::XplorReaderWriter class"""
1537 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1540 """__str__(XplorReaderWriter self) -> std::string"""
1541 return _IMP_em.XplorReaderWriter___str__(self)
1545 """__repr__(XplorReaderWriter self) -> std::string"""
1546 return _IMP_em.XplorReaderWriter___repr__(self)
1551 return _object_cast_to_XplorReaderWriter(o)
1555 """__init__(IMP::em::XplorReaderWriter self) -> XplorReaderWriter"""
1556 this = _IMP_em.new_XplorReaderWriter()
1558 self.this.append(this)
1561 XplorReaderWriter_swigregister = _IMP_em.XplorReaderWriter_swigregister
1562 XplorReaderWriter_swigregister(XplorReaderWriter)
1564 class MRCReaderWriter(MapReaderWriter):
1565 """Proxy of C++ IMP::em::MRCReaderWriter class"""
1566 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1568 def __init__(self, *args):
1570 __init__(IMP::em::MRCReaderWriter self) -> MRCReaderWriter
1571 __init__(IMP::em::MRCReaderWriter self, std::string fn) -> MRCReaderWriter
1573 this = _IMP_em.new_MRCReaderWriter(*args)
1575 self.this.append(this)
1580 """__str__(MRCReaderWriter self) -> std::string"""
1581 return _IMP_em.MRCReaderWriter___str__(self)
1585 """__repr__(MRCReaderWriter self) -> std::string"""
1586 return _IMP_em.MRCReaderWriter___repr__(self)
1591 return _object_cast_to_MRCReaderWriter(o)
1593 MRCReaderWriter_swigregister = _IMP_em.MRCReaderWriter_swigregister
1594 MRCReaderWriter_swigregister(MRCReaderWriter)
1596 class KernelParameters(object):
1597 """Proxy of C++ IMP::em::KernelParameters class"""
1598 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1600 def __init__(self, *args):
1602 __init__(IMP::em::KernelParameters self) -> KernelParameters
1603 __init__(IMP::em::KernelParameters self, float resolution) -> KernelParameters
1605 this = _IMP_em.new_KernelParameters(*args)
1607 self.this.append(this)
1610 __swig_destroy__ = _IMP_em.delete_KernelParameters
1611 __del__ =
lambda self:
None
1614 """get_rsig(KernelParameters self) -> float"""
1615 return _IMP_em.KernelParameters_get_rsig(self)
1618 def get_rsigsq(self):
1619 """get_rsigsq(KernelParameters self) -> float"""
1620 return _IMP_em.KernelParameters_get_rsigsq(self)
1623 def get_inv_rsigsq(self):
1624 """get_inv_rsigsq(KernelParameters self) -> float"""
1625 return _IMP_em.KernelParameters_get_inv_rsigsq(self)
1628 def get_timessig(self):
1629 """get_timessig(KernelParameters self) -> float"""
1630 return _IMP_em.KernelParameters_get_timessig(self)
1633 def get_sq2pi3(self):
1634 """get_sq2pi3(KernelParameters self) -> float"""
1635 return _IMP_em.KernelParameters_get_sq2pi3(self)
1638 def get_rnormfac(self):
1639 """get_rnormfac(KernelParameters self) -> float"""
1640 return _IMP_em.KernelParameters_get_rnormfac(self)
1643 def get_rkdist(self):
1644 """get_rkdist(KernelParameters self) -> float"""
1645 return _IMP_em.KernelParameters_get_rkdist(self)
1648 def get_rkdistsq(self):
1649 """get_rkdistsq(KernelParameters self) -> float"""
1650 return _IMP_em.KernelParameters_get_rkdistsq(self)
1654 """get_lim(KernelParameters self) -> float"""
1655 return _IMP_em.KernelParameters_get_lim(self)
1658 def show(self, *args):
1660 show(KernelParameters self, _ostream out)
1661 show(KernelParameters self)
1663 return _IMP_em.KernelParameters_show(self, *args)
1667 """__str__(KernelParameters self) -> std::string"""
1668 return _IMP_em.KernelParameters___str__(self)
1672 """__repr__(KernelParameters self) -> std::string"""
1673 return _IMP_em.KernelParameters___repr__(self)
1675 KernelParameters_swigregister = _IMP_em.KernelParameters_swigregister
1676 KernelParameters_swigregister(KernelParameters)
1679 _IMP_em.GAUSSIAN_swigconstant(_IMP_em)
1680 GAUSSIAN = _IMP_em.GAUSSIAN
1682 _IMP_em.BINARIZED_SPHERE_swigconstant(_IMP_em)
1683 BINARIZED_SPHERE = _IMP_em.BINARIZED_SPHERE
1685 _IMP_em.SPHERE_swigconstant(_IMP_em)
1686 SPHERE = _IMP_em.SPHERE
1687 class SampledDensityMap(DensityMap):
1688 """Proxy of C++ IMP::em::SampledDensityMap class"""
1689 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1691 def __init__(self, *args):
1693 __init__(IMP::em::SampledDensityMap self, IMP::em::KernelType kt) -> SampledDensityMap
1694 __init__(IMP::em::SampledDensityMap self) -> SampledDensityMap
1695 __init__(IMP::em::SampledDensityMap self, DensityHeader header, IMP::em::KernelType kt) -> SampledDensityMap
1696 __init__(IMP::em::SampledDensityMap self, DensityHeader header) -> SampledDensityMap
1697 __init__(IMP::em::SampledDensityMap self, IMP::ParticlesTemp const & ps, IMP::em::emreal resolution, IMP::em::emreal voxel_size, FloatKey mass_key, int sig_cutoff=3, IMP::em::KernelType kt) -> SampledDensityMap
1698 __init__(IMP::em::SampledDensityMap self, IMP::ParticlesTemp const & ps, IMP::em::emreal resolution, IMP::em::emreal voxel_size, FloatKey mass_key, int sig_cutoff=3) -> SampledDensityMap
1699 __init__(IMP::em::SampledDensityMap self, IMP::ParticlesTemp const & ps, IMP::em::emreal resolution, IMP::em::emreal voxel_size, FloatKey mass_key) -> SampledDensityMap
1700 __init__(IMP::em::SampledDensityMap self, IMP::ParticlesTemp const & ps, IMP::em::emreal resolution, IMP::em::emreal voxel_size) -> SampledDensityMap
1702 this = _IMP_em.new_SampledDensityMap(*args)
1704 self.this.append(this)
1709 """resample(SampledDensityMap self)"""
1710 return _IMP_em.SampledDensityMap_resample(self)
1713 def project(self, *args):
1715 project(SampledDensityMap self, IMP::ParticlesTemp const & ps, int x_margin, int y_margin, int z_margin, Vector3D shift, FloatKey mass_key)
1716 project(SampledDensityMap self, IMP::ParticlesTemp const & ps, int x_margin, int y_margin, int z_margin, Vector3D shift)
1717 project(SampledDensityMap self, IMP::ParticlesTemp const & ps, int x_margin, int y_margin, int z_margin)
1719 return _IMP_em.SampledDensityMap_project(self, *args)
1722 def set_particles(self, *args):
1724 set_particles(SampledDensityMap self, IMP::ParticlesTemp const & ps, FloatKey mass_key)
1725 set_particles(SampledDensityMap self, IMP::ParticlesTemp const & ps)
1727 return _IMP_em.SampledDensityMap_set_particles(self, *args)
1730 def get_xyzr_particles(self):
1731 """get_xyzr_particles(SampledDensityMap self) -> IMP::core::XYZRs const &"""
1732 return _IMP_em.SampledDensityMap_get_xyzr_particles(self)
1735 def get_sampled_particles(self):
1736 """get_sampled_particles(SampledDensityMap self) -> IMP::Particles const &"""
1737 return _IMP_em.SampledDensityMap_get_sampled_particles(self)
1740 def get_weight_key(self):
1741 """get_weight_key(SampledDensityMap self) -> FloatKey"""
1742 return _IMP_em.SampledDensityMap_get_weight_key(self)
1745 def get_minimum_resampled_value(self):
1746 """get_minimum_resampled_value(SampledDensityMap self) -> float"""
1747 return _IMP_em.SampledDensityMap_get_minimum_resampled_value(self)
1750 def update_resolution(self, res):
1751 """update_resolution(SampledDensityMap self, IMP::Float res)"""
1752 return _IMP_em.SampledDensityMap_update_resolution(self, res)
1754 __swig_destroy__ = _IMP_em.delete_SampledDensityMap
1755 __del__ =
lambda self:
None
1758 """__str__(SampledDensityMap self) -> std::string"""
1759 return _IMP_em.SampledDensityMap___str__(self)
1763 """__repr__(SampledDensityMap self) -> std::string"""
1764 return _IMP_em.SampledDensityMap___repr__(self)
1769 return _object_cast_to_SampledDensityMap(o)
1771 SampledDensityMap_swigregister = _IMP_em.SampledDensityMap_swigregister
1772 SampledDensityMap_swigregister(SampledDensityMap)
1775 _IMP_em.IMP_DEFAULT_NUM_SHELLS_swigconstant(_IMP_em)
1776 IMP_DEFAULT_NUM_SHELLS = _IMP_em.IMP_DEFAULT_NUM_SHELLS
1778 _IMP_em.IMP_SIG_CUTOFF_swigconstant(_IMP_em)
1779 IMP_SIG_CUTOFF = _IMP_em.IMP_SIG_CUTOFF
1780 class SurfaceShellDensityMap(SampledDensityMap):
1781 """Proxy of C++ IMP::em::SurfaceShellDensityMap class"""
1782 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1784 def __init__(self, *args):
1786 __init__(IMP::em::SurfaceShellDensityMap self) -> SurfaceShellDensityMap
1787 __init__(IMP::em::SurfaceShellDensityMap self, DensityHeader header) -> SurfaceShellDensityMap
1788 __init__(IMP::em::SurfaceShellDensityMap self, IMP::ParticlesTemp const & ps, float voxel_size, FloatKey mass_key, int num_shells=5) -> SurfaceShellDensityMap
1789 __init__(IMP::em::SurfaceShellDensityMap self, IMP::ParticlesTemp const & ps, float voxel_size, FloatKey mass_key) -> SurfaceShellDensityMap
1790 __init__(IMP::em::SurfaceShellDensityMap self, IMP::ParticlesTemp const & ps, float voxel_size) -> SurfaceShellDensityMap
1792 this = _IMP_em.new_SurfaceShellDensityMap(*args)
1794 self.this.append(this)
1799 """binarize(SurfaceShellDensityMap self, float scene_val)"""
1800 return _IMP_em.SurfaceShellDensityMap_binarize(self, scene_val)
1803 def has_background_neighbor(self, voxel_ind):
1804 """has_background_neighbor(SurfaceShellDensityMap self, long voxel_ind) -> bool"""
1805 return _IMP_em.SurfaceShellDensityMap_has_background_neighbor(self, voxel_ind)
1807 __swig_destroy__ = _IMP_em.delete_SurfaceShellDensityMap
1808 __del__ =
lambda self:
None
1811 """__str__(SurfaceShellDensityMap self) -> std::string"""
1812 return _IMP_em.SurfaceShellDensityMap___str__(self)
1816 """__repr__(SurfaceShellDensityMap self) -> std::string"""
1817 return _IMP_em.SurfaceShellDensityMap___repr__(self)
1822 return _object_cast_to_SurfaceShellDensityMap(o)
1824 SurfaceShellDensityMap_swigregister = _IMP_em.SurfaceShellDensityMap_swigregister
1825 SurfaceShellDensityMap_swigregister(SurfaceShellDensityMap)
1830 get_coarse_cc_score(DensityMap data, SampledDensityMap model_map, double scalefactor, bool recalc_rms=True, bool resample=True, IMP::FloatPair norm_factors) -> double
1831 get_coarse_cc_score(DensityMap data, SampledDensityMap model_map, double scalefactor, bool recalc_rms=True, bool resample=True) -> double
1832 get_coarse_cc_score(DensityMap data, SampledDensityMap model_map, double scalefactor, bool recalc_rms=True) -> double
1833 get_coarse_cc_score(DensityMap data, SampledDensityMap model_map, double scalefactor) -> double
1835 return _IMP_em.get_coarse_cc_score(*args)
1839 get_coarse_cc_coefficient(DensityMap grid1, DensityMap grid2, double grid2_voxel_data_threshold, bool allow_padding=False, IMP::FloatPair norm_factors) -> double
1840 get_coarse_cc_coefficient(DensityMap grid1, DensityMap grid2, double grid2_voxel_data_threshold, bool allow_padding=False) -> double
1841 get_coarse_cc_coefficient(DensityMap grid1, DensityMap grid2, double grid2_voxel_data_threshold) -> double
1843 return _IMP_em.get_coarse_cc_coefficient(*args)
1846 """get_coarse_cc_local_coefficient(DensityMap em_map, DensityMap model_map, double voxel_data_threshold) -> double"""
1847 return _IMP_em.get_coarse_cc_local_coefficient(em_map, model_map, voxel_data_threshold)
1848 class CoarseConvolution(object):
1849 """Proxy of C++ IMP::em::CoarseConvolution class"""
1850 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1851 __repr__ = _swig_repr
1853 def convolution(em_map, model_map, voxel_data_threshold, recalc_ccnormfac=True):
1855 convolution(DensityMap em_map, DensityMap model_map, float voxel_data_threshold, bool recalc_ccnormfac=True) -> float
1856 convolution(DensityMap em_map, DensityMap model_map, float voxel_data_threshold) -> float
1858 return _IMP_em.CoarseConvolution_convolution(em_map, model_map, voxel_data_threshold, recalc_ccnormfac)
1860 convolution = staticmethod(convolution)
1863 """__init__(IMP::em::CoarseConvolution self) -> CoarseConvolution"""
1864 this = _IMP_em.new_CoarseConvolution()
1866 self.this.append(this)
1869 __swig_destroy__ = _IMP_em.delete_CoarseConvolution
1870 __del__ =
lambda self:
None
1871 CoarseConvolution_swigregister = _IMP_em.CoarseConvolution_swigregister
1872 CoarseConvolution_swigregister(CoarseConvolution)
1874 def CoarseConvolution_convolution(em_map, model_map, voxel_data_threshold, recalc_ccnormfac=True):
1876 convolution(DensityMap em_map, DensityMap model_map, float voxel_data_threshold, bool recalc_ccnormfac=True) -> float
1877 CoarseConvolution_convolution(DensityMap em_map, DensityMap model_map, float voxel_data_threshold) -> float
1879 return _IMP_em.CoarseConvolution_convolution(em_map, model_map, voxel_data_threshold, recalc_ccnormfac)
1882 """Proxy of C++ IMP::em::CoarseCCatIntervals class"""
1883 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1885 def __init__(self, *args):
1887 __init__(IMP::em::CoarseCCatIntervals self, int const & ncd) -> CoarseCCatIntervals
1888 __init__(IMP::em::CoarseCCatIntervals self) -> CoarseCCatIntervals
1890 this = _IMP_em.new_CoarseCCatIntervals(*args)
1892 self.this.append(this)
1896 def evaluate(self, em_map, model_map, deriv, scalefac, lderiv, eval_interval):
1897 """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 >"""
1898 return _IMP_em.CoarseCCatIntervals_evaluate(self, em_map, model_map, deriv, scalefac, lderiv, eval_interval)
1901 def get_version_info(self):
1902 """get_version_info(CoarseCCatIntervals self) -> VersionInfo"""
1903 return _IMP_em.CoarseCCatIntervals_get_version_info(self)
1907 """__str__(CoarseCCatIntervals self) -> std::string"""
1908 return _IMP_em.CoarseCCatIntervals___str__(self)
1912 """__repr__(CoarseCCatIntervals self) -> std::string"""
1913 return _IMP_em.CoarseCCatIntervals___repr__(self)
1918 return _object_cast_to_CoarseCCatIntervals(o)
1920 CoarseCCatIntervals_swigregister = _IMP_em.CoarseCCatIntervals_swigregister
1921 CoarseCCatIntervals_swigregister(CoarseCCatIntervals)
1925 """bayesem3d_get_distinct_and_counts(DensityMap em) -> std::map< double,int >"""
1926 return _IMP_em.bayesem3d_get_distinct_and_counts(em)
1929 """bayesem3d_get_cumulative_sum(DensityMap em) -> IMP::Floats"""
1930 return _IMP_em.bayesem3d_get_cumulative_sum(em)
1933 """bayesem3d_get_cumulative_sum_with_reference(DensityMap em) -> std::map< double,double >"""
1934 return _IMP_em.bayesem3d_get_cumulative_sum_with_reference(em)
1937 """bayesem3d_linear_interpolate(IMP::Floats const & x_data, IMP::Floats const & y_data, double x, bool extrapolate) -> double"""
1938 return _IMP_em.bayesem3d_linear_interpolate(x_data, y_data, x, extrapolate)
1941 """bayesem3d_get_logabssumexp(double x, double y, double sx, double sy) -> IMP::FloatPair"""
1942 return _IMP_em.bayesem3d_get_logabssumexp(x, y, sx, sy)
1945 """bayesem3d_get_logabssumprodexp(double x, double y, double wx, double wy) -> IMP::FloatPair"""
1946 return _IMP_em.bayesem3d_get_logabssumprodexp(x, y, wx, wy)
1949 """bayesem3d_get_logsumexp(double x, double y) -> double"""
1950 return _IMP_em.bayesem3d_get_logsumexp(x, y)
1953 """bayesem3d_get_logsumprodexp(double x, double y, double wx, double wy) -> double"""
1954 return _IMP_em.bayesem3d_get_logsumprodexp(x, y, wx, wy)
1957 """bayesem3d_get_em_density_squared(DensityMap em, long number_of_voxels) -> IMP::FloatPair"""
1958 return _IMP_em.bayesem3d_get_em_density_squared(em, number_of_voxels)
1961 """bayesem3d_get_value(Particle p, Vector3D pt, double mass_ii, KernelParameters kps) -> std::vector< double,std::allocator< double > >"""
1962 return _IMP_em.bayesem3d_get_value(p, pt, mass_ii, kps)
1965 """bayesem3d_get_value_no_deriv(Particle p, Vector3D pt, double mass_ii, KernelParameters kps) -> std::vector< double,std::allocator< double > >"""
1966 return _IMP_em.bayesem3d_get_value_no_deriv(p, pt, mass_ii, kps)
1970 bayesem3d_get_density_from_particle(DensityMap em, IMP::ParticlesTemp const & ps, double resolution, double const window_size=1.0) -> DensityMap
1971 bayesem3d_get_density_from_particle(DensityMap em, IMP::ParticlesTemp const & ps, double resolution) -> DensityMap
1973 return _IMP_em.bayesem3d_get_density_from_particle(em, ps, resolution, window_size)
1976 """bayesem3d_get_cross_correlation_coefficient(DensityMap em1, DensityMap em2) -> double"""
1977 return _IMP_em.bayesem3d_get_cross_correlation_coefficient(em1, em2)
1981 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 >
1982 bayesem3d_get_score_and_derivative(DensityMap em, IMP::ParticlesTemp const & ps, double resolution, double sigma) -> std::pair< double,IMP::algebra::Vector3Ds >
1984 return _IMP_em.bayesem3d_get_score_and_derivative(em, ps, resolution, sigma, window_size)
1987 """bayesem3d_get_normalized_intensities(DensityMap em, IMP::ParticlesTemp const & ps, double resolution)"""
1988 return _IMP_em.bayesem3d_get_normalized_intensities(em, ps, resolution)
1990 """Proxy of C++ IMP::em::FitRestraint class"""
1991 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1993 def __init__(self, *args):
1995 __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
1996 __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
1997 __init__(IMP::em::FitRestraint self, IMP::ParticlesTemp ps, DensityMap em_map, IMP::FloatPair norm_factors, FloatKey weight_key, float scale=1) -> FitRestraint
1998 __init__(IMP::em::FitRestraint self, IMP::ParticlesTemp ps, DensityMap em_map, IMP::FloatPair norm_factors, FloatKey weight_key) -> FitRestraint
1999 __init__(IMP::em::FitRestraint self, IMP::ParticlesTemp ps, DensityMap em_map, IMP::FloatPair norm_factors) -> FitRestraint
2000 __init__(IMP::em::FitRestraint self, IMP::ParticlesTemp ps, DensityMap em_map) -> FitRestraint
2002 this = _IMP_em.new_FitRestraint(*args)
2004 self.this.append(this)
2008 def get_model_dens_map(self):
2009 """get_model_dens_map(FitRestraint self) -> SampledDensityMap"""
2010 return _IMP_em.FitRestraint_get_model_dens_map(self)
2013 def set_scale_factor(self, scale):
2014 """set_scale_factor(FitRestraint self, float scale)"""
2015 return _IMP_em.FitRestraint_set_scale_factor(self, scale)
2018 def get_scale_factor(self):
2019 """get_scale_factor(FitRestraint self) -> float"""
2020 return _IMP_em.FitRestraint_get_scale_factor(self)
2023 def do_get_inputs(self):
2024 """do_get_inputs(FitRestraint self) -> IMP::ModelObjectsTemp"""
2025 return _IMP_em.FitRestraint_do_get_inputs(self)
2028 def get_version_info(self):
2029 """get_version_info(FitRestraint self) -> VersionInfo"""
2030 return _IMP_em.FitRestraint_get_version_info(self)
2034 """__str__(FitRestraint self) -> std::string"""
2035 return _IMP_em.FitRestraint___str__(self)
2039 """__repr__(FitRestraint self) -> std::string"""
2040 return _IMP_em.FitRestraint___repr__(self)
2045 return _object_cast_to_FitRestraint(o)
2047 FitRestraint_swigregister = _IMP_em.FitRestraint_swigregister
2048 FitRestraint_swigregister(FitRestraint)
2051 """Proxy of C++ IMP::em::FitRestraintBayesEM3D class"""
2052 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2054 def __init__(self, *args):
2056 __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
2057 __init__(IMP::em::FitRestraintBayesEM3D self, IMP::ParticlesTemp ps, DensityMap em_map, FloatKey weight_key, bool use_rigid_bodies=True, double sigma=.1) -> FitRestraintBayesEM3D
2058 __init__(IMP::em::FitRestraintBayesEM3D self, IMP::ParticlesTemp ps, DensityMap em_map, FloatKey weight_key, bool use_rigid_bodies=True) -> FitRestraintBayesEM3D
2059 __init__(IMP::em::FitRestraintBayesEM3D self, IMP::ParticlesTemp ps, DensityMap em_map, FloatKey weight_key) -> FitRestraintBayesEM3D
2060 __init__(IMP::em::FitRestraintBayesEM3D self, IMP::ParticlesTemp ps, DensityMap em_map) -> FitRestraintBayesEM3D
2062 this = _IMP_em.new_FitRestraintBayesEM3D(*args)
2064 self.this.append(this)
2068 def do_get_inputs(self):
2069 """do_get_inputs(FitRestraintBayesEM3D self) -> IMP::ModelObjectsTemp"""
2070 return _IMP_em.FitRestraintBayesEM3D_do_get_inputs(self)
2073 def get_version_info(self):
2074 """get_version_info(FitRestraintBayesEM3D self) -> VersionInfo"""
2075 return _IMP_em.FitRestraintBayesEM3D_get_version_info(self)
2079 """__str__(FitRestraintBayesEM3D self) -> std::string"""
2080 return _IMP_em.FitRestraintBayesEM3D___str__(self)
2084 """__repr__(FitRestraintBayesEM3D self) -> std::string"""
2085 return _IMP_em.FitRestraintBayesEM3D___repr__(self)
2090 return _object_cast_to_FitRestraintBayesEM3D(o)
2092 FitRestraintBayesEM3D_swigregister = _IMP_em.FitRestraintBayesEM3D_swigregister
2093 FitRestraintBayesEM3D_swigregister(FitRestraintBayesEM3D)
2098 density2particles(DensityMap dmap, IMP::Float threshold, Model m, int step=1) -> IMP::Particles
2099 density2particles(DensityMap dmap, IMP::Float threshold, Model m) -> IMP::Particles
2101 return _IMP_em.density2particles(dmap, threshold, m, step)
2104 """density2vectors(DensityMap dmap, IMP::Float threshold) -> IMP::algebra::Vector3Ds"""
2105 return _IMP_em.density2vectors(dmap, threshold)
2109 particles2density(IMP::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix, int sig_cutoff=3, FloatKey weight_key) -> SampledDensityMap
2110 particles2density(IMP::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix, int sig_cutoff=3) -> SampledDensityMap
2111 particles2density(IMP::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix) -> SampledDensityMap
2113 return _IMP_em.particles2density(*args)
2117 particles2binarized_density(IMP::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix, int sig_cutoff=3, FloatKey weight_key) -> SampledDensityMap
2118 particles2binarized_density(IMP::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix, int sig_cutoff=3) -> SampledDensityMap
2119 particles2binarized_density(IMP::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix) -> SampledDensityMap
2121 return _IMP_em.particles2binarized_density(*args)
2125 particles2surface(IMP::ParticlesTemp const & ps, IMP::Float apix, FloatKey weight_key) -> SurfaceShellDensityMap
2126 particles2surface(IMP::ParticlesTemp const & ps, IMP::Float apix) -> SurfaceShellDensityMap
2128 return _IMP_em.particles2surface(*args)
2130 def calculate_intersection_score(d1, d2):
2131 """calculate_intersection_score(SurfaceShellDensityMap d1, SurfaceShellDensityMap d2) -> IMP::Float"""
2132 return _IMP_em.calculate_intersection_score(d1, d2)
2133 class SpiderHeader(object):
2134 """Proxy of C++ IMP::em::SpiderHeader class"""
2135 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2136 __repr__ = _swig_repr
2137 fNslice = _swig_property(_IMP_em.SpiderHeader_fNslice_get, _IMP_em.SpiderHeader_fNslice_set)
2138 fNrow = _swig_property(_IMP_em.SpiderHeader_fNrow_get, _IMP_em.SpiderHeader_fNrow_set)
2139 fNrec = _swig_property(_IMP_em.SpiderHeader_fNrec_get, _IMP_em.SpiderHeader_fNrec_set)
2140 fNlabel = _swig_property(_IMP_em.SpiderHeader_fNlabel_get, _IMP_em.SpiderHeader_fNlabel_set)
2141 fIform = _swig_property(_IMP_em.SpiderHeader_fIform_get, _IMP_em.SpiderHeader_fIform_set)
2142 fImami = _swig_property(_IMP_em.SpiderHeader_fImami_get, _IMP_em.SpiderHeader_fImami_set)
2143 fFmax = _swig_property(_IMP_em.SpiderHeader_fFmax_get, _IMP_em.SpiderHeader_fFmax_set)
2144 fFmin = _swig_property(_IMP_em.SpiderHeader_fFmin_get, _IMP_em.SpiderHeader_fFmin_set)
2145 fAv = _swig_property(_IMP_em.SpiderHeader_fAv_get, _IMP_em.SpiderHeader_fAv_set)
2146 fSig = _swig_property(_IMP_em.SpiderHeader_fSig_get, _IMP_em.SpiderHeader_fSig_set)
2147 fIhist = _swig_property(_IMP_em.SpiderHeader_fIhist_get, _IMP_em.SpiderHeader_fIhist_set)
2148 fNcol = _swig_property(_IMP_em.SpiderHeader_fNcol_get, _IMP_em.SpiderHeader_fNcol_set)
2149 fLabrec = _swig_property(_IMP_em.SpiderHeader_fLabrec_get, _IMP_em.SpiderHeader_fLabrec_set)
2150 fIangle = _swig_property(_IMP_em.SpiderHeader_fIangle_get, _IMP_em.SpiderHeader_fIangle_set)
2151 fPhi = _swig_property(_IMP_em.SpiderHeader_fPhi_get, _IMP_em.SpiderHeader_fPhi_set)
2152 fTheta = _swig_property(_IMP_em.SpiderHeader_fTheta_get, _IMP_em.SpiderHeader_fTheta_set)
2153 fPsi = _swig_property(_IMP_em.SpiderHeader_fPsi_get, _IMP_em.SpiderHeader_fPsi_set)
2154 fXoff = _swig_property(_IMP_em.SpiderHeader_fXoff_get, _IMP_em.SpiderHeader_fXoff_set)
2155 fYoff = _swig_property(_IMP_em.SpiderHeader_fYoff_get, _IMP_em.SpiderHeader_fYoff_set)
2156 fZoff = _swig_property(_IMP_em.SpiderHeader_fZoff_get, _IMP_em.SpiderHeader_fZoff_set)
2157 fScale = _swig_property(_IMP_em.SpiderHeader_fScale_get, _IMP_em.SpiderHeader_fScale_set)
2158 fLabbyt = _swig_property(_IMP_em.SpiderHeader_fLabbyt_get, _IMP_em.SpiderHeader_fLabbyt_set)
2159 fLenbyt = _swig_property(_IMP_em.SpiderHeader_fLenbyt_get, _IMP_em.SpiderHeader_fLenbyt_set)
2160 fNothing = _swig_property(_IMP_em.SpiderHeader_fNothing_get, _IMP_em.SpiderHeader_fNothing_set)
2161 fFlag = _swig_property(_IMP_em.SpiderHeader_fFlag_get, _IMP_em.SpiderHeader_fFlag_set)
2162 fPhi1 = _swig_property(_IMP_em.SpiderHeader_fPhi1_get, _IMP_em.SpiderHeader_fPhi1_set)
2163 fTheta1 = _swig_property(_IMP_em.SpiderHeader_fTheta1_get, _IMP_em.SpiderHeader_fTheta1_set)
2164 fPsi1 = _swig_property(_IMP_em.SpiderHeader_fPsi1_get, _IMP_em.SpiderHeader_fPsi1_set)
2165 fPhi2 = _swig_property(_IMP_em.SpiderHeader_fPhi2_get, _IMP_em.SpiderHeader_fPhi2_set)
2166 fTheta2 = _swig_property(_IMP_em.SpiderHeader_fTheta2_get, _IMP_em.SpiderHeader_fTheta2_set)
2167 fPsi2 = _swig_property(_IMP_em.SpiderHeader_fPsi2_get, _IMP_em.SpiderHeader_fPsi2_set)
2168 fGeo_matrix = _swig_property(_IMP_em.SpiderHeader_fGeo_matrix_get, _IMP_em.SpiderHeader_fGeo_matrix_set)
2169 fAngle1 = _swig_property(_IMP_em.SpiderHeader_fAngle1_get, _IMP_em.SpiderHeader_fAngle1_set)
2170 fr1 = _swig_property(_IMP_em.SpiderHeader_fr1_get, _IMP_em.SpiderHeader_fr1_set)
2171 fr2 = _swig_property(_IMP_em.SpiderHeader_fr2_get, _IMP_em.SpiderHeader_fr2_set)
2172 RTflag = _swig_property(_IMP_em.SpiderHeader_RTflag_get, _IMP_em.SpiderHeader_RTflag_set)
2173 Astart = _swig_property(_IMP_em.SpiderHeader_Astart_get, _IMP_em.SpiderHeader_Astart_set)
2174 Aend = _swig_property(_IMP_em.SpiderHeader_Aend_get, _IMP_em.SpiderHeader_Aend_set)
2175 Ainc = _swig_property(_IMP_em.SpiderHeader_Ainc_get, _IMP_em.SpiderHeader_Ainc_set)
2176 Rsigma = _swig_property(_IMP_em.SpiderHeader_Rsigma_get, _IMP_em.SpiderHeader_Rsigma_set)
2177 Tstart = _swig_property(_IMP_em.SpiderHeader_Tstart_get, _IMP_em.SpiderHeader_Tstart_set)
2178 Tend = _swig_property(_IMP_em.SpiderHeader_Tend_get, _IMP_em.SpiderHeader_Tend_set)
2179 Tinc = _swig_property(_IMP_em.SpiderHeader_Tinc_get, _IMP_em.SpiderHeader_Tinc_set)
2180 Weight = _swig_property(_IMP_em.SpiderHeader_Weight_get, _IMP_em.SpiderHeader_Weight_set)
2181 Flip = _swig_property(_IMP_em.SpiderHeader_Flip_get, _IMP_em.SpiderHeader_Flip_set)
2182 empty = _swig_property(_IMP_em.SpiderHeader_empty_get, _IMP_em.SpiderHeader_empty_set)
2183 szIDat = _swig_property(_IMP_em.SpiderHeader_szIDat_get, _IMP_em.SpiderHeader_szIDat_set)
2184 szITim = _swig_property(_IMP_em.SpiderHeader_szITim_get, _IMP_em.SpiderHeader_szITim_set)
2185 szITit = _swig_property(_IMP_em.SpiderHeader_szITit_get, _IMP_em.SpiderHeader_szITit_set)
2187 def show(self, out):
2188 """show(SpiderHeader self, _ostream out)"""
2189 return _IMP_em.SpiderHeader_show(self, out)
2193 """__init__(IMP::em::SpiderHeader self) -> SpiderHeader"""
2194 this = _IMP_em.new_SpiderHeader()
2196 self.this.append(this)
2199 __swig_destroy__ = _IMP_em.delete_SpiderHeader
2200 __del__ =
lambda self:
None
2201 SpiderHeader_swigregister = _IMP_em.SpiderHeader_swigregister
2202 SpiderHeader_swigregister(SpiderHeader)
2204 class ImageHeader(object):
2205 """Proxy of C++ IMP::em::ImageHeader class"""
2206 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2207 __repr__ = _swig_repr
2208 IMG_BYTE = _IMP_em.ImageHeader_IMG_BYTE
2209 IMG_IMPEM = _IMP_em.ImageHeader_IMG_IMPEM
2210 IMG_INT = _IMP_em.ImageHeader_IMG_INT
2211 VOL_BYTE = _IMP_em.ImageHeader_VOL_BYTE
2212 VOL_IMPEM = _IMP_em.ImageHeader_VOL_IMPEM
2213 VOL_INT = _IMP_em.ImageHeader_VOL_INT
2214 IMG_FOURIER = _IMP_em.ImageHeader_IMG_FOURIER
2215 VOL_FOURIER = _IMP_em.ImageHeader_VOL_FOURIER
2217 def __init__(self, *args):
2219 __init__(IMP::em::ImageHeader self) -> ImageHeader
2220 __init__(IMP::em::ImageHeader self, IMP::em::ImageHeader::img_type im) -> ImageHeader
2221 __init__(IMP::em::ImageHeader self, float im) -> ImageHeader
2223 this = _IMP_em.new_ImageHeader(*args)
2225 self.this.append(this)
2229 def get_image_type(self):
2230 """get_image_type(ImageHeader self) -> float"""
2231 return _IMP_em.ImageHeader_get_image_type(self)
2234 def set_image_type(self, *args):
2236 set_image_type(ImageHeader self, IMP::em::ImageHeader::img_type im)
2237 set_image_type(ImageHeader self, float im)
2239 return _IMP_em.ImageHeader_set_image_type(self, *args)
2242 def do_show(self, out):
2243 """do_show(ImageHeader self, _ostream out)"""
2244 return _IMP_em.ImageHeader_do_show(self, out)
2247 def show(self, *args):
2249 show(ImageHeader self, _ostream out)
2250 show(ImageHeader self)
2252 return _IMP_em.ImageHeader_show(self, *args)
2255 def print_hard(self, out):
2256 """print_hard(ImageHeader self, _ostream out)"""
2257 return _IMP_em.ImageHeader_print_hard(self, out)
2260 def show_projection_params(self, out):
2261 """show_projection_params(ImageHeader self, _ostream out)"""
2262 return _IMP_em.ImageHeader_show_projection_params(self, out)
2265 def read(self, *args):
2267 read(ImageHeader self, IMP::String const filename, bool skip_type_check=False, bool force_reversed=False, bool skip_extra_checkings=False) -> int
2268 read(ImageHeader self, IMP::String const filename, bool skip_type_check=False, bool force_reversed=False) -> int
2269 read(ImageHeader self, IMP::String const filename, bool skip_type_check=False) -> int
2270 read(ImageHeader self, IMP::String const filename) -> int
2271 read(ImageHeader self, std::ifstream & f, bool skip_type_check=False, bool force_reversed=False, bool skip_extra_checkings=False) -> bool
2272 read(ImageHeader self, std::ifstream & f, bool skip_type_check=False, bool force_reversed=False) -> bool
2273 read(ImageHeader self, std::ifstream & f, bool skip_type_check=False) -> bool
2274 read(ImageHeader self, std::ifstream & f) -> bool
2276 return _IMP_em.ImageHeader_read(self, *args)
2279 def write(self, *args):
2281 write(ImageHeader self, IMP::String const & filename, bool force_reversed=False)
2282 write(ImageHeader self, IMP::String const & filename)
2283 write(ImageHeader self, std::ofstream & f, bool force_reversed=False)
2284 write(ImageHeader self, std::ofstream & f)
2286 return _IMP_em.ImageHeader_write(self, *args)
2290 """clear(ImageHeader self)"""
2291 return _IMP_em.ImageHeader_clear(self)
2294 def set_header(self):
2295 """set_header(ImageHeader self)"""
2296 return _IMP_em.ImageHeader_set_header(self)
2299 def get_reversed(self):
2300 """get_reversed(ImageHeader self) -> bool"""
2301 return _IMP_em.ImageHeader_get_reversed(self)
2304 def set_reversed(self, value):
2305 """set_reversed(ImageHeader self, bool value)"""
2306 return _IMP_em.ImageHeader_set_reversed(self, value)
2309 def get_number_of_slices(self):
2310 """get_number_of_slices(ImageHeader self) -> unsigned int"""
2311 return _IMP_em.ImageHeader_get_number_of_slices(self)
2314 def set_number_of_slices(self, n):
2315 """set_number_of_slices(ImageHeader self, unsigned int n)"""
2316 return _IMP_em.ImageHeader_set_number_of_slices(self, n)
2319 def get_number_of_rows(self):
2320 """get_number_of_rows(ImageHeader self) -> unsigned int"""
2321 return _IMP_em.ImageHeader_get_number_of_rows(self)
2324 def set_number_of_rows(self, n):
2325 """set_number_of_rows(ImageHeader self, unsigned int n)"""
2326 return _IMP_em.ImageHeader_set_number_of_rows(self, n)
2329 def get_number_of_columns(self):
2330 """get_number_of_columns(ImageHeader self) -> unsigned int"""
2331 return _IMP_em.ImageHeader_get_number_of_columns(self)
2334 def set_number_of_columns(self, n):
2335 """set_number_of_columns(ImageHeader self, unsigned int n)"""
2336 return _IMP_em.ImageHeader_set_number_of_columns(self, n)
2339 def get_old_rot(self):
2340 """get_old_rot(ImageHeader self) -> float"""
2341 return _IMP_em.ImageHeader_get_old_rot(self)
2344 def set_old_rot(self, value):
2345 """set_old_rot(ImageHeader self, float value)"""
2346 return _IMP_em.ImageHeader_set_old_rot(self, value)
2349 def get_fAngle1(self):
2350 """get_fAngle1(ImageHeader self) -> float"""
2351 return _IMP_em.ImageHeader_get_fAngle1(self)
2354 def set_fAngle1(self, value):
2355 """set_fAngle1(ImageHeader self, float value)"""
2356 return _IMP_em.ImageHeader_set_fAngle1(self, value)
2359 def get_Scale(self):
2360 """get_Scale(ImageHeader self) -> float"""
2361 return _IMP_em.ImageHeader_get_Scale(self)
2364 def set_Scale(self, value):
2365 """set_Scale(ImageHeader self, float value)"""
2366 return _IMP_em.ImageHeader_set_Scale(self, value)
2370 """get_Flip(ImageHeader self) -> float"""
2371 return _IMP_em.ImageHeader_get_Flip(self)
2374 def set_Flip(self, value):
2375 """set_Flip(ImageHeader self, float value)"""
2376 return _IMP_em.ImageHeader_set_Flip(self, value)
2379 def get_Weight(self):
2380 """get_Weight(ImageHeader self) -> float"""
2381 return _IMP_em.ImageHeader_get_Weight(self)
2384 def set_Weight(self, value):
2385 """set_Weight(ImageHeader self, float value)"""
2386 return _IMP_em.ImageHeader_set_Weight(self, value)
2389 def get_fNrec(self):
2390 """get_fNrec(ImageHeader self) -> float"""
2391 return _IMP_em.ImageHeader_get_fNrec(self)
2394 def set_fNrec(self, value):
2395 """set_fNrec(ImageHeader self, float value)"""
2396 return _IMP_em.ImageHeader_set_fNrec(self, value)
2399 def get_fNlabel(self):
2400 """get_fNlabel(ImageHeader self) -> float"""
2401 return _IMP_em.ImageHeader_get_fNlabel(self)
2404 def set_fNlabel(self, value):
2405 """set_fNlabel(ImageHeader self, float value)"""
2406 return _IMP_em.ImageHeader_set_fNlabel(self, value)
2409 def get_fIform(self):
2410 """get_fIform(ImageHeader self) -> float"""
2411 return _IMP_em.ImageHeader_get_fIform(self)
2414 def set_fIform(self, value):
2415 """set_fIform(ImageHeader self, float value)"""
2416 return _IMP_em.ImageHeader_set_fIform(self, value)
2419 def get_fImami(self):
2420 """get_fImami(ImageHeader self) -> float"""
2421 return _IMP_em.ImageHeader_get_fImami(self)
2424 def set_fImami(self, value):
2425 """set_fImami(ImageHeader self, float value)"""
2426 return _IMP_em.ImageHeader_set_fImami(self, value)
2429 def get_fFmax(self):
2430 """get_fFmax(ImageHeader self) -> float"""
2431 return _IMP_em.ImageHeader_get_fFmax(self)
2434 def set_fFmax(self, value):
2435 """set_fFmax(ImageHeader self, float value)"""
2436 return _IMP_em.ImageHeader_set_fFmax(self, value)
2439 def get_fFmin(self):
2440 """get_fFmin(ImageHeader self) -> float"""
2441 return _IMP_em.ImageHeader_get_fFmin(self)
2444 def set_fFmin(self, value):
2445 """set_fFmin(ImageHeader self, float value)"""
2446 return _IMP_em.ImageHeader_set_fFmin(self, value)
2450 """get_fAv(ImageHeader self) -> float"""
2451 return _IMP_em.ImageHeader_get_fAv(self)
2454 def set_fAv(self, value):
2455 """set_fAv(ImageHeader self, float value)"""
2456 return _IMP_em.ImageHeader_set_fAv(self, value)
2460 """get_fSig(ImageHeader self) -> float"""
2461 return _IMP_em.ImageHeader_get_fSig(self)
2464 def set_fSig(self, value):
2465 """set_fSig(ImageHeader self, float value)"""
2466 return _IMP_em.ImageHeader_set_fSig(self, value)
2469 def get_fIhist(self):
2470 """get_fIhist(ImageHeader self) -> float"""
2471 return _IMP_em.ImageHeader_get_fIhist(self)
2474 def set_fIhist(self, value):
2475 """set_fIhist(ImageHeader self, float value)"""
2476 return _IMP_em.ImageHeader_set_fIhist(self, value)
2479 def get_fLabrec(self):
2480 """get_fLabrec(ImageHeader self) -> float"""
2481 return _IMP_em.ImageHeader_get_fLabrec(self)
2484 def set_fLabrec(self, value):
2485 """set_fLabrec(ImageHeader self, float value)"""
2486 return _IMP_em.ImageHeader_set_fLabrec(self, value)
2489 def get_fIangle(self):
2490 """get_fIangle(ImageHeader self) -> float"""
2491 return _IMP_em.ImageHeader_get_fIangle(self)
2494 def set_fIangle(self, value):
2495 """set_fIangle(ImageHeader self, float value)"""
2496 return _IMP_em.ImageHeader_set_fIangle(self, value)
2499 def get_origin(self):
2500 """get_origin(ImageHeader self) -> Vector3D"""
2501 return _IMP_em.ImageHeader_get_origin(self)
2504 def set_origin(self, *args):
2506 set_origin(ImageHeader self, Vector3D v)
2507 set_origin(ImageHeader self, Vector2D v)
2509 return _IMP_em.ImageHeader_set_origin(self, *args)
2512 def get_object_pixel_size(self):
2513 """get_object_pixel_size(ImageHeader self) -> float"""
2514 return _IMP_em.ImageHeader_get_object_pixel_size(self)
2517 def set_object_pixel_size(self, value):
2518 """set_object_pixel_size(ImageHeader self, float value)"""
2519 return _IMP_em.ImageHeader_set_object_pixel_size(self, value)
2522 def get_fLabbyt(self):
2523 """get_fLabbyt(ImageHeader self) -> float"""
2524 return _IMP_em.ImageHeader_get_fLabbyt(self)
2527 def set_fLabbyt(self, value):
2528 """set_fLabbyt(ImageHeader self, float value)"""
2529 return _IMP_em.ImageHeader_set_fLabbyt(self, value)
2532 def get_fLenbyt(self):
2533 """get_fLenbyt(ImageHeader self) -> float"""
2534 return _IMP_em.ImageHeader_get_fLenbyt(self)
2537 def set_fLenbyt(self, value):
2538 """set_fLenbyt(ImageHeader self, float value)"""
2539 return _IMP_em.ImageHeader_set_fLenbyt(self, value)
2542 def get_fGeo_matrix(self, i, j):
2543 """get_fGeo_matrix(ImageHeader self, unsigned int i, unsigned int j) -> double"""
2544 return _IMP_em.ImageHeader_get_fGeo_matrix(self, i, j)
2547 def get_fFlag(self):
2548 """get_fFlag(ImageHeader self) -> float"""
2549 return _IMP_em.ImageHeader_get_fFlag(self)
2552 def set_fFlag(self, value):
2553 """set_fFlag(ImageHeader self, float value)"""
2554 return _IMP_em.ImageHeader_set_fFlag(self, value)
2557 def get_euler_angles(self):
2558 """get_euler_angles(ImageHeader self) -> Vector3D"""
2559 return _IMP_em.ImageHeader_get_euler_angles(self)
2562 def get_euler_angles1(self):
2563 """get_euler_angles1(ImageHeader self) -> Vector3D"""
2564 return _IMP_em.ImageHeader_get_euler_angles1(self)
2567 def get_euler_angles2(self):
2568 """get_euler_angles2(ImageHeader self) -> Vector3D"""
2569 return _IMP_em.ImageHeader_get_euler_angles2(self)
2572 def set_euler_angles(self, euler):
2573 """set_euler_angles(ImageHeader self, Vector3D euler)"""
2574 return _IMP_em.ImageHeader_set_euler_angles(self, euler)
2577 def set_euler_angles1(self, euler):
2578 """set_euler_angles1(ImageHeader self, Vector3D euler)"""
2579 return _IMP_em.ImageHeader_set_euler_angles1(self, euler)
2582 def set_euler_angles2(self, euler):
2583 """set_euler_angles2(ImageHeader self, Vector3D euler)"""
2584 return _IMP_em.ImageHeader_set_euler_angles2(self, euler)
2587 def is_normalized(self):
2588 """is_normalized(ImageHeader self) -> bool"""
2589 return _IMP_em.ImageHeader_is_normalized(self)
2593 """set_date(ImageHeader self)"""
2594 return _IMP_em.ImageHeader_set_date(self)
2598 """set_time(ImageHeader self)"""
2599 return _IMP_em.ImageHeader_set_time(self)
2602 def set_title(self, newName):
2603 """set_title(ImageHeader self, IMP::String newName)"""
2604 return _IMP_em.ImageHeader_set_title(self, newName)
2606 __swig_destroy__ = _IMP_em.delete_ImageHeader
2607 __del__ =
lambda self:
None
2608 ImageHeader_swigregister = _IMP_em.ImageHeader_swigregister
2609 ImageHeader_swigregister(ImageHeader)
2611 class SpiderMapReaderWriter(MapReaderWriter):
2612 """Proxy of C++ IMP::em::SpiderMapReaderWriter class"""
2613 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2614 filename_ = _swig_property(_IMP_em.SpiderMapReaderWriter_filename__get, _IMP_em.SpiderMapReaderWriter_filename__set)
2615 skip_type_check_ = _swig_property(_IMP_em.SpiderMapReaderWriter_skip_type_check__get, _IMP_em.SpiderMapReaderWriter_skip_type_check__set)
2616 force_reversed_ = _swig_property(_IMP_em.SpiderMapReaderWriter_force_reversed__get, _IMP_em.SpiderMapReaderWriter_force_reversed__set)
2617 skip_extra_checkings_ = _swig_property(_IMP_em.SpiderMapReaderWriter_skip_extra_checkings__get, _IMP_em.SpiderMapReaderWriter_skip_extra_checkings__set)
2619 def __init__(self, *args):
2621 __init__(IMP::em::SpiderMapReaderWriter self) -> SpiderMapReaderWriter
2622 __init__(IMP::em::SpiderMapReaderWriter self, IMP::String filename, bool skip_type_check, bool force_reversed, bool skip_extra_checkings) -> SpiderMapReaderWriter
2624 this = _IMP_em.new_SpiderMapReaderWriter(*args)
2626 self.this.append(this)
2631 """__str__(SpiderMapReaderWriter self) -> std::string"""
2632 return _IMP_em.SpiderMapReaderWriter___str__(self)
2636 """__repr__(SpiderMapReaderWriter self) -> std::string"""
2637 return _IMP_em.SpiderMapReaderWriter___repr__(self)
2642 return _object_cast_to_SpiderMapReaderWriter(o)
2644 SpiderMapReaderWriter_swigregister = _IMP_em.SpiderMapReaderWriter_swigregister
2645 SpiderMapReaderWriter_swigregister(SpiderMapReaderWriter)
2647 class FittingSolutions(object):
2648 """Proxy of C++ IMP::em::FittingSolutions class"""
2649 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2652 """__init__(IMP::em::FittingSolutions self) -> FittingSolutions"""
2653 this = _IMP_em.new_FittingSolutions()
2655 self.this.append(this)
2659 def get_number_of_solutions(self):
2660 """get_number_of_solutions(FittingSolutions self) -> int"""
2661 return _IMP_em.FittingSolutions_get_number_of_solutions(self)
2664 def get_transformation(self, i):
2665 """get_transformation(FittingSolutions self, unsigned int i) -> Transformation3D"""
2666 return _IMP_em.FittingSolutions_get_transformation(self, i)
2669 def get_score(self, i):
2670 """get_score(FittingSolutions self, unsigned int i) -> IMP::Float"""
2671 return _IMP_em.FittingSolutions_get_score(self, i)
2674 def set_score(self, i, score):
2675 """set_score(FittingSolutions self, unsigned int i, IMP::Float score)"""
2676 return _IMP_em.FittingSolutions_set_score(self, i, score)
2679 def add_solution(self, t, score):
2680 """add_solution(FittingSolutions self, Transformation3D t, IMP::Float score)"""
2681 return _IMP_em.FittingSolutions_add_solution(self, t, score)
2684 def sort(self, reverse=False):
2686 sort(FittingSolutions self, bool reverse=False)
2687 sort(FittingSolutions self)
2689 return _IMP_em.FittingSolutions_sort(self, reverse)
2693 """multiply(FittingSolutions self, Transformation3D t)"""
2694 return _IMP_em.FittingSolutions_multiply(self, t)
2697 def get_transformations(self):
2698 """get_transformations(FittingSolutions self) -> IMP::algebra::Transformation3Ds"""
2699 return _IMP_em.FittingSolutions_get_transformations(self)
2702 def show(self, *args):
2704 show(FittingSolutions self, _ostream out)
2705 show(FittingSolutions self)
2707 return _IMP_em.FittingSolutions_show(self, *args)
2711 """__str__(FittingSolutions self) -> std::string"""
2712 return _IMP_em.FittingSolutions___str__(self)
2716 """__repr__(FittingSolutions self) -> std::string"""
2717 return _IMP_em.FittingSolutions___repr__(self)
2719 __swig_destroy__ = _IMP_em.delete_FittingSolutions
2720 __del__ =
lambda self:
None
2721 FittingSolutions_swigregister = _IMP_em.FittingSolutions_swigregister
2722 FittingSolutions_swigregister(FittingSolutions)
2725 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):
2727 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
2728 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
2729 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
2730 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
2731 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
2732 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
2733 local_rigid_fitting_around_point(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, Vector3D anchor_centroid, IMP::OptimizerStates display_log) -> FittingSolutions
2735 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)
2737 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):
2739 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
2740 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
2741 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
2742 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
2743 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
2744 local_rigid_fitting(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5) -> FittingSolutions
2745 local_rigid_fitting(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, IMP::OptimizerStates display_log) -> FittingSolutions
2747 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)
2749 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):
2751 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
2752 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
2753 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
2754 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
2755 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
2756 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
2758 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)
2760 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):
2762 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
2763 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
2764 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
2765 local_rigid_fitting_grid_search(IMP::ParticlesTemp const & ps, FloatKey wei_key, DensityMap dmap, IMP::Int max_voxels_translation=2) -> FittingSolutions
2766 local_rigid_fitting_grid_search(IMP::ParticlesTemp const & ps, FloatKey wei_key, DensityMap dmap) -> FittingSolutions
2768 return _IMP_em.local_rigid_fitting_grid_search(ps, wei_key, dmap, max_voxels_translation, translation_step, max_angle_in_radians, number_of_rotations)
2772 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
2773 compute_fitting_scores(IMP::ParticlesTemp const & ps, DensityMap em_map, IMP::algebra::Transformation3Ds const & transformations, bool fast_version=False, bool local_score=False) -> FittingSolutions
2774 compute_fitting_scores(IMP::ParticlesTemp const & ps, DensityMap em_map, IMP::algebra::Transformation3Ds const & transformations, bool fast_version=False) -> FittingSolutions
2775 compute_fitting_scores(IMP::ParticlesTemp const & ps, DensityMap em_map, IMP::algebra::Transformation3Ds const & transformations) -> FittingSolutions
2776 compute_fitting_scores(DensityMap em_map, RigidBody rb, Refiner refiner, IMP::algebra::Transformation3Ds const & transformations) -> FittingSolutions
2778 return _IMP_em.compute_fitting_scores(*args)
2782 compute_fitting_score(IMP::ParticlesTemp const & ps, DensityMap em_map, FloatKey wei_key) -> IMP::Float
2783 compute_fitting_score(IMP::ParticlesTemp const & ps, DensityMap em_map) -> IMP::Float
2785 return _IMP_em.compute_fitting_score(*args)
2789 get_number_of_particles_outside_of_the_density(DensityMap dmap, IMP::Particles const & ps, Transformation3D t, float thr=0.0) -> long
2790 get_number_of_particles_outside_of_the_density(DensityMap dmap, IMP::Particles const & ps, Transformation3D t) -> long
2791 get_number_of_particles_outside_of_the_density(DensityMap dmap, IMP::Particles const & ps) -> long
2793 return _IMP_em.get_number_of_particles_outside_of_the_density(*args)
2797 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
2798 get_numbers_of_particles_outside_of_the_density(DensityMap dmap, IMP::Particles const & ps, IMP::algebra::Transformation3Ds const & transformations) -> IMP::Ints
2800 return _IMP_em.get_numbers_of_particles_outside_of_the_density(dmap, ps, transformations, thr)
2804 get_percentage_of_voxels_covered_by_particles(DensityMap dmap, IMP::Particles const & ps, float smoothing_radius=3., Transformation3D t, float thr=0.0) -> double
2805 get_percentage_of_voxels_covered_by_particles(DensityMap dmap, IMP::Particles const & ps, float smoothing_radius=3., Transformation3D t) -> double
2806 get_percentage_of_voxels_covered_by_particles(DensityMap dmap, IMP::Particles const & ps, float smoothing_radius=3.) -> double
2807 get_percentage_of_voxels_covered_by_particles(DensityMap dmap, IMP::Particles const & ps) -> double
2809 return _IMP_em.get_percentage_of_voxels_covered_by_particles(*args)
2811 """Proxy of C++ IMP::em::HighDensityEmbedding class"""
2812 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2814 def __init__(self, dm, threshold):
2815 """__init__(IMP::em::HighDensityEmbedding self, DensityMap dm, double threshold) -> HighDensityEmbedding"""
2816 this = _IMP_em.new_HighDensityEmbedding(dm, threshold)
2818 self.this.append(this)
2822 def get_version_info(self):
2823 """get_version_info(HighDensityEmbedding self) -> VersionInfo"""
2824 return _IMP_em.HighDensityEmbedding_get_version_info(self)
2828 """__str__(HighDensityEmbedding self) -> std::string"""
2829 return _IMP_em.HighDensityEmbedding___str__(self)
2833 """__repr__(HighDensityEmbedding self) -> std::string"""
2834 return _IMP_em.HighDensityEmbedding___repr__(self)
2839 return _object_cast_to_HighDensityEmbedding(o)
2841 HighDensityEmbedding_swigregister = _IMP_em.HighDensityEmbedding_swigregister
2842 HighDensityEmbedding_swigregister(HighDensityEmbedding)
2846 """mask_and_norm(DensityMap dmap, DensityMap mask) -> DensityMap"""
2847 return _IMP_em.mask_and_norm(dmap, mask)
2850 """get_volume_at_threshold(DensityMap m, IMP::Float threshold) -> IMP::Float"""
2851 return _IMP_em.get_volume_at_threshold(m, threshold)
2855 get_molecular_mass_at_threshold(DensityMap m, IMP::Float threshold, IMP::atom::ProteinDensityReference ref) -> IMP::Float
2856 get_molecular_mass_at_threshold(DensityMap m, IMP::Float threshold) -> IMP::Float
2858 return _IMP_em.get_molecular_mass_at_threshold(*args)
2861 """get_threshold_for_approximate_volume(DensityMap m, IMP::Float desired_volume) -> IMP::Float"""
2862 return _IMP_em.get_threshold_for_approximate_volume(m, desired_volume)
2866 get_threshold_for_approximate_mass(DensityMap m, IMP::Float desired_mass, IMP::atom::ProteinDensityReference ref) -> IMP::Float
2867 get_threshold_for_approximate_mass(DensityMap m, IMP::Float desired_mass) -> IMP::Float
2869 return _IMP_em.get_threshold_for_approximate_mass(*args)
2871 """Proxy of C++ IMP::em::EnvelopePenetrationRestraint class"""
2872 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2874 def __init__(self, ps, em_map, threshold):
2875 """__init__(IMP::em::EnvelopePenetrationRestraint self, IMP::Particles ps, DensityMap em_map, IMP::Float threshold) -> EnvelopePenetrationRestraint"""
2876 this = _IMP_em.new_EnvelopePenetrationRestraint(ps, em_map, threshold)
2878 self.this.append(this)
2882 def do_get_inputs(self):
2883 """do_get_inputs(EnvelopePenetrationRestraint self) -> IMP::ModelObjectsTemp"""
2884 return _IMP_em.EnvelopePenetrationRestraint_do_get_inputs(self)
2887 def get_version_info(self):
2888 """get_version_info(EnvelopePenetrationRestraint self) -> VersionInfo"""
2889 return _IMP_em.EnvelopePenetrationRestraint_get_version_info(self)
2893 """__str__(EnvelopePenetrationRestraint self) -> std::string"""
2894 return _IMP_em.EnvelopePenetrationRestraint___str__(self)
2898 """__repr__(EnvelopePenetrationRestraint self) -> std::string"""
2899 return _IMP_em.EnvelopePenetrationRestraint___repr__(self)
2904 return _object_cast_to_EnvelopePenetrationRestraint(o)
2906 EnvelopePenetrationRestraint_swigregister = _IMP_em.EnvelopePenetrationRestraint_swigregister
2907 EnvelopePenetrationRestraint_swigregister(EnvelopePenetrationRestraint)
2910 """Proxy of C++ IMP::em::PCAFitRestraint class"""
2911 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2913 def __init__(self, *args):
2915 __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
2916 __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
2918 this = _IMP_em.new_PCAFitRestraint(*args)
2920 self.this.append(this)
2924 def do_get_inputs(self):
2925 """do_get_inputs(PCAFitRestraint self) -> IMP::ModelObjectsTemp"""
2926 return _IMP_em.PCAFitRestraint_do_get_inputs(self)
2929 def get_version_info(self):
2930 """get_version_info(PCAFitRestraint self) -> VersionInfo"""
2931 return _IMP_em.PCAFitRestraint_get_version_info(self)
2935 """__str__(PCAFitRestraint self) -> std::string"""
2936 return _IMP_em.PCAFitRestraint___str__(self)
2940 """__repr__(PCAFitRestraint self) -> std::string"""
2941 return _IMP_em.PCAFitRestraint___repr__(self)
2946 return _object_cast_to_PCAFitRestraint(o)
2948 PCAFitRestraint_swigregister = _IMP_em.PCAFitRestraint_swigregister
2949 PCAFitRestraint_swigregister(PCAFitRestraint)
2952 """Proxy of C++ IMP::em::EnvelopeFitRestraint 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, particles, em_map, density_threshold, penetration_threshold):
2956 """__init__(IMP::em::EnvelopeFitRestraint self, IMP::Particles particles, DensityMap em_map, double density_threshold, double penetration_threshold) -> EnvelopeFitRestraint"""
2957 this = _IMP_em.new_EnvelopeFitRestraint(particles, em_map, density_threshold, penetration_threshold)
2959 self.this.append(this)
2963 def get_transformation(self):
2964 """get_transformation(EnvelopeFitRestraint self) -> Transformation3D"""
2965 return _IMP_em.EnvelopeFitRestraint_get_transformation(self)
2968 def apply_transformation(self):
2969 """apply_transformation(EnvelopeFitRestraint self)"""
2970 return _IMP_em.EnvelopeFitRestraint_apply_transformation(self)
2973 def do_get_inputs(self):
2974 """do_get_inputs(EnvelopeFitRestraint self) -> IMP::ModelObjectsTemp"""
2975 return _IMP_em.EnvelopeFitRestraint_do_get_inputs(self)
2978 def get_version_info(self):
2979 """get_version_info(EnvelopeFitRestraint self) -> VersionInfo"""
2980 return _IMP_em.EnvelopeFitRestraint_get_version_info(self)
2984 """__str__(EnvelopeFitRestraint self) -> std::string"""
2985 return _IMP_em.EnvelopeFitRestraint___str__(self)
2989 """__repr__(EnvelopeFitRestraint self) -> std::string"""
2990 return _IMP_em.EnvelopeFitRestraint___repr__(self)
2995 return _object_cast_to_EnvelopeFitRestraint(o)
2997 EnvelopeFitRestraint_swigregister = _IMP_em.EnvelopeFitRestraint_swigregister
2998 EnvelopeFitRestraint_swigregister(EnvelopeFitRestraint)
3000 class MapDistanceTransform(DensityMap):
3001 """Proxy of C++ IMP::em::MapDistanceTransform class"""
3002 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3004 def __init__(self, map, density_threshold, max_distance):
3005 """__init__(IMP::em::MapDistanceTransform self, DensityMap map, float density_threshold, float max_distance) -> MapDistanceTransform"""
3006 this = _IMP_em.new_MapDistanceTransform(map, density_threshold, max_distance)
3008 self.this.append(this)
3012 def get_distance_from_envelope(self, v):
3013 """get_distance_from_envelope(MapDistanceTransform self, Vector3D v) -> float"""
3014 return _IMP_em.MapDistanceTransform_get_distance_from_envelope(self, v)
3018 """__str__(MapDistanceTransform self) -> std::string"""
3019 return _IMP_em.MapDistanceTransform___str__(self)
3023 """__repr__(MapDistanceTransform self) -> std::string"""
3024 return _IMP_em.MapDistanceTransform___repr__(self)
3029 return _object_cast_to_MapDistanceTransform(o)
3031 __swig_destroy__ = _IMP_em.delete_MapDistanceTransform
3032 __del__ =
lambda self:
None
3033 MapDistanceTransform_swigregister = _IMP_em.MapDistanceTransform_swigregister
3034 MapDistanceTransform_swigregister(MapDistanceTransform)
3037 """Proxy of C++ IMP::em::EnvelopeScore class"""
3038 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3040 def __init__(self, mdt):
3041 """__init__(IMP::em::EnvelopeScore self, MapDistanceTransform mdt) -> EnvelopeScore"""
3042 this = _IMP_em.new_EnvelopeScore(mdt)
3044 self.this.append(this)
3048 def is_penetrating(self, *args):
3050 is_penetrating(EnvelopeScore self, IMP::algebra::Vector3Ds const & points, float penetration_thr) -> bool
3051 is_penetrating(EnvelopeScore self, IMP::algebra::Vector3Ds const & points, Transformation3D trans, float penetration_thr) -> bool
3053 return _IMP_em.EnvelopeScore_is_penetrating(self, *args)
3056 def score(self, *args):
3058 score(EnvelopeScore self, IMP::algebra::Vector3Ds const & points) -> double
3059 score(EnvelopeScore self, IMP::algebra::Vector3Ds const & points, Transformation3D trans) -> double
3061 return _IMP_em.EnvelopeScore_score(self, *args)
3063 __swig_destroy__ = _IMP_em.delete_EnvelopeScore
3064 __del__ =
lambda self:
None
3067 """__str__(EnvelopeScore self) -> std::string"""
3068 return _IMP_em.EnvelopeScore___str__(self)
3072 """__repr__(EnvelopeScore self) -> std::string"""
3073 return _IMP_em.EnvelopeScore___repr__(self)
3078 return _object_cast_to_EnvelopeScore(o)
3080 EnvelopeScore_swigregister = _IMP_em.EnvelopeScore_swigregister
3081 EnvelopeScore_swigregister(EnvelopeScore)
3087 """Write out principal components to a file in Chimera Marker format"""
3088 eigen_values = pca.get_principal_values()
3089 eigen_vecs = pca.get_principal_components()
3090 centroid = pca.get_centroid()
3092 fh.write(
"<marker_set>\n")
3093 fh.write(
"<!-- PCA with eigen values: (%g,%g,%g) and "
3094 "centroid (%g,%g,%g) -->\n"
3095 % (math.sqrt(eigen_values[0]),
3096 math.sqrt(eigen_values[1]),
3097 math.sqrt(eigen_values[2]),
3098 centroid[0], centroid[1], centroid[2]))
3103 val = math.sqrt(eigen_values[i])
3104 v1 = centroid - val * eigen_vecs[i]
3105 v2 = centroid + val * eigen_vecs[i]
3106 for markerid, v
in ((i*2+1, v1), (i*2+2, v2)):
3107 fh.write(
"<marker id=\"%d\" x=\"%g\" y=\"%g\" z=\"%g\" "
3109 % (markerid, v[0], v[1], v[2], radius))
3111 for i
in range(1, 7, 2):
3112 fh.write(
"<link id1= \"%d\" id2=\"%d\" radius=\"%g\"/>\n"
3114 fh.write(
"</marker_set>\n")
3118 """get_module_version() -> std::string const"""
3119 return _IMP_em.get_module_version()
3122 """get_example_path(std::string fname) -> std::string"""
3123 return _IMP_em.get_example_path(fname)
3126 """get_data_path(std::string fname) -> std::string"""
3127 return _IMP_em.get_data_path(fname)
3129 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.