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)
222 _IMP_em.IMP_DEBUG_swigconstant(_IMP_em)
223 IMP_DEBUG = _IMP_em.IMP_DEBUG
225 _IMP_em.IMP_RELEASE_swigconstant(_IMP_em)
226 IMP_RELEASE = _IMP_em.IMP_RELEASE
228 _IMP_em.IMP_SILENT_swigconstant(_IMP_em)
229 IMP_SILENT = _IMP_em.IMP_SILENT
231 _IMP_em.IMP_PROGRESS_swigconstant(_IMP_em)
232 IMP_PROGRESS = _IMP_em.IMP_PROGRESS
234 _IMP_em.IMP_TERSE_swigconstant(_IMP_em)
235 IMP_TERSE = _IMP_em.IMP_TERSE
237 _IMP_em.IMP_VERBOSE_swigconstant(_IMP_em)
238 IMP_VERBOSE = _IMP_em.IMP_VERBOSE
240 _IMP_em.IMP_MEMORY_swigconstant(_IMP_em)
241 IMP_MEMORY = _IMP_em.IMP_MEMORY
243 _IMP_em.IMP_NONE_swigconstant(_IMP_em)
244 IMP_NONE = _IMP_em.IMP_NONE
246 _IMP_em.IMP_USAGE_swigconstant(_IMP_em)
247 IMP_USAGE = _IMP_em.IMP_USAGE
249 _IMP_em.IMP_INTERNAL_swigconstant(_IMP_em)
250 IMP_INTERNAL = _IMP_em.IMP_INTERNAL
252 _IMP_em.IMP_KERNEL_HAS_LOG4CXX_swigconstant(_IMP_em)
253 IMP_KERNEL_HAS_LOG4CXX = _IMP_em.IMP_KERNEL_HAS_LOG4CXX
255 _IMP_em.IMP_COMPILER_HAS_AUTO_swigconstant(_IMP_em)
256 IMP_COMPILER_HAS_AUTO = _IMP_em.IMP_COMPILER_HAS_AUTO
258 _IMP_em.IMP_COMPILER_HAS_DEBUG_VECTOR_swigconstant(_IMP_em)
259 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_em.IMP_COMPILER_HAS_DEBUG_VECTOR
261 _IMP_em.IMP_KERNEL_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
262 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_em.IMP_KERNEL_HAS_BOOST_RANDOM
264 _IMP_em.IMP_KERNEL_HAS_GPERFTOOLS_swigconstant(_IMP_em)
265 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_em.IMP_KERNEL_HAS_GPERFTOOLS
267 _IMP_em.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER_swigconstant(_IMP_em)
268 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_em.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
270 _IMP_em.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER_swigconstant(_IMP_em)
271 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_em.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
273 _IMP_em.IMPKERNEL_SHOW_WARNINGS_swigconstant(_IMP_em)
274 IMPKERNEL_SHOW_WARNINGS = _IMP_em.IMPKERNEL_SHOW_WARNINGS
276 class _DirectorObjects(object):
277 """@internal Simple class to keep references to director objects
278 to prevent premature deletion."""
281 def register(self, obj):
282 """Take a reference to a director object; will only work for
283 refcounted C++ classes"""
284 if hasattr(obj,
'get_ref_count'):
285 self._objects.append(obj)
287 """Only drop our reference and allow cleanup by Python if no other
288 Python references exist (we hold 3 references: one in self._objects,
289 one in x, and one in the argument list for getrefcount) *and* no
290 other C++ references exist (the Python object always holds one)"""
291 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
292 or x.get_ref_count() > 1]
296 def get_object_count(self):
297 """Get number of director objects (useful for testing only)"""
298 return len(self._objects)
299 _director_objects = _DirectorObjects()
301 class _ostream(object):
302 """Proxy of C++ std::ostream class"""
303 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
305 def __init__(self, *args, **kwargs):
306 raise AttributeError(
"No constructor defined")
307 __repr__ = _swig_repr
309 def write(self, osa_buf):
310 """write(_ostream self, char const * osa_buf)"""
311 return _IMP_em._ostream_write(self, osa_buf)
313 _ostream_swigregister = _IMP_em._ostream_swigregister
314 _ostream_swigregister(_ostream)
317 _IMP_em.IMP_COMPILER_HAS_OVERRIDE_swigconstant(_IMP_em)
318 IMP_COMPILER_HAS_OVERRIDE = _IMP_em.IMP_COMPILER_HAS_OVERRIDE
320 _IMP_em.IMP_COMPILER_HAS_FINAL_swigconstant(_IMP_em)
321 IMP_COMPILER_HAS_FINAL = _IMP_em.IMP_COMPILER_HAS_FINAL
323 _IMP_em.IMP_HAS_NOEXCEPT_swigconstant(_IMP_em)
324 IMP_HAS_NOEXCEPT = _IMP_em.IMP_HAS_NOEXCEPT
327 _IMP_em.IMP_CGAL_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
328 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_CGAL_HAS_BOOST_FILESYSTEM
330 _IMP_em.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
331 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
333 _IMP_em.IMP_CGAL_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
334 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_em.IMP_CGAL_HAS_BOOST_RANDOM
336 _IMP_em.IMP_CGAL_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
337 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_em.IMP_CGAL_HAS_BOOST_SYSTEM
339 _IMP_em.IMPCGAL_SHOW_WARNINGS_swigconstant(_IMP_em)
340 IMPCGAL_SHOW_WARNINGS = _IMP_em.IMPCGAL_SHOW_WARNINGS
343 _IMP_em.IMP_ALGEBRA_HAS_IMP_CGAL_swigconstant(_IMP_em)
344 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_em.IMP_ALGEBRA_HAS_IMP_CGAL
346 _IMP_em.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
347 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
349 _IMP_em.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
350 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
352 _IMP_em.IMP_ALGEBRA_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
353 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_em.IMP_ALGEBRA_HAS_BOOST_RANDOM
355 _IMP_em.IMP_ALGEBRA_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
356 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_em.IMP_ALGEBRA_HAS_BOOST_SYSTEM
358 _IMP_em.IMP_ALGEBRA_HAS_CGAL_swigconstant(_IMP_em)
359 IMP_ALGEBRA_HAS_CGAL = _IMP_em.IMP_ALGEBRA_HAS_CGAL
361 _IMP_em.IMP_ALGEBRA_HAS_ANN_swigconstant(_IMP_em)
362 IMP_ALGEBRA_HAS_ANN = _IMP_em.IMP_ALGEBRA_HAS_ANN
364 _IMP_em.IMPALGEBRA_SHOW_WARNINGS_swigconstant(_IMP_em)
365 IMPALGEBRA_SHOW_WARNINGS = _IMP_em.IMPALGEBRA_SHOW_WARNINGS
368 _IMP_em.IMP_DISPLAY_HAS_IMP_CGAL_swigconstant(_IMP_em)
369 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_em.IMP_DISPLAY_HAS_IMP_CGAL
371 _IMP_em.IMP_DISPLAY_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
372 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
374 _IMP_em.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
375 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
377 _IMP_em.IMP_DISPLAY_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
378 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_em.IMP_DISPLAY_HAS_BOOST_RANDOM
380 _IMP_em.IMP_DISPLAY_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
381 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_em.IMP_DISPLAY_HAS_BOOST_SYSTEM
383 _IMP_em.IMP_DISPLAY_HAS_CGAL_swigconstant(_IMP_em)
384 IMP_DISPLAY_HAS_CGAL = _IMP_em.IMP_DISPLAY_HAS_CGAL
386 _IMP_em.IMPDISPLAY_SHOW_WARNINGS_swigconstant(_IMP_em)
387 IMPDISPLAY_SHOW_WARNINGS = _IMP_em.IMPDISPLAY_SHOW_WARNINGS
390 _IMP_em.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL_swigconstant(_IMP_em)
391 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_em.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
393 _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
394 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
396 _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
397 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
399 _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
400 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
402 _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
403 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
405 _IMP_em.IMP_SCORE_FUNCTOR_HAS_CGAL_swigconstant(_IMP_em)
406 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_em.IMP_SCORE_FUNCTOR_HAS_CGAL
408 _IMP_em.IMP_SCORE_FUNCTOR_HAS_HDF5_swigconstant(_IMP_em)
409 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_em.IMP_SCORE_FUNCTOR_HAS_HDF5
411 _IMP_em.IMPSCOREFUNCTOR_SHOW_WARNINGS_swigconstant(_IMP_em)
412 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_em.IMPSCOREFUNCTOR_SHOW_WARNINGS
415 _IMP_em.IMP_STATISTICS_HAS_IMP_CGAL_swigconstant(_IMP_em)
416 IMP_STATISTICS_HAS_IMP_CGAL = _IMP_em.IMP_STATISTICS_HAS_IMP_CGAL
418 _IMP_em.IMP_STATISTICS_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
419 IMP_STATISTICS_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_STATISTICS_HAS_BOOST_FILESYSTEM
421 _IMP_em.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
422 IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS
424 _IMP_em.IMP_STATISTICS_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
425 IMP_STATISTICS_HAS_BOOST_RANDOM = _IMP_em.IMP_STATISTICS_HAS_BOOST_RANDOM
427 _IMP_em.IMP_STATISTICS_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
428 IMP_STATISTICS_HAS_BOOST_SYSTEM = _IMP_em.IMP_STATISTICS_HAS_BOOST_SYSTEM
430 _IMP_em.IMP_STATISTICS_HAS_CGAL_swigconstant(_IMP_em)
431 IMP_STATISTICS_HAS_CGAL = _IMP_em.IMP_STATISTICS_HAS_CGAL
433 _IMP_em.IMPSTATISTICS_SHOW_WARNINGS_swigconstant(_IMP_em)
434 IMPSTATISTICS_SHOW_WARNINGS = _IMP_em.IMPSTATISTICS_SHOW_WARNINGS
437 _IMP_em.IMP_CORE_HAS_IMP_CGAL_swigconstant(_IMP_em)
438 IMP_CORE_HAS_IMP_CGAL = _IMP_em.IMP_CORE_HAS_IMP_CGAL
440 _IMP_em.IMP_CORE_HAS_IMP_KERNEL_swigconstant(_IMP_em)
441 IMP_CORE_HAS_IMP_KERNEL = _IMP_em.IMP_CORE_HAS_IMP_KERNEL
443 _IMP_em.IMP_CORE_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
444 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_CORE_HAS_BOOST_FILESYSTEM
446 _IMP_em.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
447 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
449 _IMP_em.IMP_CORE_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
450 IMP_CORE_HAS_BOOST_RANDOM = _IMP_em.IMP_CORE_HAS_BOOST_RANDOM
452 _IMP_em.IMP_CORE_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
453 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_em.IMP_CORE_HAS_BOOST_SYSTEM
455 _IMP_em.IMP_CORE_HAS_CGAL_swigconstant(_IMP_em)
456 IMP_CORE_HAS_CGAL = _IMP_em.IMP_CORE_HAS_CGAL
458 _IMP_em.IMP_CORE_HAS_HDF5_swigconstant(_IMP_em)
459 IMP_CORE_HAS_HDF5 = _IMP_em.IMP_CORE_HAS_HDF5
461 _IMP_em.IMPCORE_SHOW_WARNINGS_swigconstant(_IMP_em)
462 IMPCORE_SHOW_WARNINGS = _IMP_em.IMPCORE_SHOW_WARNINGS
465 _IMP_em.IMP_CONTAINER_HAS_IMP_ALGEBRA_swigconstant(_IMP_em)
466 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_em.IMP_CONTAINER_HAS_IMP_ALGEBRA
468 _IMP_em.IMP_CONTAINER_HAS_IMP_CGAL_swigconstant(_IMP_em)
469 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_em.IMP_CONTAINER_HAS_IMP_CGAL
471 _IMP_em.IMP_CONTAINER_HAS_IMP_DISPLAY_swigconstant(_IMP_em)
472 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_em.IMP_CONTAINER_HAS_IMP_DISPLAY
474 _IMP_em.IMP_CONTAINER_HAS_IMP_KERNEL_swigconstant(_IMP_em)
475 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_em.IMP_CONTAINER_HAS_IMP_KERNEL
477 _IMP_em.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_em)
478 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_em.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
480 _IMP_em.IMP_CONTAINER_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
481 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
483 _IMP_em.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
484 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
486 _IMP_em.IMP_CONTAINER_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
487 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_em.IMP_CONTAINER_HAS_BOOST_RANDOM
489 _IMP_em.IMP_CONTAINER_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
490 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_em.IMP_CONTAINER_HAS_BOOST_SYSTEM
492 _IMP_em.IMP_CONTAINER_HAS_CGAL_swigconstant(_IMP_em)
493 IMP_CONTAINER_HAS_CGAL = _IMP_em.IMP_CONTAINER_HAS_CGAL
495 _IMP_em.IMP_CONTAINER_HAS_HDF5_swigconstant(_IMP_em)
496 IMP_CONTAINER_HAS_HDF5 = _IMP_em.IMP_CONTAINER_HAS_HDF5
498 _IMP_em.IMPCONTAINER_SHOW_WARNINGS_swigconstant(_IMP_em)
499 IMPCONTAINER_SHOW_WARNINGS = _IMP_em.IMPCONTAINER_SHOW_WARNINGS
502 _IMP_em.IMP_ATOM_HAS_IMP_CGAL_swigconstant(_IMP_em)
503 IMP_ATOM_HAS_IMP_CGAL = _IMP_em.IMP_ATOM_HAS_IMP_CGAL
505 _IMP_em.IMP_ATOM_HAS_IMP_KERNEL_swigconstant(_IMP_em)
506 IMP_ATOM_HAS_IMP_KERNEL = _IMP_em.IMP_ATOM_HAS_IMP_KERNEL
508 _IMP_em.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_em)
509 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_em.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
511 _IMP_em.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
512 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
514 _IMP_em.IMP_ATOM_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
515 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_em.IMP_ATOM_HAS_BOOST_RANDOM
517 _IMP_em.IMP_ATOM_HAS_BOOST_REGEX_swigconstant(_IMP_em)
518 IMP_ATOM_HAS_BOOST_REGEX = _IMP_em.IMP_ATOM_HAS_BOOST_REGEX
520 _IMP_em.IMP_ATOM_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
521 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_em.IMP_ATOM_HAS_BOOST_SYSTEM
523 _IMP_em.IMP_ATOM_HAS_CGAL_swigconstant(_IMP_em)
524 IMP_ATOM_HAS_CGAL = _IMP_em.IMP_ATOM_HAS_CGAL
526 _IMP_em.IMP_ATOM_HAS_HDF5_swigconstant(_IMP_em)
527 IMP_ATOM_HAS_HDF5 = _IMP_em.IMP_ATOM_HAS_HDF5
529 _IMP_em.IMPATOM_SHOW_WARNINGS_swigconstant(_IMP_em)
530 IMPATOM_SHOW_WARNINGS = _IMP_em.IMPATOM_SHOW_WARNINGS
532 _IMP_em.IMP_ATOM_TYPE_INDEX_swigconstant(_IMP_em)
533 IMP_ATOM_TYPE_INDEX = _IMP_em.IMP_ATOM_TYPE_INDEX
535 _IMP_em.IMP_RESIDUE_TYPE_INDEX_swigconstant(_IMP_em)
536 IMP_RESIDUE_TYPE_INDEX = _IMP_em.IMP_RESIDUE_TYPE_INDEX
538 _IMP_em.IMP_HIERARCHY_TYPE_INDEX_swigconstant(_IMP_em)
539 IMP_HIERARCHY_TYPE_INDEX = _IMP_em.IMP_HIERARCHY_TYPE_INDEX
542 _IMP_em.IMP_EM_HAS_IMP_CGAL_swigconstant(_IMP_em)
543 IMP_EM_HAS_IMP_CGAL = _IMP_em.IMP_EM_HAS_IMP_CGAL
545 _IMP_em.IMP_EM_HAS_IMP_CONTAINER_swigconstant(_IMP_em)
546 IMP_EM_HAS_IMP_CONTAINER = _IMP_em.IMP_EM_HAS_IMP_CONTAINER
548 _IMP_em.IMP_EM_HAS_IMP_DISPLAY_swigconstant(_IMP_em)
549 IMP_EM_HAS_IMP_DISPLAY = _IMP_em.IMP_EM_HAS_IMP_DISPLAY
551 _IMP_em.IMP_EM_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_em)
552 IMP_EM_HAS_IMP_SCORE_FUNCTOR = _IMP_em.IMP_EM_HAS_IMP_SCORE_FUNCTOR
554 _IMP_em.IMP_EM_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
555 IMP_EM_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_EM_HAS_BOOST_FILESYSTEM
557 _IMP_em.IMP_EM_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
558 IMP_EM_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_EM_HAS_BOOST_PROGRAMOPTIONS
560 _IMP_em.IMP_EM_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
561 IMP_EM_HAS_BOOST_RANDOM = _IMP_em.IMP_EM_HAS_BOOST_RANDOM
563 _IMP_em.IMP_EM_HAS_BOOST_REGEX_swigconstant(_IMP_em)
564 IMP_EM_HAS_BOOST_REGEX = _IMP_em.IMP_EM_HAS_BOOST_REGEX
566 _IMP_em.IMP_EM_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
567 IMP_EM_HAS_BOOST_SYSTEM = _IMP_em.IMP_EM_HAS_BOOST_SYSTEM
569 _IMP_em.IMP_EM_HAS_CGAL_swigconstant(_IMP_em)
570 IMP_EM_HAS_CGAL = _IMP_em.IMP_EM_HAS_CGAL
572 _IMP_em.IMP_EM_HAS_HDF5_swigconstant(_IMP_em)
573 IMP_EM_HAS_HDF5 = _IMP_em.IMP_EM_HAS_HDF5
575 _IMP_em.IMPEM_SHOW_WARNINGS_swigconstant(_IMP_em)
576 IMPEM_SHOW_WARNINGS = _IMP_em.IMPEM_SHOW_WARNINGS
577 _object_types.append(
"DensityMap")
580 def _object_cast_to_DensityMap(o):
581 """_object_cast_to_DensityMap(Object o) -> DensityMap"""
582 return _IMP_em._object_cast_to_DensityMap(o)
583 _object_types.append(
"SampledDensityMap")
586 def _object_cast_to_SampledDensityMap(o):
587 """_object_cast_to_SampledDensityMap(Object o) -> SampledDensityMap"""
588 return _IMP_em._object_cast_to_SampledDensityMap(o)
589 _object_types.append(
"SurfaceShellDensityMap")
592 def _object_cast_to_SurfaceShellDensityMap(o):
593 """_object_cast_to_SurfaceShellDensityMap(Object o) -> SurfaceShellDensityMap"""
594 return _IMP_em._object_cast_to_SurfaceShellDensityMap(o)
595 _object_types.append(
"FitRestraint")
598 def _object_cast_to_FitRestraint(o):
599 """_object_cast_to_FitRestraint(Object o) -> FitRestraint"""
600 return _IMP_em._object_cast_to_FitRestraint(o)
601 _object_types.append(
"PCAFitRestraint")
604 def _object_cast_to_PCAFitRestraint(o):
605 """_object_cast_to_PCAFitRestraint(Object o) -> PCAFitRestraint"""
606 return _IMP_em._object_cast_to_PCAFitRestraint(o)
607 _object_types.append(
"EnvelopePenetrationRestraint")
610 def _object_cast_to_EnvelopePenetrationRestraint(o):
611 """_object_cast_to_EnvelopePenetrationRestraint(Object o) -> EnvelopePenetrationRestraint"""
612 return _IMP_em._object_cast_to_EnvelopePenetrationRestraint(o)
613 _object_types.append(
"EnvelopeFitRestraint")
616 def _object_cast_to_EnvelopeFitRestraint(o):
617 """_object_cast_to_EnvelopeFitRestraint(Object o) -> EnvelopeFitRestraint"""
618 return _IMP_em._object_cast_to_EnvelopeFitRestraint(o)
619 RadiusDependentKernelParametersList=list
620 _plural_types.append(
"RadiusDependentKernelParametersList")
621 _value_types.append(
"RadiusDependentKernelParameters")
623 KernelParametersList=list
624 _plural_types.append(
"KernelParametersList")
625 _value_types.append(
"KernelParameters")
627 _object_types.append(
"HighDensityEmbedding")
630 def _object_cast_to_HighDensityEmbedding(o):
631 """_object_cast_to_HighDensityEmbedding(Object o) -> HighDensityEmbedding"""
632 return _IMP_em._object_cast_to_HighDensityEmbedding(o)
633 _object_types.append(
"MapReaderWriter")
636 def _object_cast_to_MapReaderWriter(o):
637 """_object_cast_to_MapReaderWriter(Object o) -> MapReaderWriter"""
638 return _IMP_em._object_cast_to_MapReaderWriter(o)
639 _object_types.append(
"MRCReaderWriter")
642 def _object_cast_to_MRCReaderWriter(o):
643 """_object_cast_to_MRCReaderWriter(Object o) -> MRCReaderWriter"""
644 return _IMP_em._object_cast_to_MRCReaderWriter(o)
645 _object_types.append(
"SpiderMapReaderWriter")
648 def _object_cast_to_SpiderMapReaderWriter(o):
649 """_object_cast_to_SpiderMapReaderWriter(Object o) -> SpiderMapReaderWriter"""
650 return _IMP_em._object_cast_to_SpiderMapReaderWriter(o)
651 _object_types.append(
"EMReaderWriter")
654 def _object_cast_to_EMReaderWriter(o):
655 """_object_cast_to_EMReaderWriter(Object o) -> EMReaderWriter"""
656 return _IMP_em._object_cast_to_EMReaderWriter(o)
657 _object_types.append(
"XplorReaderWriter")
660 def _object_cast_to_XplorReaderWriter(o):
661 """_object_cast_to_XplorReaderWriter(Object o) -> XplorReaderWriter"""
662 return _IMP_em._object_cast_to_XplorReaderWriter(o)
663 _object_types.append(
"CoarseCC")
666 def _object_cast_to_CoarseCC(o):
667 """_object_cast_to_CoarseCC(Object o) -> CoarseCC"""
668 return _IMP_em._object_cast_to_CoarseCC(o)
669 _object_types.append(
"CoarseCCatIntervals")
672 def _object_cast_to_CoarseCCatIntervals(o):
673 """_object_cast_to_CoarseCCatIntervals(Object o) -> CoarseCCatIntervals"""
674 return _IMP_em._object_cast_to_CoarseCCatIntervals(o)
675 FittingSolutionsList=list
676 _plural_types.append(
"FittingSolutionsList")
677 _value_types.append(
"FittingSolutions")
680 """Proxy of C++ IMP::em::MapReaderWriter class"""
681 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
684 """__init__(IMP::em::MapReaderWriter self) -> MapReaderWriter"""
685 this = _IMP_em.new_MapReaderWriter()
687 self.this.append(this)
691 def get_version_info(self):
692 """get_version_info(MapReaderWriter self) -> VersionInfo"""
693 return _IMP_em.MapReaderWriter_get_version_info(self)
697 """__str__(MapReaderWriter self) -> std::string"""
698 return _IMP_em.MapReaderWriter___str__(self)
702 """__repr__(MapReaderWriter self) -> std::string"""
703 return _IMP_em.MapReaderWriter___repr__(self)
706 return _object_cast_to_MapReaderWriter(o)
707 get_from = staticmethod(get_from)
709 MapReaderWriter_swigregister = _IMP_em.MapReaderWriter_swigregister
710 MapReaderWriter_swigregister(MapReaderWriter)
714 class DensityHeader(object):
715 """Proxy of C++ IMP::em::DensityHeader class"""
716 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
717 __repr__ = _swig_repr
720 """__init__(IMP::em::DensityHeader self) -> DensityHeader"""
721 this = _IMP_em.new_DensityHeader()
723 self.this.append(this)
727 def get_top(self, ind):
728 """get_top(DensityHeader self, int ind) -> IMP::em::emreal"""
729 return _IMP_em.DensityHeader_get_top(self, ind)
732 def compute_xyz_top(self, force=False):
734 compute_xyz_top(DensityHeader self, bool force=False)
735 compute_xyz_top(DensityHeader self)
737 return _IMP_em.DensityHeader_compute_xyz_top(self, force)
740 def update_map_dimensions(self, nnx, nny, nnz):
741 """update_map_dimensions(DensityHeader self, int nnx, int nny, int nnz)"""
742 return _IMP_em.DensityHeader_update_map_dimensions(self, nnx, nny, nnz)
745 def update_cell_dimensions(self):
746 """update_cell_dimensions(DensityHeader self)"""
747 return _IMP_em.DensityHeader_update_cell_dimensions(self)
750 def show(self, *args):
752 show(DensityHeader self, _ostream out)
753 show(DensityHeader self)
755 return _IMP_em.DensityHeader_show(self, *args)
757 MAP_FIELD_SIZE = _IMP_em.DensityHeader_MAP_FIELD_SIZE
758 USER_FIELD_SIZE = _IMP_em.DensityHeader_USER_FIELD_SIZE
759 COMMENT_FIELD_NUM_OF = _IMP_em.DensityHeader_COMMENT_FIELD_NUM_OF
760 COMMENT_FIELD_SINGLE_SIZE = _IMP_em.DensityHeader_COMMENT_FIELD_SINGLE_SIZE
761 nxstart = _swig_property(_IMP_em.DensityHeader_nxstart_get, _IMP_em.DensityHeader_nxstart_set)
762 nystart = _swig_property(_IMP_em.DensityHeader_nystart_get, _IMP_em.DensityHeader_nystart_set)
763 nzstart = _swig_property(_IMP_em.DensityHeader_nzstart_get, _IMP_em.DensityHeader_nzstart_set)
764 mx = _swig_property(_IMP_em.DensityHeader_mx_get, _IMP_em.DensityHeader_mx_set)
765 my = _swig_property(_IMP_em.DensityHeader_my_get, _IMP_em.DensityHeader_my_set)
766 mz = _swig_property(_IMP_em.DensityHeader_mz_get, _IMP_em.DensityHeader_mz_set)
767 xlen = _swig_property(_IMP_em.DensityHeader_xlen_get, _IMP_em.DensityHeader_xlen_set)
768 ylen = _swig_property(_IMP_em.DensityHeader_ylen_get, _IMP_em.DensityHeader_ylen_set)
769 zlen = _swig_property(_IMP_em.DensityHeader_zlen_get, _IMP_em.DensityHeader_zlen_set)
770 alpha = _swig_property(_IMP_em.DensityHeader_alpha_get, _IMP_em.DensityHeader_alpha_set)
771 beta = _swig_property(_IMP_em.DensityHeader_beta_get, _IMP_em.DensityHeader_beta_set)
772 gamma = _swig_property(_IMP_em.DensityHeader_gamma_get, _IMP_em.DensityHeader_gamma_set)
773 mapc = _swig_property(_IMP_em.DensityHeader_mapc_get, _IMP_em.DensityHeader_mapc_set)
774 mapr = _swig_property(_IMP_em.DensityHeader_mapr_get, _IMP_em.DensityHeader_mapr_set)
775 maps = _swig_property(_IMP_em.DensityHeader_maps_get, _IMP_em.DensityHeader_maps_set)
776 dmin = _swig_property(_IMP_em.DensityHeader_dmin_get, _IMP_em.DensityHeader_dmin_set)
777 dmax = _swig_property(_IMP_em.DensityHeader_dmax_get, _IMP_em.DensityHeader_dmax_set)
778 dmean = _swig_property(_IMP_em.DensityHeader_dmean_get, _IMP_em.DensityHeader_dmean_set)
779 ispg = _swig_property(_IMP_em.DensityHeader_ispg_get, _IMP_em.DensityHeader_ispg_set)
780 nsymbt = _swig_property(_IMP_em.DensityHeader_nsymbt_get, _IMP_em.DensityHeader_nsymbt_set)
781 user = _swig_property(_IMP_em.DensityHeader_user_get, _IMP_em.DensityHeader_user_set)
782 map = _swig_property(_IMP_em.DensityHeader_map_get, _IMP_em.DensityHeader_map_set)
783 machinestamp = _swig_property(_IMP_em.DensityHeader_machinestamp_get, _IMP_em.DensityHeader_machinestamp_set)
784 rms = _swig_property(_IMP_em.DensityHeader_rms_get, _IMP_em.DensityHeader_rms_set)
785 nlabl = _swig_property(_IMP_em.DensityHeader_nlabl_get, _IMP_em.DensityHeader_nlabl_set)
786 comments = _swig_property(_IMP_em.DensityHeader_comments_get, _IMP_em.DensityHeader_comments_set)
787 magic = _swig_property(_IMP_em.DensityHeader_magic_get, _IMP_em.DensityHeader_magic_set)
788 voltage = _swig_property(_IMP_em.DensityHeader_voltage_get, _IMP_em.DensityHeader_voltage_set)
789 Cs = _swig_property(_IMP_em.DensityHeader_Cs_get, _IMP_em.DensityHeader_Cs_set)
790 Aperture = _swig_property(_IMP_em.DensityHeader_Aperture_get, _IMP_em.DensityHeader_Aperture_set)
791 Magnification = _swig_property(_IMP_em.DensityHeader_Magnification_get, _IMP_em.DensityHeader_Magnification_set)
792 Postmagnification = _swig_property(_IMP_em.DensityHeader_Postmagnification_get, _IMP_em.DensityHeader_Postmagnification_set)
793 Exposuretime = _swig_property(_IMP_em.DensityHeader_Exposuretime_get, _IMP_em.DensityHeader_Exposuretime_set)
794 Microscope = _swig_property(_IMP_em.DensityHeader_Microscope_get, _IMP_em.DensityHeader_Microscope_set)
795 Pixelsize = _swig_property(_IMP_em.DensityHeader_Pixelsize_get, _IMP_em.DensityHeader_Pixelsize_set)
796 CCDArea = _swig_property(_IMP_em.DensityHeader_CCDArea_get, _IMP_em.DensityHeader_CCDArea_set)
797 Defocus = _swig_property(_IMP_em.DensityHeader_Defocus_get, _IMP_em.DensityHeader_Defocus_set)
798 Astigmatism = _swig_property(_IMP_em.DensityHeader_Astigmatism_get, _IMP_em.DensityHeader_Astigmatism_set)
799 AstigmatismAngle = _swig_property(_IMP_em.DensityHeader_AstigmatismAngle_get, _IMP_em.DensityHeader_AstigmatismAngle_set)
800 FocusIncrement = _swig_property(_IMP_em.DensityHeader_FocusIncrement_get, _IMP_em.DensityHeader_FocusIncrement_set)
801 CountsPerElectron = _swig_property(_IMP_em.DensityHeader_CountsPerElectron_get, _IMP_em.DensityHeader_CountsPerElectron_set)
802 Intensity = _swig_property(_IMP_em.DensityHeader_Intensity_get, _IMP_em.DensityHeader_Intensity_set)
803 EnergySlitwidth = _swig_property(_IMP_em.DensityHeader_EnergySlitwidth_get, _IMP_em.DensityHeader_EnergySlitwidth_set)
804 EnergyOffset = _swig_property(_IMP_em.DensityHeader_EnergyOffset_get, _IMP_em.DensityHeader_EnergyOffset_set)
805 Tiltangle = _swig_property(_IMP_em.DensityHeader_Tiltangle_get, _IMP_em.DensityHeader_Tiltangle_set)
806 Tiltaxis = _swig_property(_IMP_em.DensityHeader_Tiltaxis_get, _IMP_em.DensityHeader_Tiltaxis_set)
807 MarkerX = _swig_property(_IMP_em.DensityHeader_MarkerX_get, _IMP_em.DensityHeader_MarkerX_set)
808 MarkerY = _swig_property(_IMP_em.DensityHeader_MarkerY_get, _IMP_em.DensityHeader_MarkerY_set)
809 lswap = _swig_property(_IMP_em.DensityHeader_lswap_get, _IMP_em.DensityHeader_lswap_set)
812 """get_resolution(DensityHeader self) -> float"""
813 return _IMP_em.DensityHeader_get_resolution(self)
816 def get_has_resolution(self):
817 """get_has_resolution(DensityHeader self) -> bool"""
818 return _IMP_em.DensityHeader_get_has_resolution(self)
821 def set_resolution(self, resolution):
822 """set_resolution(DensityHeader self, float resolution)"""
823 return _IMP_em.DensityHeader_set_resolution(self, resolution)
826 def get_spacing(self):
827 """get_spacing(DensityHeader self) -> float"""
828 return _IMP_em.DensityHeader_get_spacing(self)
831 def get_xorigin(self):
832 """get_xorigin(DensityHeader self) -> float"""
833 return _IMP_em.DensityHeader_get_xorigin(self)
836 def get_yorigin(self):
837 """get_yorigin(DensityHeader self) -> float"""
838 return _IMP_em.DensityHeader_get_yorigin(self)
841 def get_zorigin(self):
842 """get_zorigin(DensityHeader self) -> float"""
843 return _IMP_em.DensityHeader_get_zorigin(self)
846 def get_origin(self, i):
847 """get_origin(DensityHeader self, int i) -> float"""
848 return _IMP_em.DensityHeader_get_origin(self, i)
851 def set_xorigin(self, x):
852 """set_xorigin(DensityHeader self, float x)"""
853 return _IMP_em.DensityHeader_set_xorigin(self, x)
856 def set_yorigin(self, y):
857 """set_yorigin(DensityHeader self, float y)"""
858 return _IMP_em.DensityHeader_set_yorigin(self, y)
861 def set_zorigin(self, z):
862 """set_zorigin(DensityHeader self, float z)"""
863 return _IMP_em.DensityHeader_set_zorigin(self, z)
866 def is_top_calculated(self):
867 """is_top_calculated(DensityHeader self) -> bool"""
868 return _IMP_em.DensityHeader_is_top_calculated(self)
870 Objectpixelsize_ = _swig_property(_IMP_em.DensityHeader_Objectpixelsize__get, _IMP_em.DensityHeader_Objectpixelsize__set)
873 """get_nx(DensityHeader self) -> int"""
874 return _IMP_em.DensityHeader_get_nx(self)
878 """get_ny(DensityHeader self) -> int"""
879 return _IMP_em.DensityHeader_get_ny(self)
883 """get_nz(DensityHeader self) -> int"""
884 return _IMP_em.DensityHeader_get_nz(self)
887 def get_number_of_voxels(self):
888 """get_number_of_voxels(DensityHeader self) -> int"""
889 return _IMP_em.DensityHeader_get_number_of_voxels(self)
892 def get_data_type(self):
893 """get_data_type(DensityHeader self) -> int"""
894 return _IMP_em.DensityHeader_get_data_type(self)
897 def set_data_type(self, data_type):
898 """set_data_type(DensityHeader self, int data_type)"""
899 return _IMP_em.DensityHeader_set_data_type(self, data_type)
901 __swig_destroy__ = _IMP_em.delete_DensityHeader
902 __del__ =
lambda self:
None
903 DensityHeader_swigregister = _IMP_em.DensityHeader_swigregister
904 DensityHeader_swigregister(DensityHeader)
908 """create_density_header(BoundingBox3D bb, float spacing) -> DensityHeader"""
909 return _IMP_em.create_density_header(bb, spacing)
913 read_map(std::string filename, MapReaderWriter reader) -> DensityMap
914 read_map(std::string filename) -> DensityMap
916 return _IMP_em.read_map(*args)
920 write_map(DensityMap m, std::string filename, MapReaderWriter writer)
921 write_map(DensityMap m, std::string filename)
923 return _IMP_em.write_map(*args)
926 """approximate_molecular_mass(DensityMap m, IMP::Float threshold) -> IMP::Float"""
927 return _IMP_em.approximate_molecular_mass(m, threshold)
929 """Proxy of C++ IMP::em::DensityMap class"""
930 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
932 def __init__(self, *args):
934 __init__(IMP::em::DensityMap self, std::string name) -> DensityMap
935 __init__(IMP::em::DensityMap self) -> DensityMap
936 __init__(IMP::em::DensityMap self, DensityHeader header, std::string name) -> DensityMap
937 __init__(IMP::em::DensityMap self, DensityHeader header) -> DensityMap
939 this = _IMP_em.new_DensityMap(*args)
941 self.this.append(this)
945 def reset_data(self, value=0.0):
947 reset_data(DensityMap self, float value=0.0)
948 reset_data(DensityMap self)
950 return _IMP_em.DensityMap_reset_data(self, value)
954 """calcRMS(DensityMap self) -> IMP::em::emreal"""
955 return _IMP_em.DensityMap_calcRMS(self)
958 def std_normalize(self):
959 """std_normalize(DensityMap self)"""
960 return _IMP_em.DensityMap_std_normalize(self)
963 def is_normalized(self):
964 """is_normalized(DensityMap self) -> bool"""
965 return _IMP_em.DensityMap_is_normalized(self)
968 def get_location_in_dim_by_voxel(self, index, dim):
969 """get_location_in_dim_by_voxel(DensityMap self, long index, int dim) -> float"""
970 return _IMP_em.DensityMap_get_location_in_dim_by_voxel(self, index, dim)
973 def xyz_ind2voxel(self, x, y, z):
974 """xyz_ind2voxel(DensityMap self, int x, int y, int z) -> long"""
975 return _IMP_em.DensityMap_xyz_ind2voxel(self, x, y, z)
978 def get_voxel_by_location(self, *args):
980 get_voxel_by_location(DensityMap self, float x, float y, float z) -> long
981 get_voxel_by_location(DensityMap self, Vector3D v) -> long
983 return _IMP_em.DensityMap_get_voxel_by_location(self, *args)
986 def get_location_by_voxel(self, index):
987 """get_location_by_voxel(DensityMap self, long index) -> Vector3D"""
988 return _IMP_em.DensityMap_get_location_by_voxel(self, index)
991 def is_xyz_ind_part_of_volume(self, ix, iy, iz):
992 """is_xyz_ind_part_of_volume(DensityMap self, int ix, int iy, int iz) -> bool"""
993 return _IMP_em.DensityMap_is_xyz_ind_part_of_volume(self, ix, iy, iz)
996 def is_part_of_volume(self, *args):
998 is_part_of_volume(DensityMap self, float x, float y, float z) -> bool
999 is_part_of_volume(DensityMap self, Vector3D v) -> bool
1001 return _IMP_em.DensityMap_is_part_of_volume(self, *args)
1004 def get_value(self, *args):
1006 get_value(DensityMap self, float x, float y, float z) -> IMP::em::emreal
1007 get_value(DensityMap self, Vector3D point) -> IMP::em::emreal
1008 get_value(DensityMap self, long index) -> IMP::em::emreal
1010 return _IMP_em.DensityMap_get_value(self, *args)
1013 def set_value(self, *args):
1015 set_value(DensityMap self, long index, IMP::em::emreal value)
1016 set_value(DensityMap self, float x, float y, float z, IMP::em::emreal value)
1018 return _IMP_em.DensityMap_set_value(self, *args)
1021 def set_origin(self, *args):
1023 set_origin(DensityMap self, float x, float y, float z)
1024 set_origin(DensityMap self, Vector3D v)
1026 return _IMP_em.DensityMap_set_origin(self, *args)
1029 def get_origin(self):
1030 """get_origin(DensityMap self) -> Vector3D"""
1031 return _IMP_em.DensityMap_get_origin(self)
1035 """get_top(DensityMap self) -> Vector3D"""
1036 return _IMP_em.DensityMap_get_top(self)
1038 def get_header(self):
1039 h = _IMP_em.DensityMap_get_header(self)
1044 def get_header_writable(self):
1045 h = _IMP_em.DensityMap_get_header_writable(self)
1051 def same_origin(self, other):
1052 """same_origin(DensityMap self, DensityMap other) -> bool"""
1053 return _IMP_em.DensityMap_same_origin(self, other)
1056 def same_dimensions(self, other):
1057 """same_dimensions(DensityMap self, DensityMap other) -> bool"""
1058 return _IMP_em.DensityMap_same_dimensions(self, other)
1061 def same_voxel_size(self, other):
1062 """same_voxel_size(DensityMap self, DensityMap other) -> bool"""
1063 return _IMP_em.DensityMap_same_voxel_size(self, other)
1068 get_centroid(DensityMap self, IMP::em::emreal threshold=0.0) -> Vector3D
1069 get_centroid(DensityMap self) -> Vector3D
1071 return _IMP_em.DensityMap_get_centroid(self, threshold)
1074 def get_max_value(self):
1075 """get_max_value(DensityMap self) -> IMP::em::emreal"""
1076 return _IMP_em.DensityMap_get_max_value(self)
1079 def get_min_value(self):
1080 """get_min_value(DensityMap self) -> IMP::em::emreal"""
1081 return _IMP_em.DensityMap_get_min_value(self)
1084 def add(self, other):
1085 """add(DensityMap self, DensityMap other)"""
1086 return _IMP_em.DensityMap_add(self, other)
1089 def pick_max(self, other):
1090 """pick_max(DensityMap self, DensityMap other)"""
1091 return _IMP_em.DensityMap_pick_max(self, other)
1094 def get_number_of_voxels(self):
1095 """get_number_of_voxels(DensityMap self) -> long"""
1096 return _IMP_em.DensityMap_get_number_of_voxels(self)
1099 def set_void_map(self, nx, ny, nz):
1100 """set_void_map(DensityMap self, int nx, int ny, int nz)"""
1101 return _IMP_em.DensityMap_set_void_map(self, nx, ny, nz)
1104 def pad(self, nx, ny, nz, val=0.0):
1106 pad(DensityMap self, int nx, int ny, int nz, float val=0.0)
1107 pad(DensityMap self, int nx, int ny, int nz)
1109 return _IMP_em.DensityMap_pad(self, nx, ny, nz, val)
1112 def pad_margin(self, mrg_x, mrg_y, mrg_z, val=0.0):
1114 pad_margin(DensityMap self, int mrg_x, int mrg_y, int mrg_z, float val=0.0) -> DensityMap
1115 pad_margin(DensityMap self, int mrg_x, int mrg_y, int mrg_z) -> DensityMap
1117 return _IMP_em.DensityMap_pad_margin(self, mrg_x, mrg_y, mrg_z, val)
1120 def get_cropped(self, *args):
1122 get_cropped(DensityMap self, float threshold) -> DensityMap
1123 get_cropped(DensityMap self, BoundingBox3D bb) -> DensityMap
1125 return _IMP_em.DensityMap_get_cropped(self, *args)
1128 def get_maximum_value_in_xy_plane(self, z_ind):
1129 """get_maximum_value_in_xy_plane(DensityMap self, int z_ind) -> float"""
1130 return _IMP_em.DensityMap_get_maximum_value_in_xy_plane(self, z_ind)
1133 def get_maximum_value_in_xz_plane(self, y_ind):
1134 """get_maximum_value_in_xz_plane(DensityMap self, int y_ind) -> float"""
1135 return _IMP_em.DensityMap_get_maximum_value_in_xz_plane(self, y_ind)
1138 def get_maximum_value_in_yz_plane(self, x_ind):
1139 """get_maximum_value_in_yz_plane(DensityMap self, int x_ind) -> float"""
1140 return _IMP_em.DensityMap_get_maximum_value_in_yz_plane(self, x_ind)
1144 """multiply(DensityMap self, float factor)"""
1145 return _IMP_em.DensityMap_multiply(self, factor)
1148 def get_locations_string(self, t):
1149 """get_locations_string(DensityMap self, float t) -> std::string"""
1150 return _IMP_em.DensityMap_get_locations_string(self, t)
1153 def update_voxel_size(self, new_apix):
1154 """update_voxel_size(DensityMap self, float new_apix)"""
1155 return _IMP_em.DensityMap_update_voxel_size(self, new_apix)
1158 def get_spacing(self):
1159 """get_spacing(DensityMap self) -> IMP::Float"""
1160 return _IMP_em.DensityMap_get_spacing(self)
1163 def calc_all_voxel2loc(self):
1164 """calc_all_voxel2loc(DensityMap self)"""
1165 return _IMP_em.DensityMap_calc_all_voxel2loc(self)
1168 def copy_map(self, other):
1169 """copy_map(DensityMap self, DensityMap other)"""
1170 return _IMP_em.DensityMap_copy_map(self, other)
1173 def get_version_info(self):
1174 """get_version_info(DensityMap self) -> VersionInfo"""
1175 return _IMP_em.DensityMap_get_version_info(self)
1178 def lower_voxel_shift(self, loc, kdist, orig, ndim):
1179 """lower_voxel_shift(DensityMap self, IMP::em::emreal loc, IMP::em::emreal kdist, IMP::em::emreal orig, int ndim) -> int"""
1180 return _IMP_em.DensityMap_lower_voxel_shift(self, loc, kdist, orig, ndim)
1183 def upper_voxel_shift(self, loc, kdist, orig, ndim):
1184 """upper_voxel_shift(DensityMap self, IMP::em::emreal loc, IMP::em::emreal kdist, IMP::em::emreal orig, int ndim) -> int"""
1185 return _IMP_em.DensityMap_upper_voxel_shift(self, loc, kdist, orig, ndim)
1188 def get_rms_calculated(self):
1189 """get_rms_calculated(DensityMap self) -> bool"""
1190 return _IMP_em.DensityMap_get_rms_calculated(self)
1193 def get_dim_index_by_location(self, *args):
1195 get_dim_index_by_location(DensityMap self, Vector3D v, int ind) -> int
1196 get_dim_index_by_location(DensityMap self, float loc_val, int ind) -> int
1198 return _IMP_em.DensityMap_get_dim_index_by_location(self, *args)
1202 """__str__(DensityMap self) -> std::string"""
1203 return _IMP_em.DensityMap___str__(self)
1207 """__repr__(DensityMap self) -> std::string"""
1208 return _IMP_em.DensityMap___repr__(self)
1211 return _object_cast_to_DensityMap(o)
1212 get_from = staticmethod(get_from)
1214 DensityMap_swigregister = _IMP_em.DensityMap_swigregister
1215 DensityMap_swigregister(DensityMap)
1220 get_bounding_box(DensityMap m, IMP::Float threshold) -> BoundingBox3D
1221 get_bounding_box(DensityMap m) -> BoundingBox3D
1223 return _IMP_em.get_bounding_box(*args)
1226 """get_density(DensityMap m, Vector3D v) -> double"""
1227 return _IMP_em.get_density(m, v)
1231 get_transformed(DensityMap input, Transformation3D tr, double threshold) -> DensityMap
1232 get_transformed(DensityMap input, Transformation3D tr) -> DensityMap
1234 return _IMP_em.get_transformed(*args)
1237 """get_resampled(DensityMap input, double scaling) -> DensityMap"""
1238 return _IMP_em.get_resampled(input, scaling)
1242 get_transformed_into(DensityMap source, Transformation3D tr, DensityMap into, bool calc_rms=True)
1243 get_transformed_into(DensityMap source, Transformation3D tr, DensityMap into)
1245 return _IMP_em.get_transformed_into(source, tr, into, calc_rms)
1247 def get_transformed_into2(source, tr, into):
1248 """get_transformed_into2(DensityMap source, Transformation3D tr, DensityMap into)"""
1249 return _IMP_em.get_transformed_into2(source, tr, into)
1251 def get_interiors_intersect(d1, d2):
1252 """get_interiors_intersect(DensityMap d1, DensityMap d2) -> bool"""
1253 return _IMP_em.get_interiors_intersect(d1, d2)
1257 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
1258 get_segment(DensityMap map_to_segment, IMP::algebra::Vector3Ds vecs, float dist) -> DensityMap
1260 return _IMP_em.get_segment(*args)
1263 """get_segment_by_masking(DensityMap map_to_segment, DensityMap mask, float mas_threshold) -> DensityMap"""
1264 return _IMP_em.get_segment_by_masking(map_to_segment, mask, mas_threshold)
1266 def binarize(orig_map, threshold, reverse=False):
1268 binarize(DensityMap orig_map, float threshold, bool reverse=False) -> DensityMap
1269 binarize(DensityMap orig_map, float threshold) -> DensityMap
1271 return _IMP_em.binarize(orig_map, threshold, reverse)
1274 """get_threshold_map(DensityMap orig_map, float threshold) -> DensityMap"""
1275 return _IMP_em.get_threshold_map(orig_map, threshold)
1278 """multiply(DensityMap m1, DensityMap m2) -> DensityMap"""
1279 return _IMP_em.multiply(m1, m2)
1282 """convolute(DensityMap m1, DensityMap m2) -> double"""
1283 return _IMP_em.convolute(m1, m2)
1286 """get_sum(DensityMap m1) -> double"""
1287 return _IMP_em.get_sum(m1)
1290 """get_max_map(IMP::em::DensityMaps maps) -> DensityMap"""
1291 return _IMP_em.get_max_map(maps)
1294 """interpolate_map(DensityMap in_map, double new_spacing) -> DensityMap"""
1295 return _IMP_em.interpolate_map(in_map, new_spacing)
1298 """get_grid(DensityMap in_map) -> IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,float >,float,IMP::algebra::DefaultEmbeddingD< 3 > >"""
1299 return _IMP_em.get_grid(in_map)
1303 create_density_map(DensityMap other) -> DensityMap
1304 create_density_map(BoundingBox3D bb, double spacing) -> DensityMap
1305 create_density_map(int nx, int ny, int nz, double spacing) -> DensityMap
1306 create_density_map(IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,float >,float,IMP::algebra::DefaultEmbeddingD< 3 > > const & grid) -> DensityMap
1308 return _IMP_em.create_density_map(*args)
1311 """get_binarized_interior(DensityMap dmap) -> DensityMap"""
1312 return _IMP_em.get_binarized_interior(dmap)
1315 """add_to_map(DensityMap dm, IMP::Particles const & pis)"""
1316 return _IMP_em.add_to_map(dm, pis)
1317 class RadiusDependentDistanceMask(object):
1318 """Proxy of C++ IMP::em::RadiusDependentDistanceMask class"""
1319 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1320 __repr__ = _swig_repr
1322 def __init__(self, sampling_radius, header):
1323 """__init__(IMP::em::RadiusDependentDistanceMask self, float sampling_radius, DensityHeader header) -> RadiusDependentDistanceMask"""
1324 this = _IMP_em.new_RadiusDependentDistanceMask(sampling_radius, header)
1326 self.this.append(this)
1330 def get_neighbor_shift(self):
1331 """get_neighbor_shift(RadiusDependentDistanceMask self) -> std::vector< double,std::allocator< double > > const *"""
1332 return _IMP_em.RadiusDependentDistanceMask_get_neighbor_shift(self)
1335 def get_neighbor_dist(self):
1336 """get_neighbor_dist(RadiusDependentDistanceMask self) -> std::vector< double,std::allocator< double > > const *"""
1337 return _IMP_em.RadiusDependentDistanceMask_get_neighbor_dist(self)
1340 def get_neighbor_dist_exp(self):
1341 """get_neighbor_dist_exp(RadiusDependentDistanceMask self) -> std::vector< double,std::allocator< double > > const *"""
1342 return _IMP_em.RadiusDependentDistanceMask_get_neighbor_dist_exp(self)
1345 def show(self, out):
1346 """show(RadiusDependentDistanceMask self, _ostream out)"""
1347 return _IMP_em.RadiusDependentDistanceMask_show(self, out)
1349 __swig_destroy__ = _IMP_em.delete_RadiusDependentDistanceMask
1350 __del__ =
lambda self:
None
1351 RadiusDependentDistanceMask_swigregister = _IMP_em.RadiusDependentDistanceMask_swigregister
1352 RadiusDependentDistanceMask_swigregister(RadiusDependentDistanceMask)
1354 class DistanceMask(object):
1355 """Proxy of C++ IMP::em::DistanceMask class"""
1356 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1357 __repr__ = _swig_repr
1359 def __init__(self, *args):
1361 __init__(IMP::em::DistanceMask self) -> DistanceMask
1362 __init__(IMP::em::DistanceMask self, DensityHeader header) -> DistanceMask
1364 this = _IMP_em.new_DistanceMask(*args)
1366 self.this.append(this)
1370 def show(self, out):
1371 """show(DistanceMask self, _ostream out)"""
1372 return _IMP_em.DistanceMask_show(self, out)
1375 def is_mask_set(self, radius, eps=0.001):
1377 is_mask_set(DistanceMask self, float radius, float eps=0.001) -> bool
1378 is_mask_set(DistanceMask self, float radius) -> bool
1380 return _IMP_em.DistanceMask_is_mask_set(self, radius, eps)
1382 __swig_destroy__ = _IMP_em.delete_DistanceMask
1383 __del__ =
lambda self:
None
1384 DistanceMask_swigregister = _IMP_em.DistanceMask_swigregister
1385 DistanceMask_swigregister(DistanceMask)
1387 class EMReaderWriter(MapReaderWriter):
1388 """Proxy of C++ IMP::em::EMReaderWriter class"""
1389 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1392 """__str__(EMReaderWriter self) -> std::string"""
1393 return _IMP_em.EMReaderWriter___str__(self)
1397 """__repr__(EMReaderWriter self) -> std::string"""
1398 return _IMP_em.EMReaderWriter___repr__(self)
1401 return _object_cast_to_EMReaderWriter(o)
1402 get_from = staticmethod(get_from)
1406 """__init__(IMP::em::EMReaderWriter self) -> EMReaderWriter"""
1407 this = _IMP_em.new_EMReaderWriter()
1409 self.this.append(this)
1412 EMReaderWriter_swigregister = _IMP_em.EMReaderWriter_swigregister
1413 EMReaderWriter_swigregister(EMReaderWriter)
1415 class XplorReaderWriter(MapReaderWriter):
1416 """Proxy of C++ IMP::em::XplorReaderWriter class"""
1417 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1420 """__str__(XplorReaderWriter self) -> std::string"""
1421 return _IMP_em.XplorReaderWriter___str__(self)
1425 """__repr__(XplorReaderWriter self) -> std::string"""
1426 return _IMP_em.XplorReaderWriter___repr__(self)
1429 return _object_cast_to_XplorReaderWriter(o)
1430 get_from = staticmethod(get_from)
1434 """__init__(IMP::em::XplorReaderWriter self) -> XplorReaderWriter"""
1435 this = _IMP_em.new_XplorReaderWriter()
1437 self.this.append(this)
1440 XplorReaderWriter_swigregister = _IMP_em.XplorReaderWriter_swigregister
1441 XplorReaderWriter_swigregister(XplorReaderWriter)
1443 class MRCReaderWriter(MapReaderWriter):
1444 """Proxy of C++ IMP::em::MRCReaderWriter class"""
1445 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1447 def __init__(self, *args):
1449 __init__(IMP::em::MRCReaderWriter self) -> MRCReaderWriter
1450 __init__(IMP::em::MRCReaderWriter self, std::string fn) -> MRCReaderWriter
1452 this = _IMP_em.new_MRCReaderWriter(*args)
1454 self.this.append(this)
1459 """__str__(MRCReaderWriter self) -> std::string"""
1460 return _IMP_em.MRCReaderWriter___str__(self)
1464 """__repr__(MRCReaderWriter self) -> std::string"""
1465 return _IMP_em.MRCReaderWriter___repr__(self)
1468 return _object_cast_to_MRCReaderWriter(o)
1469 get_from = staticmethod(get_from)
1471 MRCReaderWriter_swigregister = _IMP_em.MRCReaderWriter_swigregister
1472 MRCReaderWriter_swigregister(MRCReaderWriter)
1474 class RadiusDependentKernelParameters(object):
1475 """Proxy of C++ IMP::em::RadiusDependentKernelParameters class"""
1476 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1478 def __init__(self, radii, rsigsq, timessig, sq2pi3, inv_rsigsq, rnormfac, rkdist):
1479 """__init__(IMP::em::RadiusDependentKernelParameters self, float radii, float rsigsq, float timessig, float sq2pi3, float inv_rsigsq, float rnormfac, float rkdist) -> RadiusDependentKernelParameters"""
1480 this = _IMP_em.new_RadiusDependentKernelParameters(radii, rsigsq, timessig, sq2pi3, inv_rsigsq, rnormfac, rkdist)
1482 self.this.append(this)
1486 def show(self, *args):
1488 show(RadiusDependentKernelParameters self, _ostream s)
1489 show(RadiusDependentKernelParameters self)
1491 return _IMP_em.RadiusDependentKernelParameters_show(self, *args)
1495 """get_vsig(RadiusDependentKernelParameters self) -> float"""
1496 return _IMP_em.RadiusDependentKernelParameters_get_vsig(self)
1499 def get_vsigsq(self):
1500 """get_vsigsq(RadiusDependentKernelParameters self) -> float"""
1501 return _IMP_em.RadiusDependentKernelParameters_get_vsigsq(self)
1504 def get_inv_sigsq(self):
1505 """get_inv_sigsq(RadiusDependentKernelParameters self) -> float"""
1506 return _IMP_em.RadiusDependentKernelParameters_get_inv_sigsq(self)
1510 """get_sig(RadiusDependentKernelParameters self) -> float"""
1511 return _IMP_em.RadiusDependentKernelParameters_get_sig(self)
1514 def get_kdist(self):
1515 """get_kdist(RadiusDependentKernelParameters self) -> float"""
1516 return _IMP_em.RadiusDependentKernelParameters_get_kdist(self)
1519 def get_normfac(self):
1520 """get_normfac(RadiusDependentKernelParameters self) -> float"""
1521 return _IMP_em.RadiusDependentKernelParameters_get_normfac(self)
1523 __swig_destroy__ = _IMP_em.delete_RadiusDependentKernelParameters
1524 __del__ =
lambda self:
None
1527 """__str__(RadiusDependentKernelParameters self) -> std::string"""
1528 return _IMP_em.RadiusDependentKernelParameters___str__(self)
1532 """__repr__(RadiusDependentKernelParameters self) -> std::string"""
1533 return _IMP_em.RadiusDependentKernelParameters___repr__(self)
1535 RadiusDependentKernelParameters_swigregister = _IMP_em.RadiusDependentKernelParameters_swigregister
1536 RadiusDependentKernelParameters_swigregister(RadiusDependentKernelParameters)
1538 class KernelParameters(object):
1539 """Proxy of C++ IMP::em::KernelParameters class"""
1540 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1542 def __init__(self, *args):
1544 __init__(IMP::em::KernelParameters self) -> KernelParameters
1545 __init__(IMP::em::KernelParameters self, float resolution) -> KernelParameters
1547 this = _IMP_em.new_KernelParameters(*args)
1549 self.this.append(this)
1552 __swig_destroy__ = _IMP_em.delete_KernelParameters
1553 __del__ =
lambda self:
None
1555 def set_params(self, radius):
1556 """set_params(KernelParameters self, float radius) -> RadiusDependentKernelParameters"""
1557 return _IMP_em.KernelParameters_set_params(self, radius)
1560 def get_params(self, radius, eps=0.001):
1562 get_params(KernelParameters self, float radius, float eps=0.001) -> RadiusDependentKernelParameters
1563 get_params(KernelParameters self, float radius) -> RadiusDependentKernelParameters
1565 return _IMP_em.KernelParameters_get_params(self, radius, eps)
1569 """get_rsig(KernelParameters self) -> float"""
1570 return _IMP_em.KernelParameters_get_rsig(self)
1573 def get_rsigsq(self):
1574 """get_rsigsq(KernelParameters self) -> float"""
1575 return _IMP_em.KernelParameters_get_rsigsq(self)
1578 def get_inv_rsigsq(self):
1579 """get_inv_rsigsq(KernelParameters self) -> float"""
1580 return _IMP_em.KernelParameters_get_inv_rsigsq(self)
1583 def get_timessig(self):
1584 """get_timessig(KernelParameters self) -> float"""
1585 return _IMP_em.KernelParameters_get_timessig(self)
1588 def get_sq2pi3(self):
1589 """get_sq2pi3(KernelParameters self) -> float"""
1590 return _IMP_em.KernelParameters_get_sq2pi3(self)
1593 def get_rnormfac(self):
1594 """get_rnormfac(KernelParameters self) -> float"""
1595 return _IMP_em.KernelParameters_get_rnormfac(self)
1598 def get_rkdist(self):
1599 """get_rkdist(KernelParameters self) -> float"""
1600 return _IMP_em.KernelParameters_get_rkdist(self)
1604 """get_lim(KernelParameters self) -> float"""
1605 return _IMP_em.KernelParameters_get_lim(self)
1608 def show(self, *args):
1610 show(KernelParameters self, _ostream out)
1611 show(KernelParameters self)
1613 return _IMP_em.KernelParameters_show(self, *args)
1617 """__str__(KernelParameters self) -> std::string"""
1618 return _IMP_em.KernelParameters___str__(self)
1622 """__repr__(KernelParameters self) -> std::string"""
1623 return _IMP_em.KernelParameters___repr__(self)
1625 KernelParameters_swigregister = _IMP_em.KernelParameters_swigregister
1626 KernelParameters_swigregister(KernelParameters)
1629 _IMP_em.GAUSSIAN_swigconstant(_IMP_em)
1630 GAUSSIAN = _IMP_em.GAUSSIAN
1632 _IMP_em.BINARIZED_SPHERE_swigconstant(_IMP_em)
1633 BINARIZED_SPHERE = _IMP_em.BINARIZED_SPHERE
1635 _IMP_em.SPHERE_swigconstant(_IMP_em)
1636 SPHERE = _IMP_em.SPHERE
1637 class SampledDensityMap(DensityMap):
1638 """Proxy of C++ IMP::em::SampledDensityMap class"""
1639 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1641 def __init__(self, *args):
1643 __init__(IMP::em::SampledDensityMap self, IMP::em::KernelType kt) -> SampledDensityMap
1644 __init__(IMP::em::SampledDensityMap self) -> SampledDensityMap
1645 __init__(IMP::em::SampledDensityMap self, DensityHeader header, IMP::em::KernelType kt) -> SampledDensityMap
1646 __init__(IMP::em::SampledDensityMap self, DensityHeader header) -> SampledDensityMap
1647 __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
1648 __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
1649 __init__(IMP::em::SampledDensityMap self, IMP::ParticlesTemp const & ps, IMP::em::emreal resolution, IMP::em::emreal voxel_size, FloatKey mass_key) -> SampledDensityMap
1650 __init__(IMP::em::SampledDensityMap self, IMP::ParticlesTemp const & ps, IMP::em::emreal resolution, IMP::em::emreal voxel_size) -> SampledDensityMap
1652 this = _IMP_em.new_SampledDensityMap(*args)
1654 self.this.append(this)
1659 """resample(SampledDensityMap self)"""
1660 return _IMP_em.SampledDensityMap_resample(self)
1663 def project(self, *args):
1665 project(SampledDensityMap self, IMP::ParticlesTemp const & ps, int x_margin, int y_margin, int z_margin, Vector3D shift, FloatKey mass_key)
1666 project(SampledDensityMap self, IMP::ParticlesTemp const & ps, int x_margin, int y_margin, int z_margin, Vector3D shift)
1667 project(SampledDensityMap self, IMP::ParticlesTemp const & ps, int x_margin, int y_margin, int z_margin)
1669 return _IMP_em.SampledDensityMap_project(self, *args)
1672 def set_particles(self, *args):
1674 set_particles(SampledDensityMap self, IMP::ParticlesTemp const & ps, FloatKey mass_key)
1675 set_particles(SampledDensityMap self, IMP::ParticlesTemp const & ps)
1677 return _IMP_em.SampledDensityMap_set_particles(self, *args)
1680 def get_xyzr_particles(self):
1681 """get_xyzr_particles(SampledDensityMap self) -> IMP::core::XYZRs const &"""
1682 return _IMP_em.SampledDensityMap_get_xyzr_particles(self)
1685 def get_sampled_particles(self):
1686 """get_sampled_particles(SampledDensityMap self) -> IMP::Particles const &"""
1687 return _IMP_em.SampledDensityMap_get_sampled_particles(self)
1690 def get_weight_key(self):
1691 """get_weight_key(SampledDensityMap self) -> FloatKey"""
1692 return _IMP_em.SampledDensityMap_get_weight_key(self)
1695 def get_minimum_resampled_value(self):
1696 """get_minimum_resampled_value(SampledDensityMap self) -> float"""
1697 return _IMP_em.SampledDensityMap_get_minimum_resampled_value(self)
1699 __swig_destroy__ = _IMP_em.delete_SampledDensityMap
1700 __del__ =
lambda self:
None
1703 """__str__(SampledDensityMap self) -> std::string"""
1704 return _IMP_em.SampledDensityMap___str__(self)
1708 """__repr__(SampledDensityMap self) -> std::string"""
1709 return _IMP_em.SampledDensityMap___repr__(self)
1712 return _object_cast_to_SampledDensityMap(o)
1713 get_from = staticmethod(get_from)
1715 SampledDensityMap_swigregister = _IMP_em.SampledDensityMap_swigregister
1716 SampledDensityMap_swigregister(SampledDensityMap)
1719 _IMP_em.IMP_DEFAULT_NUM_SHELLS_swigconstant(_IMP_em)
1720 IMP_DEFAULT_NUM_SHELLS = _IMP_em.IMP_DEFAULT_NUM_SHELLS
1722 _IMP_em.IMP_SIG_CUTOFF_swigconstant(_IMP_em)
1723 IMP_SIG_CUTOFF = _IMP_em.IMP_SIG_CUTOFF
1724 class SurfaceShellDensityMap(SampledDensityMap):
1725 """Proxy of C++ IMP::em::SurfaceShellDensityMap class"""
1726 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1728 def __init__(self, *args):
1730 __init__(IMP::em::SurfaceShellDensityMap self) -> SurfaceShellDensityMap
1731 __init__(IMP::em::SurfaceShellDensityMap self, DensityHeader header) -> SurfaceShellDensityMap
1732 __init__(IMP::em::SurfaceShellDensityMap self, IMP::ParticlesTemp const & ps, float voxel_size, FloatKey mass_key, int num_shells=5) -> SurfaceShellDensityMap
1733 __init__(IMP::em::SurfaceShellDensityMap self, IMP::ParticlesTemp const & ps, float voxel_size, FloatKey mass_key) -> SurfaceShellDensityMap
1734 __init__(IMP::em::SurfaceShellDensityMap self, IMP::ParticlesTemp const & ps, float voxel_size) -> SurfaceShellDensityMap
1736 this = _IMP_em.new_SurfaceShellDensityMap(*args)
1738 self.this.append(this)
1742 def binaries(self, scene_val):
1743 """binaries(SurfaceShellDensityMap self, float scene_val)"""
1744 return _IMP_em.SurfaceShellDensityMap_binaries(self, scene_val)
1747 def has_background_neighbor(self, voxel_ind):
1748 """has_background_neighbor(SurfaceShellDensityMap self, long voxel_ind) -> bool"""
1749 return _IMP_em.SurfaceShellDensityMap_has_background_neighbor(self, voxel_ind)
1751 __swig_destroy__ = _IMP_em.delete_SurfaceShellDensityMap
1752 __del__ =
lambda self:
None
1755 """__str__(SurfaceShellDensityMap self) -> std::string"""
1756 return _IMP_em.SurfaceShellDensityMap___str__(self)
1760 """__repr__(SurfaceShellDensityMap self) -> std::string"""
1761 return _IMP_em.SurfaceShellDensityMap___repr__(self)
1764 return _object_cast_to_SurfaceShellDensityMap(o)
1765 get_from = staticmethod(get_from)
1767 SurfaceShellDensityMap_swigregister = _IMP_em.SurfaceShellDensityMap_swigregister
1768 SurfaceShellDensityMap_swigregister(SurfaceShellDensityMap)
1771 """Proxy of C++ IMP::em::CoarseCC class"""
1772 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1775 """__init__(IMP::em::CoarseCC self) -> CoarseCC"""
1776 this = _IMP_em.new_CoarseCC()
1778 self.this.append(this)
1782 def calc_score(*args):
1784 calc_score(DensityMap data, SampledDensityMap model_map, float scalefactor, bool recalc_rms=True, bool resample=True, IMP::FloatPair norm_factors) -> float
1785 calc_score(DensityMap data, SampledDensityMap model_map, float scalefactor, bool recalc_rms=True, bool resample=True) -> float
1786 calc_score(DensityMap data, SampledDensityMap model_map, float scalefactor, bool recalc_rms=True) -> float
1787 calc_score(DensityMap data, SampledDensityMap model_map, float scalefactor) -> float
1789 return _IMP_em.CoarseCC_calc_score(*args)
1791 calc_score = staticmethod(calc_score)
1793 def cross_correlation_coefficient(*args):
1795 cross_correlation_coefficient(DensityMap grid1, DensityMap grid2, float grid2_voxel_data_threshold, bool allow_padding=False, IMP::FloatPair norm_factors) -> double
1796 cross_correlation_coefficient(DensityMap grid1, DensityMap grid2, float grid2_voxel_data_threshold, bool allow_padding=False) -> double
1797 cross_correlation_coefficient(DensityMap grid1, DensityMap grid2, float grid2_voxel_data_threshold) -> double
1799 return _IMP_em.CoarseCC_cross_correlation_coefficient(*args)
1801 cross_correlation_coefficient = staticmethod(cross_correlation_coefficient)
1803 def local_cross_correlation_coefficient(em_map, model_map, voxel_data_threshold):
1804 """local_cross_correlation_coefficient(DensityMap em_map, DensityMap model_map, float voxel_data_threshold) -> float"""
1805 return _IMP_em.CoarseCC_local_cross_correlation_coefficient(em_map, model_map, voxel_data_threshold)
1807 local_cross_correlation_coefficient = staticmethod(local_cross_correlation_coefficient)
1809 def get_version_info(self):
1810 """get_version_info(CoarseCC self) -> VersionInfo"""
1811 return _IMP_em.CoarseCC_get_version_info(self)
1815 """__str__(CoarseCC self) -> std::string"""
1816 return _IMP_em.CoarseCC___str__(self)
1820 """__repr__(CoarseCC self) -> std::string"""
1821 return _IMP_em.CoarseCC___repr__(self)
1824 return _object_cast_to_CoarseCC(o)
1825 get_from = staticmethod(get_from)
1827 CoarseCC_swigregister = _IMP_em.CoarseCC_swigregister
1828 CoarseCC_swigregister(CoarseCC)
1830 def CoarseCC_calc_score(*args):
1832 calc_score(DensityMap data, SampledDensityMap model_map, float scalefactor, bool recalc_rms=True, bool resample=True, IMP::FloatPair norm_factors) -> float
1833 calc_score(DensityMap data, SampledDensityMap model_map, float scalefactor, bool recalc_rms=True, bool resample=True) -> float
1834 calc_score(DensityMap data, SampledDensityMap model_map, float scalefactor, bool recalc_rms=True) -> float
1835 CoarseCC_calc_score(DensityMap data, SampledDensityMap model_map, float scalefactor) -> float
1837 return _IMP_em.CoarseCC_calc_score(*args)
1839 def CoarseCC_cross_correlation_coefficient(*args):
1841 cross_correlation_coefficient(DensityMap grid1, DensityMap grid2, float grid2_voxel_data_threshold, bool allow_padding=False, IMP::FloatPair norm_factors) -> double
1842 cross_correlation_coefficient(DensityMap grid1, DensityMap grid2, float grid2_voxel_data_threshold, bool allow_padding=False) -> double
1843 CoarseCC_cross_correlation_coefficient(DensityMap grid1, DensityMap grid2, float grid2_voxel_data_threshold) -> double
1845 return _IMP_em.CoarseCC_cross_correlation_coefficient(*args)
1847 def CoarseCC_local_cross_correlation_coefficient(em_map, model_map, voxel_data_threshold):
1848 """CoarseCC_local_cross_correlation_coefficient(DensityMap em_map, DensityMap model_map, float voxel_data_threshold) -> float"""
1849 return _IMP_em.CoarseCC_local_cross_correlation_coefficient(em_map, model_map, voxel_data_threshold)
1851 class CoarseConvolution(object):
1852 """Proxy of C++ IMP::em::CoarseConvolution class"""
1853 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1854 __repr__ = _swig_repr
1856 def convolution(em_map, model_map, voxel_data_threshold, recalc_ccnormfac=True):
1858 convolution(DensityMap em_map, DensityMap model_map, float voxel_data_threshold, bool recalc_ccnormfac=True) -> float
1859 convolution(DensityMap em_map, DensityMap model_map, float voxel_data_threshold) -> float
1861 return _IMP_em.CoarseConvolution_convolution(em_map, model_map, voxel_data_threshold, recalc_ccnormfac)
1863 convolution = staticmethod(convolution)
1866 """__init__(IMP::em::CoarseConvolution self) -> CoarseConvolution"""
1867 this = _IMP_em.new_CoarseConvolution()
1869 self.this.append(this)
1872 __swig_destroy__ = _IMP_em.delete_CoarseConvolution
1873 __del__ =
lambda self:
None
1874 CoarseConvolution_swigregister = _IMP_em.CoarseConvolution_swigregister
1875 CoarseConvolution_swigregister(CoarseConvolution)
1877 def CoarseConvolution_convolution(em_map, model_map, voxel_data_threshold, recalc_ccnormfac=True):
1879 convolution(DensityMap em_map, DensityMap model_map, float voxel_data_threshold, bool recalc_ccnormfac=True) -> float
1880 CoarseConvolution_convolution(DensityMap em_map, DensityMap model_map, float voxel_data_threshold) -> float
1882 return _IMP_em.CoarseConvolution_convolution(em_map, model_map, voxel_data_threshold, recalc_ccnormfac)
1884 class CoarseCCatIntervals(CoarseCC):
1885 """Proxy of C++ IMP::em::CoarseCCatIntervals class"""
1886 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1888 def __init__(self, *args):
1890 __init__(IMP::em::CoarseCCatIntervals self, int const & ncd) -> CoarseCCatIntervals
1891 __init__(IMP::em::CoarseCCatIntervals self) -> CoarseCCatIntervals
1893 this = _IMP_em.new_CoarseCCatIntervals(*args)
1895 self.this.append(this)
1899 def evaluate(self, em_map, model_map, deriv, scalefac, lderiv, eval_interval):
1900 """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 >"""
1901 return _IMP_em.CoarseCCatIntervals_evaluate(self, em_map, model_map, deriv, scalefac, lderiv, eval_interval)
1905 """__str__(CoarseCCatIntervals self) -> std::string"""
1906 return _IMP_em.CoarseCCatIntervals___str__(self)
1910 """__repr__(CoarseCCatIntervals self) -> std::string"""
1911 return _IMP_em.CoarseCCatIntervals___repr__(self)
1914 return _object_cast_to_CoarseCCatIntervals(o)
1915 get_from = staticmethod(get_from)
1917 CoarseCCatIntervals_swigregister = _IMP_em.CoarseCCatIntervals_swigregister
1918 CoarseCCatIntervals_swigregister(CoarseCCatIntervals)
1921 """Proxy of C++ IMP::em::FitRestraint class"""
1922 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1924 def __init__(self, *args):
1926 __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
1927 __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
1928 __init__(IMP::em::FitRestraint self, IMP::ParticlesTemp ps, DensityMap em_map, IMP::FloatPair norm_factors, FloatKey weight_key, float scale=1) -> FitRestraint
1929 __init__(IMP::em::FitRestraint self, IMP::ParticlesTemp ps, DensityMap em_map, IMP::FloatPair norm_factors, FloatKey weight_key) -> FitRestraint
1930 __init__(IMP::em::FitRestraint self, IMP::ParticlesTemp ps, DensityMap em_map, IMP::FloatPair norm_factors) -> FitRestraint
1931 __init__(IMP::em::FitRestraint self, IMP::ParticlesTemp ps, DensityMap em_map) -> FitRestraint
1933 this = _IMP_em.new_FitRestraint(*args)
1935 self.this.append(this)
1939 def get_model_dens_map(self):
1940 """get_model_dens_map(FitRestraint self) -> SampledDensityMap"""
1941 return _IMP_em.FitRestraint_get_model_dens_map(self)
1944 def set_scale_factor(self, scale):
1945 """set_scale_factor(FitRestraint self, float scale)"""
1946 return _IMP_em.FitRestraint_set_scale_factor(self, scale)
1949 def get_scale_factor(self):
1950 """get_scale_factor(FitRestraint self) -> float"""
1951 return _IMP_em.FitRestraint_get_scale_factor(self)
1954 def do_get_inputs(self):
1955 """do_get_inputs(FitRestraint self) -> IMP::ModelObjectsTemp"""
1956 return _IMP_em.FitRestraint_do_get_inputs(self)
1959 def get_version_info(self):
1960 """get_version_info(FitRestraint self) -> VersionInfo"""
1961 return _IMP_em.FitRestraint_get_version_info(self)
1965 """__str__(FitRestraint self) -> std::string"""
1966 return _IMP_em.FitRestraint___str__(self)
1970 """__repr__(FitRestraint self) -> std::string"""
1971 return _IMP_em.FitRestraint___repr__(self)
1974 return _object_cast_to_FitRestraint(o)
1975 get_from = staticmethod(get_from)
1979 """cast(Restraint r) -> FitRestraint"""
1980 return _IMP_em.FitRestraint_cast(r)
1982 cast = staticmethod(cast)
1983 FitRestraint_swigregister = _IMP_em.FitRestraint_swigregister
1984 FitRestraint_swigregister(FitRestraint)
1986 def FitRestraint_cast(r):
1987 """FitRestraint_cast(Restraint r) -> FitRestraint"""
1988 return _IMP_em.FitRestraint_cast(r)
1993 density2particles(DensityMap dmap, IMP::Float threshold, Model m, int step=1) -> IMP::Particles
1994 density2particles(DensityMap dmap, IMP::Float threshold, Model m) -> IMP::Particles
1996 return _IMP_em.density2particles(dmap, threshold, m, step)
1999 """density2vectors(DensityMap dmap, IMP::Float threshold) -> IMP::algebra::Vector3Ds"""
2000 return _IMP_em.density2vectors(dmap, threshold)
2004 particles2density(IMP::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix, int sig_cutoff=3, FloatKey weight_key) -> SampledDensityMap
2005 particles2density(IMP::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix, int sig_cutoff=3) -> SampledDensityMap
2006 particles2density(IMP::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix) -> SampledDensityMap
2008 return _IMP_em.particles2density(*args)
2012 particles2binarized_density(IMP::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix, int sig_cutoff=3, FloatKey weight_key) -> SampledDensityMap
2013 particles2binarized_density(IMP::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix, int sig_cutoff=3) -> SampledDensityMap
2014 particles2binarized_density(IMP::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix) -> SampledDensityMap
2016 return _IMP_em.particles2binarized_density(*args)
2020 particles2surface(IMP::ParticlesTemp const & ps, IMP::Float apix, FloatKey weight_key) -> SurfaceShellDensityMap
2021 particles2surface(IMP::ParticlesTemp const & ps, IMP::Float apix) -> SurfaceShellDensityMap
2023 return _IMP_em.particles2surface(*args)
2025 def calculate_intersection_score(d1, d2):
2026 """calculate_intersection_score(SurfaceShellDensityMap d1, SurfaceShellDensityMap d2) -> IMP::Float"""
2027 return _IMP_em.calculate_intersection_score(d1, d2)
2028 class SpiderHeader(object):
2029 """Proxy of C++ IMP::em::SpiderHeader class"""
2030 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2031 __repr__ = _swig_repr
2032 fNslice = _swig_property(_IMP_em.SpiderHeader_fNslice_get, _IMP_em.SpiderHeader_fNslice_set)
2033 fNrow = _swig_property(_IMP_em.SpiderHeader_fNrow_get, _IMP_em.SpiderHeader_fNrow_set)
2034 fNrec = _swig_property(_IMP_em.SpiderHeader_fNrec_get, _IMP_em.SpiderHeader_fNrec_set)
2035 fNlabel = _swig_property(_IMP_em.SpiderHeader_fNlabel_get, _IMP_em.SpiderHeader_fNlabel_set)
2036 fIform = _swig_property(_IMP_em.SpiderHeader_fIform_get, _IMP_em.SpiderHeader_fIform_set)
2037 fImami = _swig_property(_IMP_em.SpiderHeader_fImami_get, _IMP_em.SpiderHeader_fImami_set)
2038 fFmax = _swig_property(_IMP_em.SpiderHeader_fFmax_get, _IMP_em.SpiderHeader_fFmax_set)
2039 fFmin = _swig_property(_IMP_em.SpiderHeader_fFmin_get, _IMP_em.SpiderHeader_fFmin_set)
2040 fAv = _swig_property(_IMP_em.SpiderHeader_fAv_get, _IMP_em.SpiderHeader_fAv_set)
2041 fSig = _swig_property(_IMP_em.SpiderHeader_fSig_get, _IMP_em.SpiderHeader_fSig_set)
2042 fIhist = _swig_property(_IMP_em.SpiderHeader_fIhist_get, _IMP_em.SpiderHeader_fIhist_set)
2043 fNcol = _swig_property(_IMP_em.SpiderHeader_fNcol_get, _IMP_em.SpiderHeader_fNcol_set)
2044 fLabrec = _swig_property(_IMP_em.SpiderHeader_fLabrec_get, _IMP_em.SpiderHeader_fLabrec_set)
2045 fIangle = _swig_property(_IMP_em.SpiderHeader_fIangle_get, _IMP_em.SpiderHeader_fIangle_set)
2046 fPhi = _swig_property(_IMP_em.SpiderHeader_fPhi_get, _IMP_em.SpiderHeader_fPhi_set)
2047 fTheta = _swig_property(_IMP_em.SpiderHeader_fTheta_get, _IMP_em.SpiderHeader_fTheta_set)
2048 fPsi = _swig_property(_IMP_em.SpiderHeader_fPsi_get, _IMP_em.SpiderHeader_fPsi_set)
2049 fXoff = _swig_property(_IMP_em.SpiderHeader_fXoff_get, _IMP_em.SpiderHeader_fXoff_set)
2050 fYoff = _swig_property(_IMP_em.SpiderHeader_fYoff_get, _IMP_em.SpiderHeader_fYoff_set)
2051 fZoff = _swig_property(_IMP_em.SpiderHeader_fZoff_get, _IMP_em.SpiderHeader_fZoff_set)
2052 fScale = _swig_property(_IMP_em.SpiderHeader_fScale_get, _IMP_em.SpiderHeader_fScale_set)
2053 fLabbyt = _swig_property(_IMP_em.SpiderHeader_fLabbyt_get, _IMP_em.SpiderHeader_fLabbyt_set)
2054 fLenbyt = _swig_property(_IMP_em.SpiderHeader_fLenbyt_get, _IMP_em.SpiderHeader_fLenbyt_set)
2055 fNothing = _swig_property(_IMP_em.SpiderHeader_fNothing_get, _IMP_em.SpiderHeader_fNothing_set)
2056 fFlag = _swig_property(_IMP_em.SpiderHeader_fFlag_get, _IMP_em.SpiderHeader_fFlag_set)
2057 fPhi1 = _swig_property(_IMP_em.SpiderHeader_fPhi1_get, _IMP_em.SpiderHeader_fPhi1_set)
2058 fTheta1 = _swig_property(_IMP_em.SpiderHeader_fTheta1_get, _IMP_em.SpiderHeader_fTheta1_set)
2059 fPsi1 = _swig_property(_IMP_em.SpiderHeader_fPsi1_get, _IMP_em.SpiderHeader_fPsi1_set)
2060 fPhi2 = _swig_property(_IMP_em.SpiderHeader_fPhi2_get, _IMP_em.SpiderHeader_fPhi2_set)
2061 fTheta2 = _swig_property(_IMP_em.SpiderHeader_fTheta2_get, _IMP_em.SpiderHeader_fTheta2_set)
2062 fPsi2 = _swig_property(_IMP_em.SpiderHeader_fPsi2_get, _IMP_em.SpiderHeader_fPsi2_set)
2063 fGeo_matrix = _swig_property(_IMP_em.SpiderHeader_fGeo_matrix_get, _IMP_em.SpiderHeader_fGeo_matrix_set)
2064 fAngle1 = _swig_property(_IMP_em.SpiderHeader_fAngle1_get, _IMP_em.SpiderHeader_fAngle1_set)
2065 fr1 = _swig_property(_IMP_em.SpiderHeader_fr1_get, _IMP_em.SpiderHeader_fr1_set)
2066 fr2 = _swig_property(_IMP_em.SpiderHeader_fr2_get, _IMP_em.SpiderHeader_fr2_set)
2067 RTflag = _swig_property(_IMP_em.SpiderHeader_RTflag_get, _IMP_em.SpiderHeader_RTflag_set)
2068 Astart = _swig_property(_IMP_em.SpiderHeader_Astart_get, _IMP_em.SpiderHeader_Astart_set)
2069 Aend = _swig_property(_IMP_em.SpiderHeader_Aend_get, _IMP_em.SpiderHeader_Aend_set)
2070 Ainc = _swig_property(_IMP_em.SpiderHeader_Ainc_get, _IMP_em.SpiderHeader_Ainc_set)
2071 Rsigma = _swig_property(_IMP_em.SpiderHeader_Rsigma_get, _IMP_em.SpiderHeader_Rsigma_set)
2072 Tstart = _swig_property(_IMP_em.SpiderHeader_Tstart_get, _IMP_em.SpiderHeader_Tstart_set)
2073 Tend = _swig_property(_IMP_em.SpiderHeader_Tend_get, _IMP_em.SpiderHeader_Tend_set)
2074 Tinc = _swig_property(_IMP_em.SpiderHeader_Tinc_get, _IMP_em.SpiderHeader_Tinc_set)
2075 Weight = _swig_property(_IMP_em.SpiderHeader_Weight_get, _IMP_em.SpiderHeader_Weight_set)
2076 Flip = _swig_property(_IMP_em.SpiderHeader_Flip_get, _IMP_em.SpiderHeader_Flip_set)
2077 empty = _swig_property(_IMP_em.SpiderHeader_empty_get, _IMP_em.SpiderHeader_empty_set)
2078 szIDat = _swig_property(_IMP_em.SpiderHeader_szIDat_get, _IMP_em.SpiderHeader_szIDat_set)
2079 szITim = _swig_property(_IMP_em.SpiderHeader_szITim_get, _IMP_em.SpiderHeader_szITim_set)
2080 szITit = _swig_property(_IMP_em.SpiderHeader_szITit_get, _IMP_em.SpiderHeader_szITit_set)
2082 def show(self, out):
2083 """show(SpiderHeader self, _ostream out)"""
2084 return _IMP_em.SpiderHeader_show(self, out)
2088 """__init__(IMP::em::SpiderHeader self) -> SpiderHeader"""
2089 this = _IMP_em.new_SpiderHeader()
2091 self.this.append(this)
2094 __swig_destroy__ = _IMP_em.delete_SpiderHeader
2095 __del__ =
lambda self:
None
2096 SpiderHeader_swigregister = _IMP_em.SpiderHeader_swigregister
2097 SpiderHeader_swigregister(SpiderHeader)
2099 class ImageHeader(object):
2100 """Proxy of C++ IMP::em::ImageHeader class"""
2101 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2102 __repr__ = _swig_repr
2103 IMG_BYTE = _IMP_em.ImageHeader_IMG_BYTE
2104 IMG_IMPEM = _IMP_em.ImageHeader_IMG_IMPEM
2105 IMG_INT = _IMP_em.ImageHeader_IMG_INT
2106 VOL_BYTE = _IMP_em.ImageHeader_VOL_BYTE
2107 VOL_IMPEM = _IMP_em.ImageHeader_VOL_IMPEM
2108 VOL_INT = _IMP_em.ImageHeader_VOL_INT
2109 IMG_FOURIER = _IMP_em.ImageHeader_IMG_FOURIER
2110 VOL_FOURIER = _IMP_em.ImageHeader_VOL_FOURIER
2112 def __init__(self, *args):
2114 __init__(IMP::em::ImageHeader self) -> ImageHeader
2115 __init__(IMP::em::ImageHeader self, IMP::em::ImageHeader::img_type im) -> ImageHeader
2116 __init__(IMP::em::ImageHeader self, float im) -> ImageHeader
2118 this = _IMP_em.new_ImageHeader(*args)
2120 self.this.append(this)
2124 def get_image_type(self):
2125 """get_image_type(ImageHeader self) -> float"""
2126 return _IMP_em.ImageHeader_get_image_type(self)
2129 def set_image_type(self, *args):
2131 set_image_type(ImageHeader self, IMP::em::ImageHeader::img_type im)
2132 set_image_type(ImageHeader self, float im)
2134 return _IMP_em.ImageHeader_set_image_type(self, *args)
2137 def do_show(self, out):
2138 """do_show(ImageHeader self, _ostream out)"""
2139 return _IMP_em.ImageHeader_do_show(self, out)
2142 def show(self, *args):
2144 show(ImageHeader self, _ostream out)
2145 show(ImageHeader self)
2147 return _IMP_em.ImageHeader_show(self, *args)
2150 def print_hard(self, out):
2151 """print_hard(ImageHeader self, _ostream out)"""
2152 return _IMP_em.ImageHeader_print_hard(self, out)
2155 def show_projection_params(self, out):
2156 """show_projection_params(ImageHeader self, _ostream out)"""
2157 return _IMP_em.ImageHeader_show_projection_params(self, out)
2160 def read(self, *args):
2162 read(ImageHeader self, IMP::String const filename, bool skip_type_check=False, bool force_reversed=False, bool skip_extra_checkings=False) -> int
2163 read(ImageHeader self, IMP::String const filename, bool skip_type_check=False, bool force_reversed=False) -> int
2164 read(ImageHeader self, IMP::String const filename, bool skip_type_check=False) -> int
2165 read(ImageHeader self, IMP::String const filename) -> int
2166 read(ImageHeader self, std::ifstream & f, bool skip_type_check=False, bool force_reversed=False, bool skip_extra_checkings=False) -> bool
2167 read(ImageHeader self, std::ifstream & f, bool skip_type_check=False, bool force_reversed=False) -> bool
2168 read(ImageHeader self, std::ifstream & f, bool skip_type_check=False) -> bool
2169 read(ImageHeader self, std::ifstream & f) -> bool
2171 return _IMP_em.ImageHeader_read(self, *args)
2174 def write(self, *args):
2176 write(ImageHeader self, IMP::String const & filename, bool force_reversed=False)
2177 write(ImageHeader self, IMP::String const & filename)
2178 write(ImageHeader self, std::ofstream & f, bool force_reversed=False)
2179 write(ImageHeader self, std::ofstream & f)
2181 return _IMP_em.ImageHeader_write(self, *args)
2185 """clear(ImageHeader self)"""
2186 return _IMP_em.ImageHeader_clear(self)
2189 def set_header(self):
2190 """set_header(ImageHeader self)"""
2191 return _IMP_em.ImageHeader_set_header(self)
2194 def get_reversed(self):
2195 """get_reversed(ImageHeader self) -> bool"""
2196 return _IMP_em.ImageHeader_get_reversed(self)
2199 def set_reversed(self, value):
2200 """set_reversed(ImageHeader self, bool value)"""
2201 return _IMP_em.ImageHeader_set_reversed(self, value)
2204 def get_number_of_slices(self):
2205 """get_number_of_slices(ImageHeader self) -> unsigned int"""
2206 return _IMP_em.ImageHeader_get_number_of_slices(self)
2209 def set_number_of_slices(self, n):
2210 """set_number_of_slices(ImageHeader self, unsigned int n)"""
2211 return _IMP_em.ImageHeader_set_number_of_slices(self, n)
2214 def get_number_of_rows(self):
2215 """get_number_of_rows(ImageHeader self) -> unsigned int"""
2216 return _IMP_em.ImageHeader_get_number_of_rows(self)
2219 def set_number_of_rows(self, n):
2220 """set_number_of_rows(ImageHeader self, unsigned int n)"""
2221 return _IMP_em.ImageHeader_set_number_of_rows(self, n)
2224 def get_number_of_columns(self):
2225 """get_number_of_columns(ImageHeader self) -> unsigned int"""
2226 return _IMP_em.ImageHeader_get_number_of_columns(self)
2229 def set_number_of_columns(self, n):
2230 """set_number_of_columns(ImageHeader self, unsigned int n)"""
2231 return _IMP_em.ImageHeader_set_number_of_columns(self, n)
2234 def get_old_rot(self):
2235 """get_old_rot(ImageHeader self) -> float"""
2236 return _IMP_em.ImageHeader_get_old_rot(self)
2239 def set_old_rot(self, value):
2240 """set_old_rot(ImageHeader self, float value)"""
2241 return _IMP_em.ImageHeader_set_old_rot(self, value)
2244 def get_fAngle1(self):
2245 """get_fAngle1(ImageHeader self) -> float"""
2246 return _IMP_em.ImageHeader_get_fAngle1(self)
2249 def set_fAngle1(self, value):
2250 """set_fAngle1(ImageHeader self, float value)"""
2251 return _IMP_em.ImageHeader_set_fAngle1(self, value)
2254 def get_Scale(self):
2255 """get_Scale(ImageHeader self) -> float"""
2256 return _IMP_em.ImageHeader_get_Scale(self)
2259 def set_Scale(self, value):
2260 """set_Scale(ImageHeader self, float value)"""
2261 return _IMP_em.ImageHeader_set_Scale(self, value)
2265 """get_Flip(ImageHeader self) -> float"""
2266 return _IMP_em.ImageHeader_get_Flip(self)
2269 def set_Flip(self, value):
2270 """set_Flip(ImageHeader self, float value)"""
2271 return _IMP_em.ImageHeader_set_Flip(self, value)
2274 def get_Weight(self):
2275 """get_Weight(ImageHeader self) -> float"""
2276 return _IMP_em.ImageHeader_get_Weight(self)
2279 def set_Weight(self, value):
2280 """set_Weight(ImageHeader self, float value)"""
2281 return _IMP_em.ImageHeader_set_Weight(self, value)
2284 def get_fNrec(self):
2285 """get_fNrec(ImageHeader self) -> float"""
2286 return _IMP_em.ImageHeader_get_fNrec(self)
2289 def set_fNrec(self, value):
2290 """set_fNrec(ImageHeader self, float value)"""
2291 return _IMP_em.ImageHeader_set_fNrec(self, value)
2294 def get_fNlabel(self):
2295 """get_fNlabel(ImageHeader self) -> float"""
2296 return _IMP_em.ImageHeader_get_fNlabel(self)
2299 def set_fNlabel(self, value):
2300 """set_fNlabel(ImageHeader self, float value)"""
2301 return _IMP_em.ImageHeader_set_fNlabel(self, value)
2304 def get_fIform(self):
2305 """get_fIform(ImageHeader self) -> float"""
2306 return _IMP_em.ImageHeader_get_fIform(self)
2309 def set_fIform(self, value):
2310 """set_fIform(ImageHeader self, float value)"""
2311 return _IMP_em.ImageHeader_set_fIform(self, value)
2314 def get_fImami(self):
2315 """get_fImami(ImageHeader self) -> float"""
2316 return _IMP_em.ImageHeader_get_fImami(self)
2319 def set_fImami(self, value):
2320 """set_fImami(ImageHeader self, float value)"""
2321 return _IMP_em.ImageHeader_set_fImami(self, value)
2324 def get_fFmax(self):
2325 """get_fFmax(ImageHeader self) -> float"""
2326 return _IMP_em.ImageHeader_get_fFmax(self)
2329 def set_fFmax(self, value):
2330 """set_fFmax(ImageHeader self, float value)"""
2331 return _IMP_em.ImageHeader_set_fFmax(self, value)
2334 def get_fFmin(self):
2335 """get_fFmin(ImageHeader self) -> float"""
2336 return _IMP_em.ImageHeader_get_fFmin(self)
2339 def set_fFmin(self, value):
2340 """set_fFmin(ImageHeader self, float value)"""
2341 return _IMP_em.ImageHeader_set_fFmin(self, value)
2345 """get_fAv(ImageHeader self) -> float"""
2346 return _IMP_em.ImageHeader_get_fAv(self)
2349 def set_fAv(self, value):
2350 """set_fAv(ImageHeader self, float value)"""
2351 return _IMP_em.ImageHeader_set_fAv(self, value)
2355 """get_fSig(ImageHeader self) -> float"""
2356 return _IMP_em.ImageHeader_get_fSig(self)
2359 def set_fSig(self, value):
2360 """set_fSig(ImageHeader self, float value)"""
2361 return _IMP_em.ImageHeader_set_fSig(self, value)
2364 def get_fIhist(self):
2365 """get_fIhist(ImageHeader self) -> float"""
2366 return _IMP_em.ImageHeader_get_fIhist(self)
2369 def set_fIhist(self, value):
2370 """set_fIhist(ImageHeader self, float value)"""
2371 return _IMP_em.ImageHeader_set_fIhist(self, value)
2374 def get_fLabrec(self):
2375 """get_fLabrec(ImageHeader self) -> float"""
2376 return _IMP_em.ImageHeader_get_fLabrec(self)
2379 def set_fLabrec(self, value):
2380 """set_fLabrec(ImageHeader self, float value)"""
2381 return _IMP_em.ImageHeader_set_fLabrec(self, value)
2384 def get_fIangle(self):
2385 """get_fIangle(ImageHeader self) -> float"""
2386 return _IMP_em.ImageHeader_get_fIangle(self)
2389 def set_fIangle(self, value):
2390 """set_fIangle(ImageHeader self, float value)"""
2391 return _IMP_em.ImageHeader_set_fIangle(self, value)
2394 def get_origin(self):
2395 """get_origin(ImageHeader self) -> Vector3D"""
2396 return _IMP_em.ImageHeader_get_origin(self)
2399 def set_origin(self, *args):
2401 set_origin(ImageHeader self, Vector3D v)
2402 set_origin(ImageHeader self, Vector2D v)
2404 return _IMP_em.ImageHeader_set_origin(self, *args)
2407 def get_object_pixel_size(self):
2408 """get_object_pixel_size(ImageHeader self) -> float"""
2409 return _IMP_em.ImageHeader_get_object_pixel_size(self)
2412 def set_object_pixel_size(self, value):
2413 """set_object_pixel_size(ImageHeader self, float value)"""
2414 return _IMP_em.ImageHeader_set_object_pixel_size(self, value)
2417 def get_fLabbyt(self):
2418 """get_fLabbyt(ImageHeader self) -> float"""
2419 return _IMP_em.ImageHeader_get_fLabbyt(self)
2422 def set_fLabbyt(self, value):
2423 """set_fLabbyt(ImageHeader self, float value)"""
2424 return _IMP_em.ImageHeader_set_fLabbyt(self, value)
2427 def get_fLenbyt(self):
2428 """get_fLenbyt(ImageHeader self) -> float"""
2429 return _IMP_em.ImageHeader_get_fLenbyt(self)
2432 def set_fLenbyt(self, value):
2433 """set_fLenbyt(ImageHeader self, float value)"""
2434 return _IMP_em.ImageHeader_set_fLenbyt(self, value)
2437 def get_fGeo_matrix(self, i, j):
2438 """get_fGeo_matrix(ImageHeader self, unsigned int i, unsigned int j) -> double"""
2439 return _IMP_em.ImageHeader_get_fGeo_matrix(self, i, j)
2442 def get_fFlag(self):
2443 """get_fFlag(ImageHeader self) -> float"""
2444 return _IMP_em.ImageHeader_get_fFlag(self)
2447 def set_fFlag(self, value):
2448 """set_fFlag(ImageHeader self, float value)"""
2449 return _IMP_em.ImageHeader_set_fFlag(self, value)
2452 def get_euler_angles(self):
2453 """get_euler_angles(ImageHeader self) -> Vector3D"""
2454 return _IMP_em.ImageHeader_get_euler_angles(self)
2457 def get_euler_angles1(self):
2458 """get_euler_angles1(ImageHeader self) -> Vector3D"""
2459 return _IMP_em.ImageHeader_get_euler_angles1(self)
2462 def get_euler_angles2(self):
2463 """get_euler_angles2(ImageHeader self) -> Vector3D"""
2464 return _IMP_em.ImageHeader_get_euler_angles2(self)
2467 def set_euler_angles(self, euler):
2468 """set_euler_angles(ImageHeader self, Vector3D euler)"""
2469 return _IMP_em.ImageHeader_set_euler_angles(self, euler)
2472 def set_euler_angles1(self, euler):
2473 """set_euler_angles1(ImageHeader self, Vector3D euler)"""
2474 return _IMP_em.ImageHeader_set_euler_angles1(self, euler)
2477 def set_euler_angles2(self, euler):
2478 """set_euler_angles2(ImageHeader self, Vector3D euler)"""
2479 return _IMP_em.ImageHeader_set_euler_angles2(self, euler)
2482 def is_normalized(self):
2483 """is_normalized(ImageHeader self) -> bool"""
2484 return _IMP_em.ImageHeader_is_normalized(self)
2488 """set_date(ImageHeader self)"""
2489 return _IMP_em.ImageHeader_set_date(self)
2493 """set_time(ImageHeader self)"""
2494 return _IMP_em.ImageHeader_set_time(self)
2497 def set_title(self, newName):
2498 """set_title(ImageHeader self, IMP::String newName)"""
2499 return _IMP_em.ImageHeader_set_title(self, newName)
2501 __swig_destroy__ = _IMP_em.delete_ImageHeader
2502 __del__ =
lambda self:
None
2503 ImageHeader_swigregister = _IMP_em.ImageHeader_swigregister
2504 ImageHeader_swigregister(ImageHeader)
2506 class SpiderMapReaderWriter(MapReaderWriter):
2507 """Proxy of C++ IMP::em::SpiderMapReaderWriter class"""
2508 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2509 filename_ = _swig_property(_IMP_em.SpiderMapReaderWriter_filename__get, _IMP_em.SpiderMapReaderWriter_filename__set)
2510 skip_type_check_ = _swig_property(_IMP_em.SpiderMapReaderWriter_skip_type_check__get, _IMP_em.SpiderMapReaderWriter_skip_type_check__set)
2511 force_reversed_ = _swig_property(_IMP_em.SpiderMapReaderWriter_force_reversed__get, _IMP_em.SpiderMapReaderWriter_force_reversed__set)
2512 skip_extra_checkings_ = _swig_property(_IMP_em.SpiderMapReaderWriter_skip_extra_checkings__get, _IMP_em.SpiderMapReaderWriter_skip_extra_checkings__set)
2514 def __init__(self, *args):
2516 __init__(IMP::em::SpiderMapReaderWriter self) -> SpiderMapReaderWriter
2517 __init__(IMP::em::SpiderMapReaderWriter self, IMP::String filename, bool skip_type_check, bool force_reversed, bool skip_extra_checkings) -> SpiderMapReaderWriter
2519 this = _IMP_em.new_SpiderMapReaderWriter(*args)
2521 self.this.append(this)
2526 """__str__(SpiderMapReaderWriter self) -> std::string"""
2527 return _IMP_em.SpiderMapReaderWriter___str__(self)
2531 """__repr__(SpiderMapReaderWriter self) -> std::string"""
2532 return _IMP_em.SpiderMapReaderWriter___repr__(self)
2535 return _object_cast_to_SpiderMapReaderWriter(o)
2536 get_from = staticmethod(get_from)
2538 SpiderMapReaderWriter_swigregister = _IMP_em.SpiderMapReaderWriter_swigregister
2539 SpiderMapReaderWriter_swigregister(SpiderMapReaderWriter)
2541 class FittingSolutions(object):
2542 """Proxy of C++ IMP::em::FittingSolutions class"""
2543 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2546 """__init__(IMP::em::FittingSolutions self) -> FittingSolutions"""
2547 this = _IMP_em.new_FittingSolutions()
2549 self.this.append(this)
2553 def get_number_of_solutions(self):
2554 """get_number_of_solutions(FittingSolutions self) -> int"""
2555 return _IMP_em.FittingSolutions_get_number_of_solutions(self)
2558 def get_transformation(self, i):
2559 """get_transformation(FittingSolutions self, unsigned int i) -> Transformation3D"""
2560 return _IMP_em.FittingSolutions_get_transformation(self, i)
2563 def get_score(self, i):
2564 """get_score(FittingSolutions self, unsigned int i) -> IMP::Float"""
2565 return _IMP_em.FittingSolutions_get_score(self, i)
2568 def set_score(self, i, score):
2569 """set_score(FittingSolutions self, unsigned int i, IMP::Float score)"""
2570 return _IMP_em.FittingSolutions_set_score(self, i, score)
2573 def add_solution(self, t, score):
2574 """add_solution(FittingSolutions self, Transformation3D t, IMP::Float score)"""
2575 return _IMP_em.FittingSolutions_add_solution(self, t, score)
2578 def sort(self, reverse=False):
2580 sort(FittingSolutions self, bool reverse=False)
2581 sort(FittingSolutions self)
2583 return _IMP_em.FittingSolutions_sort(self, reverse)
2587 """multiply(FittingSolutions self, Transformation3D t)"""
2588 return _IMP_em.FittingSolutions_multiply(self, t)
2591 def get_transformations(self):
2592 """get_transformations(FittingSolutions self) -> IMP::algebra::Transformation3Ds"""
2593 return _IMP_em.FittingSolutions_get_transformations(self)
2596 def show(self, *args):
2598 show(FittingSolutions self, _ostream out)
2599 show(FittingSolutions self)
2601 return _IMP_em.FittingSolutions_show(self, *args)
2605 """__str__(FittingSolutions self) -> std::string"""
2606 return _IMP_em.FittingSolutions___str__(self)
2610 """__repr__(FittingSolutions self) -> std::string"""
2611 return _IMP_em.FittingSolutions___repr__(self)
2613 __swig_destroy__ = _IMP_em.delete_FittingSolutions
2614 __del__ =
lambda self:
None
2615 FittingSolutions_swigregister = _IMP_em.FittingSolutions_swigregister
2616 FittingSolutions_swigregister(FittingSolutions)
2619 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):
2621 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
2622 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
2623 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
2624 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
2625 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
2626 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
2627 local_rigid_fitting_around_point(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, Vector3D anchor_centroid, IMP::OptimizerStates display_log) -> FittingSolutions
2629 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)
2631 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):
2633 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
2634 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
2635 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
2636 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
2637 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
2638 local_rigid_fitting(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5) -> FittingSolutions
2639 local_rigid_fitting(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, IMP::OptimizerStates display_log) -> FittingSolutions
2641 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)
2643 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):
2645 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
2646 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
2647 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
2648 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
2649 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
2650 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
2652 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)
2654 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):
2656 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
2657 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
2658 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
2659 local_rigid_fitting_grid_search(IMP::ParticlesTemp const & ps, FloatKey wei_key, DensityMap dmap, IMP::Int max_voxels_translation=2) -> FittingSolutions
2660 local_rigid_fitting_grid_search(IMP::ParticlesTemp const & ps, FloatKey wei_key, DensityMap dmap) -> FittingSolutions
2662 return _IMP_em.local_rigid_fitting_grid_search(ps, wei_key, dmap, max_voxels_translation, translation_step, max_angle_in_radians, number_of_rotations)
2666 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
2667 compute_fitting_scores(IMP::ParticlesTemp const & ps, DensityMap em_map, IMP::algebra::Transformation3Ds const & transformations, bool fast_version=False, bool local_score=False) -> FittingSolutions
2668 compute_fitting_scores(IMP::ParticlesTemp const & ps, DensityMap em_map, IMP::algebra::Transformation3Ds const & transformations, bool fast_version=False) -> FittingSolutions
2669 compute_fitting_scores(IMP::ParticlesTemp const & ps, DensityMap em_map, IMP::algebra::Transformation3Ds const & transformations) -> FittingSolutions
2670 compute_fitting_scores(DensityMap em_map, RigidBody rb, Refiner refiner, IMP::algebra::Transformation3Ds const & transformations) -> FittingSolutions
2672 return _IMP_em.compute_fitting_scores(*args)
2676 compute_fitting_score(IMP::ParticlesTemp const & ps, DensityMap em_map, FloatKey wei_key) -> IMP::Float
2677 compute_fitting_score(IMP::ParticlesTemp const & ps, DensityMap em_map) -> IMP::Float
2679 return _IMP_em.compute_fitting_score(*args)
2683 get_number_of_particles_outside_of_the_density(DensityMap dmap, IMP::Particles const & ps, Transformation3D t, float thr=0.0) -> long
2684 get_number_of_particles_outside_of_the_density(DensityMap dmap, IMP::Particles const & ps, Transformation3D t) -> long
2685 get_number_of_particles_outside_of_the_density(DensityMap dmap, IMP::Particles const & ps) -> long
2687 return _IMP_em.get_number_of_particles_outside_of_the_density(*args)
2691 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
2692 get_numbers_of_particles_outside_of_the_density(DensityMap dmap, IMP::Particles const & ps, IMP::algebra::Transformation3Ds const & transformations) -> IMP::Ints
2694 return _IMP_em.get_numbers_of_particles_outside_of_the_density(dmap, ps, transformations, thr)
2698 get_percentage_of_voxels_covered_by_particles(DensityMap dmap, IMP::Particles const & ps, float smoothing_radius=3., Transformation3D t, float thr=0.0) -> double
2699 get_percentage_of_voxels_covered_by_particles(DensityMap dmap, IMP::Particles const & ps, float smoothing_radius=3., Transformation3D t) -> double
2700 get_percentage_of_voxels_covered_by_particles(DensityMap dmap, IMP::Particles const & ps, float smoothing_radius=3.) -> double
2701 get_percentage_of_voxels_covered_by_particles(DensityMap dmap, IMP::Particles const & ps) -> double
2703 return _IMP_em.get_percentage_of_voxels_covered_by_particles(*args)
2705 """Proxy of C++ IMP::em::HighDensityEmbedding class"""
2706 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2708 def __init__(self, dm, threshold):
2709 """__init__(IMP::em::HighDensityEmbedding self, DensityMap dm, double threshold) -> HighDensityEmbedding"""
2710 this = _IMP_em.new_HighDensityEmbedding(dm, threshold)
2712 self.this.append(this)
2716 def get_version_info(self):
2717 """get_version_info(HighDensityEmbedding self) -> VersionInfo"""
2718 return _IMP_em.HighDensityEmbedding_get_version_info(self)
2722 """__str__(HighDensityEmbedding self) -> std::string"""
2723 return _IMP_em.HighDensityEmbedding___str__(self)
2727 """__repr__(HighDensityEmbedding self) -> std::string"""
2728 return _IMP_em.HighDensityEmbedding___repr__(self)
2731 return _object_cast_to_HighDensityEmbedding(o)
2732 get_from = staticmethod(get_from)
2734 HighDensityEmbedding_swigregister = _IMP_em.HighDensityEmbedding_swigregister
2735 HighDensityEmbedding_swigregister(HighDensityEmbedding)
2739 """mask_and_norm(DensityMap dmap, DensityMap mask) -> DensityMap"""
2740 return _IMP_em.mask_and_norm(dmap, mask)
2743 """get_volume_at_threshold(DensityMap m, IMP::Float threshold) -> IMP::Float"""
2744 return _IMP_em.get_volume_at_threshold(m, threshold)
2748 get_molecular_mass_at_threshold(DensityMap m, IMP::Float threshold, IMP::atom::ProteinDensityReference ref) -> IMP::Float
2749 get_molecular_mass_at_threshold(DensityMap m, IMP::Float threshold) -> IMP::Float
2751 return _IMP_em.get_molecular_mass_at_threshold(*args)
2754 """get_threshold_for_approximate_volume(DensityMap m, IMP::Float desired_volume) -> IMP::Float"""
2755 return _IMP_em.get_threshold_for_approximate_volume(m, desired_volume)
2759 get_threshold_for_approximate_mass(DensityMap m, IMP::Float desired_mass, IMP::atom::ProteinDensityReference ref) -> IMP::Float
2760 get_threshold_for_approximate_mass(DensityMap m, IMP::Float desired_mass) -> IMP::Float
2762 return _IMP_em.get_threshold_for_approximate_mass(*args)
2764 """Proxy of C++ IMP::em::EnvelopePenetrationRestraint class"""
2765 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2767 def __init__(self, ps, em_map, threshold):
2768 """__init__(IMP::em::EnvelopePenetrationRestraint self, IMP::Particles ps, DensityMap em_map, IMP::Float threshold) -> EnvelopePenetrationRestraint"""
2769 this = _IMP_em.new_EnvelopePenetrationRestraint(ps, em_map, threshold)
2771 self.this.append(this)
2775 def do_get_inputs(self):
2776 """do_get_inputs(EnvelopePenetrationRestraint self) -> IMP::ModelObjectsTemp"""
2777 return _IMP_em.EnvelopePenetrationRestraint_do_get_inputs(self)
2780 def get_version_info(self):
2781 """get_version_info(EnvelopePenetrationRestraint self) -> VersionInfo"""
2782 return _IMP_em.EnvelopePenetrationRestraint_get_version_info(self)
2786 """__str__(EnvelopePenetrationRestraint self) -> std::string"""
2787 return _IMP_em.EnvelopePenetrationRestraint___str__(self)
2791 """__repr__(EnvelopePenetrationRestraint self) -> std::string"""
2792 return _IMP_em.EnvelopePenetrationRestraint___repr__(self)
2795 return _object_cast_to_EnvelopePenetrationRestraint(o)
2796 get_from = staticmethod(get_from)
2798 EnvelopePenetrationRestraint_swigregister = _IMP_em.EnvelopePenetrationRestraint_swigregister
2799 EnvelopePenetrationRestraint_swigregister(EnvelopePenetrationRestraint)
2802 """Proxy of C++ IMP::em::PCAFitRestraint class"""
2803 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2805 def __init__(self, *args):
2807 __init__(IMP::em::PCAFitRestraint self, IMP::ParticlesTemp ps, DensityMap em_map, float threahold, float max_pca_size_diff, float max_angle_diff, float max_centroid_diff, FloatKey weight_key) -> PCAFitRestraint
2808 __init__(IMP::em::PCAFitRestraint self, IMP::ParticlesTemp ps, DensityMap em_map, float threahold, float max_pca_size_diff, float max_angle_diff, float max_centroid_diff) -> PCAFitRestraint
2810 this = _IMP_em.new_PCAFitRestraint(*args)
2812 self.this.append(this)
2816 def do_get_inputs(self):
2817 """do_get_inputs(PCAFitRestraint self) -> IMP::ModelObjectsTemp"""
2818 return _IMP_em.PCAFitRestraint_do_get_inputs(self)
2821 def get_version_info(self):
2822 """get_version_info(PCAFitRestraint self) -> VersionInfo"""
2823 return _IMP_em.PCAFitRestraint_get_version_info(self)
2827 """__str__(PCAFitRestraint self) -> std::string"""
2828 return _IMP_em.PCAFitRestraint___str__(self)
2832 """__repr__(PCAFitRestraint self) -> std::string"""
2833 return _IMP_em.PCAFitRestraint___repr__(self)
2836 return _object_cast_to_PCAFitRestraint(o)
2837 get_from = staticmethod(get_from)
2839 PCAFitRestraint_swigregister = _IMP_em.PCAFitRestraint_swigregister
2840 PCAFitRestraint_swigregister(PCAFitRestraint)
2843 """Proxy of C++ IMP::em::EnvelopeFitRestraint class"""
2844 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2846 def __init__(self, particles, em_map, density_threshold, penetration_threshold):
2847 """__init__(IMP::em::EnvelopeFitRestraint self, IMP::Particles particles, DensityMap em_map, double density_threshold, double penetration_threshold) -> EnvelopeFitRestraint"""
2848 this = _IMP_em.new_EnvelopeFitRestraint(particles, em_map, density_threshold, penetration_threshold)
2850 self.this.append(this)
2854 def get_transformation(self):
2855 """get_transformation(EnvelopeFitRestraint self) -> Transformation3D"""
2856 return _IMP_em.EnvelopeFitRestraint_get_transformation(self)
2859 def apply_transformation(self):
2860 """apply_transformation(EnvelopeFitRestraint self)"""
2861 return _IMP_em.EnvelopeFitRestraint_apply_transformation(self)
2864 def do_get_inputs(self):
2865 """do_get_inputs(EnvelopeFitRestraint self) -> IMP::ModelObjectsTemp"""
2866 return _IMP_em.EnvelopeFitRestraint_do_get_inputs(self)
2869 def get_version_info(self):
2870 """get_version_info(EnvelopeFitRestraint self) -> VersionInfo"""
2871 return _IMP_em.EnvelopeFitRestraint_get_version_info(self)
2875 """__str__(EnvelopeFitRestraint self) -> std::string"""
2876 return _IMP_em.EnvelopeFitRestraint___str__(self)
2880 """__repr__(EnvelopeFitRestraint self) -> std::string"""
2881 return _IMP_em.EnvelopeFitRestraint___repr__(self)
2884 return _object_cast_to_EnvelopeFitRestraint(o)
2885 get_from = staticmethod(get_from)
2887 EnvelopeFitRestraint_swigregister = _IMP_em.EnvelopeFitRestraint_swigregister
2888 EnvelopeFitRestraint_swigregister(EnvelopeFitRestraint)
2893 """Write out principal components to a file in Chimera Marker format"""
2894 eigen_values = pca.get_principal_values()
2895 eigen_vecs = pca.get_principal_components()
2896 centroid = pca.get_centroid()
2898 fh.write(
"<marker_set>\n")
2899 fh.write(
"<!-- PCA with eigen values: (%g,%g,%g) and "
2900 "centroid (%g,%g,%g) -->\n"
2901 % (math.sqrt(eigen_values[0]),
2902 math.sqrt(eigen_values[1]),
2903 math.sqrt(eigen_values[2]),
2904 centroid[0], centroid[1], centroid[2]))
2909 val = math.sqrt(eigen_values[i])
2910 v1 = centroid - val * eigen_vecs[i]
2911 v2 = centroid + val * eigen_vecs[i]
2912 for markerid, v
in ((i*2+1, v1), (i*2+2, v2)):
2913 fh.write(
"<marker id=\"%d\" x=\"%g\" y=\"%g\" z=\"%g\" "
2915 % (markerid, v[0], v[1], v[2], radius))
2917 for i
in range(1, 7, 2):
2918 fh.write(
"<link id1= \"%d\" id2=\"%d\" radius=\"%g\"/>\n"
2920 fh.write(
"</marker_set>\n")
2923 def get_module_version():
2924 """get_module_version() -> std::string const"""
2925 return _IMP_em.get_module_version()
2928 """get_example_path(std::string fname) -> std::string"""
2929 return _IMP_em.get_example_path(fname)
2932 """get_data_path(std::string fname) -> std::string"""
2933 return _IMP_em.get_data_path(fname)
2934 from .
import _version_check
2935 _version_check.check_version(get_module_version())
2936 __version__ = get_module_version()
void get_transformed_into(const DensityMap *source, const algebra::Transformation3D &tr, DensityMap *into, bool calc_rms=true)
Rotate a density map into another map.
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)
Particles density2particles(DensityMap *dmap, Float threshold, Model *m, int step=1)
Converts a density grid to a set of paritlces.
algebra::Vector3Ds density2vectors(DensityMap *dmap, Float threshold)
Converts a density grid to a set of paritlces.
algebra::BoundingBoxD< 3 > get_bounding_box(const DensityMap *m, Float threshold)
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.
Various classes to hold sets of particles.
DensityMap * binarize(DensityMap *orig_map, float threshold, bool reverse=false)
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)
DensityMap * get_segment_by_masking(DensityMap *map_to_segment, DensityMap *mask, float mas_threshold)
Get a segment of the map covered by another map.
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.
Composable functors to implement scores via compile-time composition.
DensityMap * read_map(std::string filename, MapReaderWriter *reader)
Read a density map from a file and return it.
Code to compute statistical measures.
algebra::GridD< 3, algebra::DenseGridStorageD< 3, float >, float > get_grid(DensityMap *in_map)
def write_pca_cmm
Write out principal components to a file in Chimera Marker format.
double convolute(const DensityMap *m1, const DensityMap *m2)
Common base class for heavy weight IMP objects.
DensityMap * multiply(const DensityMap *m1, const DensityMap *m2)
void write_map(DensityMap *m, std::string filename, MapReaderWriter *writer)
Write a density map to a file.
DensityHeader create_density_header(const algebra::BoundingBoxD< 3 > &bb, float spacing)
Create a header from a bounding box in 3D.
DensityMap * get_binarized_interior(DensityMap *dmap)
Return a binaries density map with 1 for voxels that are internal.
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.
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 get_density(const DensityMap *m, const algebra::Vector3D &v)
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)
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)
DensityMap * get_transformed(const DensityMap *input, const algebra::Transformation3D &tr, double threshold)
Return a new density map containing a rotated version of the old one.
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)
Returns the centroid of a set of vectors.
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...
void show(Hierarchy h, std::ostream &out=std::cout)
Print out a molecular hierarchy.
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.
void add_to_map(DensityMap *dm, const Particles &pis)
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.
DensityMap * get_resampled(DensityMap *input, double scaling)
Get a resampled version of the map.
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.