10 from __future__
import print_function, division, absolute_import
15 from sys
import version_info
16 if version_info >= (2, 6, 0):
17 def swig_import_helper():
18 from os.path
import dirname
22 fp, pathname, description = imp.find_module(
'_IMP_em', [dirname(__file__)])
28 _mod = imp.load_module(
'_IMP_em', fp, pathname, description)
32 _IMP_em = swig_import_helper()
33 del swig_import_helper
38 _swig_property = property
43 def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
44 if (name ==
"thisown"):
45 return self.this.own(value)
47 if type(value).__name__ ==
'SwigPyObject':
48 self.__dict__[name] = value
50 method = class_type.__swig_setmethods__.get(name,
None)
52 return method(self, value)
54 object.__setattr__(self, name, value)
56 raise AttributeError(
"You cannot add attributes to %s" % self)
59 def _swig_setattr(self, class_type, name, value):
60 return _swig_setattr_nondynamic(self, class_type, name, value, 0)
63 def _swig_getattr_nondynamic(self, class_type, name, static=1):
64 if (name ==
"thisown"):
65 return self.this.own()
66 method = class_type.__swig_getmethods__.get(name,
None)
70 return object.__getattr__(self, name)
72 raise AttributeError(name)
74 def _swig_getattr(self, class_type, name):
75 return _swig_getattr_nondynamic(self, class_type, name, 0)
80 strthis =
"proxy of " + self.this.__repr__()
83 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
88 except AttributeError:
95 def _swig_setattr_nondynamic_method(set):
96 def set_attr(self, name, value):
97 if (name ==
"thisown"):
98 return self.this.own(value)
99 if hasattr(self, name)
or (name ==
"this"):
100 set(self, name, value)
102 raise AttributeError(
"You cannot add attributes to %s" % self)
108 weakref_proxy = weakref.proxy
110 weakref_proxy =
lambda x: x
113 class IMP_EM_SwigPyIterator(object):
114 """Proxy of C++ swig::IMP_EM_SwigPyIterator class"""
115 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
117 def __init__(self, *args, **kwargs):
118 raise AttributeError(
"No constructor defined - class is abstract")
119 __repr__ = _swig_repr
120 __swig_destroy__ = _IMP_em.delete_IMP_EM_SwigPyIterator
121 __del__ =
lambda self:
None
124 """value(IMP_EM_SwigPyIterator self) -> PyObject *"""
125 return _IMP_em.IMP_EM_SwigPyIterator_value(self)
130 incr(IMP_EM_SwigPyIterator self, size_t n=1) -> IMP_EM_SwigPyIterator
131 incr(IMP_EM_SwigPyIterator self) -> IMP_EM_SwigPyIterator
133 return _IMP_em.IMP_EM_SwigPyIterator_incr(self, n)
138 decr(IMP_EM_SwigPyIterator self, size_t n=1) -> IMP_EM_SwigPyIterator
139 decr(IMP_EM_SwigPyIterator self) -> IMP_EM_SwigPyIterator
141 return _IMP_em.IMP_EM_SwigPyIterator_decr(self, n)
144 def distance(self, x):
145 """distance(IMP_EM_SwigPyIterator self, IMP_EM_SwigPyIterator x) -> ptrdiff_t"""
146 return _IMP_em.IMP_EM_SwigPyIterator_distance(self, x)
150 """equal(IMP_EM_SwigPyIterator self, IMP_EM_SwigPyIterator x) -> bool"""
151 return _IMP_em.IMP_EM_SwigPyIterator_equal(self, x)
155 """copy(IMP_EM_SwigPyIterator self) -> IMP_EM_SwigPyIterator"""
156 return _IMP_em.IMP_EM_SwigPyIterator_copy(self)
160 """next(IMP_EM_SwigPyIterator self) -> PyObject *"""
161 return _IMP_em.IMP_EM_SwigPyIterator_next(self)
165 """__next__(IMP_EM_SwigPyIterator self) -> PyObject *"""
166 return _IMP_em.IMP_EM_SwigPyIterator___next__(self)
170 """previous(IMP_EM_SwigPyIterator self) -> PyObject *"""
171 return _IMP_em.IMP_EM_SwigPyIterator_previous(self)
174 def advance(self, n):
175 """advance(IMP_EM_SwigPyIterator self, ptrdiff_t n) -> IMP_EM_SwigPyIterator"""
176 return _IMP_em.IMP_EM_SwigPyIterator_advance(self, n)
180 """__eq__(IMP_EM_SwigPyIterator self, IMP_EM_SwigPyIterator x) -> bool"""
181 return _IMP_em.IMP_EM_SwigPyIterator___eq__(self, x)
185 """__ne__(IMP_EM_SwigPyIterator self, IMP_EM_SwigPyIterator x) -> bool"""
186 return _IMP_em.IMP_EM_SwigPyIterator___ne__(self, x)
189 def __iadd__(self, n):
190 """__iadd__(IMP_EM_SwigPyIterator self, ptrdiff_t n) -> IMP_EM_SwigPyIterator"""
191 return _IMP_em.IMP_EM_SwigPyIterator___iadd__(self, n)
194 def __isub__(self, n):
195 """__isub__(IMP_EM_SwigPyIterator self, ptrdiff_t n) -> IMP_EM_SwigPyIterator"""
196 return _IMP_em.IMP_EM_SwigPyIterator___isub__(self, n)
199 def __add__(self, n):
200 """__add__(IMP_EM_SwigPyIterator self, ptrdiff_t n) -> IMP_EM_SwigPyIterator"""
201 return _IMP_em.IMP_EM_SwigPyIterator___add__(self, n)
204 def __sub__(self, *args):
206 __sub__(IMP_EM_SwigPyIterator self, ptrdiff_t n) -> IMP_EM_SwigPyIterator
207 __sub__(IMP_EM_SwigPyIterator self, IMP_EM_SwigPyIterator x) -> ptrdiff_t
209 return _IMP_em.IMP_EM_SwigPyIterator___sub__(self, *args)
213 IMP_EM_SwigPyIterator_swigregister = _IMP_em.IMP_EM_SwigPyIterator_swigregister
214 IMP_EM_SwigPyIterator_swigregister(IMP_EM_SwigPyIterator)
223 _IMP_em.IMP_DEBUG_swigconstant(_IMP_em)
224 IMP_DEBUG = _IMP_em.IMP_DEBUG
226 _IMP_em.IMP_RELEASE_swigconstant(_IMP_em)
227 IMP_RELEASE = _IMP_em.IMP_RELEASE
229 _IMP_em.IMP_SILENT_swigconstant(_IMP_em)
230 IMP_SILENT = _IMP_em.IMP_SILENT
232 _IMP_em.IMP_PROGRESS_swigconstant(_IMP_em)
233 IMP_PROGRESS = _IMP_em.IMP_PROGRESS
235 _IMP_em.IMP_TERSE_swigconstant(_IMP_em)
236 IMP_TERSE = _IMP_em.IMP_TERSE
238 _IMP_em.IMP_VERBOSE_swigconstant(_IMP_em)
239 IMP_VERBOSE = _IMP_em.IMP_VERBOSE
241 _IMP_em.IMP_MEMORY_swigconstant(_IMP_em)
242 IMP_MEMORY = _IMP_em.IMP_MEMORY
244 _IMP_em.IMP_NONE_swigconstant(_IMP_em)
245 IMP_NONE = _IMP_em.IMP_NONE
247 _IMP_em.IMP_USAGE_swigconstant(_IMP_em)
248 IMP_USAGE = _IMP_em.IMP_USAGE
250 _IMP_em.IMP_INTERNAL_swigconstant(_IMP_em)
251 IMP_INTERNAL = _IMP_em.IMP_INTERNAL
253 _IMP_em.IMP_KERNEL_HAS_LOG4CXX_swigconstant(_IMP_em)
254 IMP_KERNEL_HAS_LOG4CXX = _IMP_em.IMP_KERNEL_HAS_LOG4CXX
256 _IMP_em.IMP_COMPILER_HAS_AUTO_swigconstant(_IMP_em)
257 IMP_COMPILER_HAS_AUTO = _IMP_em.IMP_COMPILER_HAS_AUTO
259 _IMP_em.IMP_COMPILER_HAS_DEBUG_VECTOR_swigconstant(_IMP_em)
260 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_em.IMP_COMPILER_HAS_DEBUG_VECTOR
262 _IMP_em.IMP_COMPILER_HAS_UNIQUE_PTR_swigconstant(_IMP_em)
263 IMP_COMPILER_HAS_UNIQUE_PTR = _IMP_em.IMP_COMPILER_HAS_UNIQUE_PTR
265 _IMP_em.IMP_KERNEL_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
266 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_em.IMP_KERNEL_HAS_BOOST_RANDOM
268 _IMP_em.IMP_KERNEL_HAS_NUMPY_swigconstant(_IMP_em)
269 IMP_KERNEL_HAS_NUMPY = _IMP_em.IMP_KERNEL_HAS_NUMPY
271 _IMP_em.IMP_KERNEL_HAS_GPERFTOOLS_swigconstant(_IMP_em)
272 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_em.IMP_KERNEL_HAS_GPERFTOOLS
274 _IMP_em.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER_swigconstant(_IMP_em)
275 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_em.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
277 _IMP_em.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER_swigconstant(_IMP_em)
278 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_em.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
280 _IMP_em.IMPKERNEL_SHOW_WARNINGS_swigconstant(_IMP_em)
281 IMPKERNEL_SHOW_WARNINGS = _IMP_em.IMPKERNEL_SHOW_WARNINGS
284 class _DirectorObjects(object):
285 """@internal Simple class to keep references to director objects
286 to prevent premature deletion."""
289 def register(self, obj):
290 """Take a reference to a director object; will only work for
291 refcounted C++ classes"""
292 if hasattr(obj,
'get_ref_count'):
293 self._objects.append(obj)
295 """Only drop our reference and allow cleanup by Python if no other
296 Python references exist (we hold 3 references: one in self._objects,
297 one in x, and one in the argument list for getrefcount) *and* no
298 other C++ references exist (the Python object always holds one)"""
299 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
300 or x.get_ref_count() > 1]
304 def get_object_count(self):
305 """Get number of director objects (useful for testing only)"""
306 return len(self._objects)
307 _director_objects = _DirectorObjects()
309 class _ostream(object):
310 """Proxy of C++ std::ostream class"""
311 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
313 def __init__(self, *args, **kwargs):
314 raise AttributeError(
"No constructor defined")
315 __repr__ = _swig_repr
317 def write(self, osa_buf):
318 """write(_ostream self, char const * osa_buf)"""
319 return _IMP_em._ostream_write(self, osa_buf)
321 _ostream_swigregister = _IMP_em._ostream_swigregister
322 _ostream_swigregister(_ostream)
325 _IMP_em.IMP_COMPILER_HAS_OVERRIDE_swigconstant(_IMP_em)
326 IMP_COMPILER_HAS_OVERRIDE = _IMP_em.IMP_COMPILER_HAS_OVERRIDE
328 _IMP_em.IMP_COMPILER_HAS_FINAL_swigconstant(_IMP_em)
329 IMP_COMPILER_HAS_FINAL = _IMP_em.IMP_COMPILER_HAS_FINAL
331 _IMP_em.IMP_HAS_NOEXCEPT_swigconstant(_IMP_em)
332 IMP_HAS_NOEXCEPT = _IMP_em.IMP_HAS_NOEXCEPT
334 _IMP_em.IMP_C_OPEN_BINARY_swigconstant(_IMP_em)
335 IMP_C_OPEN_BINARY = _IMP_em.IMP_C_OPEN_BINARY
338 _IMP_em.IMP_CGAL_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
339 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_CGAL_HAS_BOOST_FILESYSTEM
341 _IMP_em.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
342 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
344 _IMP_em.IMP_CGAL_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
345 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_em.IMP_CGAL_HAS_BOOST_RANDOM
347 _IMP_em.IMP_CGAL_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
348 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_em.IMP_CGAL_HAS_BOOST_SYSTEM
350 _IMP_em.IMP_CGAL_HAS_NUMPY_swigconstant(_IMP_em)
351 IMP_CGAL_HAS_NUMPY = _IMP_em.IMP_CGAL_HAS_NUMPY
353 _IMP_em.IMPCGAL_SHOW_WARNINGS_swigconstant(_IMP_em)
354 IMPCGAL_SHOW_WARNINGS = _IMP_em.IMPCGAL_SHOW_WARNINGS
357 _IMP_em.IMP_ALGEBRA_HAS_IMP_CGAL_swigconstant(_IMP_em)
358 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_em.IMP_ALGEBRA_HAS_IMP_CGAL
360 _IMP_em.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
361 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
363 _IMP_em.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
364 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
366 _IMP_em.IMP_ALGEBRA_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
367 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_em.IMP_ALGEBRA_HAS_BOOST_RANDOM
369 _IMP_em.IMP_ALGEBRA_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
370 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_em.IMP_ALGEBRA_HAS_BOOST_SYSTEM
372 _IMP_em.IMP_ALGEBRA_HAS_CGAL_swigconstant(_IMP_em)
373 IMP_ALGEBRA_HAS_CGAL = _IMP_em.IMP_ALGEBRA_HAS_CGAL
375 _IMP_em.IMP_ALGEBRA_HAS_NUMPY_swigconstant(_IMP_em)
376 IMP_ALGEBRA_HAS_NUMPY = _IMP_em.IMP_ALGEBRA_HAS_NUMPY
378 _IMP_em.IMP_ALGEBRA_HAS_ANN_swigconstant(_IMP_em)
379 IMP_ALGEBRA_HAS_ANN = _IMP_em.IMP_ALGEBRA_HAS_ANN
381 _IMP_em.IMPALGEBRA_SHOW_WARNINGS_swigconstant(_IMP_em)
382 IMPALGEBRA_SHOW_WARNINGS = _IMP_em.IMPALGEBRA_SHOW_WARNINGS
385 _IMP_em.IMP_DISPLAY_HAS_IMP_CGAL_swigconstant(_IMP_em)
386 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_em.IMP_DISPLAY_HAS_IMP_CGAL
388 _IMP_em.IMP_DISPLAY_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
389 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
391 _IMP_em.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
392 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
394 _IMP_em.IMP_DISPLAY_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
395 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_em.IMP_DISPLAY_HAS_BOOST_RANDOM
397 _IMP_em.IMP_DISPLAY_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
398 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_em.IMP_DISPLAY_HAS_BOOST_SYSTEM
400 _IMP_em.IMP_DISPLAY_HAS_CGAL_swigconstant(_IMP_em)
401 IMP_DISPLAY_HAS_CGAL = _IMP_em.IMP_DISPLAY_HAS_CGAL
403 _IMP_em.IMP_DISPLAY_HAS_NUMPY_swigconstant(_IMP_em)
404 IMP_DISPLAY_HAS_NUMPY = _IMP_em.IMP_DISPLAY_HAS_NUMPY
406 _IMP_em.IMPDISPLAY_SHOW_WARNINGS_swigconstant(_IMP_em)
407 IMPDISPLAY_SHOW_WARNINGS = _IMP_em.IMPDISPLAY_SHOW_WARNINGS
410 _IMP_em.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL_swigconstant(_IMP_em)
411 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_em.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
413 _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
414 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
416 _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
417 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
419 _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
420 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
422 _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
423 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
425 _IMP_em.IMP_SCORE_FUNCTOR_HAS_CGAL_swigconstant(_IMP_em)
426 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_em.IMP_SCORE_FUNCTOR_HAS_CGAL
428 _IMP_em.IMP_SCORE_FUNCTOR_HAS_HDF5_swigconstant(_IMP_em)
429 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_em.IMP_SCORE_FUNCTOR_HAS_HDF5
431 _IMP_em.IMP_SCORE_FUNCTOR_HAS_NUMPY_swigconstant(_IMP_em)
432 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_em.IMP_SCORE_FUNCTOR_HAS_NUMPY
434 _IMP_em.IMPSCOREFUNCTOR_SHOW_WARNINGS_swigconstant(_IMP_em)
435 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_em.IMPSCOREFUNCTOR_SHOW_WARNINGS
438 _IMP_em.IMP_STATISTICS_HAS_IMP_CGAL_swigconstant(_IMP_em)
439 IMP_STATISTICS_HAS_IMP_CGAL = _IMP_em.IMP_STATISTICS_HAS_IMP_CGAL
441 _IMP_em.IMP_STATISTICS_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
442 IMP_STATISTICS_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_STATISTICS_HAS_BOOST_FILESYSTEM
444 _IMP_em.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
445 IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS
447 _IMP_em.IMP_STATISTICS_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
448 IMP_STATISTICS_HAS_BOOST_RANDOM = _IMP_em.IMP_STATISTICS_HAS_BOOST_RANDOM
450 _IMP_em.IMP_STATISTICS_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
451 IMP_STATISTICS_HAS_BOOST_SYSTEM = _IMP_em.IMP_STATISTICS_HAS_BOOST_SYSTEM
453 _IMP_em.IMP_STATISTICS_HAS_CGAL_swigconstant(_IMP_em)
454 IMP_STATISTICS_HAS_CGAL = _IMP_em.IMP_STATISTICS_HAS_CGAL
456 _IMP_em.IMP_STATISTICS_HAS_NUMPY_swigconstant(_IMP_em)
457 IMP_STATISTICS_HAS_NUMPY = _IMP_em.IMP_STATISTICS_HAS_NUMPY
459 _IMP_em.IMPSTATISTICS_SHOW_WARNINGS_swigconstant(_IMP_em)
460 IMPSTATISTICS_SHOW_WARNINGS = _IMP_em.IMPSTATISTICS_SHOW_WARNINGS
463 _IMP_em.IMP_CORE_HAS_IMP_CGAL_swigconstant(_IMP_em)
464 IMP_CORE_HAS_IMP_CGAL = _IMP_em.IMP_CORE_HAS_IMP_CGAL
466 _IMP_em.IMP_CORE_HAS_IMP_KERNEL_swigconstant(_IMP_em)
467 IMP_CORE_HAS_IMP_KERNEL = _IMP_em.IMP_CORE_HAS_IMP_KERNEL
469 _IMP_em.IMP_CORE_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
470 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_CORE_HAS_BOOST_FILESYSTEM
472 _IMP_em.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
473 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
475 _IMP_em.IMP_CORE_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
476 IMP_CORE_HAS_BOOST_RANDOM = _IMP_em.IMP_CORE_HAS_BOOST_RANDOM
478 _IMP_em.IMP_CORE_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
479 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_em.IMP_CORE_HAS_BOOST_SYSTEM
481 _IMP_em.IMP_CORE_HAS_CGAL_swigconstant(_IMP_em)
482 IMP_CORE_HAS_CGAL = _IMP_em.IMP_CORE_HAS_CGAL
484 _IMP_em.IMP_CORE_HAS_HDF5_swigconstant(_IMP_em)
485 IMP_CORE_HAS_HDF5 = _IMP_em.IMP_CORE_HAS_HDF5
487 _IMP_em.IMP_CORE_HAS_NUMPY_swigconstant(_IMP_em)
488 IMP_CORE_HAS_NUMPY = _IMP_em.IMP_CORE_HAS_NUMPY
490 _IMP_em.IMPCORE_SHOW_WARNINGS_swigconstant(_IMP_em)
491 IMPCORE_SHOW_WARNINGS = _IMP_em.IMPCORE_SHOW_WARNINGS
494 _IMP_em.IMP_CONTAINER_HAS_IMP_ALGEBRA_swigconstant(_IMP_em)
495 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_em.IMP_CONTAINER_HAS_IMP_ALGEBRA
497 _IMP_em.IMP_CONTAINER_HAS_IMP_CGAL_swigconstant(_IMP_em)
498 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_em.IMP_CONTAINER_HAS_IMP_CGAL
500 _IMP_em.IMP_CONTAINER_HAS_IMP_DISPLAY_swigconstant(_IMP_em)
501 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_em.IMP_CONTAINER_HAS_IMP_DISPLAY
503 _IMP_em.IMP_CONTAINER_HAS_IMP_KERNEL_swigconstant(_IMP_em)
504 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_em.IMP_CONTAINER_HAS_IMP_KERNEL
506 _IMP_em.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_em)
507 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_em.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
509 _IMP_em.IMP_CONTAINER_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
510 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
512 _IMP_em.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
513 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
515 _IMP_em.IMP_CONTAINER_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
516 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_em.IMP_CONTAINER_HAS_BOOST_RANDOM
518 _IMP_em.IMP_CONTAINER_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
519 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_em.IMP_CONTAINER_HAS_BOOST_SYSTEM
521 _IMP_em.IMP_CONTAINER_HAS_CGAL_swigconstant(_IMP_em)
522 IMP_CONTAINER_HAS_CGAL = _IMP_em.IMP_CONTAINER_HAS_CGAL
524 _IMP_em.IMP_CONTAINER_HAS_HDF5_swigconstant(_IMP_em)
525 IMP_CONTAINER_HAS_HDF5 = _IMP_em.IMP_CONTAINER_HAS_HDF5
527 _IMP_em.IMP_CONTAINER_HAS_NUMPY_swigconstant(_IMP_em)
528 IMP_CONTAINER_HAS_NUMPY = _IMP_em.IMP_CONTAINER_HAS_NUMPY
530 _IMP_em.IMP_CONTAINER_HAS_PYTHON_IHM_swigconstant(_IMP_em)
531 IMP_CONTAINER_HAS_PYTHON_IHM = _IMP_em.IMP_CONTAINER_HAS_PYTHON_IHM
533 _IMP_em.IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP_swigconstant(_IMP_em)
534 IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP = _IMP_em.IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP
536 _IMP_em.IMP_CONTAINER_HAS_ROBIN_MAP_swigconstant(_IMP_em)
537 IMP_CONTAINER_HAS_ROBIN_MAP = _IMP_em.IMP_CONTAINER_HAS_ROBIN_MAP
539 _IMP_em.IMPCONTAINER_SHOW_WARNINGS_swigconstant(_IMP_em)
540 IMPCONTAINER_SHOW_WARNINGS = _IMP_em.IMPCONTAINER_SHOW_WARNINGS
543 _IMP_em.IMP_ATOM_HAS_IMP_CGAL_swigconstant(_IMP_em)
544 IMP_ATOM_HAS_IMP_CGAL = _IMP_em.IMP_ATOM_HAS_IMP_CGAL
546 _IMP_em.IMP_ATOM_HAS_IMP_KERNEL_swigconstant(_IMP_em)
547 IMP_ATOM_HAS_IMP_KERNEL = _IMP_em.IMP_ATOM_HAS_IMP_KERNEL
549 _IMP_em.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_em)
550 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_em.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
552 _IMP_em.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
553 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
555 _IMP_em.IMP_ATOM_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
556 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_em.IMP_ATOM_HAS_BOOST_RANDOM
558 _IMP_em.IMP_ATOM_HAS_BOOST_REGEX_swigconstant(_IMP_em)
559 IMP_ATOM_HAS_BOOST_REGEX = _IMP_em.IMP_ATOM_HAS_BOOST_REGEX
561 _IMP_em.IMP_ATOM_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
562 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_em.IMP_ATOM_HAS_BOOST_SYSTEM
564 _IMP_em.IMP_ATOM_HAS_CGAL_swigconstant(_IMP_em)
565 IMP_ATOM_HAS_CGAL = _IMP_em.IMP_ATOM_HAS_CGAL
567 _IMP_em.IMP_ATOM_HAS_HDF5_swigconstant(_IMP_em)
568 IMP_ATOM_HAS_HDF5 = _IMP_em.IMP_ATOM_HAS_HDF5
570 _IMP_em.IMP_ATOM_HAS_NUMPY_swigconstant(_IMP_em)
571 IMP_ATOM_HAS_NUMPY = _IMP_em.IMP_ATOM_HAS_NUMPY
573 _IMP_em.IMP_ATOM_HAS_PYTHON_IHM_swigconstant(_IMP_em)
574 IMP_ATOM_HAS_PYTHON_IHM = _IMP_em.IMP_ATOM_HAS_PYTHON_IHM
576 _IMP_em.IMPATOM_SHOW_WARNINGS_swigconstant(_IMP_em)
577 IMPATOM_SHOW_WARNINGS = _IMP_em.IMPATOM_SHOW_WARNINGS
579 _IMP_em.IMP_ATOM_TYPE_INDEX_swigconstant(_IMP_em)
580 IMP_ATOM_TYPE_INDEX = _IMP_em.IMP_ATOM_TYPE_INDEX
582 _IMP_em.IMP_RESIDUE_TYPE_INDEX_swigconstant(_IMP_em)
583 IMP_RESIDUE_TYPE_INDEX = _IMP_em.IMP_RESIDUE_TYPE_INDEX
585 _IMP_em.IMP_HIERARCHY_TYPE_INDEX_swigconstant(_IMP_em)
586 IMP_HIERARCHY_TYPE_INDEX = _IMP_em.IMP_HIERARCHY_TYPE_INDEX
588 _IMP_em.IMP_CHAIN_TYPE_INDEX_swigconstant(_IMP_em)
589 IMP_CHAIN_TYPE_INDEX = _IMP_em.IMP_CHAIN_TYPE_INDEX
592 _IMP_em.IMP_EM_HAS_IMP_CGAL_swigconstant(_IMP_em)
593 IMP_EM_HAS_IMP_CGAL = _IMP_em.IMP_EM_HAS_IMP_CGAL
595 _IMP_em.IMP_EM_HAS_IMP_CONTAINER_swigconstant(_IMP_em)
596 IMP_EM_HAS_IMP_CONTAINER = _IMP_em.IMP_EM_HAS_IMP_CONTAINER
598 _IMP_em.IMP_EM_HAS_IMP_DISPLAY_swigconstant(_IMP_em)
599 IMP_EM_HAS_IMP_DISPLAY = _IMP_em.IMP_EM_HAS_IMP_DISPLAY
601 _IMP_em.IMP_EM_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_em)
602 IMP_EM_HAS_IMP_SCORE_FUNCTOR = _IMP_em.IMP_EM_HAS_IMP_SCORE_FUNCTOR
604 _IMP_em.IMP_EM_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
605 IMP_EM_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_EM_HAS_BOOST_FILESYSTEM
607 _IMP_em.IMP_EM_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
608 IMP_EM_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_EM_HAS_BOOST_PROGRAMOPTIONS
610 _IMP_em.IMP_EM_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
611 IMP_EM_HAS_BOOST_RANDOM = _IMP_em.IMP_EM_HAS_BOOST_RANDOM
613 _IMP_em.IMP_EM_HAS_BOOST_REGEX_swigconstant(_IMP_em)
614 IMP_EM_HAS_BOOST_REGEX = _IMP_em.IMP_EM_HAS_BOOST_REGEX
616 _IMP_em.IMP_EM_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
617 IMP_EM_HAS_BOOST_SYSTEM = _IMP_em.IMP_EM_HAS_BOOST_SYSTEM
619 _IMP_em.IMP_EM_HAS_CGAL_swigconstant(_IMP_em)
620 IMP_EM_HAS_CGAL = _IMP_em.IMP_EM_HAS_CGAL
622 _IMP_em.IMP_EM_HAS_HDF5_swigconstant(_IMP_em)
623 IMP_EM_HAS_HDF5 = _IMP_em.IMP_EM_HAS_HDF5
625 _IMP_em.IMP_EM_HAS_NUMPY_swigconstant(_IMP_em)
626 IMP_EM_HAS_NUMPY = _IMP_em.IMP_EM_HAS_NUMPY
628 _IMP_em.IMP_EM_HAS_PYTHON_IHM_swigconstant(_IMP_em)
629 IMP_EM_HAS_PYTHON_IHM = _IMP_em.IMP_EM_HAS_PYTHON_IHM
631 _IMP_em.IMPEM_SHOW_WARNINGS_swigconstant(_IMP_em)
632 IMPEM_SHOW_WARNINGS = _IMP_em.IMPEM_SHOW_WARNINGS
634 _object_types.append(
"DensityMap")
637 def _object_cast_to_DensityMap(o):
638 """_object_cast_to_DensityMap(Object o) -> DensityMap"""
639 return _IMP_em._object_cast_to_DensityMap(o)
641 _object_types.append(
"SampledDensityMap")
644 def _object_cast_to_SampledDensityMap(o):
645 """_object_cast_to_SampledDensityMap(Object o) -> SampledDensityMap"""
646 return _IMP_em._object_cast_to_SampledDensityMap(o)
648 _object_types.append(
"SurfaceShellDensityMap")
651 def _object_cast_to_SurfaceShellDensityMap(o):
652 """_object_cast_to_SurfaceShellDensityMap(Object o) -> SurfaceShellDensityMap"""
653 return _IMP_em._object_cast_to_SurfaceShellDensityMap(o)
655 _object_types.append(
"FitRestraint")
658 def _object_cast_to_FitRestraint(o):
659 """_object_cast_to_FitRestraint(Object o) -> FitRestraint"""
660 return _IMP_em._object_cast_to_FitRestraint(o)
662 _object_types.append(
"FitRestraintBayesEM3D")
665 def _object_cast_to_FitRestraintBayesEM3D(o):
666 """_object_cast_to_FitRestraintBayesEM3D(Object o) -> FitRestraintBayesEM3D"""
667 return _IMP_em._object_cast_to_FitRestraintBayesEM3D(o)
669 _object_types.append(
"PCAFitRestraint")
672 def _object_cast_to_PCAFitRestraint(o):
673 """_object_cast_to_PCAFitRestraint(Object o) -> PCAFitRestraint"""
674 return _IMP_em._object_cast_to_PCAFitRestraint(o)
676 _object_types.append(
"EnvelopePenetrationRestraint")
679 def _object_cast_to_EnvelopePenetrationRestraint(o):
680 """_object_cast_to_EnvelopePenetrationRestraint(Object o) -> EnvelopePenetrationRestraint"""
681 return _IMP_em._object_cast_to_EnvelopePenetrationRestraint(o)
683 _object_types.append(
"EnvelopeFitRestraint")
686 def _object_cast_to_EnvelopeFitRestraint(o):
687 """_object_cast_to_EnvelopeFitRestraint(Object o) -> EnvelopeFitRestraint"""
688 return _IMP_em._object_cast_to_EnvelopeFitRestraint(o)
690 KernelParametersList=list
691 _plural_types.append(
"KernelParametersList")
692 _value_types.append(
"KernelParameters")
695 _object_types.append(
"HighDensityEmbedding")
698 def _object_cast_to_HighDensityEmbedding(o):
699 """_object_cast_to_HighDensityEmbedding(Object o) -> HighDensityEmbedding"""
700 return _IMP_em._object_cast_to_HighDensityEmbedding(o)
702 _object_types.append(
"MapReaderWriter")
705 def _object_cast_to_MapReaderWriter(o):
706 """_object_cast_to_MapReaderWriter(Object o) -> MapReaderWriter"""
707 return _IMP_em._object_cast_to_MapReaderWriter(o)
709 _object_types.append(
"MRCReaderWriter")
712 def _object_cast_to_MRCReaderWriter(o):
713 """_object_cast_to_MRCReaderWriter(Object o) -> MRCReaderWriter"""
714 return _IMP_em._object_cast_to_MRCReaderWriter(o)
716 _object_types.append(
"SpiderMapReaderWriter")
719 def _object_cast_to_SpiderMapReaderWriter(o):
720 """_object_cast_to_SpiderMapReaderWriter(Object o) -> SpiderMapReaderWriter"""
721 return _IMP_em._object_cast_to_SpiderMapReaderWriter(o)
723 _object_types.append(
"EMReaderWriter")
726 def _object_cast_to_EMReaderWriter(o):
727 """_object_cast_to_EMReaderWriter(Object o) -> EMReaderWriter"""
728 return _IMP_em._object_cast_to_EMReaderWriter(o)
730 _object_types.append(
"XplorReaderWriter")
733 def _object_cast_to_XplorReaderWriter(o):
734 """_object_cast_to_XplorReaderWriter(Object o) -> XplorReaderWriter"""
735 return _IMP_em._object_cast_to_XplorReaderWriter(o)
737 _object_types.append(
"CoarseCC")
740 def _object_cast_to_CoarseCC(o):
741 """_object_cast_to_CoarseCC(Object o) -> CoarseCC"""
742 return _IMP_em._object_cast_to_CoarseCC(o)
744 _object_types.append(
"CoarseCCatIntervals")
747 def _object_cast_to_CoarseCCatIntervals(o):
748 """_object_cast_to_CoarseCCatIntervals(Object o) -> CoarseCCatIntervals"""
749 return _IMP_em._object_cast_to_CoarseCCatIntervals(o)
751 FittingSolutionsList=list
752 _plural_types.append(
"FittingSolutionsList")
753 _value_types.append(
"FittingSolutions")
756 _object_types.append(
"MapDistanceTransform")
759 def _object_cast_to_MapDistanceTransform(o):
760 """_object_cast_to_MapDistanceTransform(Object o) -> MapDistanceTransform"""
761 return _IMP_em._object_cast_to_MapDistanceTransform(o)
763 _object_types.append(
"EnvelopeScore")
766 def _object_cast_to_EnvelopeScore(o):
767 """_object_cast_to_EnvelopeScore(Object o) -> EnvelopeScore"""
768 return _IMP_em._object_cast_to_EnvelopeScore(o)
770 def _get_density_map_x_loc(m, pyobj):
771 """_get_density_map_x_loc(DensityMap m, PyObject * pyobj) -> PyObject *"""
772 return _IMP_em._get_density_map_x_loc(m, pyobj)
774 def _get_density_map_y_loc(m, pyobj):
775 """_get_density_map_y_loc(DensityMap m, PyObject * pyobj) -> PyObject *"""
776 return _IMP_em._get_density_map_y_loc(m, pyobj)
778 def _get_density_map_z_loc(m, pyobj):
779 """_get_density_map_z_loc(DensityMap m, PyObject * pyobj) -> PyObject *"""
780 return _IMP_em._get_density_map_z_loc(m, pyobj)
782 def _get_density_map_data(m, pyobj):
783 """_get_density_map_data(DensityMap m, PyObject * pyobj) -> PyObject *"""
784 return _IMP_em._get_density_map_data(m, pyobj)
786 """Proxy of C++ IMP::em::MapReaderWriter class"""
787 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
790 """__init__(IMP::em::MapReaderWriter self) -> MapReaderWriter"""
791 this = _IMP_em.new_MapReaderWriter()
793 self.this.append(this)
797 def get_version_info(self):
798 """get_version_info(MapReaderWriter self) -> VersionInfo"""
799 return _IMP_em.MapReaderWriter_get_version_info(self)
803 """__str__(MapReaderWriter self) -> std::string"""
804 return _IMP_em.MapReaderWriter___str__(self)
808 """__repr__(MapReaderWriter self) -> std::string"""
809 return _IMP_em.MapReaderWriter___repr__(self)
814 return _object_cast_to_MapReaderWriter(o)
816 MapReaderWriter_swigregister = _IMP_em.MapReaderWriter_swigregister
817 MapReaderWriter_swigregister(MapReaderWriter)
821 class DensityHeader(object):
822 """Proxy of C++ IMP::em::DensityHeader class"""
823 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
824 __repr__ = _swig_repr
827 """__init__(IMP::em::DensityHeader self) -> DensityHeader"""
828 this = _IMP_em.new_DensityHeader()
830 self.this.append(this)
834 def get_top(self, ind):
835 """get_top(DensityHeader self, int ind) -> IMP::em::emreal"""
836 return _IMP_em.DensityHeader_get_top(self, ind)
839 def compute_xyz_top(self, force=False):
841 compute_xyz_top(DensityHeader self, bool force=False)
842 compute_xyz_top(DensityHeader self)
844 return _IMP_em.DensityHeader_compute_xyz_top(self, force)
847 def update_map_dimensions(self, nnx, nny, nnz):
848 """update_map_dimensions(DensityHeader self, int nnx, int nny, int nnz)"""
849 return _IMP_em.DensityHeader_update_map_dimensions(self, nnx, nny, nnz)
852 def update_cell_dimensions(self):
853 """update_cell_dimensions(DensityHeader self)"""
854 return _IMP_em.DensityHeader_update_cell_dimensions(self)
857 def show(self, *args):
859 show(DensityHeader self, _ostream out)
860 show(DensityHeader self)
862 return _IMP_em.DensityHeader_show(self, *args)
864 MAP_FIELD_SIZE = _IMP_em.DensityHeader_MAP_FIELD_SIZE
865 USER_FIELD_SIZE = _IMP_em.DensityHeader_USER_FIELD_SIZE
866 COMMENT_FIELD_NUM_OF = _IMP_em.DensityHeader_COMMENT_FIELD_NUM_OF
867 COMMENT_FIELD_SINGLE_SIZE = _IMP_em.DensityHeader_COMMENT_FIELD_SINGLE_SIZE
868 nxstart = _swig_property(_IMP_em.DensityHeader_nxstart_get, _IMP_em.DensityHeader_nxstart_set)
869 nystart = _swig_property(_IMP_em.DensityHeader_nystart_get, _IMP_em.DensityHeader_nystart_set)
870 nzstart = _swig_property(_IMP_em.DensityHeader_nzstart_get, _IMP_em.DensityHeader_nzstart_set)
871 mx = _swig_property(_IMP_em.DensityHeader_mx_get, _IMP_em.DensityHeader_mx_set)
872 my = _swig_property(_IMP_em.DensityHeader_my_get, _IMP_em.DensityHeader_my_set)
873 mz = _swig_property(_IMP_em.DensityHeader_mz_get, _IMP_em.DensityHeader_mz_set)
874 xlen = _swig_property(_IMP_em.DensityHeader_xlen_get, _IMP_em.DensityHeader_xlen_set)
875 ylen = _swig_property(_IMP_em.DensityHeader_ylen_get, _IMP_em.DensityHeader_ylen_set)
876 zlen = _swig_property(_IMP_em.DensityHeader_zlen_get, _IMP_em.DensityHeader_zlen_set)
877 alpha = _swig_property(_IMP_em.DensityHeader_alpha_get, _IMP_em.DensityHeader_alpha_set)
878 beta = _swig_property(_IMP_em.DensityHeader_beta_get, _IMP_em.DensityHeader_beta_set)
879 gamma = _swig_property(_IMP_em.DensityHeader_gamma_get, _IMP_em.DensityHeader_gamma_set)
880 mapc = _swig_property(_IMP_em.DensityHeader_mapc_get, _IMP_em.DensityHeader_mapc_set)
881 mapr = _swig_property(_IMP_em.DensityHeader_mapr_get, _IMP_em.DensityHeader_mapr_set)
882 maps = _swig_property(_IMP_em.DensityHeader_maps_get, _IMP_em.DensityHeader_maps_set)
883 dmin = _swig_property(_IMP_em.DensityHeader_dmin_get, _IMP_em.DensityHeader_dmin_set)
884 dmax = _swig_property(_IMP_em.DensityHeader_dmax_get, _IMP_em.DensityHeader_dmax_set)
885 dmean = _swig_property(_IMP_em.DensityHeader_dmean_get, _IMP_em.DensityHeader_dmean_set)
886 ispg = _swig_property(_IMP_em.DensityHeader_ispg_get, _IMP_em.DensityHeader_ispg_set)
887 nsymbt = _swig_property(_IMP_em.DensityHeader_nsymbt_get, _IMP_em.DensityHeader_nsymbt_set)
888 user = _swig_property(_IMP_em.DensityHeader_user_get, _IMP_em.DensityHeader_user_set)
889 map = _swig_property(_IMP_em.DensityHeader_map_get, _IMP_em.DensityHeader_map_set)
890 machinestamp = _swig_property(_IMP_em.DensityHeader_machinestamp_get, _IMP_em.DensityHeader_machinestamp_set)
891 rms = _swig_property(_IMP_em.DensityHeader_rms_get, _IMP_em.DensityHeader_rms_set)
892 nlabl = _swig_property(_IMP_em.DensityHeader_nlabl_get, _IMP_em.DensityHeader_nlabl_set)
893 comments = _swig_property(_IMP_em.DensityHeader_comments_get, _IMP_em.DensityHeader_comments_set)
894 magic = _swig_property(_IMP_em.DensityHeader_magic_get, _IMP_em.DensityHeader_magic_set)
895 voltage = _swig_property(_IMP_em.DensityHeader_voltage_get, _IMP_em.DensityHeader_voltage_set)
896 Cs = _swig_property(_IMP_em.DensityHeader_Cs_get, _IMP_em.DensityHeader_Cs_set)
897 Aperture = _swig_property(_IMP_em.DensityHeader_Aperture_get, _IMP_em.DensityHeader_Aperture_set)
898 Magnification = _swig_property(_IMP_em.DensityHeader_Magnification_get, _IMP_em.DensityHeader_Magnification_set)
899 Postmagnification = _swig_property(_IMP_em.DensityHeader_Postmagnification_get, _IMP_em.DensityHeader_Postmagnification_set)
900 Exposuretime = _swig_property(_IMP_em.DensityHeader_Exposuretime_get, _IMP_em.DensityHeader_Exposuretime_set)
901 Microscope = _swig_property(_IMP_em.DensityHeader_Microscope_get, _IMP_em.DensityHeader_Microscope_set)
902 Pixelsize = _swig_property(_IMP_em.DensityHeader_Pixelsize_get, _IMP_em.DensityHeader_Pixelsize_set)
903 CCDArea = _swig_property(_IMP_em.DensityHeader_CCDArea_get, _IMP_em.DensityHeader_CCDArea_set)
904 Defocus = _swig_property(_IMP_em.DensityHeader_Defocus_get, _IMP_em.DensityHeader_Defocus_set)
905 Astigmatism = _swig_property(_IMP_em.DensityHeader_Astigmatism_get, _IMP_em.DensityHeader_Astigmatism_set)
906 AstigmatismAngle = _swig_property(_IMP_em.DensityHeader_AstigmatismAngle_get, _IMP_em.DensityHeader_AstigmatismAngle_set)
907 FocusIncrement = _swig_property(_IMP_em.DensityHeader_FocusIncrement_get, _IMP_em.DensityHeader_FocusIncrement_set)
908 CountsPerElectron = _swig_property(_IMP_em.DensityHeader_CountsPerElectron_get, _IMP_em.DensityHeader_CountsPerElectron_set)
909 Intensity = _swig_property(_IMP_em.DensityHeader_Intensity_get, _IMP_em.DensityHeader_Intensity_set)
910 EnergySlitwidth = _swig_property(_IMP_em.DensityHeader_EnergySlitwidth_get, _IMP_em.DensityHeader_EnergySlitwidth_set)
911 EnergyOffset = _swig_property(_IMP_em.DensityHeader_EnergyOffset_get, _IMP_em.DensityHeader_EnergyOffset_set)
912 Tiltangle = _swig_property(_IMP_em.DensityHeader_Tiltangle_get, _IMP_em.DensityHeader_Tiltangle_set)
913 Tiltaxis = _swig_property(_IMP_em.DensityHeader_Tiltaxis_get, _IMP_em.DensityHeader_Tiltaxis_set)
914 MarkerX = _swig_property(_IMP_em.DensityHeader_MarkerX_get, _IMP_em.DensityHeader_MarkerX_set)
915 MarkerY = _swig_property(_IMP_em.DensityHeader_MarkerY_get, _IMP_em.DensityHeader_MarkerY_set)
916 lswap = _swig_property(_IMP_em.DensityHeader_lswap_get, _IMP_em.DensityHeader_lswap_set)
919 """get_resolution(DensityHeader self) -> float"""
920 return _IMP_em.DensityHeader_get_resolution(self)
923 def get_has_resolution(self):
924 """get_has_resolution(DensityHeader self) -> bool"""
925 return _IMP_em.DensityHeader_get_has_resolution(self)
928 def set_resolution(self, resolution):
929 """set_resolution(DensityHeader self, float resolution)"""
930 return _IMP_em.DensityHeader_set_resolution(self, resolution)
933 def get_spacing(self):
934 """get_spacing(DensityHeader self) -> float"""
935 return _IMP_em.DensityHeader_get_spacing(self)
938 def get_xorigin(self):
939 """get_xorigin(DensityHeader self) -> float"""
940 return _IMP_em.DensityHeader_get_xorigin(self)
943 def get_yorigin(self):
944 """get_yorigin(DensityHeader self) -> float"""
945 return _IMP_em.DensityHeader_get_yorigin(self)
948 def get_zorigin(self):
949 """get_zorigin(DensityHeader self) -> float"""
950 return _IMP_em.DensityHeader_get_zorigin(self)
953 def get_origin(self, i):
954 """get_origin(DensityHeader self, int i) -> float"""
955 return _IMP_em.DensityHeader_get_origin(self, i)
958 def set_xorigin(self, x):
959 """set_xorigin(DensityHeader self, float x)"""
960 return _IMP_em.DensityHeader_set_xorigin(self, x)
963 def set_yorigin(self, y):
964 """set_yorigin(DensityHeader self, float y)"""
965 return _IMP_em.DensityHeader_set_yorigin(self, y)
968 def set_zorigin(self, z):
969 """set_zorigin(DensityHeader self, float z)"""
970 return _IMP_em.DensityHeader_set_zorigin(self, z)
973 def is_top_calculated(self):
974 """is_top_calculated(DensityHeader self) -> bool"""
975 return _IMP_em.DensityHeader_is_top_calculated(self)
977 Objectpixelsize_ = _swig_property(_IMP_em.DensityHeader_Objectpixelsize__get, _IMP_em.DensityHeader_Objectpixelsize__set)
980 """get_nx(DensityHeader self) -> int"""
981 return _IMP_em.DensityHeader_get_nx(self)
985 """get_ny(DensityHeader self) -> int"""
986 return _IMP_em.DensityHeader_get_ny(self)
990 """get_nz(DensityHeader self) -> int"""
991 return _IMP_em.DensityHeader_get_nz(self)
994 def get_number_of_voxels(self):
995 """get_number_of_voxels(DensityHeader self) -> int"""
996 return _IMP_em.DensityHeader_get_number_of_voxels(self)
999 def get_data_type(self):
1000 """get_data_type(DensityHeader self) -> int"""
1001 return _IMP_em.DensityHeader_get_data_type(self)
1004 def set_data_type(self, data_type):
1005 """set_data_type(DensityHeader self, int data_type)"""
1006 return _IMP_em.DensityHeader_set_data_type(self, data_type)
1008 __swig_destroy__ = _IMP_em.delete_DensityHeader
1009 __del__ =
lambda self:
None
1010 DensityHeader_swigregister = _IMP_em.DensityHeader_swigregister
1011 DensityHeader_swigregister(DensityHeader)
1015 """create_density_header(BoundingBox3D bb, float spacing) -> DensityHeader"""
1016 return _IMP_em.create_density_header(bb, spacing)
1018 def read_map(*args):
1020 read_map(std::string filename, MapReaderWriter reader) -> DensityMap
1021 read_map(std::string filename) -> DensityMap
1023 return _IMP_em.read_map(*args)
1025 def write_map(*args):
1027 write_map(DensityMap m, std::string filename, MapReaderWriter writer)
1028 write_map(DensityMap m, std::string filename)
1030 return _IMP_em.write_map(*args)
1033 """approximate_molecular_mass(DensityMap m, IMP::Float threshold) -> IMP::Float"""
1034 return _IMP_em.approximate_molecular_mass(m, threshold)
1036 """Proxy of C++ IMP::em::DensityMap class"""
1037 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1039 def __init__(self, *args):
1041 __init__(IMP::em::DensityMap self, std::string name) -> DensityMap
1042 __init__(IMP::em::DensityMap self) -> DensityMap
1043 __init__(IMP::em::DensityMap self, DensityHeader header, std::string name) -> DensityMap
1044 __init__(IMP::em::DensityMap self, DensityHeader header) -> DensityMap
1046 this = _IMP_em.new_DensityMap(*args)
1048 self.this.append(this)
1052 def reset_data(self, value=0.0):
1054 reset_data(DensityMap self, float value=0.0)
1055 reset_data(DensityMap self)
1057 return _IMP_em.DensityMap_reset_data(self, value)
1061 """calcRMS(DensityMap self) -> IMP::em::emreal"""
1062 return _IMP_em.DensityMap_calcRMS(self)
1065 def std_normalize(self):
1066 """std_normalize(DensityMap self)"""
1067 return _IMP_em.DensityMap_std_normalize(self)
1070 def is_normalized(self):
1071 """is_normalized(DensityMap self) -> bool"""
1072 return _IMP_em.DensityMap_is_normalized(self)
1075 def get_location_in_dim_by_voxel(self, index, dim):
1076 """get_location_in_dim_by_voxel(DensityMap self, long index, int dim) -> float"""
1077 return _IMP_em.DensityMap_get_location_in_dim_by_voxel(self, index, dim)
1080 def xyz_ind2voxel(self, x, y, z):
1081 """xyz_ind2voxel(DensityMap self, int x, int y, int z) -> long"""
1082 return _IMP_em.DensityMap_xyz_ind2voxel(self, x, y, z)
1085 def get_voxel_by_location(self, *args):
1087 get_voxel_by_location(DensityMap self, float x, float y, float z) -> long
1088 get_voxel_by_location(DensityMap self, Vector3D v) -> long
1090 return _IMP_em.DensityMap_get_voxel_by_location(self, *args)
1093 def get_location_by_voxel(self, index):
1094 """get_location_by_voxel(DensityMap self, long index) -> Vector3D"""
1095 return _IMP_em.DensityMap_get_location_by_voxel(self, index)
1098 def is_xyz_ind_part_of_volume(self, ix, iy, iz):
1099 """is_xyz_ind_part_of_volume(DensityMap self, int ix, int iy, int iz) -> bool"""
1100 return _IMP_em.DensityMap_is_xyz_ind_part_of_volume(self, ix, iy, iz)
1103 def is_part_of_volume(self, *args):
1105 is_part_of_volume(DensityMap self, float x, float y, float z) -> bool
1106 is_part_of_volume(DensityMap self, Vector3D v) -> bool
1108 return _IMP_em.DensityMap_is_part_of_volume(self, *args)
1111 def get_value(self, *args):
1113 get_value(DensityMap self, float x, float y, float z) -> IMP::em::emreal
1114 get_value(DensityMap self, Vector3D point) -> IMP::em::emreal
1115 get_value(DensityMap self, long index) -> IMP::em::emreal
1117 return _IMP_em.DensityMap_get_value(self, *args)
1120 def set_value(self, *args):
1122 set_value(DensityMap self, long index, IMP::em::emreal value)
1123 set_value(DensityMap self, float x, float y, float z, IMP::em::emreal value)
1125 return _IMP_em.DensityMap_set_value(self, *args)
1128 def set_origin(self, *args):
1130 set_origin(DensityMap self, float x, float y, float z)
1131 set_origin(DensityMap self, Vector3D v)
1133 return _IMP_em.DensityMap_set_origin(self, *args)
1136 def get_origin(self):
1137 """get_origin(DensityMap self) -> Vector3D"""
1138 return _IMP_em.DensityMap_get_origin(self)
1142 """get_top(DensityMap self) -> Vector3D"""
1143 return _IMP_em.DensityMap_get_top(self)
1146 def get_header(self):
1147 h = _IMP_em.DensityMap_get_header(self)
1153 def get_header_writable(self):
1154 h = _IMP_em.DensityMap_get_header_writable(self)
1160 def same_origin(self, other):
1161 """same_origin(DensityMap self, DensityMap other) -> bool"""
1162 return _IMP_em.DensityMap_same_origin(self, other)
1165 def same_dimensions(self, other):
1166 """same_dimensions(DensityMap self, DensityMap other) -> bool"""
1167 return _IMP_em.DensityMap_same_dimensions(self, other)
1170 def same_voxel_size(self, other):
1171 """same_voxel_size(DensityMap self, DensityMap other) -> bool"""
1172 return _IMP_em.DensityMap_same_voxel_size(self, other)
1177 get_centroid(DensityMap self, IMP::em::emreal threshold=0.0) -> Vector3D
1178 get_centroid(DensityMap self) -> Vector3D
1180 return _IMP_em.DensityMap_get_centroid(self, threshold)
1183 def get_max_value(self):
1184 """get_max_value(DensityMap self) -> IMP::em::emreal"""
1185 return _IMP_em.DensityMap_get_max_value(self)
1188 def get_min_value(self):
1189 """get_min_value(DensityMap self) -> IMP::em::emreal"""
1190 return _IMP_em.DensityMap_get_min_value(self)
1193 def add(self, *args):
1195 add(DensityMap self, DensityMap other)
1196 add(DensityMap self, IMP::Float d)
1198 return _IMP_em.DensityMap_add(self, *args)
1201 def pick_max(self, other):
1202 """pick_max(DensityMap self, DensityMap other)"""
1203 return _IMP_em.DensityMap_pick_max(self, other)
1206 def get_number_of_voxels(self):
1207 """get_number_of_voxels(DensityMap self) -> long"""
1208 return _IMP_em.DensityMap_get_number_of_voxels(self)
1211 def set_void_map(self, nx, ny, nz):
1212 """set_void_map(DensityMap self, int nx, int ny, int nz)"""
1213 return _IMP_em.DensityMap_set_void_map(self, nx, ny, nz)
1216 def pad(self, nx, ny, nz, val=0.0):
1218 pad(DensityMap self, int nx, int ny, int nz, float val=0.0)
1219 pad(DensityMap self, int nx, int ny, int nz)
1221 return _IMP_em.DensityMap_pad(self, nx, ny, nz, val)
1224 def pad_margin(self, mrg_x, mrg_y, mrg_z, val=0.0):
1226 pad_margin(DensityMap self, int mrg_x, int mrg_y, int mrg_z, float val=0.0) -> DensityMap
1227 pad_margin(DensityMap self, int mrg_x, int mrg_y, int mrg_z) -> DensityMap
1229 return _IMP_em.DensityMap_pad_margin(self, mrg_x, mrg_y, mrg_z, val)
1232 def get_cropped(self, *args):
1234 get_cropped(DensityMap self, float threshold) -> DensityMap
1235 get_cropped(DensityMap self, IMP::Particles ps, double distance, bool inverse=False, bool keep_map_dimensions=False) -> DensityMap
1236 get_cropped(DensityMap self, IMP::Particles ps, double distance, bool inverse=False) -> DensityMap
1237 get_cropped(DensityMap self, IMP::Particles ps, double distance) -> DensityMap
1238 get_cropped(DensityMap self, BoundingBox3D bb) -> DensityMap
1240 return _IMP_em.DensityMap_get_cropped(self, *args)
1243 def get_maximum_value_in_xy_plane(self, z_ind):
1244 """get_maximum_value_in_xy_plane(DensityMap self, int z_ind) -> float"""
1245 return _IMP_em.DensityMap_get_maximum_value_in_xy_plane(self, z_ind)
1248 def get_maximum_value_in_xz_plane(self, y_ind):
1249 """get_maximum_value_in_xz_plane(DensityMap self, int y_ind) -> float"""
1250 return _IMP_em.DensityMap_get_maximum_value_in_xz_plane(self, y_ind)
1253 def get_maximum_value_in_yz_plane(self, x_ind):
1254 """get_maximum_value_in_yz_plane(DensityMap self, int x_ind) -> float"""
1255 return _IMP_em.DensityMap_get_maximum_value_in_yz_plane(self, x_ind)
1259 """multiply(DensityMap self, float factor)"""
1260 return _IMP_em.DensityMap_multiply(self, factor)
1263 def get_locations_string(self, t):
1264 """get_locations_string(DensityMap self, float t) -> std::string"""
1265 return _IMP_em.DensityMap_get_locations_string(self, t)
1268 def update_voxel_size(self, new_apix):
1269 """update_voxel_size(DensityMap self, float new_apix)"""
1270 return _IMP_em.DensityMap_update_voxel_size(self, new_apix)
1273 def get_spacing(self):
1274 """get_spacing(DensityMap self) -> IMP::Float"""
1275 return _IMP_em.DensityMap_get_spacing(self)
1278 def calc_all_voxel2loc(self):
1279 """calc_all_voxel2loc(DensityMap self)"""
1280 return _IMP_em.DensityMap_calc_all_voxel2loc(self)
1283 def copy_map(self, other):
1284 """copy_map(DensityMap self, DensityMap other)"""
1285 return _IMP_em.DensityMap_copy_map(self, other)
1288 def get_version_info(self):
1289 """get_version_info(DensityMap self) -> VersionInfo"""
1290 return _IMP_em.DensityMap_get_version_info(self)
1293 def lower_voxel_shift(self, loc, kdist, orig, ndim):
1294 """lower_voxel_shift(DensityMap self, IMP::em::emreal loc, IMP::em::emreal kdist, IMP::em::emreal orig, int ndim) -> int"""
1295 return _IMP_em.DensityMap_lower_voxel_shift(self, loc, kdist, orig, ndim)
1298 def upper_voxel_shift(self, loc, kdist, orig, ndim):
1299 """upper_voxel_shift(DensityMap self, IMP::em::emreal loc, IMP::em::emreal kdist, IMP::em::emreal orig, int ndim) -> int"""
1300 return _IMP_em.DensityMap_upper_voxel_shift(self, loc, kdist, orig, ndim)
1303 def get_rms_calculated(self):
1304 """get_rms_calculated(DensityMap self) -> bool"""
1305 return _IMP_em.DensityMap_get_rms_calculated(self)
1308 def get_dim_index_by_location(self, *args):
1310 get_dim_index_by_location(DensityMap self, Vector3D v, int ind) -> int
1311 get_dim_index_by_location(DensityMap self, float loc_val, int ind) -> int
1313 return _IMP_em.DensityMap_get_dim_index_by_location(self, *args)
1317 """__str__(DensityMap self) -> std::string"""
1318 return _IMP_em.DensityMap___str__(self)
1322 """__repr__(DensityMap self) -> std::string"""
1323 return _IMP_em.DensityMap___repr__(self)
1328 return _object_cast_to_DensityMap(o)
1331 def get_x_loc(self):
1332 return _get_density_map_x_loc(self, self)
1334 def get_y_loc(self):
1335 return _get_density_map_y_loc(self, self)
1337 def get_z_loc(self):
1338 return _get_density_map_z_loc(self, self)
1341 return _get_density_map_data(self, self)
1343 DensityMap_swigregister = _IMP_em.DensityMap_swigregister
1344 DensityMap_swigregister(DensityMap)
1349 get_bounding_box(DensityMap m, IMP::Float threshold) -> BoundingBox3D
1350 get_bounding_box(DensityMap m) -> BoundingBox3D
1352 return _IMP_em.get_bounding_box(*args)
1354 def get_density(m, v):
1355 """get_density(DensityMap m, Vector3D v) -> double"""
1356 return _IMP_em.get_density(m, v)
1358 def get_transformed(*args):
1360 get_transformed(DensityMap input, Transformation3D tr, double threshold) -> DensityMap
1361 get_transformed(DensityMap input, Transformation3D tr) -> DensityMap
1363 return _IMP_em.get_transformed(*args)
1365 def get_resampled(input, scaling):
1366 """get_resampled(DensityMap input, double scaling) -> DensityMap"""
1367 return _IMP_em.get_resampled(input, scaling)
1369 def get_transformed_into(source, tr, into, calc_rms=True):
1371 get_transformed_into(DensityMap source, Transformation3D tr, DensityMap into, bool calc_rms=True)
1372 get_transformed_into(DensityMap source, Transformation3D tr, DensityMap into)
1374 return _IMP_em.get_transformed_into(source, tr, into, calc_rms)
1376 def get_transformed_into2(source, tr, into):
1377 """get_transformed_into2(DensityMap source, Transformation3D tr, DensityMap into)"""
1378 return _IMP_em.get_transformed_into2(source, tr, into)
1380 def get_interiors_intersect(d1, d2):
1381 """get_interiors_intersect(DensityMap d1, DensityMap d2) -> bool"""
1382 return _IMP_em.get_interiors_intersect(d1, d2)
1386 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
1387 get_segment(DensityMap map_to_segment, IMP::algebra::Vector3Ds vecs, float dist) -> DensityMap
1389 return _IMP_em.get_segment(*args)
1392 """get_segment_by_masking(DensityMap map_to_segment, DensityMap mask, float mas_threshold) -> DensityMap"""
1393 return _IMP_em.get_segment_by_masking(map_to_segment, mask, mas_threshold)
1395 def binarize(orig_map, threshold, reverse=False):
1397 binarize(DensityMap orig_map, float threshold, bool reverse=False) -> DensityMap
1398 binarize(DensityMap orig_map, float threshold) -> DensityMap
1400 return _IMP_em.binarize(orig_map, threshold, reverse)
1403 """get_threshold_map(DensityMap orig_map, float threshold) -> DensityMap"""
1404 return _IMP_em.get_threshold_map(orig_map, threshold)
1407 """multiply(DensityMap m1, DensityMap m2) -> DensityMap"""
1408 return _IMP_em.multiply(m1, m2)
1411 """convolute(DensityMap m1, DensityMap m2) -> double"""
1412 return _IMP_em.convolute(m1, m2)
1415 """get_sum(DensityMap m1) -> double"""
1416 return _IMP_em.get_sum(m1)
1419 """get_max_map(IMP::em::DensityMaps maps) -> DensityMap"""
1420 return _IMP_em.get_max_map(maps)
1423 """interpolate_map(DensityMap in_map, double new_spacing) -> DensityMap"""
1424 return _IMP_em.interpolate_map(in_map, new_spacing)
1427 """get_grid(DensityMap in_map) -> IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,float >,float,IMP::algebra::DefaultEmbeddingD< 3 > >"""
1428 return _IMP_em.get_grid(in_map)
1432 create_density_map(DensityMap other) -> DensityMap
1433 create_density_map(BoundingBox3D bb, double spacing) -> DensityMap
1434 create_density_map(int nx, int ny, int nz, double spacing) -> DensityMap
1435 create_density_map(DenseFloatGrid3D grid) -> DensityMap
1436 create_density_map(DenseDoubleGrid3D grid) -> DensityMap
1438 return _IMP_em.create_density_map(*args)
1440 def get_binarized_interior(dmap):
1441 """get_binarized_interior(DensityMap dmap) -> DensityMap"""
1442 return _IMP_em.get_binarized_interior(dmap)
1444 def add_to_map(dm, pis):
1445 """add_to_map(DensityMap dm, IMP::Particles const & pis)"""
1446 return _IMP_em.add_to_map(dm, pis)
1447 class RadiusDependentDistanceMask(object):
1448 """Proxy of C++ IMP::em::RadiusDependentDistanceMask class"""
1449 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1450 __repr__ = _swig_repr
1452 def __init__(self, sampling_radius, header):
1453 """__init__(IMP::em::RadiusDependentDistanceMask self, float sampling_radius, DensityHeader header) -> RadiusDependentDistanceMask"""
1454 this = _IMP_em.new_RadiusDependentDistanceMask(sampling_radius, header)
1456 self.this.append(this)
1460 def get_neighbor_shift(self):
1461 """get_neighbor_shift(RadiusDependentDistanceMask self) -> std::vector< double,std::allocator< double > > const *"""
1462 return _IMP_em.RadiusDependentDistanceMask_get_neighbor_shift(self)
1465 def get_neighbor_dist(self):
1466 """get_neighbor_dist(RadiusDependentDistanceMask self) -> std::vector< double,std::allocator< double > > const *"""
1467 return _IMP_em.RadiusDependentDistanceMask_get_neighbor_dist(self)
1470 def get_neighbor_dist_exp(self):
1471 """get_neighbor_dist_exp(RadiusDependentDistanceMask self) -> std::vector< double,std::allocator< double > > const *"""
1472 return _IMP_em.RadiusDependentDistanceMask_get_neighbor_dist_exp(self)
1475 def show(self, out):
1476 """show(RadiusDependentDistanceMask self, _ostream out)"""
1477 return _IMP_em.RadiusDependentDistanceMask_show(self, out)
1479 __swig_destroy__ = _IMP_em.delete_RadiusDependentDistanceMask
1480 __del__ =
lambda self:
None
1481 RadiusDependentDistanceMask_swigregister = _IMP_em.RadiusDependentDistanceMask_swigregister
1482 RadiusDependentDistanceMask_swigregister(RadiusDependentDistanceMask)
1484 class DistanceMask(object):
1485 """Proxy of C++ IMP::em::DistanceMask class"""
1486 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1487 __repr__ = _swig_repr
1489 def __init__(self, *args):
1491 __init__(IMP::em::DistanceMask self) -> DistanceMask
1492 __init__(IMP::em::DistanceMask self, DensityHeader header) -> DistanceMask
1494 this = _IMP_em.new_DistanceMask(*args)
1496 self.this.append(this)
1500 def show(self, out):
1501 """show(DistanceMask self, _ostream out)"""
1502 return _IMP_em.DistanceMask_show(self, out)
1505 def is_mask_set(self, radius, eps=0.001):
1507 is_mask_set(DistanceMask self, float radius, float eps=0.001) -> bool
1508 is_mask_set(DistanceMask self, float radius) -> bool
1510 return _IMP_em.DistanceMask_is_mask_set(self, radius, eps)
1512 __swig_destroy__ = _IMP_em.delete_DistanceMask
1513 __del__ =
lambda self:
None
1514 DistanceMask_swigregister = _IMP_em.DistanceMask_swigregister
1515 DistanceMask_swigregister(DistanceMask)
1517 class EMReaderWriter(MapReaderWriter):
1518 """Proxy of C++ IMP::em::EMReaderWriter class"""
1519 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1522 """__str__(EMReaderWriter self) -> std::string"""
1523 return _IMP_em.EMReaderWriter___str__(self)
1527 """__repr__(EMReaderWriter self) -> std::string"""
1528 return _IMP_em.EMReaderWriter___repr__(self)
1533 return _object_cast_to_EMReaderWriter(o)
1537 """__init__(IMP::em::EMReaderWriter self) -> EMReaderWriter"""
1538 this = _IMP_em.new_EMReaderWriter()
1540 self.this.append(this)
1543 EMReaderWriter_swigregister = _IMP_em.EMReaderWriter_swigregister
1544 EMReaderWriter_swigregister(EMReaderWriter)
1546 class XplorReaderWriter(MapReaderWriter):
1547 """Proxy of C++ IMP::em::XplorReaderWriter class"""
1548 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1551 """__str__(XplorReaderWriter self) -> std::string"""
1552 return _IMP_em.XplorReaderWriter___str__(self)
1556 """__repr__(XplorReaderWriter self) -> std::string"""
1557 return _IMP_em.XplorReaderWriter___repr__(self)
1562 return _object_cast_to_XplorReaderWriter(o)
1566 """__init__(IMP::em::XplorReaderWriter self) -> XplorReaderWriter"""
1567 this = _IMP_em.new_XplorReaderWriter()
1569 self.this.append(this)
1572 XplorReaderWriter_swigregister = _IMP_em.XplorReaderWriter_swigregister
1573 XplorReaderWriter_swigregister(XplorReaderWriter)
1575 class MRCReaderWriter(MapReaderWriter):
1576 """Proxy of C++ IMP::em::MRCReaderWriter class"""
1577 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1579 def __init__(self, *args):
1581 __init__(IMP::em::MRCReaderWriter self) -> MRCReaderWriter
1582 __init__(IMP::em::MRCReaderWriter self, std::string fn) -> MRCReaderWriter
1584 this = _IMP_em.new_MRCReaderWriter(*args)
1586 self.this.append(this)
1591 """__str__(MRCReaderWriter self) -> std::string"""
1592 return _IMP_em.MRCReaderWriter___str__(self)
1596 """__repr__(MRCReaderWriter self) -> std::string"""
1597 return _IMP_em.MRCReaderWriter___repr__(self)
1602 return _object_cast_to_MRCReaderWriter(o)
1604 MRCReaderWriter_swigregister = _IMP_em.MRCReaderWriter_swigregister
1605 MRCReaderWriter_swigregister(MRCReaderWriter)
1607 class KernelParameters(object):
1608 """Proxy of C++ IMP::em::KernelParameters class"""
1609 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1611 def __init__(self, *args):
1613 __init__(IMP::em::KernelParameters self) -> KernelParameters
1614 __init__(IMP::em::KernelParameters self, float resolution) -> KernelParameters
1616 this = _IMP_em.new_KernelParameters(*args)
1618 self.this.append(this)
1621 __swig_destroy__ = _IMP_em.delete_KernelParameters
1622 __del__ =
lambda self:
None
1625 """get_rsig(KernelParameters self) -> float"""
1626 return _IMP_em.KernelParameters_get_rsig(self)
1629 def get_rsigsq(self):
1630 """get_rsigsq(KernelParameters self) -> float"""
1631 return _IMP_em.KernelParameters_get_rsigsq(self)
1634 def get_inv_rsigsq(self):
1635 """get_inv_rsigsq(KernelParameters self) -> float"""
1636 return _IMP_em.KernelParameters_get_inv_rsigsq(self)
1639 def get_timessig(self):
1640 """get_timessig(KernelParameters self) -> float"""
1641 return _IMP_em.KernelParameters_get_timessig(self)
1644 def get_sq2pi3(self):
1645 """get_sq2pi3(KernelParameters self) -> float"""
1646 return _IMP_em.KernelParameters_get_sq2pi3(self)
1649 def get_rnormfac(self):
1650 """get_rnormfac(KernelParameters self) -> float"""
1651 return _IMP_em.KernelParameters_get_rnormfac(self)
1654 def get_rkdist(self):
1655 """get_rkdist(KernelParameters self) -> float"""
1656 return _IMP_em.KernelParameters_get_rkdist(self)
1659 def get_rkdistsq(self):
1660 """get_rkdistsq(KernelParameters self) -> float"""
1661 return _IMP_em.KernelParameters_get_rkdistsq(self)
1665 """get_lim(KernelParameters self) -> float"""
1666 return _IMP_em.KernelParameters_get_lim(self)
1669 def show(self, *args):
1671 show(KernelParameters self, _ostream out)
1672 show(KernelParameters self)
1674 return _IMP_em.KernelParameters_show(self, *args)
1678 """__str__(KernelParameters self) -> std::string"""
1679 return _IMP_em.KernelParameters___str__(self)
1683 """__repr__(KernelParameters self) -> std::string"""
1684 return _IMP_em.KernelParameters___repr__(self)
1686 KernelParameters_swigregister = _IMP_em.KernelParameters_swigregister
1687 KernelParameters_swigregister(KernelParameters)
1690 _IMP_em.GAUSSIAN_swigconstant(_IMP_em)
1691 GAUSSIAN = _IMP_em.GAUSSIAN
1693 _IMP_em.BINARIZED_SPHERE_swigconstant(_IMP_em)
1694 BINARIZED_SPHERE = _IMP_em.BINARIZED_SPHERE
1696 _IMP_em.SPHERE_swigconstant(_IMP_em)
1697 SPHERE = _IMP_em.SPHERE
1698 class SampledDensityMap(DensityMap):
1699 """Proxy of C++ IMP::em::SampledDensityMap class"""
1700 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1702 def __init__(self, *args):
1704 __init__(IMP::em::SampledDensityMap self, IMP::em::KernelType kt) -> SampledDensityMap
1705 __init__(IMP::em::SampledDensityMap self) -> SampledDensityMap
1706 __init__(IMP::em::SampledDensityMap self, DensityHeader header, IMP::em::KernelType kt) -> SampledDensityMap
1707 __init__(IMP::em::SampledDensityMap self, DensityHeader header) -> SampledDensityMap
1708 __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
1709 __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
1710 __init__(IMP::em::SampledDensityMap self, IMP::ParticlesTemp const & ps, IMP::em::emreal resolution, IMP::em::emreal voxel_size, FloatKey mass_key) -> SampledDensityMap
1711 __init__(IMP::em::SampledDensityMap self, IMP::ParticlesTemp const & ps, IMP::em::emreal resolution, IMP::em::emreal voxel_size) -> SampledDensityMap
1713 this = _IMP_em.new_SampledDensityMap(*args)
1715 self.this.append(this)
1720 """resample(SampledDensityMap self)"""
1721 return _IMP_em.SampledDensityMap_resample(self)
1724 def project(self, *args):
1726 project(SampledDensityMap self, IMP::ParticlesTemp const & ps, int x_margin, int y_margin, int z_margin, Vector3D shift, FloatKey mass_key)
1727 project(SampledDensityMap self, IMP::ParticlesTemp const & ps, int x_margin, int y_margin, int z_margin, Vector3D shift)
1728 project(SampledDensityMap self, IMP::ParticlesTemp const & ps, int x_margin, int y_margin, int z_margin)
1730 return _IMP_em.SampledDensityMap_project(self, *args)
1733 def set_particles(self, *args):
1735 set_particles(SampledDensityMap self, IMP::ParticlesTemp const & ps, FloatKey mass_key)
1736 set_particles(SampledDensityMap self, IMP::ParticlesTemp const & ps)
1738 return _IMP_em.SampledDensityMap_set_particles(self, *args)
1741 def get_xyzr_particles(self):
1742 """get_xyzr_particles(SampledDensityMap self) -> IMP::core::XYZRs const &"""
1743 return _IMP_em.SampledDensityMap_get_xyzr_particles(self)
1746 def get_sampled_particles(self):
1747 """get_sampled_particles(SampledDensityMap self) -> IMP::Particles const &"""
1748 return _IMP_em.SampledDensityMap_get_sampled_particles(self)
1751 def get_weight_key(self):
1752 """get_weight_key(SampledDensityMap self) -> FloatKey"""
1753 return _IMP_em.SampledDensityMap_get_weight_key(self)
1756 def get_minimum_resampled_value(self):
1757 """get_minimum_resampled_value(SampledDensityMap self) -> float"""
1758 return _IMP_em.SampledDensityMap_get_minimum_resampled_value(self)
1761 def update_resolution(self, res):
1762 """update_resolution(SampledDensityMap self, IMP::Float res)"""
1763 return _IMP_em.SampledDensityMap_update_resolution(self, res)
1765 __swig_destroy__ = _IMP_em.delete_SampledDensityMap
1766 __del__ =
lambda self:
None
1769 """__str__(SampledDensityMap self) -> std::string"""
1770 return _IMP_em.SampledDensityMap___str__(self)
1774 """__repr__(SampledDensityMap self) -> std::string"""
1775 return _IMP_em.SampledDensityMap___repr__(self)
1780 return _object_cast_to_SampledDensityMap(o)
1782 SampledDensityMap_swigregister = _IMP_em.SampledDensityMap_swigregister
1783 SampledDensityMap_swigregister(SampledDensityMap)
1786 _IMP_em.IMP_DEFAULT_NUM_SHELLS_swigconstant(_IMP_em)
1787 IMP_DEFAULT_NUM_SHELLS = _IMP_em.IMP_DEFAULT_NUM_SHELLS
1789 _IMP_em.IMP_SIG_CUTOFF_swigconstant(_IMP_em)
1790 IMP_SIG_CUTOFF = _IMP_em.IMP_SIG_CUTOFF
1791 class SurfaceShellDensityMap(SampledDensityMap):
1792 """Proxy of C++ IMP::em::SurfaceShellDensityMap class"""
1793 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1795 def __init__(self, *args):
1797 __init__(IMP::em::SurfaceShellDensityMap self) -> SurfaceShellDensityMap
1798 __init__(IMP::em::SurfaceShellDensityMap self, DensityHeader header) -> SurfaceShellDensityMap
1799 __init__(IMP::em::SurfaceShellDensityMap self, IMP::ParticlesTemp const & ps, float voxel_size, FloatKey mass_key, int num_shells=5) -> SurfaceShellDensityMap
1800 __init__(IMP::em::SurfaceShellDensityMap self, IMP::ParticlesTemp const & ps, float voxel_size, FloatKey mass_key) -> SurfaceShellDensityMap
1801 __init__(IMP::em::SurfaceShellDensityMap self, IMP::ParticlesTemp const & ps, float voxel_size) -> SurfaceShellDensityMap
1803 this = _IMP_em.new_SurfaceShellDensityMap(*args)
1805 self.this.append(this)
1810 """binarize(SurfaceShellDensityMap self, float scene_val)"""
1811 return _IMP_em.SurfaceShellDensityMap_binarize(self, scene_val)
1814 def has_background_neighbor(self, voxel_ind):
1815 """has_background_neighbor(SurfaceShellDensityMap self, long voxel_ind) -> bool"""
1816 return _IMP_em.SurfaceShellDensityMap_has_background_neighbor(self, voxel_ind)
1818 __swig_destroy__ = _IMP_em.delete_SurfaceShellDensityMap
1819 __del__ =
lambda self:
None
1822 """__str__(SurfaceShellDensityMap self) -> std::string"""
1823 return _IMP_em.SurfaceShellDensityMap___str__(self)
1827 """__repr__(SurfaceShellDensityMap self) -> std::string"""
1828 return _IMP_em.SurfaceShellDensityMap___repr__(self)
1833 return _object_cast_to_SurfaceShellDensityMap(o)
1835 SurfaceShellDensityMap_swigregister = _IMP_em.SurfaceShellDensityMap_swigregister
1836 SurfaceShellDensityMap_swigregister(SurfaceShellDensityMap)
1841 get_coarse_cc_score(DensityMap data, SampledDensityMap model_map, double scalefactor, bool recalc_rms=True, bool resample=True, IMP::FloatPair norm_factors) -> double
1842 get_coarse_cc_score(DensityMap data, SampledDensityMap model_map, double scalefactor, bool recalc_rms=True, bool resample=True) -> double
1843 get_coarse_cc_score(DensityMap data, SampledDensityMap model_map, double scalefactor, bool recalc_rms=True) -> double
1844 get_coarse_cc_score(DensityMap data, SampledDensityMap model_map, double scalefactor) -> double
1846 return _IMP_em.get_coarse_cc_score(*args)
1850 get_coarse_cc_coefficient(DensityMap grid1, DensityMap grid2, double grid2_voxel_data_threshold, bool allow_padding=False, IMP::FloatPair norm_factors) -> double
1851 get_coarse_cc_coefficient(DensityMap grid1, DensityMap grid2, double grid2_voxel_data_threshold, bool allow_padding=False) -> double
1852 get_coarse_cc_coefficient(DensityMap grid1, DensityMap grid2, double grid2_voxel_data_threshold) -> double
1854 return _IMP_em.get_coarse_cc_coefficient(*args)
1857 """get_coarse_cc_local_coefficient(DensityMap em_map, DensityMap model_map, double voxel_data_threshold) -> double"""
1858 return _IMP_em.get_coarse_cc_local_coefficient(em_map, model_map, voxel_data_threshold)
1860 """Proxy of C++ IMP::em::CoarseCC class"""
1861 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1864 """__init__(IMP::em::CoarseCC self) -> CoarseCC"""
1865 this = _IMP_em.new_CoarseCC()
1867 self.this.append(this)
1871 def calc_score(*args):
1873 calc_score(DensityMap data, SampledDensityMap model_map, float scalefactor, bool recalc_rms=True, bool resample=True, IMP::FloatPair norm_factors) -> float
1874 calc_score(DensityMap data, SampledDensityMap model_map, float scalefactor, bool recalc_rms=True, bool resample=True) -> float
1875 calc_score(DensityMap data, SampledDensityMap model_map, float scalefactor, bool recalc_rms=True) -> float
1876 calc_score(DensityMap data, SampledDensityMap model_map, float scalefactor) -> float
1878 return _IMP_em.CoarseCC_calc_score(*args)
1880 calc_score = staticmethod(calc_score)
1882 def cross_correlation_coefficient(*args):
1884 cross_correlation_coefficient(DensityMap grid1, DensityMap grid2, float grid2_voxel_data_threshold, bool allow_padding=False, IMP::FloatPair norm_factors) -> double
1885 cross_correlation_coefficient(DensityMap grid1, DensityMap grid2, float grid2_voxel_data_threshold, bool allow_padding=False) -> double
1886 cross_correlation_coefficient(DensityMap grid1, DensityMap grid2, float grid2_voxel_data_threshold) -> double
1888 return _IMP_em.CoarseCC_cross_correlation_coefficient(*args)
1890 cross_correlation_coefficient = staticmethod(cross_correlation_coefficient)
1892 def local_cross_correlation_coefficient(em_map, model_map, voxel_data_threshold):
1893 """local_cross_correlation_coefficient(DensityMap em_map, DensityMap model_map, float voxel_data_threshold) -> float"""
1894 return _IMP_em.CoarseCC_local_cross_correlation_coefficient(em_map, model_map, voxel_data_threshold)
1896 local_cross_correlation_coefficient = staticmethod(local_cross_correlation_coefficient)
1898 def get_version_info(self):
1899 """get_version_info(CoarseCC self) -> VersionInfo"""
1900 return _IMP_em.CoarseCC_get_version_info(self)
1904 """__str__(CoarseCC self) -> std::string"""
1905 return _IMP_em.CoarseCC___str__(self)
1909 """__repr__(CoarseCC self) -> std::string"""
1910 return _IMP_em.CoarseCC___repr__(self)
1915 return _object_cast_to_CoarseCC(o)
1917 CoarseCC_swigregister = _IMP_em.CoarseCC_swigregister
1918 CoarseCC_swigregister(CoarseCC)
1920 def CoarseCC_calc_score(*args):
1922 calc_score(DensityMap data, SampledDensityMap model_map, float scalefactor, bool recalc_rms=True, bool resample=True, IMP::FloatPair norm_factors) -> float
1923 calc_score(DensityMap data, SampledDensityMap model_map, float scalefactor, bool recalc_rms=True, bool resample=True) -> float
1924 calc_score(DensityMap data, SampledDensityMap model_map, float scalefactor, bool recalc_rms=True) -> float
1925 CoarseCC_calc_score(DensityMap data, SampledDensityMap model_map, float scalefactor) -> float
1927 return _IMP_em.CoarseCC_calc_score(*args)
1929 def CoarseCC_cross_correlation_coefficient(*args):
1931 cross_correlation_coefficient(DensityMap grid1, DensityMap grid2, float grid2_voxel_data_threshold, bool allow_padding=False, IMP::FloatPair norm_factors) -> double
1932 cross_correlation_coefficient(DensityMap grid1, DensityMap grid2, float grid2_voxel_data_threshold, bool allow_padding=False) -> double
1933 CoarseCC_cross_correlation_coefficient(DensityMap grid1, DensityMap grid2, float grid2_voxel_data_threshold) -> double
1935 return _IMP_em.CoarseCC_cross_correlation_coefficient(*args)
1937 def CoarseCC_local_cross_correlation_coefficient(em_map, model_map, voxel_data_threshold):
1938 """CoarseCC_local_cross_correlation_coefficient(DensityMap em_map, DensityMap model_map, float voxel_data_threshold) -> float"""
1939 return _IMP_em.CoarseCC_local_cross_correlation_coefficient(em_map, model_map, voxel_data_threshold)
1941 class CoarseConvolution(object):
1942 """Proxy of C++ IMP::em::CoarseConvolution class"""
1943 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1944 __repr__ = _swig_repr
1946 def convolution(em_map, model_map, voxel_data_threshold, recalc_ccnormfac=True):
1948 convolution(DensityMap em_map, DensityMap model_map, float voxel_data_threshold, bool recalc_ccnormfac=True) -> float
1949 convolution(DensityMap em_map, DensityMap model_map, float voxel_data_threshold) -> float
1951 return _IMP_em.CoarseConvolution_convolution(em_map, model_map, voxel_data_threshold, recalc_ccnormfac)
1953 convolution = staticmethod(convolution)
1956 """__init__(IMP::em::CoarseConvolution self) -> CoarseConvolution"""
1957 this = _IMP_em.new_CoarseConvolution()
1959 self.this.append(this)
1962 __swig_destroy__ = _IMP_em.delete_CoarseConvolution
1963 __del__ =
lambda self:
None
1964 CoarseConvolution_swigregister = _IMP_em.CoarseConvolution_swigregister
1965 CoarseConvolution_swigregister(CoarseConvolution)
1967 def CoarseConvolution_convolution(em_map, model_map, voxel_data_threshold, recalc_ccnormfac=True):
1969 convolution(DensityMap em_map, DensityMap model_map, float voxel_data_threshold, bool recalc_ccnormfac=True) -> float
1970 CoarseConvolution_convolution(DensityMap em_map, DensityMap model_map, float voxel_data_threshold) -> float
1972 return _IMP_em.CoarseConvolution_convolution(em_map, model_map, voxel_data_threshold, recalc_ccnormfac)
1975 """Proxy of C++ IMP::em::CoarseCCatIntervals class"""
1976 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1978 def __init__(self, *args):
1980 __init__(IMP::em::CoarseCCatIntervals self, int const & ncd) -> CoarseCCatIntervals
1981 __init__(IMP::em::CoarseCCatIntervals self) -> CoarseCCatIntervals
1983 this = _IMP_em.new_CoarseCCatIntervals(*args)
1985 self.this.append(this)
1989 def evaluate(self, em_map, model_map, deriv, scalefac, lderiv, eval_interval):
1990 """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 >"""
1991 return _IMP_em.CoarseCCatIntervals_evaluate(self, em_map, model_map, deriv, scalefac, lderiv, eval_interval)
1994 def get_version_info(self):
1995 """get_version_info(CoarseCCatIntervals self) -> VersionInfo"""
1996 return _IMP_em.CoarseCCatIntervals_get_version_info(self)
2000 """__str__(CoarseCCatIntervals self) -> std::string"""
2001 return _IMP_em.CoarseCCatIntervals___str__(self)
2005 """__repr__(CoarseCCatIntervals self) -> std::string"""
2006 return _IMP_em.CoarseCCatIntervals___repr__(self)
2011 return _object_cast_to_CoarseCCatIntervals(o)
2013 CoarseCCatIntervals_swigregister = _IMP_em.CoarseCCatIntervals_swigregister
2014 CoarseCCatIntervals_swigregister(CoarseCCatIntervals)
2018 """bayesem3d_get_distinct_and_counts(DensityMap em) -> std::map< double,int >"""
2019 return _IMP_em.bayesem3d_get_distinct_and_counts(em)
2022 """bayesem3d_get_cumulative_sum(DensityMap em) -> IMP::Floats"""
2023 return _IMP_em.bayesem3d_get_cumulative_sum(em)
2026 """bayesem3d_get_cumulative_sum_with_reference(DensityMap em) -> std::map< double,double >"""
2027 return _IMP_em.bayesem3d_get_cumulative_sum_with_reference(em)
2030 """bayesem3d_linear_interpolate(IMP::Floats const & x_data, IMP::Floats const & y_data, double x, bool extrapolate) -> double"""
2031 return _IMP_em.bayesem3d_linear_interpolate(x_data, y_data, x, extrapolate)
2034 """bayesem3d_get_logabssumexp(double x, double y, double sx, double sy) -> IMP::FloatPair"""
2035 return _IMP_em.bayesem3d_get_logabssumexp(x, y, sx, sy)
2038 """bayesem3d_get_logabssumprodexp(double x, double y, double wx, double wy) -> IMP::FloatPair"""
2039 return _IMP_em.bayesem3d_get_logabssumprodexp(x, y, wx, wy)
2042 """bayesem3d_get_logsumexp(double x, double y) -> double"""
2043 return _IMP_em.bayesem3d_get_logsumexp(x, y)
2046 """bayesem3d_get_logsumprodexp(double x, double y, double wx, double wy) -> double"""
2047 return _IMP_em.bayesem3d_get_logsumprodexp(x, y, wx, wy)
2050 """bayesem3d_get_em_density_squared(DensityMap em, long number_of_voxels) -> IMP::FloatPair"""
2051 return _IMP_em.bayesem3d_get_em_density_squared(em, number_of_voxels)
2054 """bayesem3d_get_value(Particle p, Vector3D pt, double mass_ii, KernelParameters kps) -> std::vector< double,std::allocator< double > >"""
2055 return _IMP_em.bayesem3d_get_value(p, pt, mass_ii, kps)
2058 """bayesem3d_get_value_no_deriv(Particle p, Vector3D pt, double mass_ii, KernelParameters kps) -> std::vector< double,std::allocator< double > >"""
2059 return _IMP_em.bayesem3d_get_value_no_deriv(p, pt, mass_ii, kps)
2063 bayesem3d_get_density_from_particle(DensityMap em, IMP::ParticlesTemp const & ps, double resolution, double const window_size=1.0) -> DensityMap
2064 bayesem3d_get_density_from_particle(DensityMap em, IMP::ParticlesTemp const & ps, double resolution) -> DensityMap
2066 return _IMP_em.bayesem3d_get_density_from_particle(em, ps, resolution, window_size)
2069 """bayesem3d_get_cross_correlation_coefficient(DensityMap em1, DensityMap em2) -> double"""
2070 return _IMP_em.bayesem3d_get_cross_correlation_coefficient(em1, em2)
2074 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 >
2075 bayesem3d_get_score_and_derivative(DensityMap em, IMP::ParticlesTemp const & ps, double resolution, double sigma) -> std::pair< double,IMP::algebra::Vector3Ds >
2077 return _IMP_em.bayesem3d_get_score_and_derivative(em, ps, resolution, sigma, window_size)
2080 """bayesem3d_get_normalized_intensities(DensityMap em, IMP::ParticlesTemp const & ps, double resolution)"""
2081 return _IMP_em.bayesem3d_get_normalized_intensities(em, ps, resolution)
2083 """Proxy of C++ IMP::em::FitRestraint class"""
2084 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2086 def __init__(self, *args):
2088 __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
2089 __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
2090 __init__(IMP::em::FitRestraint self, IMP::ParticlesTemp ps, DensityMap em_map, IMP::FloatPair norm_factors, FloatKey weight_key, float scale=1) -> FitRestraint
2091 __init__(IMP::em::FitRestraint self, IMP::ParticlesTemp ps, DensityMap em_map, IMP::FloatPair norm_factors, FloatKey weight_key) -> FitRestraint
2092 __init__(IMP::em::FitRestraint self, IMP::ParticlesTemp ps, DensityMap em_map, IMP::FloatPair norm_factors) -> FitRestraint
2093 __init__(IMP::em::FitRestraint self, IMP::ParticlesTemp ps, DensityMap em_map) -> FitRestraint
2095 this = _IMP_em.new_FitRestraint(*args)
2097 self.this.append(this)
2101 def get_model_dens_map(self):
2102 """get_model_dens_map(FitRestraint self) -> SampledDensityMap"""
2103 return _IMP_em.FitRestraint_get_model_dens_map(self)
2106 def set_scale_factor(self, scale):
2107 """set_scale_factor(FitRestraint self, float scale)"""
2108 return _IMP_em.FitRestraint_set_scale_factor(self, scale)
2111 def get_scale_factor(self):
2112 """get_scale_factor(FitRestraint self) -> float"""
2113 return _IMP_em.FitRestraint_get_scale_factor(self)
2116 def do_get_inputs(self):
2117 """do_get_inputs(FitRestraint self) -> IMP::ModelObjectsTemp"""
2118 return _IMP_em.FitRestraint_do_get_inputs(self)
2121 def get_version_info(self):
2122 """get_version_info(FitRestraint self) -> VersionInfo"""
2123 return _IMP_em.FitRestraint_get_version_info(self)
2127 """__str__(FitRestraint self) -> std::string"""
2128 return _IMP_em.FitRestraint___str__(self)
2132 """__repr__(FitRestraint self) -> std::string"""
2133 return _IMP_em.FitRestraint___repr__(self)
2138 return _object_cast_to_FitRestraint(o)
2140 FitRestraint_swigregister = _IMP_em.FitRestraint_swigregister
2141 FitRestraint_swigregister(FitRestraint)
2144 """Proxy of C++ IMP::em::FitRestraintBayesEM3D class"""
2145 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2147 def __init__(self, *args):
2149 __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
2150 __init__(IMP::em::FitRestraintBayesEM3D self, IMP::ParticlesTemp ps, DensityMap em_map, FloatKey weight_key, bool use_rigid_bodies=True, double sigma=.1) -> FitRestraintBayesEM3D
2151 __init__(IMP::em::FitRestraintBayesEM3D self, IMP::ParticlesTemp ps, DensityMap em_map, FloatKey weight_key, bool use_rigid_bodies=True) -> FitRestraintBayesEM3D
2152 __init__(IMP::em::FitRestraintBayesEM3D self, IMP::ParticlesTemp ps, DensityMap em_map, FloatKey weight_key) -> FitRestraintBayesEM3D
2153 __init__(IMP::em::FitRestraintBayesEM3D self, IMP::ParticlesTemp ps, DensityMap em_map) -> FitRestraintBayesEM3D
2155 this = _IMP_em.new_FitRestraintBayesEM3D(*args)
2157 self.this.append(this)
2161 def do_get_inputs(self):
2162 """do_get_inputs(FitRestraintBayesEM3D self) -> IMP::ModelObjectsTemp"""
2163 return _IMP_em.FitRestraintBayesEM3D_do_get_inputs(self)
2166 def get_version_info(self):
2167 """get_version_info(FitRestraintBayesEM3D self) -> VersionInfo"""
2168 return _IMP_em.FitRestraintBayesEM3D_get_version_info(self)
2172 """__str__(FitRestraintBayesEM3D self) -> std::string"""
2173 return _IMP_em.FitRestraintBayesEM3D___str__(self)
2177 """__repr__(FitRestraintBayesEM3D self) -> std::string"""
2178 return _IMP_em.FitRestraintBayesEM3D___repr__(self)
2183 return _object_cast_to_FitRestraintBayesEM3D(o)
2185 FitRestraintBayesEM3D_swigregister = _IMP_em.FitRestraintBayesEM3D_swigregister
2186 FitRestraintBayesEM3D_swigregister(FitRestraintBayesEM3D)
2191 density2particles(DensityMap dmap, IMP::Float threshold, Model m, int step=1) -> IMP::Particles
2192 density2particles(DensityMap dmap, IMP::Float threshold, Model m) -> IMP::Particles
2194 return _IMP_em.density2particles(dmap, threshold, m, step)
2197 """density2vectors(DensityMap dmap, IMP::Float threshold) -> IMP::algebra::Vector3Ds"""
2198 return _IMP_em.density2vectors(dmap, threshold)
2202 particles2density(IMP::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix, int sig_cutoff=3, FloatKey weight_key) -> SampledDensityMap
2203 particles2density(IMP::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix, int sig_cutoff=3) -> SampledDensityMap
2204 particles2density(IMP::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix) -> SampledDensityMap
2206 return _IMP_em.particles2density(*args)
2210 particles2binarized_density(IMP::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix, int sig_cutoff=3, FloatKey weight_key) -> SampledDensityMap
2211 particles2binarized_density(IMP::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix, int sig_cutoff=3) -> SampledDensityMap
2212 particles2binarized_density(IMP::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix) -> SampledDensityMap
2214 return _IMP_em.particles2binarized_density(*args)
2218 particles2surface(IMP::ParticlesTemp const & ps, IMP::Float apix, FloatKey weight_key) -> SurfaceShellDensityMap
2219 particles2surface(IMP::ParticlesTemp const & ps, IMP::Float apix) -> SurfaceShellDensityMap
2221 return _IMP_em.particles2surface(*args)
2223 def calculate_intersection_score(d1, d2):
2224 """calculate_intersection_score(SurfaceShellDensityMap d1, SurfaceShellDensityMap d2) -> IMP::Float"""
2225 return _IMP_em.calculate_intersection_score(d1, d2)
2226 class SpiderHeader(object):
2227 """Proxy of C++ IMP::em::SpiderHeader class"""
2228 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2229 __repr__ = _swig_repr
2230 fNslice = _swig_property(_IMP_em.SpiderHeader_fNslice_get, _IMP_em.SpiderHeader_fNslice_set)
2231 fNrow = _swig_property(_IMP_em.SpiderHeader_fNrow_get, _IMP_em.SpiderHeader_fNrow_set)
2232 fNrec = _swig_property(_IMP_em.SpiderHeader_fNrec_get, _IMP_em.SpiderHeader_fNrec_set)
2233 fNlabel = _swig_property(_IMP_em.SpiderHeader_fNlabel_get, _IMP_em.SpiderHeader_fNlabel_set)
2234 fIform = _swig_property(_IMP_em.SpiderHeader_fIform_get, _IMP_em.SpiderHeader_fIform_set)
2235 fImami = _swig_property(_IMP_em.SpiderHeader_fImami_get, _IMP_em.SpiderHeader_fImami_set)
2236 fFmax = _swig_property(_IMP_em.SpiderHeader_fFmax_get, _IMP_em.SpiderHeader_fFmax_set)
2237 fFmin = _swig_property(_IMP_em.SpiderHeader_fFmin_get, _IMP_em.SpiderHeader_fFmin_set)
2238 fAv = _swig_property(_IMP_em.SpiderHeader_fAv_get, _IMP_em.SpiderHeader_fAv_set)
2239 fSig = _swig_property(_IMP_em.SpiderHeader_fSig_get, _IMP_em.SpiderHeader_fSig_set)
2240 fIhist = _swig_property(_IMP_em.SpiderHeader_fIhist_get, _IMP_em.SpiderHeader_fIhist_set)
2241 fNcol = _swig_property(_IMP_em.SpiderHeader_fNcol_get, _IMP_em.SpiderHeader_fNcol_set)
2242 fLabrec = _swig_property(_IMP_em.SpiderHeader_fLabrec_get, _IMP_em.SpiderHeader_fLabrec_set)
2243 fIangle = _swig_property(_IMP_em.SpiderHeader_fIangle_get, _IMP_em.SpiderHeader_fIangle_set)
2244 fPhi = _swig_property(_IMP_em.SpiderHeader_fPhi_get, _IMP_em.SpiderHeader_fPhi_set)
2245 fTheta = _swig_property(_IMP_em.SpiderHeader_fTheta_get, _IMP_em.SpiderHeader_fTheta_set)
2246 fPsi = _swig_property(_IMP_em.SpiderHeader_fPsi_get, _IMP_em.SpiderHeader_fPsi_set)
2247 fXoff = _swig_property(_IMP_em.SpiderHeader_fXoff_get, _IMP_em.SpiderHeader_fXoff_set)
2248 fYoff = _swig_property(_IMP_em.SpiderHeader_fYoff_get, _IMP_em.SpiderHeader_fYoff_set)
2249 fZoff = _swig_property(_IMP_em.SpiderHeader_fZoff_get, _IMP_em.SpiderHeader_fZoff_set)
2250 fScale = _swig_property(_IMP_em.SpiderHeader_fScale_get, _IMP_em.SpiderHeader_fScale_set)
2251 fLabbyt = _swig_property(_IMP_em.SpiderHeader_fLabbyt_get, _IMP_em.SpiderHeader_fLabbyt_set)
2252 fLenbyt = _swig_property(_IMP_em.SpiderHeader_fLenbyt_get, _IMP_em.SpiderHeader_fLenbyt_set)
2253 fNothing = _swig_property(_IMP_em.SpiderHeader_fNothing_get, _IMP_em.SpiderHeader_fNothing_set)
2254 fFlag = _swig_property(_IMP_em.SpiderHeader_fFlag_get, _IMP_em.SpiderHeader_fFlag_set)
2255 fPhi1 = _swig_property(_IMP_em.SpiderHeader_fPhi1_get, _IMP_em.SpiderHeader_fPhi1_set)
2256 fTheta1 = _swig_property(_IMP_em.SpiderHeader_fTheta1_get, _IMP_em.SpiderHeader_fTheta1_set)
2257 fPsi1 = _swig_property(_IMP_em.SpiderHeader_fPsi1_get, _IMP_em.SpiderHeader_fPsi1_set)
2258 fPhi2 = _swig_property(_IMP_em.SpiderHeader_fPhi2_get, _IMP_em.SpiderHeader_fPhi2_set)
2259 fTheta2 = _swig_property(_IMP_em.SpiderHeader_fTheta2_get, _IMP_em.SpiderHeader_fTheta2_set)
2260 fPsi2 = _swig_property(_IMP_em.SpiderHeader_fPsi2_get, _IMP_em.SpiderHeader_fPsi2_set)
2261 fGeo_matrix = _swig_property(_IMP_em.SpiderHeader_fGeo_matrix_get, _IMP_em.SpiderHeader_fGeo_matrix_set)
2262 fAngle1 = _swig_property(_IMP_em.SpiderHeader_fAngle1_get, _IMP_em.SpiderHeader_fAngle1_set)
2263 fr1 = _swig_property(_IMP_em.SpiderHeader_fr1_get, _IMP_em.SpiderHeader_fr1_set)
2264 fr2 = _swig_property(_IMP_em.SpiderHeader_fr2_get, _IMP_em.SpiderHeader_fr2_set)
2265 RTflag = _swig_property(_IMP_em.SpiderHeader_RTflag_get, _IMP_em.SpiderHeader_RTflag_set)
2266 Astart = _swig_property(_IMP_em.SpiderHeader_Astart_get, _IMP_em.SpiderHeader_Astart_set)
2267 Aend = _swig_property(_IMP_em.SpiderHeader_Aend_get, _IMP_em.SpiderHeader_Aend_set)
2268 Ainc = _swig_property(_IMP_em.SpiderHeader_Ainc_get, _IMP_em.SpiderHeader_Ainc_set)
2269 Rsigma = _swig_property(_IMP_em.SpiderHeader_Rsigma_get, _IMP_em.SpiderHeader_Rsigma_set)
2270 Tstart = _swig_property(_IMP_em.SpiderHeader_Tstart_get, _IMP_em.SpiderHeader_Tstart_set)
2271 Tend = _swig_property(_IMP_em.SpiderHeader_Tend_get, _IMP_em.SpiderHeader_Tend_set)
2272 Tinc = _swig_property(_IMP_em.SpiderHeader_Tinc_get, _IMP_em.SpiderHeader_Tinc_set)
2273 Weight = _swig_property(_IMP_em.SpiderHeader_Weight_get, _IMP_em.SpiderHeader_Weight_set)
2274 Flip = _swig_property(_IMP_em.SpiderHeader_Flip_get, _IMP_em.SpiderHeader_Flip_set)
2275 empty = _swig_property(_IMP_em.SpiderHeader_empty_get, _IMP_em.SpiderHeader_empty_set)
2276 szIDat = _swig_property(_IMP_em.SpiderHeader_szIDat_get, _IMP_em.SpiderHeader_szIDat_set)
2277 szITim = _swig_property(_IMP_em.SpiderHeader_szITim_get, _IMP_em.SpiderHeader_szITim_set)
2278 szITit = _swig_property(_IMP_em.SpiderHeader_szITit_get, _IMP_em.SpiderHeader_szITit_set)
2280 def show(self, out):
2281 """show(SpiderHeader self, _ostream out)"""
2282 return _IMP_em.SpiderHeader_show(self, out)
2286 """__init__(IMP::em::SpiderHeader self) -> SpiderHeader"""
2287 this = _IMP_em.new_SpiderHeader()
2289 self.this.append(this)
2292 __swig_destroy__ = _IMP_em.delete_SpiderHeader
2293 __del__ =
lambda self:
None
2294 SpiderHeader_swigregister = _IMP_em.SpiderHeader_swigregister
2295 SpiderHeader_swigregister(SpiderHeader)
2297 class ImageHeader(object):
2298 """Proxy of C++ IMP::em::ImageHeader class"""
2299 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2300 __repr__ = _swig_repr
2301 IMG_BYTE = _IMP_em.ImageHeader_IMG_BYTE
2302 IMG_IMPEM = _IMP_em.ImageHeader_IMG_IMPEM
2303 IMG_INT = _IMP_em.ImageHeader_IMG_INT
2304 VOL_BYTE = _IMP_em.ImageHeader_VOL_BYTE
2305 VOL_IMPEM = _IMP_em.ImageHeader_VOL_IMPEM
2306 VOL_INT = _IMP_em.ImageHeader_VOL_INT
2307 IMG_FOURIER = _IMP_em.ImageHeader_IMG_FOURIER
2308 VOL_FOURIER = _IMP_em.ImageHeader_VOL_FOURIER
2310 def __init__(self, *args):
2312 __init__(IMP::em::ImageHeader self) -> ImageHeader
2313 __init__(IMP::em::ImageHeader self, IMP::em::ImageHeader::img_type im) -> ImageHeader
2314 __init__(IMP::em::ImageHeader self, float im) -> ImageHeader
2316 this = _IMP_em.new_ImageHeader(*args)
2318 self.this.append(this)
2322 def get_image_type(self):
2323 """get_image_type(ImageHeader self) -> float"""
2324 return _IMP_em.ImageHeader_get_image_type(self)
2327 def set_image_type(self, *args):
2329 set_image_type(ImageHeader self, IMP::em::ImageHeader::img_type im)
2330 set_image_type(ImageHeader self, float im)
2332 return _IMP_em.ImageHeader_set_image_type(self, *args)
2335 def do_show(self, out):
2336 """do_show(ImageHeader self, _ostream out)"""
2337 return _IMP_em.ImageHeader_do_show(self, out)
2340 def show(self, *args):
2342 show(ImageHeader self, _ostream out)
2343 show(ImageHeader self)
2345 return _IMP_em.ImageHeader_show(self, *args)
2348 def print_hard(self, out):
2349 """print_hard(ImageHeader self, _ostream out)"""
2350 return _IMP_em.ImageHeader_print_hard(self, out)
2353 def show_projection_params(self, out):
2354 """show_projection_params(ImageHeader self, _ostream out)"""
2355 return _IMP_em.ImageHeader_show_projection_params(self, out)
2358 def read(self, *args):
2360 read(ImageHeader self, IMP::String const filename, bool skip_type_check=False, bool force_reversed=False, bool skip_extra_checkings=False) -> int
2361 read(ImageHeader self, IMP::String const filename, bool skip_type_check=False, bool force_reversed=False) -> int
2362 read(ImageHeader self, IMP::String const filename, bool skip_type_check=False) -> int
2363 read(ImageHeader self, IMP::String const filename) -> int
2364 read(ImageHeader self, std::ifstream & f, bool skip_type_check=False, bool force_reversed=False, bool skip_extra_checkings=False) -> bool
2365 read(ImageHeader self, std::ifstream & f, bool skip_type_check=False, bool force_reversed=False) -> bool
2366 read(ImageHeader self, std::ifstream & f, bool skip_type_check=False) -> bool
2367 read(ImageHeader self, std::ifstream & f) -> bool
2369 return _IMP_em.ImageHeader_read(self, *args)
2372 def write(self, *args):
2374 write(ImageHeader self, IMP::String const & filename, bool force_reversed=False)
2375 write(ImageHeader self, IMP::String const & filename)
2376 write(ImageHeader self, std::ofstream & f, bool force_reversed=False)
2377 write(ImageHeader self, std::ofstream & f)
2379 return _IMP_em.ImageHeader_write(self, *args)
2383 """clear(ImageHeader self)"""
2384 return _IMP_em.ImageHeader_clear(self)
2387 def set_header(self):
2388 """set_header(ImageHeader self)"""
2389 return _IMP_em.ImageHeader_set_header(self)
2392 def get_reversed(self):
2393 """get_reversed(ImageHeader self) -> bool"""
2394 return _IMP_em.ImageHeader_get_reversed(self)
2397 def set_reversed(self, value):
2398 """set_reversed(ImageHeader self, bool value)"""
2399 return _IMP_em.ImageHeader_set_reversed(self, value)
2402 def get_number_of_slices(self):
2403 """get_number_of_slices(ImageHeader self) -> unsigned int"""
2404 return _IMP_em.ImageHeader_get_number_of_slices(self)
2407 def set_number_of_slices(self, n):
2408 """set_number_of_slices(ImageHeader self, unsigned int n)"""
2409 return _IMP_em.ImageHeader_set_number_of_slices(self, n)
2412 def get_number_of_rows(self):
2413 """get_number_of_rows(ImageHeader self) -> unsigned int"""
2414 return _IMP_em.ImageHeader_get_number_of_rows(self)
2417 def set_number_of_rows(self, n):
2418 """set_number_of_rows(ImageHeader self, unsigned int n)"""
2419 return _IMP_em.ImageHeader_set_number_of_rows(self, n)
2422 def get_number_of_columns(self):
2423 """get_number_of_columns(ImageHeader self) -> unsigned int"""
2424 return _IMP_em.ImageHeader_get_number_of_columns(self)
2427 def set_number_of_columns(self, n):
2428 """set_number_of_columns(ImageHeader self, unsigned int n)"""
2429 return _IMP_em.ImageHeader_set_number_of_columns(self, n)
2432 def get_old_rot(self):
2433 """get_old_rot(ImageHeader self) -> float"""
2434 return _IMP_em.ImageHeader_get_old_rot(self)
2437 def set_old_rot(self, value):
2438 """set_old_rot(ImageHeader self, float value)"""
2439 return _IMP_em.ImageHeader_set_old_rot(self, value)
2442 def get_fAngle1(self):
2443 """get_fAngle1(ImageHeader self) -> float"""
2444 return _IMP_em.ImageHeader_get_fAngle1(self)
2447 def set_fAngle1(self, value):
2448 """set_fAngle1(ImageHeader self, float value)"""
2449 return _IMP_em.ImageHeader_set_fAngle1(self, value)
2452 def get_Scale(self):
2453 """get_Scale(ImageHeader self) -> float"""
2454 return _IMP_em.ImageHeader_get_Scale(self)
2457 def set_Scale(self, value):
2458 """set_Scale(ImageHeader self, float value)"""
2459 return _IMP_em.ImageHeader_set_Scale(self, value)
2463 """get_Flip(ImageHeader self) -> float"""
2464 return _IMP_em.ImageHeader_get_Flip(self)
2467 def set_Flip(self, value):
2468 """set_Flip(ImageHeader self, float value)"""
2469 return _IMP_em.ImageHeader_set_Flip(self, value)
2472 def get_Weight(self):
2473 """get_Weight(ImageHeader self) -> float"""
2474 return _IMP_em.ImageHeader_get_Weight(self)
2477 def set_Weight(self, value):
2478 """set_Weight(ImageHeader self, float value)"""
2479 return _IMP_em.ImageHeader_set_Weight(self, value)
2482 def get_fNrec(self):
2483 """get_fNrec(ImageHeader self) -> float"""
2484 return _IMP_em.ImageHeader_get_fNrec(self)
2487 def set_fNrec(self, value):
2488 """set_fNrec(ImageHeader self, float value)"""
2489 return _IMP_em.ImageHeader_set_fNrec(self, value)
2492 def get_fNlabel(self):
2493 """get_fNlabel(ImageHeader self) -> float"""
2494 return _IMP_em.ImageHeader_get_fNlabel(self)
2497 def set_fNlabel(self, value):
2498 """set_fNlabel(ImageHeader self, float value)"""
2499 return _IMP_em.ImageHeader_set_fNlabel(self, value)
2502 def get_fIform(self):
2503 """get_fIform(ImageHeader self) -> float"""
2504 return _IMP_em.ImageHeader_get_fIform(self)
2507 def set_fIform(self, value):
2508 """set_fIform(ImageHeader self, float value)"""
2509 return _IMP_em.ImageHeader_set_fIform(self, value)
2512 def get_fImami(self):
2513 """get_fImami(ImageHeader self) -> float"""
2514 return _IMP_em.ImageHeader_get_fImami(self)
2517 def set_fImami(self, value):
2518 """set_fImami(ImageHeader self, float value)"""
2519 return _IMP_em.ImageHeader_set_fImami(self, value)
2522 def get_fFmax(self):
2523 """get_fFmax(ImageHeader self) -> float"""
2524 return _IMP_em.ImageHeader_get_fFmax(self)
2527 def set_fFmax(self, value):
2528 """set_fFmax(ImageHeader self, float value)"""
2529 return _IMP_em.ImageHeader_set_fFmax(self, value)
2532 def get_fFmin(self):
2533 """get_fFmin(ImageHeader self) -> float"""
2534 return _IMP_em.ImageHeader_get_fFmin(self)
2537 def set_fFmin(self, value):
2538 """set_fFmin(ImageHeader self, float value)"""
2539 return _IMP_em.ImageHeader_set_fFmin(self, value)
2543 """get_fAv(ImageHeader self) -> float"""
2544 return _IMP_em.ImageHeader_get_fAv(self)
2547 def set_fAv(self, value):
2548 """set_fAv(ImageHeader self, float value)"""
2549 return _IMP_em.ImageHeader_set_fAv(self, value)
2553 """get_fSig(ImageHeader self) -> float"""
2554 return _IMP_em.ImageHeader_get_fSig(self)
2557 def set_fSig(self, value):
2558 """set_fSig(ImageHeader self, float value)"""
2559 return _IMP_em.ImageHeader_set_fSig(self, value)
2562 def get_fIhist(self):
2563 """get_fIhist(ImageHeader self) -> float"""
2564 return _IMP_em.ImageHeader_get_fIhist(self)
2567 def set_fIhist(self, value):
2568 """set_fIhist(ImageHeader self, float value)"""
2569 return _IMP_em.ImageHeader_set_fIhist(self, value)
2572 def get_fLabrec(self):
2573 """get_fLabrec(ImageHeader self) -> float"""
2574 return _IMP_em.ImageHeader_get_fLabrec(self)
2577 def set_fLabrec(self, value):
2578 """set_fLabrec(ImageHeader self, float value)"""
2579 return _IMP_em.ImageHeader_set_fLabrec(self, value)
2582 def get_fIangle(self):
2583 """get_fIangle(ImageHeader self) -> float"""
2584 return _IMP_em.ImageHeader_get_fIangle(self)
2587 def set_fIangle(self, value):
2588 """set_fIangle(ImageHeader self, float value)"""
2589 return _IMP_em.ImageHeader_set_fIangle(self, value)
2592 def get_origin(self):
2593 """get_origin(ImageHeader self) -> Vector3D"""
2594 return _IMP_em.ImageHeader_get_origin(self)
2597 def set_origin(self, *args):
2599 set_origin(ImageHeader self, Vector3D v)
2600 set_origin(ImageHeader self, Vector2D v)
2602 return _IMP_em.ImageHeader_set_origin(self, *args)
2605 def get_object_pixel_size(self):
2606 """get_object_pixel_size(ImageHeader self) -> float"""
2607 return _IMP_em.ImageHeader_get_object_pixel_size(self)
2610 def set_object_pixel_size(self, value):
2611 """set_object_pixel_size(ImageHeader self, float value)"""
2612 return _IMP_em.ImageHeader_set_object_pixel_size(self, value)
2615 def get_fLabbyt(self):
2616 """get_fLabbyt(ImageHeader self) -> float"""
2617 return _IMP_em.ImageHeader_get_fLabbyt(self)
2620 def set_fLabbyt(self, value):
2621 """set_fLabbyt(ImageHeader self, float value)"""
2622 return _IMP_em.ImageHeader_set_fLabbyt(self, value)
2625 def get_fLenbyt(self):
2626 """get_fLenbyt(ImageHeader self) -> float"""
2627 return _IMP_em.ImageHeader_get_fLenbyt(self)
2630 def set_fLenbyt(self, value):
2631 """set_fLenbyt(ImageHeader self, float value)"""
2632 return _IMP_em.ImageHeader_set_fLenbyt(self, value)
2635 def get_fGeo_matrix(self, i, j):
2636 """get_fGeo_matrix(ImageHeader self, unsigned int i, unsigned int j) -> double"""
2637 return _IMP_em.ImageHeader_get_fGeo_matrix(self, i, j)
2640 def get_fFlag(self):
2641 """get_fFlag(ImageHeader self) -> float"""
2642 return _IMP_em.ImageHeader_get_fFlag(self)
2645 def set_fFlag(self, value):
2646 """set_fFlag(ImageHeader self, float value)"""
2647 return _IMP_em.ImageHeader_set_fFlag(self, value)
2650 def get_euler_angles(self):
2651 """get_euler_angles(ImageHeader self) -> Vector3D"""
2652 return _IMP_em.ImageHeader_get_euler_angles(self)
2655 def get_euler_angles1(self):
2656 """get_euler_angles1(ImageHeader self) -> Vector3D"""
2657 return _IMP_em.ImageHeader_get_euler_angles1(self)
2660 def get_euler_angles2(self):
2661 """get_euler_angles2(ImageHeader self) -> Vector3D"""
2662 return _IMP_em.ImageHeader_get_euler_angles2(self)
2665 def set_euler_angles(self, euler):
2666 """set_euler_angles(ImageHeader self, Vector3D euler)"""
2667 return _IMP_em.ImageHeader_set_euler_angles(self, euler)
2670 def set_euler_angles1(self, euler):
2671 """set_euler_angles1(ImageHeader self, Vector3D euler)"""
2672 return _IMP_em.ImageHeader_set_euler_angles1(self, euler)
2675 def set_euler_angles2(self, euler):
2676 """set_euler_angles2(ImageHeader self, Vector3D euler)"""
2677 return _IMP_em.ImageHeader_set_euler_angles2(self, euler)
2680 def is_normalized(self):
2681 """is_normalized(ImageHeader self) -> bool"""
2682 return _IMP_em.ImageHeader_is_normalized(self)
2686 """set_date(ImageHeader self)"""
2687 return _IMP_em.ImageHeader_set_date(self)
2691 """set_time(ImageHeader self)"""
2692 return _IMP_em.ImageHeader_set_time(self)
2695 def set_title(self, newName):
2696 """set_title(ImageHeader self, IMP::String newName)"""
2697 return _IMP_em.ImageHeader_set_title(self, newName)
2699 __swig_destroy__ = _IMP_em.delete_ImageHeader
2700 __del__ =
lambda self:
None
2701 ImageHeader_swigregister = _IMP_em.ImageHeader_swigregister
2702 ImageHeader_swigregister(ImageHeader)
2704 class SpiderMapReaderWriter(MapReaderWriter):
2705 """Proxy of C++ IMP::em::SpiderMapReaderWriter class"""
2706 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2707 filename_ = _swig_property(_IMP_em.SpiderMapReaderWriter_filename__get, _IMP_em.SpiderMapReaderWriter_filename__set)
2708 skip_type_check_ = _swig_property(_IMP_em.SpiderMapReaderWriter_skip_type_check__get, _IMP_em.SpiderMapReaderWriter_skip_type_check__set)
2709 force_reversed_ = _swig_property(_IMP_em.SpiderMapReaderWriter_force_reversed__get, _IMP_em.SpiderMapReaderWriter_force_reversed__set)
2710 skip_extra_checkings_ = _swig_property(_IMP_em.SpiderMapReaderWriter_skip_extra_checkings__get, _IMP_em.SpiderMapReaderWriter_skip_extra_checkings__set)
2712 def __init__(self, *args):
2714 __init__(IMP::em::SpiderMapReaderWriter self) -> SpiderMapReaderWriter
2715 __init__(IMP::em::SpiderMapReaderWriter self, IMP::String filename, bool skip_type_check, bool force_reversed, bool skip_extra_checkings) -> SpiderMapReaderWriter
2717 this = _IMP_em.new_SpiderMapReaderWriter(*args)
2719 self.this.append(this)
2724 """__str__(SpiderMapReaderWriter self) -> std::string"""
2725 return _IMP_em.SpiderMapReaderWriter___str__(self)
2729 """__repr__(SpiderMapReaderWriter self) -> std::string"""
2730 return _IMP_em.SpiderMapReaderWriter___repr__(self)
2735 return _object_cast_to_SpiderMapReaderWriter(o)
2737 SpiderMapReaderWriter_swigregister = _IMP_em.SpiderMapReaderWriter_swigregister
2738 SpiderMapReaderWriter_swigregister(SpiderMapReaderWriter)
2740 class FittingSolutions(object):
2741 """Proxy of C++ IMP::em::FittingSolutions class"""
2742 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2745 """__init__(IMP::em::FittingSolutions self) -> FittingSolutions"""
2746 this = _IMP_em.new_FittingSolutions()
2748 self.this.append(this)
2752 def get_number_of_solutions(self):
2753 """get_number_of_solutions(FittingSolutions self) -> int"""
2754 return _IMP_em.FittingSolutions_get_number_of_solutions(self)
2757 def get_transformation(self, i):
2758 """get_transformation(FittingSolutions self, unsigned int i) -> Transformation3D"""
2759 return _IMP_em.FittingSolutions_get_transformation(self, i)
2762 def get_score(self, i):
2763 """get_score(FittingSolutions self, unsigned int i) -> IMP::Float"""
2764 return _IMP_em.FittingSolutions_get_score(self, i)
2767 def set_score(self, i, score):
2768 """set_score(FittingSolutions self, unsigned int i, IMP::Float score)"""
2769 return _IMP_em.FittingSolutions_set_score(self, i, score)
2772 def add_solution(self, t, score):
2773 """add_solution(FittingSolutions self, Transformation3D t, IMP::Float score)"""
2774 return _IMP_em.FittingSolutions_add_solution(self, t, score)
2777 def sort(self, reverse=False):
2779 sort(FittingSolutions self, bool reverse=False)
2780 sort(FittingSolutions self)
2782 return _IMP_em.FittingSolutions_sort(self, reverse)
2786 """multiply(FittingSolutions self, Transformation3D t)"""
2787 return _IMP_em.FittingSolutions_multiply(self, t)
2790 def get_transformations(self):
2791 """get_transformations(FittingSolutions self) -> IMP::algebra::Transformation3Ds"""
2792 return _IMP_em.FittingSolutions_get_transformations(self)
2795 def show(self, *args):
2797 show(FittingSolutions self, _ostream out)
2798 show(FittingSolutions self)
2800 return _IMP_em.FittingSolutions_show(self, *args)
2804 """__str__(FittingSolutions self) -> std::string"""
2805 return _IMP_em.FittingSolutions___str__(self)
2809 """__repr__(FittingSolutions self) -> std::string"""
2810 return _IMP_em.FittingSolutions___repr__(self)
2812 __swig_destroy__ = _IMP_em.delete_FittingSolutions
2813 __del__ =
lambda self:
None
2814 FittingSolutions_swigregister = _IMP_em.FittingSolutions_swigregister
2815 FittingSolutions_swigregister(FittingSolutions)
2818 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):
2820 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
2821 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
2822 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
2823 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
2824 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
2825 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
2826 local_rigid_fitting_around_point(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, Vector3D anchor_centroid, IMP::OptimizerStates display_log) -> FittingSolutions
2828 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)
2830 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):
2832 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
2833 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
2834 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
2835 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
2836 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
2837 local_rigid_fitting(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5) -> FittingSolutions
2838 local_rigid_fitting(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, IMP::OptimizerStates display_log) -> FittingSolutions
2840 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)
2842 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):
2844 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
2845 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
2846 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
2847 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
2848 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
2849 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
2851 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)
2853 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):
2855 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
2856 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
2857 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
2858 local_rigid_fitting_grid_search(IMP::ParticlesTemp const & ps, FloatKey wei_key, DensityMap dmap, IMP::Int max_voxels_translation=2) -> FittingSolutions
2859 local_rigid_fitting_grid_search(IMP::ParticlesTemp const & ps, FloatKey wei_key, DensityMap dmap) -> FittingSolutions
2861 return _IMP_em.local_rigid_fitting_grid_search(ps, wei_key, dmap, max_voxels_translation, translation_step, max_angle_in_radians, number_of_rotations)
2865 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
2866 compute_fitting_scores(IMP::ParticlesTemp const & ps, DensityMap em_map, IMP::algebra::Transformation3Ds const & transformations, bool fast_version=False, bool local_score=False) -> FittingSolutions
2867 compute_fitting_scores(IMP::ParticlesTemp const & ps, DensityMap em_map, IMP::algebra::Transformation3Ds const & transformations, bool fast_version=False) -> FittingSolutions
2868 compute_fitting_scores(IMP::ParticlesTemp const & ps, DensityMap em_map, IMP::algebra::Transformation3Ds const & transformations) -> FittingSolutions
2869 compute_fitting_scores(DensityMap em_map, RigidBody rb, Refiner refiner, IMP::algebra::Transformation3Ds const & transformations) -> FittingSolutions
2871 return _IMP_em.compute_fitting_scores(*args)
2875 compute_fitting_score(IMP::ParticlesTemp const & ps, DensityMap em_map, FloatKey wei_key) -> IMP::Float
2876 compute_fitting_score(IMP::ParticlesTemp const & ps, DensityMap em_map) -> IMP::Float
2878 return _IMP_em.compute_fitting_score(*args)
2882 get_number_of_particles_outside_of_the_density(DensityMap dmap, IMP::Particles const & ps, Transformation3D t, float thr=0.0) -> long
2883 get_number_of_particles_outside_of_the_density(DensityMap dmap, IMP::Particles const & ps, Transformation3D t) -> long
2884 get_number_of_particles_outside_of_the_density(DensityMap dmap, IMP::Particles const & ps) -> long
2886 return _IMP_em.get_number_of_particles_outside_of_the_density(*args)
2890 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
2891 get_numbers_of_particles_outside_of_the_density(DensityMap dmap, IMP::Particles const & ps, IMP::algebra::Transformation3Ds const & transformations) -> IMP::Ints
2893 return _IMP_em.get_numbers_of_particles_outside_of_the_density(dmap, ps, transformations, thr)
2897 get_percentage_of_voxels_covered_by_particles(DensityMap dmap, IMP::Particles const & ps, float smoothing_radius=3., Transformation3D t, float thr=0.0) -> double
2898 get_percentage_of_voxels_covered_by_particles(DensityMap dmap, IMP::Particles const & ps, float smoothing_radius=3., Transformation3D t) -> double
2899 get_percentage_of_voxels_covered_by_particles(DensityMap dmap, IMP::Particles const & ps, float smoothing_radius=3.) -> double
2900 get_percentage_of_voxels_covered_by_particles(DensityMap dmap, IMP::Particles const & ps) -> double
2902 return _IMP_em.get_percentage_of_voxels_covered_by_particles(*args)
2904 """Proxy of C++ IMP::em::HighDensityEmbedding class"""
2905 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2907 def __init__(self, dm, threshold):
2908 """__init__(IMP::em::HighDensityEmbedding self, DensityMap dm, double threshold) -> HighDensityEmbedding"""
2909 this = _IMP_em.new_HighDensityEmbedding(dm, threshold)
2911 self.this.append(this)
2915 def get_version_info(self):
2916 """get_version_info(HighDensityEmbedding self) -> VersionInfo"""
2917 return _IMP_em.HighDensityEmbedding_get_version_info(self)
2921 """__str__(HighDensityEmbedding self) -> std::string"""
2922 return _IMP_em.HighDensityEmbedding___str__(self)
2926 """__repr__(HighDensityEmbedding self) -> std::string"""
2927 return _IMP_em.HighDensityEmbedding___repr__(self)
2932 return _object_cast_to_HighDensityEmbedding(o)
2934 HighDensityEmbedding_swigregister = _IMP_em.HighDensityEmbedding_swigregister
2935 HighDensityEmbedding_swigregister(HighDensityEmbedding)
2939 """mask_and_norm(DensityMap dmap, DensityMap mask) -> DensityMap"""
2940 return _IMP_em.mask_and_norm(dmap, mask)
2943 """get_volume_at_threshold(DensityMap m, IMP::Float threshold) -> IMP::Float"""
2944 return _IMP_em.get_volume_at_threshold(m, threshold)
2948 get_molecular_mass_at_threshold(DensityMap m, IMP::Float threshold, IMP::atom::ProteinDensityReference ref) -> IMP::Float
2949 get_molecular_mass_at_threshold(DensityMap m, IMP::Float threshold) -> IMP::Float
2951 return _IMP_em.get_molecular_mass_at_threshold(*args)
2954 """get_threshold_for_approximate_volume(DensityMap m, IMP::Float desired_volume) -> IMP::Float"""
2955 return _IMP_em.get_threshold_for_approximate_volume(m, desired_volume)
2959 get_threshold_for_approximate_mass(DensityMap m, IMP::Float desired_mass, IMP::atom::ProteinDensityReference ref) -> IMP::Float
2960 get_threshold_for_approximate_mass(DensityMap m, IMP::Float desired_mass) -> IMP::Float
2962 return _IMP_em.get_threshold_for_approximate_mass(*args)
2964 """Proxy of C++ IMP::em::EnvelopePenetrationRestraint class"""
2965 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2967 def __init__(self, ps, em_map, threshold):
2968 """__init__(IMP::em::EnvelopePenetrationRestraint self, IMP::Particles ps, DensityMap em_map, IMP::Float threshold) -> EnvelopePenetrationRestraint"""
2969 this = _IMP_em.new_EnvelopePenetrationRestraint(ps, em_map, threshold)
2971 self.this.append(this)
2975 def do_get_inputs(self):
2976 """do_get_inputs(EnvelopePenetrationRestraint self) -> IMP::ModelObjectsTemp"""
2977 return _IMP_em.EnvelopePenetrationRestraint_do_get_inputs(self)
2980 def get_version_info(self):
2981 """get_version_info(EnvelopePenetrationRestraint self) -> VersionInfo"""
2982 return _IMP_em.EnvelopePenetrationRestraint_get_version_info(self)
2986 """__str__(EnvelopePenetrationRestraint self) -> std::string"""
2987 return _IMP_em.EnvelopePenetrationRestraint___str__(self)
2991 """__repr__(EnvelopePenetrationRestraint self) -> std::string"""
2992 return _IMP_em.EnvelopePenetrationRestraint___repr__(self)
2997 return _object_cast_to_EnvelopePenetrationRestraint(o)
2999 EnvelopePenetrationRestraint_swigregister = _IMP_em.EnvelopePenetrationRestraint_swigregister
3000 EnvelopePenetrationRestraint_swigregister(EnvelopePenetrationRestraint)
3003 """Proxy of C++ IMP::em::PCAFitRestraint class"""
3004 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3006 def __init__(self, *args):
3008 __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
3009 __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
3011 this = _IMP_em.new_PCAFitRestraint(*args)
3013 self.this.append(this)
3017 def do_get_inputs(self):
3018 """do_get_inputs(PCAFitRestraint self) -> IMP::ModelObjectsTemp"""
3019 return _IMP_em.PCAFitRestraint_do_get_inputs(self)
3022 def get_version_info(self):
3023 """get_version_info(PCAFitRestraint self) -> VersionInfo"""
3024 return _IMP_em.PCAFitRestraint_get_version_info(self)
3028 """__str__(PCAFitRestraint self) -> std::string"""
3029 return _IMP_em.PCAFitRestraint___str__(self)
3033 """__repr__(PCAFitRestraint self) -> std::string"""
3034 return _IMP_em.PCAFitRestraint___repr__(self)
3039 return _object_cast_to_PCAFitRestraint(o)
3041 PCAFitRestraint_swigregister = _IMP_em.PCAFitRestraint_swigregister
3042 PCAFitRestraint_swigregister(PCAFitRestraint)
3045 """Proxy of C++ IMP::em::EnvelopeFitRestraint class"""
3046 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3048 def __init__(self, particles, em_map, density_threshold, penetration_threshold):
3049 """__init__(IMP::em::EnvelopeFitRestraint self, IMP::Particles particles, DensityMap em_map, double density_threshold, double penetration_threshold) -> EnvelopeFitRestraint"""
3050 this = _IMP_em.new_EnvelopeFitRestraint(particles, em_map, density_threshold, penetration_threshold)
3052 self.this.append(this)
3056 def get_transformation(self):
3057 """get_transformation(EnvelopeFitRestraint self) -> Transformation3D"""
3058 return _IMP_em.EnvelopeFitRestraint_get_transformation(self)
3061 def apply_transformation(self):
3062 """apply_transformation(EnvelopeFitRestraint self)"""
3063 return _IMP_em.EnvelopeFitRestraint_apply_transformation(self)
3066 def do_get_inputs(self):
3067 """do_get_inputs(EnvelopeFitRestraint self) -> IMP::ModelObjectsTemp"""
3068 return _IMP_em.EnvelopeFitRestraint_do_get_inputs(self)
3071 def get_version_info(self):
3072 """get_version_info(EnvelopeFitRestraint self) -> VersionInfo"""
3073 return _IMP_em.EnvelopeFitRestraint_get_version_info(self)
3077 """__str__(EnvelopeFitRestraint self) -> std::string"""
3078 return _IMP_em.EnvelopeFitRestraint___str__(self)
3082 """__repr__(EnvelopeFitRestraint self) -> std::string"""
3083 return _IMP_em.EnvelopeFitRestraint___repr__(self)
3088 return _object_cast_to_EnvelopeFitRestraint(o)
3090 EnvelopeFitRestraint_swigregister = _IMP_em.EnvelopeFitRestraint_swigregister
3091 EnvelopeFitRestraint_swigregister(EnvelopeFitRestraint)
3093 class MapDistanceTransform(DensityMap):
3094 """Proxy of C++ IMP::em::MapDistanceTransform class"""
3095 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3097 def __init__(self, map, density_threshold, max_distance):
3098 """__init__(IMP::em::MapDistanceTransform self, DensityMap map, float density_threshold, float max_distance) -> MapDistanceTransform"""
3099 this = _IMP_em.new_MapDistanceTransform(map, density_threshold, max_distance)
3101 self.this.append(this)
3105 def get_distance_from_envelope(self, v):
3106 """get_distance_from_envelope(MapDistanceTransform self, Vector3D v) -> float"""
3107 return _IMP_em.MapDistanceTransform_get_distance_from_envelope(self, v)
3111 """__str__(MapDistanceTransform self) -> std::string"""
3112 return _IMP_em.MapDistanceTransform___str__(self)
3116 """__repr__(MapDistanceTransform self) -> std::string"""
3117 return _IMP_em.MapDistanceTransform___repr__(self)
3122 return _object_cast_to_MapDistanceTransform(o)
3124 __swig_destroy__ = _IMP_em.delete_MapDistanceTransform
3125 __del__ =
lambda self:
None
3126 MapDistanceTransform_swigregister = _IMP_em.MapDistanceTransform_swigregister
3127 MapDistanceTransform_swigregister(MapDistanceTransform)
3130 """Proxy of C++ IMP::em::EnvelopeScore class"""
3131 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3133 def __init__(self, mdt):
3134 """__init__(IMP::em::EnvelopeScore self, MapDistanceTransform mdt) -> EnvelopeScore"""
3135 this = _IMP_em.new_EnvelopeScore(mdt)
3137 self.this.append(this)
3141 def is_penetrating(self, *args):
3143 is_penetrating(EnvelopeScore self, IMP::algebra::Vector3Ds const & points, float penetration_thr) -> bool
3144 is_penetrating(EnvelopeScore self, IMP::algebra::Vector3Ds const & points, Transformation3D trans, float penetration_thr) -> bool
3146 return _IMP_em.EnvelopeScore_is_penetrating(self, *args)
3149 def score(self, *args):
3151 score(EnvelopeScore self, IMP::algebra::Vector3Ds const & points) -> double
3152 score(EnvelopeScore self, IMP::algebra::Vector3Ds const & points, Transformation3D trans) -> double
3154 return _IMP_em.EnvelopeScore_score(self, *args)
3156 __swig_destroy__ = _IMP_em.delete_EnvelopeScore
3157 __del__ =
lambda self:
None
3160 """__str__(EnvelopeScore self) -> std::string"""
3161 return _IMP_em.EnvelopeScore___str__(self)
3165 """__repr__(EnvelopeScore self) -> std::string"""
3166 return _IMP_em.EnvelopeScore___repr__(self)
3171 return _object_cast_to_EnvelopeScore(o)
3173 EnvelopeScore_swigregister = _IMP_em.EnvelopeScore_swigregister
3174 EnvelopeScore_swigregister(EnvelopeScore)
3180 """Write out principal components to a file in Chimera Marker format"""
3181 eigen_values = pca.get_principal_values()
3182 eigen_vecs = pca.get_principal_components()
3183 centroid = pca.get_centroid()
3185 fh.write(
"<marker_set>\n")
3186 fh.write(
"<!-- PCA with eigen values: (%g,%g,%g) and "
3187 "centroid (%g,%g,%g) -->\n"
3188 % (math.sqrt(eigen_values[0]),
3189 math.sqrt(eigen_values[1]),
3190 math.sqrt(eigen_values[2]),
3191 centroid[0], centroid[1], centroid[2]))
3196 val = math.sqrt(eigen_values[i])
3197 v1 = centroid - val * eigen_vecs[i]
3198 v2 = centroid + val * eigen_vecs[i]
3199 for markerid, v
in ((i*2+1, v1), (i*2+2, v2)):
3200 fh.write(
"<marker id=\"%d\" x=\"%g\" y=\"%g\" z=\"%g\" "
3202 % (markerid, v[0], v[1], v[2], radius))
3204 for i
in range(1, 7, 2):
3205 fh.write(
"<link id1= \"%d\" id2=\"%d\" radius=\"%g\"/>\n"
3207 fh.write(
"</marker_set>\n")
3211 """get_module_version() -> std::string const"""
3212 return _IMP_em.get_module_version()
3215 """get_example_path(std::string fname) -> std::string"""
3216 return _IMP_em.get_example_path(fname)
3219 """get_data_path(std::string fname) -> std::string"""
3220 return _IMP_em.get_data_path(fname)
3222 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.