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."""
116 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
118 def __init__(self, *args, **kwargs):
119 raise AttributeError(
"No constructor defined - class is abstract")
120 __repr__ = _swig_repr
121 __swig_destroy__ = _IMP_em.delete_IMP_EM_SwigPyIterator
122 __del__ =
lambda self:
None
125 """value(IMP_EM_SwigPyIterator self) -> PyObject *"""
126 return _IMP_em.IMP_EM_SwigPyIterator_value(self)
131 incr(IMP_EM_SwigPyIterator self, size_t n=1) -> IMP_EM_SwigPyIterator
132 incr(IMP_EM_SwigPyIterator self) -> IMP_EM_SwigPyIterator
134 return _IMP_em.IMP_EM_SwigPyIterator_incr(self, n)
139 decr(IMP_EM_SwigPyIterator self, size_t n=1) -> IMP_EM_SwigPyIterator
140 decr(IMP_EM_SwigPyIterator self) -> IMP_EM_SwigPyIterator
142 return _IMP_em.IMP_EM_SwigPyIterator_decr(self, n)
145 def distance(self, x):
146 """distance(IMP_EM_SwigPyIterator self, IMP_EM_SwigPyIterator x) -> ptrdiff_t"""
147 return _IMP_em.IMP_EM_SwigPyIterator_distance(self, x)
151 """equal(IMP_EM_SwigPyIterator self, IMP_EM_SwigPyIterator x) -> bool"""
152 return _IMP_em.IMP_EM_SwigPyIterator_equal(self, x)
156 """copy(IMP_EM_SwigPyIterator self) -> IMP_EM_SwigPyIterator"""
157 return _IMP_em.IMP_EM_SwigPyIterator_copy(self)
161 """next(IMP_EM_SwigPyIterator self) -> PyObject *"""
162 return _IMP_em.IMP_EM_SwigPyIterator_next(self)
166 """__next__(IMP_EM_SwigPyIterator self) -> PyObject *"""
167 return _IMP_em.IMP_EM_SwigPyIterator___next__(self)
171 """previous(IMP_EM_SwigPyIterator self) -> PyObject *"""
172 return _IMP_em.IMP_EM_SwigPyIterator_previous(self)
175 def advance(self, n):
176 """advance(IMP_EM_SwigPyIterator self, ptrdiff_t n) -> IMP_EM_SwigPyIterator"""
177 return _IMP_em.IMP_EM_SwigPyIterator_advance(self, n)
181 """__eq__(IMP_EM_SwigPyIterator self, IMP_EM_SwigPyIterator x) -> bool"""
182 return _IMP_em.IMP_EM_SwigPyIterator___eq__(self, x)
186 """__ne__(IMP_EM_SwigPyIterator self, IMP_EM_SwigPyIterator x) -> bool"""
187 return _IMP_em.IMP_EM_SwigPyIterator___ne__(self, x)
190 def __iadd__(self, n):
191 """__iadd__(IMP_EM_SwigPyIterator self, ptrdiff_t n) -> IMP_EM_SwigPyIterator"""
192 return _IMP_em.IMP_EM_SwigPyIterator___iadd__(self, n)
195 def __isub__(self, n):
196 """__isub__(IMP_EM_SwigPyIterator self, ptrdiff_t n) -> IMP_EM_SwigPyIterator"""
197 return _IMP_em.IMP_EM_SwigPyIterator___isub__(self, n)
200 def __add__(self, n):
201 """__add__(IMP_EM_SwigPyIterator self, ptrdiff_t n) -> IMP_EM_SwigPyIterator"""
202 return _IMP_em.IMP_EM_SwigPyIterator___add__(self, n)
205 def __sub__(self, *args):
207 __sub__(IMP_EM_SwigPyIterator self, ptrdiff_t n) -> IMP_EM_SwigPyIterator
208 __sub__(IMP_EM_SwigPyIterator self, IMP_EM_SwigPyIterator x) -> ptrdiff_t
210 return _IMP_em.IMP_EM_SwigPyIterator___sub__(self, *args)
214 IMP_EM_SwigPyIterator_swigregister = _IMP_em.IMP_EM_SwigPyIterator_swigregister
215 IMP_EM_SwigPyIterator_swigregister(IMP_EM_SwigPyIterator)
224 _IMP_em.IMP_DEBUG_swigconstant(_IMP_em)
225 IMP_DEBUG = _IMP_em.IMP_DEBUG
227 _IMP_em.IMP_RELEASE_swigconstant(_IMP_em)
228 IMP_RELEASE = _IMP_em.IMP_RELEASE
230 _IMP_em.IMP_SILENT_swigconstant(_IMP_em)
231 IMP_SILENT = _IMP_em.IMP_SILENT
233 _IMP_em.IMP_PROGRESS_swigconstant(_IMP_em)
234 IMP_PROGRESS = _IMP_em.IMP_PROGRESS
236 _IMP_em.IMP_TERSE_swigconstant(_IMP_em)
237 IMP_TERSE = _IMP_em.IMP_TERSE
239 _IMP_em.IMP_VERBOSE_swigconstant(_IMP_em)
240 IMP_VERBOSE = _IMP_em.IMP_VERBOSE
242 _IMP_em.IMP_MEMORY_swigconstant(_IMP_em)
243 IMP_MEMORY = _IMP_em.IMP_MEMORY
245 _IMP_em.IMP_NONE_swigconstant(_IMP_em)
246 IMP_NONE = _IMP_em.IMP_NONE
248 _IMP_em.IMP_USAGE_swigconstant(_IMP_em)
249 IMP_USAGE = _IMP_em.IMP_USAGE
251 _IMP_em.IMP_INTERNAL_swigconstant(_IMP_em)
252 IMP_INTERNAL = _IMP_em.IMP_INTERNAL
254 _IMP_em.IMP_KERNEL_HAS_LOG4CXX_swigconstant(_IMP_em)
255 IMP_KERNEL_HAS_LOG4CXX = _IMP_em.IMP_KERNEL_HAS_LOG4CXX
257 _IMP_em.IMP_COMPILER_HAS_AUTO_swigconstant(_IMP_em)
258 IMP_COMPILER_HAS_AUTO = _IMP_em.IMP_COMPILER_HAS_AUTO
260 _IMP_em.IMP_COMPILER_HAS_DEBUG_VECTOR_swigconstant(_IMP_em)
261 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_em.IMP_COMPILER_HAS_DEBUG_VECTOR
263 _IMP_em.IMP_COMPILER_HAS_UNIQUE_PTR_swigconstant(_IMP_em)
264 IMP_COMPILER_HAS_UNIQUE_PTR = _IMP_em.IMP_COMPILER_HAS_UNIQUE_PTR
266 _IMP_em.IMP_KERNEL_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
267 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_em.IMP_KERNEL_HAS_BOOST_RANDOM
269 _IMP_em.IMP_KERNEL_HAS_GPERFTOOLS_swigconstant(_IMP_em)
270 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_em.IMP_KERNEL_HAS_GPERFTOOLS
272 _IMP_em.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER_swigconstant(_IMP_em)
273 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_em.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
275 _IMP_em.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER_swigconstant(_IMP_em)
276 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_em.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
278 _IMP_em.IMPKERNEL_SHOW_WARNINGS_swigconstant(_IMP_em)
279 IMPKERNEL_SHOW_WARNINGS = _IMP_em.IMPKERNEL_SHOW_WARNINGS
282 class _DirectorObjects(object):
283 """@internal Simple class to keep references to director objects
284 to prevent premature deletion."""
287 def register(self, obj):
288 """Take a reference to a director object; will only work for
289 refcounted C++ classes"""
290 if hasattr(obj,
'get_ref_count'):
291 self._objects.append(obj)
293 """Only drop our reference and allow cleanup by Python if no other
294 Python references exist (we hold 3 references: one in self._objects,
295 one in x, and one in the argument list for getrefcount) *and* no
296 other C++ references exist (the Python object always holds one)"""
297 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
298 or x.get_ref_count() > 1]
302 def get_object_count(self):
303 """Get number of director objects (useful for testing only)"""
304 return len(self._objects)
305 _director_objects = _DirectorObjects()
307 class _ostream(object):
308 """Proxy of C++ std::ostream class."""
310 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
312 def __init__(self, *args, **kwargs):
313 raise AttributeError(
"No constructor defined")
314 __repr__ = _swig_repr
316 def write(self, osa_buf):
317 """write(_ostream self, char const * osa_buf)"""
318 return _IMP_em._ostream_write(self, osa_buf)
320 _ostream_swigregister = _IMP_em._ostream_swigregister
321 _ostream_swigregister(_ostream)
324 _IMP_em.IMP_COMPILER_HAS_OVERRIDE_swigconstant(_IMP_em)
325 IMP_COMPILER_HAS_OVERRIDE = _IMP_em.IMP_COMPILER_HAS_OVERRIDE
327 _IMP_em.IMP_COMPILER_HAS_FINAL_swigconstant(_IMP_em)
328 IMP_COMPILER_HAS_FINAL = _IMP_em.IMP_COMPILER_HAS_FINAL
330 _IMP_em.IMP_HAS_NOEXCEPT_swigconstant(_IMP_em)
331 IMP_HAS_NOEXCEPT = _IMP_em.IMP_HAS_NOEXCEPT
334 _IMP_em.IMP_CGAL_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
335 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_CGAL_HAS_BOOST_FILESYSTEM
337 _IMP_em.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
338 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
340 _IMP_em.IMP_CGAL_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
341 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_em.IMP_CGAL_HAS_BOOST_RANDOM
343 _IMP_em.IMP_CGAL_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
344 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_em.IMP_CGAL_HAS_BOOST_SYSTEM
346 _IMP_em.IMPCGAL_SHOW_WARNINGS_swigconstant(_IMP_em)
347 IMPCGAL_SHOW_WARNINGS = _IMP_em.IMPCGAL_SHOW_WARNINGS
350 _IMP_em.IMP_ALGEBRA_HAS_IMP_CGAL_swigconstant(_IMP_em)
351 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_em.IMP_ALGEBRA_HAS_IMP_CGAL
353 _IMP_em.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
354 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
356 _IMP_em.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
357 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
359 _IMP_em.IMP_ALGEBRA_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
360 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_em.IMP_ALGEBRA_HAS_BOOST_RANDOM
362 _IMP_em.IMP_ALGEBRA_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
363 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_em.IMP_ALGEBRA_HAS_BOOST_SYSTEM
365 _IMP_em.IMP_ALGEBRA_HAS_CGAL_swigconstant(_IMP_em)
366 IMP_ALGEBRA_HAS_CGAL = _IMP_em.IMP_ALGEBRA_HAS_CGAL
368 _IMP_em.IMP_ALGEBRA_HAS_ANN_swigconstant(_IMP_em)
369 IMP_ALGEBRA_HAS_ANN = _IMP_em.IMP_ALGEBRA_HAS_ANN
371 _IMP_em.IMPALGEBRA_SHOW_WARNINGS_swigconstant(_IMP_em)
372 IMPALGEBRA_SHOW_WARNINGS = _IMP_em.IMPALGEBRA_SHOW_WARNINGS
375 _IMP_em.IMP_DISPLAY_HAS_IMP_CGAL_swigconstant(_IMP_em)
376 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_em.IMP_DISPLAY_HAS_IMP_CGAL
378 _IMP_em.IMP_DISPLAY_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
379 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
381 _IMP_em.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
382 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
384 _IMP_em.IMP_DISPLAY_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
385 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_em.IMP_DISPLAY_HAS_BOOST_RANDOM
387 _IMP_em.IMP_DISPLAY_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
388 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_em.IMP_DISPLAY_HAS_BOOST_SYSTEM
390 _IMP_em.IMP_DISPLAY_HAS_CGAL_swigconstant(_IMP_em)
391 IMP_DISPLAY_HAS_CGAL = _IMP_em.IMP_DISPLAY_HAS_CGAL
393 _IMP_em.IMPDISPLAY_SHOW_WARNINGS_swigconstant(_IMP_em)
394 IMPDISPLAY_SHOW_WARNINGS = _IMP_em.IMPDISPLAY_SHOW_WARNINGS
397 _IMP_em.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL_swigconstant(_IMP_em)
398 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_em.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
400 _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
401 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
403 _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
404 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
406 _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
407 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
409 _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
410 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
412 _IMP_em.IMP_SCORE_FUNCTOR_HAS_CGAL_swigconstant(_IMP_em)
413 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_em.IMP_SCORE_FUNCTOR_HAS_CGAL
415 _IMP_em.IMP_SCORE_FUNCTOR_HAS_HDF5_swigconstant(_IMP_em)
416 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_em.IMP_SCORE_FUNCTOR_HAS_HDF5
418 _IMP_em.IMPSCOREFUNCTOR_SHOW_WARNINGS_swigconstant(_IMP_em)
419 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_em.IMPSCOREFUNCTOR_SHOW_WARNINGS
422 _IMP_em.IMP_STATISTICS_HAS_IMP_CGAL_swigconstant(_IMP_em)
423 IMP_STATISTICS_HAS_IMP_CGAL = _IMP_em.IMP_STATISTICS_HAS_IMP_CGAL
425 _IMP_em.IMP_STATISTICS_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
426 IMP_STATISTICS_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_STATISTICS_HAS_BOOST_FILESYSTEM
428 _IMP_em.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
429 IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS
431 _IMP_em.IMP_STATISTICS_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
432 IMP_STATISTICS_HAS_BOOST_RANDOM = _IMP_em.IMP_STATISTICS_HAS_BOOST_RANDOM
434 _IMP_em.IMP_STATISTICS_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
435 IMP_STATISTICS_HAS_BOOST_SYSTEM = _IMP_em.IMP_STATISTICS_HAS_BOOST_SYSTEM
437 _IMP_em.IMP_STATISTICS_HAS_CGAL_swigconstant(_IMP_em)
438 IMP_STATISTICS_HAS_CGAL = _IMP_em.IMP_STATISTICS_HAS_CGAL
440 _IMP_em.IMPSTATISTICS_SHOW_WARNINGS_swigconstant(_IMP_em)
441 IMPSTATISTICS_SHOW_WARNINGS = _IMP_em.IMPSTATISTICS_SHOW_WARNINGS
444 _IMP_em.IMP_CORE_HAS_IMP_CGAL_swigconstant(_IMP_em)
445 IMP_CORE_HAS_IMP_CGAL = _IMP_em.IMP_CORE_HAS_IMP_CGAL
447 _IMP_em.IMP_CORE_HAS_IMP_KERNEL_swigconstant(_IMP_em)
448 IMP_CORE_HAS_IMP_KERNEL = _IMP_em.IMP_CORE_HAS_IMP_KERNEL
450 _IMP_em.IMP_CORE_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
451 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_CORE_HAS_BOOST_FILESYSTEM
453 _IMP_em.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
454 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
456 _IMP_em.IMP_CORE_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
457 IMP_CORE_HAS_BOOST_RANDOM = _IMP_em.IMP_CORE_HAS_BOOST_RANDOM
459 _IMP_em.IMP_CORE_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
460 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_em.IMP_CORE_HAS_BOOST_SYSTEM
462 _IMP_em.IMP_CORE_HAS_CGAL_swigconstant(_IMP_em)
463 IMP_CORE_HAS_CGAL = _IMP_em.IMP_CORE_HAS_CGAL
465 _IMP_em.IMP_CORE_HAS_HDF5_swigconstant(_IMP_em)
466 IMP_CORE_HAS_HDF5 = _IMP_em.IMP_CORE_HAS_HDF5
468 _IMP_em.IMPCORE_SHOW_WARNINGS_swigconstant(_IMP_em)
469 IMPCORE_SHOW_WARNINGS = _IMP_em.IMPCORE_SHOW_WARNINGS
472 _IMP_em.IMP_CONTAINER_HAS_IMP_ALGEBRA_swigconstant(_IMP_em)
473 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_em.IMP_CONTAINER_HAS_IMP_ALGEBRA
475 _IMP_em.IMP_CONTAINER_HAS_IMP_CGAL_swigconstant(_IMP_em)
476 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_em.IMP_CONTAINER_HAS_IMP_CGAL
478 _IMP_em.IMP_CONTAINER_HAS_IMP_DISPLAY_swigconstant(_IMP_em)
479 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_em.IMP_CONTAINER_HAS_IMP_DISPLAY
481 _IMP_em.IMP_CONTAINER_HAS_IMP_KERNEL_swigconstant(_IMP_em)
482 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_em.IMP_CONTAINER_HAS_IMP_KERNEL
484 _IMP_em.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_em)
485 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_em.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
487 _IMP_em.IMP_CONTAINER_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
488 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
490 _IMP_em.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
491 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
493 _IMP_em.IMP_CONTAINER_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
494 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_em.IMP_CONTAINER_HAS_BOOST_RANDOM
496 _IMP_em.IMP_CONTAINER_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
497 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_em.IMP_CONTAINER_HAS_BOOST_SYSTEM
499 _IMP_em.IMP_CONTAINER_HAS_CGAL_swigconstant(_IMP_em)
500 IMP_CONTAINER_HAS_CGAL = _IMP_em.IMP_CONTAINER_HAS_CGAL
502 _IMP_em.IMP_CONTAINER_HAS_HDF5_swigconstant(_IMP_em)
503 IMP_CONTAINER_HAS_HDF5 = _IMP_em.IMP_CONTAINER_HAS_HDF5
505 _IMP_em.IMPCONTAINER_SHOW_WARNINGS_swigconstant(_IMP_em)
506 IMPCONTAINER_SHOW_WARNINGS = _IMP_em.IMPCONTAINER_SHOW_WARNINGS
509 _IMP_em.IMP_ATOM_HAS_IMP_CGAL_swigconstant(_IMP_em)
510 IMP_ATOM_HAS_IMP_CGAL = _IMP_em.IMP_ATOM_HAS_IMP_CGAL
512 _IMP_em.IMP_ATOM_HAS_IMP_KERNEL_swigconstant(_IMP_em)
513 IMP_ATOM_HAS_IMP_KERNEL = _IMP_em.IMP_ATOM_HAS_IMP_KERNEL
515 _IMP_em.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_em)
516 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_em.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
518 _IMP_em.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
519 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
521 _IMP_em.IMP_ATOM_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
522 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_em.IMP_ATOM_HAS_BOOST_RANDOM
524 _IMP_em.IMP_ATOM_HAS_BOOST_REGEX_swigconstant(_IMP_em)
525 IMP_ATOM_HAS_BOOST_REGEX = _IMP_em.IMP_ATOM_HAS_BOOST_REGEX
527 _IMP_em.IMP_ATOM_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
528 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_em.IMP_ATOM_HAS_BOOST_SYSTEM
530 _IMP_em.IMP_ATOM_HAS_CGAL_swigconstant(_IMP_em)
531 IMP_ATOM_HAS_CGAL = _IMP_em.IMP_ATOM_HAS_CGAL
533 _IMP_em.IMP_ATOM_HAS_HDF5_swigconstant(_IMP_em)
534 IMP_ATOM_HAS_HDF5 = _IMP_em.IMP_ATOM_HAS_HDF5
536 _IMP_em.IMPATOM_SHOW_WARNINGS_swigconstant(_IMP_em)
537 IMPATOM_SHOW_WARNINGS = _IMP_em.IMPATOM_SHOW_WARNINGS
539 _IMP_em.IMP_ATOM_TYPE_INDEX_swigconstant(_IMP_em)
540 IMP_ATOM_TYPE_INDEX = _IMP_em.IMP_ATOM_TYPE_INDEX
542 _IMP_em.IMP_RESIDUE_TYPE_INDEX_swigconstant(_IMP_em)
543 IMP_RESIDUE_TYPE_INDEX = _IMP_em.IMP_RESIDUE_TYPE_INDEX
545 _IMP_em.IMP_HIERARCHY_TYPE_INDEX_swigconstant(_IMP_em)
546 IMP_HIERARCHY_TYPE_INDEX = _IMP_em.IMP_HIERARCHY_TYPE_INDEX
549 _IMP_em.IMP_EM_HAS_IMP_CGAL_swigconstant(_IMP_em)
550 IMP_EM_HAS_IMP_CGAL = _IMP_em.IMP_EM_HAS_IMP_CGAL
552 _IMP_em.IMP_EM_HAS_IMP_CONTAINER_swigconstant(_IMP_em)
553 IMP_EM_HAS_IMP_CONTAINER = _IMP_em.IMP_EM_HAS_IMP_CONTAINER
555 _IMP_em.IMP_EM_HAS_IMP_DISPLAY_swigconstant(_IMP_em)
556 IMP_EM_HAS_IMP_DISPLAY = _IMP_em.IMP_EM_HAS_IMP_DISPLAY
558 _IMP_em.IMP_EM_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_em)
559 IMP_EM_HAS_IMP_SCORE_FUNCTOR = _IMP_em.IMP_EM_HAS_IMP_SCORE_FUNCTOR
561 _IMP_em.IMP_EM_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
562 IMP_EM_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_EM_HAS_BOOST_FILESYSTEM
564 _IMP_em.IMP_EM_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
565 IMP_EM_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_EM_HAS_BOOST_PROGRAMOPTIONS
567 _IMP_em.IMP_EM_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
568 IMP_EM_HAS_BOOST_RANDOM = _IMP_em.IMP_EM_HAS_BOOST_RANDOM
570 _IMP_em.IMP_EM_HAS_BOOST_REGEX_swigconstant(_IMP_em)
571 IMP_EM_HAS_BOOST_REGEX = _IMP_em.IMP_EM_HAS_BOOST_REGEX
573 _IMP_em.IMP_EM_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
574 IMP_EM_HAS_BOOST_SYSTEM = _IMP_em.IMP_EM_HAS_BOOST_SYSTEM
576 _IMP_em.IMP_EM_HAS_CGAL_swigconstant(_IMP_em)
577 IMP_EM_HAS_CGAL = _IMP_em.IMP_EM_HAS_CGAL
579 _IMP_em.IMP_EM_HAS_HDF5_swigconstant(_IMP_em)
580 IMP_EM_HAS_HDF5 = _IMP_em.IMP_EM_HAS_HDF5
582 _IMP_em.IMPEM_SHOW_WARNINGS_swigconstant(_IMP_em)
583 IMPEM_SHOW_WARNINGS = _IMP_em.IMPEM_SHOW_WARNINGS
585 _object_types.append(
"DensityMap")
588 def _object_cast_to_DensityMap(o):
589 """_object_cast_to_DensityMap(Object o) -> DensityMap"""
590 return _IMP_em._object_cast_to_DensityMap(o)
592 _object_types.append(
"SampledDensityMap")
595 def _object_cast_to_SampledDensityMap(o):
596 """_object_cast_to_SampledDensityMap(Object o) -> SampledDensityMap"""
597 return _IMP_em._object_cast_to_SampledDensityMap(o)
599 _object_types.append(
"SurfaceShellDensityMap")
602 def _object_cast_to_SurfaceShellDensityMap(o):
603 """_object_cast_to_SurfaceShellDensityMap(Object o) -> SurfaceShellDensityMap"""
604 return _IMP_em._object_cast_to_SurfaceShellDensityMap(o)
606 _object_types.append(
"FitRestraint")
609 def _object_cast_to_FitRestraint(o):
610 """_object_cast_to_FitRestraint(Object o) -> FitRestraint"""
611 return _IMP_em._object_cast_to_FitRestraint(o)
613 _object_types.append(
"PCAFitRestraint")
616 def _object_cast_to_PCAFitRestraint(o):
617 """_object_cast_to_PCAFitRestraint(Object o) -> PCAFitRestraint"""
618 return _IMP_em._object_cast_to_PCAFitRestraint(o)
620 _object_types.append(
"EnvelopePenetrationRestraint")
623 def _object_cast_to_EnvelopePenetrationRestraint(o):
624 """_object_cast_to_EnvelopePenetrationRestraint(Object o) -> EnvelopePenetrationRestraint"""
625 return _IMP_em._object_cast_to_EnvelopePenetrationRestraint(o)
627 _object_types.append(
"EnvelopeFitRestraint")
630 def _object_cast_to_EnvelopeFitRestraint(o):
631 """_object_cast_to_EnvelopeFitRestraint(Object o) -> EnvelopeFitRestraint"""
632 return _IMP_em._object_cast_to_EnvelopeFitRestraint(o)
634 KernelParametersList=list
635 _plural_types.append(
"KernelParametersList")
636 _value_types.append(
"KernelParameters")
639 _object_types.append(
"HighDensityEmbedding")
642 def _object_cast_to_HighDensityEmbedding(o):
643 """_object_cast_to_HighDensityEmbedding(Object o) -> HighDensityEmbedding"""
644 return _IMP_em._object_cast_to_HighDensityEmbedding(o)
646 _object_types.append(
"MapReaderWriter")
649 def _object_cast_to_MapReaderWriter(o):
650 """_object_cast_to_MapReaderWriter(Object o) -> MapReaderWriter"""
651 return _IMP_em._object_cast_to_MapReaderWriter(o)
653 _object_types.append(
"MRCReaderWriter")
656 def _object_cast_to_MRCReaderWriter(o):
657 """_object_cast_to_MRCReaderWriter(Object o) -> MRCReaderWriter"""
658 return _IMP_em._object_cast_to_MRCReaderWriter(o)
660 _object_types.append(
"SpiderMapReaderWriter")
663 def _object_cast_to_SpiderMapReaderWriter(o):
664 """_object_cast_to_SpiderMapReaderWriter(Object o) -> SpiderMapReaderWriter"""
665 return _IMP_em._object_cast_to_SpiderMapReaderWriter(o)
667 _object_types.append(
"EMReaderWriter")
670 def _object_cast_to_EMReaderWriter(o):
671 """_object_cast_to_EMReaderWriter(Object o) -> EMReaderWriter"""
672 return _IMP_em._object_cast_to_EMReaderWriter(o)
674 _object_types.append(
"XplorReaderWriter")
677 def _object_cast_to_XplorReaderWriter(o):
678 """_object_cast_to_XplorReaderWriter(Object o) -> XplorReaderWriter"""
679 return _IMP_em._object_cast_to_XplorReaderWriter(o)
681 _object_types.append(
"CoarseCC")
684 def _object_cast_to_CoarseCC(o):
685 """_object_cast_to_CoarseCC(Object o) -> CoarseCC"""
686 return _IMP_em._object_cast_to_CoarseCC(o)
688 _object_types.append(
"CoarseCCatIntervals")
691 def _object_cast_to_CoarseCCatIntervals(o):
692 """_object_cast_to_CoarseCCatIntervals(Object o) -> CoarseCCatIntervals"""
693 return _IMP_em._object_cast_to_CoarseCCatIntervals(o)
695 FittingSolutionsList=list
696 _plural_types.append(
"FittingSolutionsList")
697 _value_types.append(
"FittingSolutions")
700 """Proxy of C++ IMP::em::MapReaderWriter class."""
702 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
705 """__init__(IMP::em::MapReaderWriter self) -> MapReaderWriter"""
706 this = _IMP_em.new_MapReaderWriter()
708 self.this.append(this)
712 def get_version_info(self):
713 """get_version_info(MapReaderWriter self) -> VersionInfo"""
714 return _IMP_em.MapReaderWriter_get_version_info(self)
718 """__str__(MapReaderWriter self) -> std::string"""
719 return _IMP_em.MapReaderWriter___str__(self)
723 """__repr__(MapReaderWriter self) -> std::string"""
724 return _IMP_em.MapReaderWriter___repr__(self)
729 return _object_cast_to_MapReaderWriter(o)
731 MapReaderWriter_swigregister = _IMP_em.MapReaderWriter_swigregister
732 MapReaderWriter_swigregister(MapReaderWriter)
736 class DensityHeader(object):
737 """Proxy of C++ IMP::em::DensityHeader class."""
739 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
740 __repr__ = _swig_repr
743 """__init__(IMP::em::DensityHeader self) -> DensityHeader"""
744 this = _IMP_em.new_DensityHeader()
746 self.this.append(this)
750 def get_top(self, ind):
751 """get_top(DensityHeader self, int ind) -> IMP::em::emreal"""
752 return _IMP_em.DensityHeader_get_top(self, ind)
755 def compute_xyz_top(self, force=False):
757 compute_xyz_top(DensityHeader self, bool force=False)
758 compute_xyz_top(DensityHeader self)
760 return _IMP_em.DensityHeader_compute_xyz_top(self, force)
763 def update_map_dimensions(self, nnx, nny, nnz):
764 """update_map_dimensions(DensityHeader self, int nnx, int nny, int nnz)"""
765 return _IMP_em.DensityHeader_update_map_dimensions(self, nnx, nny, nnz)
768 def update_cell_dimensions(self):
769 """update_cell_dimensions(DensityHeader self)"""
770 return _IMP_em.DensityHeader_update_cell_dimensions(self)
773 def show(self, *args):
775 show(DensityHeader self, _ostream out)
776 show(DensityHeader self)
778 return _IMP_em.DensityHeader_show(self, *args)
780 MAP_FIELD_SIZE = _IMP_em.DensityHeader_MAP_FIELD_SIZE
781 USER_FIELD_SIZE = _IMP_em.DensityHeader_USER_FIELD_SIZE
782 COMMENT_FIELD_NUM_OF = _IMP_em.DensityHeader_COMMENT_FIELD_NUM_OF
783 COMMENT_FIELD_SINGLE_SIZE = _IMP_em.DensityHeader_COMMENT_FIELD_SINGLE_SIZE
784 nxstart = _swig_property(_IMP_em.DensityHeader_nxstart_get, _IMP_em.DensityHeader_nxstart_set)
785 nystart = _swig_property(_IMP_em.DensityHeader_nystart_get, _IMP_em.DensityHeader_nystart_set)
786 nzstart = _swig_property(_IMP_em.DensityHeader_nzstart_get, _IMP_em.DensityHeader_nzstart_set)
787 mx = _swig_property(_IMP_em.DensityHeader_mx_get, _IMP_em.DensityHeader_mx_set)
788 my = _swig_property(_IMP_em.DensityHeader_my_get, _IMP_em.DensityHeader_my_set)
789 mz = _swig_property(_IMP_em.DensityHeader_mz_get, _IMP_em.DensityHeader_mz_set)
790 xlen = _swig_property(_IMP_em.DensityHeader_xlen_get, _IMP_em.DensityHeader_xlen_set)
791 ylen = _swig_property(_IMP_em.DensityHeader_ylen_get, _IMP_em.DensityHeader_ylen_set)
792 zlen = _swig_property(_IMP_em.DensityHeader_zlen_get, _IMP_em.DensityHeader_zlen_set)
793 alpha = _swig_property(_IMP_em.DensityHeader_alpha_get, _IMP_em.DensityHeader_alpha_set)
794 beta = _swig_property(_IMP_em.DensityHeader_beta_get, _IMP_em.DensityHeader_beta_set)
795 gamma = _swig_property(_IMP_em.DensityHeader_gamma_get, _IMP_em.DensityHeader_gamma_set)
796 mapc = _swig_property(_IMP_em.DensityHeader_mapc_get, _IMP_em.DensityHeader_mapc_set)
797 mapr = _swig_property(_IMP_em.DensityHeader_mapr_get, _IMP_em.DensityHeader_mapr_set)
798 maps = _swig_property(_IMP_em.DensityHeader_maps_get, _IMP_em.DensityHeader_maps_set)
799 dmin = _swig_property(_IMP_em.DensityHeader_dmin_get, _IMP_em.DensityHeader_dmin_set)
800 dmax = _swig_property(_IMP_em.DensityHeader_dmax_get, _IMP_em.DensityHeader_dmax_set)
801 dmean = _swig_property(_IMP_em.DensityHeader_dmean_get, _IMP_em.DensityHeader_dmean_set)
802 ispg = _swig_property(_IMP_em.DensityHeader_ispg_get, _IMP_em.DensityHeader_ispg_set)
803 nsymbt = _swig_property(_IMP_em.DensityHeader_nsymbt_get, _IMP_em.DensityHeader_nsymbt_set)
804 user = _swig_property(_IMP_em.DensityHeader_user_get, _IMP_em.DensityHeader_user_set)
805 map = _swig_property(_IMP_em.DensityHeader_map_get, _IMP_em.DensityHeader_map_set)
806 machinestamp = _swig_property(_IMP_em.DensityHeader_machinestamp_get, _IMP_em.DensityHeader_machinestamp_set)
807 rms = _swig_property(_IMP_em.DensityHeader_rms_get, _IMP_em.DensityHeader_rms_set)
808 nlabl = _swig_property(_IMP_em.DensityHeader_nlabl_get, _IMP_em.DensityHeader_nlabl_set)
809 comments = _swig_property(_IMP_em.DensityHeader_comments_get, _IMP_em.DensityHeader_comments_set)
810 magic = _swig_property(_IMP_em.DensityHeader_magic_get, _IMP_em.DensityHeader_magic_set)
811 voltage = _swig_property(_IMP_em.DensityHeader_voltage_get, _IMP_em.DensityHeader_voltage_set)
812 Cs = _swig_property(_IMP_em.DensityHeader_Cs_get, _IMP_em.DensityHeader_Cs_set)
813 Aperture = _swig_property(_IMP_em.DensityHeader_Aperture_get, _IMP_em.DensityHeader_Aperture_set)
814 Magnification = _swig_property(_IMP_em.DensityHeader_Magnification_get, _IMP_em.DensityHeader_Magnification_set)
815 Postmagnification = _swig_property(_IMP_em.DensityHeader_Postmagnification_get, _IMP_em.DensityHeader_Postmagnification_set)
816 Exposuretime = _swig_property(_IMP_em.DensityHeader_Exposuretime_get, _IMP_em.DensityHeader_Exposuretime_set)
817 Microscope = _swig_property(_IMP_em.DensityHeader_Microscope_get, _IMP_em.DensityHeader_Microscope_set)
818 Pixelsize = _swig_property(_IMP_em.DensityHeader_Pixelsize_get, _IMP_em.DensityHeader_Pixelsize_set)
819 CCDArea = _swig_property(_IMP_em.DensityHeader_CCDArea_get, _IMP_em.DensityHeader_CCDArea_set)
820 Defocus = _swig_property(_IMP_em.DensityHeader_Defocus_get, _IMP_em.DensityHeader_Defocus_set)
821 Astigmatism = _swig_property(_IMP_em.DensityHeader_Astigmatism_get, _IMP_em.DensityHeader_Astigmatism_set)
822 AstigmatismAngle = _swig_property(_IMP_em.DensityHeader_AstigmatismAngle_get, _IMP_em.DensityHeader_AstigmatismAngle_set)
823 FocusIncrement = _swig_property(_IMP_em.DensityHeader_FocusIncrement_get, _IMP_em.DensityHeader_FocusIncrement_set)
824 CountsPerElectron = _swig_property(_IMP_em.DensityHeader_CountsPerElectron_get, _IMP_em.DensityHeader_CountsPerElectron_set)
825 Intensity = _swig_property(_IMP_em.DensityHeader_Intensity_get, _IMP_em.DensityHeader_Intensity_set)
826 EnergySlitwidth = _swig_property(_IMP_em.DensityHeader_EnergySlitwidth_get, _IMP_em.DensityHeader_EnergySlitwidth_set)
827 EnergyOffset = _swig_property(_IMP_em.DensityHeader_EnergyOffset_get, _IMP_em.DensityHeader_EnergyOffset_set)
828 Tiltangle = _swig_property(_IMP_em.DensityHeader_Tiltangle_get, _IMP_em.DensityHeader_Tiltangle_set)
829 Tiltaxis = _swig_property(_IMP_em.DensityHeader_Tiltaxis_get, _IMP_em.DensityHeader_Tiltaxis_set)
830 MarkerX = _swig_property(_IMP_em.DensityHeader_MarkerX_get, _IMP_em.DensityHeader_MarkerX_set)
831 MarkerY = _swig_property(_IMP_em.DensityHeader_MarkerY_get, _IMP_em.DensityHeader_MarkerY_set)
832 lswap = _swig_property(_IMP_em.DensityHeader_lswap_get, _IMP_em.DensityHeader_lswap_set)
835 """get_resolution(DensityHeader self) -> float"""
836 return _IMP_em.DensityHeader_get_resolution(self)
839 def get_has_resolution(self):
840 """get_has_resolution(DensityHeader self) -> bool"""
841 return _IMP_em.DensityHeader_get_has_resolution(self)
844 def set_resolution(self, resolution):
845 """set_resolution(DensityHeader self, float resolution)"""
846 return _IMP_em.DensityHeader_set_resolution(self, resolution)
849 def get_spacing(self):
850 """get_spacing(DensityHeader self) -> float"""
851 return _IMP_em.DensityHeader_get_spacing(self)
854 def get_xorigin(self):
855 """get_xorigin(DensityHeader self) -> float"""
856 return _IMP_em.DensityHeader_get_xorigin(self)
859 def get_yorigin(self):
860 """get_yorigin(DensityHeader self) -> float"""
861 return _IMP_em.DensityHeader_get_yorigin(self)
864 def get_zorigin(self):
865 """get_zorigin(DensityHeader self) -> float"""
866 return _IMP_em.DensityHeader_get_zorigin(self)
869 def get_origin(self, i):
870 """get_origin(DensityHeader self, int i) -> float"""
871 return _IMP_em.DensityHeader_get_origin(self, i)
874 def set_xorigin(self, x):
875 """set_xorigin(DensityHeader self, float x)"""
876 return _IMP_em.DensityHeader_set_xorigin(self, x)
879 def set_yorigin(self, y):
880 """set_yorigin(DensityHeader self, float y)"""
881 return _IMP_em.DensityHeader_set_yorigin(self, y)
884 def set_zorigin(self, z):
885 """set_zorigin(DensityHeader self, float z)"""
886 return _IMP_em.DensityHeader_set_zorigin(self, z)
889 def is_top_calculated(self):
890 """is_top_calculated(DensityHeader self) -> bool"""
891 return _IMP_em.DensityHeader_is_top_calculated(self)
893 Objectpixelsize_ = _swig_property(_IMP_em.DensityHeader_Objectpixelsize__get, _IMP_em.DensityHeader_Objectpixelsize__set)
896 """get_nx(DensityHeader self) -> int"""
897 return _IMP_em.DensityHeader_get_nx(self)
901 """get_ny(DensityHeader self) -> int"""
902 return _IMP_em.DensityHeader_get_ny(self)
906 """get_nz(DensityHeader self) -> int"""
907 return _IMP_em.DensityHeader_get_nz(self)
910 def get_number_of_voxels(self):
911 """get_number_of_voxels(DensityHeader self) -> int"""
912 return _IMP_em.DensityHeader_get_number_of_voxels(self)
915 def get_data_type(self):
916 """get_data_type(DensityHeader self) -> int"""
917 return _IMP_em.DensityHeader_get_data_type(self)
920 def set_data_type(self, data_type):
921 """set_data_type(DensityHeader self, int data_type)"""
922 return _IMP_em.DensityHeader_set_data_type(self, data_type)
924 __swig_destroy__ = _IMP_em.delete_DensityHeader
925 __del__ =
lambda self:
None
926 DensityHeader_swigregister = _IMP_em.DensityHeader_swigregister
927 DensityHeader_swigregister(DensityHeader)
931 """create_density_header(BoundingBox3D bb, float spacing) -> DensityHeader"""
932 return _IMP_em.create_density_header(bb, spacing)
936 read_map(std::string filename, MapReaderWriter reader) -> DensityMap
937 read_map(std::string filename) -> DensityMap
939 return _IMP_em.read_map(*args)
941 def write_map(*args):
943 write_map(DensityMap m, std::string filename, MapReaderWriter writer)
944 write_map(DensityMap m, std::string filename)
946 return _IMP_em.write_map(*args)
949 """approximate_molecular_mass(DensityMap m, IMP::Float threshold) -> IMP::Float"""
950 return _IMP_em.approximate_molecular_mass(m, threshold)
952 """Proxy of C++ IMP::em::DensityMap class."""
954 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
956 def __init__(self, *args):
958 __init__(IMP::em::DensityMap self, std::string name) -> DensityMap
959 __init__(IMP::em::DensityMap self) -> DensityMap
960 __init__(IMP::em::DensityMap self, DensityHeader header, std::string name) -> DensityMap
961 __init__(IMP::em::DensityMap self, DensityHeader header) -> DensityMap
963 this = _IMP_em.new_DensityMap(*args)
965 self.this.append(this)
969 def reset_data(self, value=0.0):
971 reset_data(DensityMap self, float value=0.0)
972 reset_data(DensityMap self)
974 return _IMP_em.DensityMap_reset_data(self, value)
978 """calcRMS(DensityMap self) -> IMP::em::emreal"""
979 return _IMP_em.DensityMap_calcRMS(self)
982 def std_normalize(self):
983 """std_normalize(DensityMap self)"""
984 return _IMP_em.DensityMap_std_normalize(self)
987 def is_normalized(self):
988 """is_normalized(DensityMap self) -> bool"""
989 return _IMP_em.DensityMap_is_normalized(self)
992 def get_location_in_dim_by_voxel(self, index, dim):
993 """get_location_in_dim_by_voxel(DensityMap self, long index, int dim) -> float"""
994 return _IMP_em.DensityMap_get_location_in_dim_by_voxel(self, index, dim)
997 def xyz_ind2voxel(self, x, y, z):
998 """xyz_ind2voxel(DensityMap self, int x, int y, int z) -> long"""
999 return _IMP_em.DensityMap_xyz_ind2voxel(self, x, y, z)
1002 def get_voxel_by_location(self, *args):
1004 get_voxel_by_location(DensityMap self, float x, float y, float z) -> long
1005 get_voxel_by_location(DensityMap self, Vector3D v) -> long
1007 return _IMP_em.DensityMap_get_voxel_by_location(self, *args)
1010 def get_location_by_voxel(self, index):
1011 """get_location_by_voxel(DensityMap self, long index) -> Vector3D"""
1012 return _IMP_em.DensityMap_get_location_by_voxel(self, index)
1015 def is_xyz_ind_part_of_volume(self, ix, iy, iz):
1016 """is_xyz_ind_part_of_volume(DensityMap self, int ix, int iy, int iz) -> bool"""
1017 return _IMP_em.DensityMap_is_xyz_ind_part_of_volume(self, ix, iy, iz)
1020 def is_part_of_volume(self, *args):
1022 is_part_of_volume(DensityMap self, float x, float y, float z) -> bool
1023 is_part_of_volume(DensityMap self, Vector3D v) -> bool
1025 return _IMP_em.DensityMap_is_part_of_volume(self, *args)
1028 def get_value(self, *args):
1030 get_value(DensityMap self, float x, float y, float z) -> IMP::em::emreal
1031 get_value(DensityMap self, Vector3D point) -> IMP::em::emreal
1032 get_value(DensityMap self, long index) -> IMP::em::emreal
1034 return _IMP_em.DensityMap_get_value(self, *args)
1037 def set_value(self, *args):
1039 set_value(DensityMap self, long index, IMP::em::emreal value)
1040 set_value(DensityMap self, float x, float y, float z, IMP::em::emreal value)
1042 return _IMP_em.DensityMap_set_value(self, *args)
1045 def set_origin(self, *args):
1047 set_origin(DensityMap self, float x, float y, float z)
1048 set_origin(DensityMap self, Vector3D v)
1050 return _IMP_em.DensityMap_set_origin(self, *args)
1053 def get_origin(self):
1054 """get_origin(DensityMap self) -> Vector3D"""
1055 return _IMP_em.DensityMap_get_origin(self)
1059 """get_top(DensityMap self) -> Vector3D"""
1060 return _IMP_em.DensityMap_get_top(self)
1063 def get_header(self):
1064 h = _IMP_em.DensityMap_get_header(self)
1070 def get_header_writable(self):
1071 h = _IMP_em.DensityMap_get_header_writable(self)
1077 def same_origin(self, other):
1078 """same_origin(DensityMap self, DensityMap other) -> bool"""
1079 return _IMP_em.DensityMap_same_origin(self, other)
1082 def same_dimensions(self, other):
1083 """same_dimensions(DensityMap self, DensityMap other) -> bool"""
1084 return _IMP_em.DensityMap_same_dimensions(self, other)
1087 def same_voxel_size(self, other):
1088 """same_voxel_size(DensityMap self, DensityMap other) -> bool"""
1089 return _IMP_em.DensityMap_same_voxel_size(self, other)
1094 get_centroid(DensityMap self, IMP::em::emreal threshold=0.0) -> Vector3D
1095 get_centroid(DensityMap self) -> Vector3D
1097 return _IMP_em.DensityMap_get_centroid(self, threshold)
1100 def get_max_value(self):
1101 """get_max_value(DensityMap self) -> IMP::em::emreal"""
1102 return _IMP_em.DensityMap_get_max_value(self)
1105 def get_min_value(self):
1106 """get_min_value(DensityMap self) -> IMP::em::emreal"""
1107 return _IMP_em.DensityMap_get_min_value(self)
1110 def add(self, other):
1111 """add(DensityMap self, DensityMap other)"""
1112 return _IMP_em.DensityMap_add(self, other)
1115 def pick_max(self, other):
1116 """pick_max(DensityMap self, DensityMap other)"""
1117 return _IMP_em.DensityMap_pick_max(self, other)
1120 def get_number_of_voxels(self):
1121 """get_number_of_voxels(DensityMap self) -> long"""
1122 return _IMP_em.DensityMap_get_number_of_voxels(self)
1125 def set_void_map(self, nx, ny, nz):
1126 """set_void_map(DensityMap self, int nx, int ny, int nz)"""
1127 return _IMP_em.DensityMap_set_void_map(self, nx, ny, nz)
1130 def pad(self, nx, ny, nz, val=0.0):
1132 pad(DensityMap self, int nx, int ny, int nz, float val=0.0)
1133 pad(DensityMap self, int nx, int ny, int nz)
1135 return _IMP_em.DensityMap_pad(self, nx, ny, nz, val)
1138 def pad_margin(self, mrg_x, mrg_y, mrg_z, val=0.0):
1140 pad_margin(DensityMap self, int mrg_x, int mrg_y, int mrg_z, float val=0.0) -> DensityMap
1141 pad_margin(DensityMap self, int mrg_x, int mrg_y, int mrg_z) -> DensityMap
1143 return _IMP_em.DensityMap_pad_margin(self, mrg_x, mrg_y, mrg_z, val)
1146 def get_cropped(self, *args):
1148 get_cropped(DensityMap self, float threshold) -> DensityMap
1149 get_cropped(DensityMap self, BoundingBox3D bb) -> DensityMap
1151 return _IMP_em.DensityMap_get_cropped(self, *args)
1154 def get_maximum_value_in_xy_plane(self, z_ind):
1155 """get_maximum_value_in_xy_plane(DensityMap self, int z_ind) -> float"""
1156 return _IMP_em.DensityMap_get_maximum_value_in_xy_plane(self, z_ind)
1159 def get_maximum_value_in_xz_plane(self, y_ind):
1160 """get_maximum_value_in_xz_plane(DensityMap self, int y_ind) -> float"""
1161 return _IMP_em.DensityMap_get_maximum_value_in_xz_plane(self, y_ind)
1164 def get_maximum_value_in_yz_plane(self, x_ind):
1165 """get_maximum_value_in_yz_plane(DensityMap self, int x_ind) -> float"""
1166 return _IMP_em.DensityMap_get_maximum_value_in_yz_plane(self, x_ind)
1170 """multiply(DensityMap self, float factor)"""
1171 return _IMP_em.DensityMap_multiply(self, factor)
1174 def get_locations_string(self, t):
1175 """get_locations_string(DensityMap self, float t) -> std::string"""
1176 return _IMP_em.DensityMap_get_locations_string(self, t)
1179 def update_voxel_size(self, new_apix):
1180 """update_voxel_size(DensityMap self, float new_apix)"""
1181 return _IMP_em.DensityMap_update_voxel_size(self, new_apix)
1184 def get_spacing(self):
1185 """get_spacing(DensityMap self) -> IMP::Float"""
1186 return _IMP_em.DensityMap_get_spacing(self)
1189 def calc_all_voxel2loc(self):
1190 """calc_all_voxel2loc(DensityMap self)"""
1191 return _IMP_em.DensityMap_calc_all_voxel2loc(self)
1194 def copy_map(self, other):
1195 """copy_map(DensityMap self, DensityMap other)"""
1196 return _IMP_em.DensityMap_copy_map(self, other)
1199 def get_version_info(self):
1200 """get_version_info(DensityMap self) -> VersionInfo"""
1201 return _IMP_em.DensityMap_get_version_info(self)
1204 def lower_voxel_shift(self, loc, kdist, orig, ndim):
1205 """lower_voxel_shift(DensityMap self, IMP::em::emreal loc, IMP::em::emreal kdist, IMP::em::emreal orig, int ndim) -> int"""
1206 return _IMP_em.DensityMap_lower_voxel_shift(self, loc, kdist, orig, ndim)
1209 def upper_voxel_shift(self, loc, kdist, orig, ndim):
1210 """upper_voxel_shift(DensityMap self, IMP::em::emreal loc, IMP::em::emreal kdist, IMP::em::emreal orig, int ndim) -> int"""
1211 return _IMP_em.DensityMap_upper_voxel_shift(self, loc, kdist, orig, ndim)
1214 def get_rms_calculated(self):
1215 """get_rms_calculated(DensityMap self) -> bool"""
1216 return _IMP_em.DensityMap_get_rms_calculated(self)
1219 def get_dim_index_by_location(self, *args):
1221 get_dim_index_by_location(DensityMap self, Vector3D v, int ind) -> int
1222 get_dim_index_by_location(DensityMap self, float loc_val, int ind) -> int
1224 return _IMP_em.DensityMap_get_dim_index_by_location(self, *args)
1228 """__str__(DensityMap self) -> std::string"""
1229 return _IMP_em.DensityMap___str__(self)
1233 """__repr__(DensityMap self) -> std::string"""
1234 return _IMP_em.DensityMap___repr__(self)
1239 return _object_cast_to_DensityMap(o)
1241 DensityMap_swigregister = _IMP_em.DensityMap_swigregister
1242 DensityMap_swigregister(DensityMap)
1247 get_bounding_box(DensityMap m, IMP::Float threshold) -> BoundingBox3D
1248 get_bounding_box(DensityMap m) -> BoundingBox3D
1250 return _IMP_em.get_bounding_box(*args)
1252 def get_density(m, v):
1253 """get_density(DensityMap m, Vector3D v) -> double"""
1254 return _IMP_em.get_density(m, v)
1256 def get_transformed(*args):
1258 get_transformed(DensityMap input, Transformation3D tr, double threshold) -> DensityMap
1259 get_transformed(DensityMap input, Transformation3D tr) -> DensityMap
1261 return _IMP_em.get_transformed(*args)
1263 def get_resampled(input, scaling):
1264 """get_resampled(DensityMap input, double scaling) -> DensityMap"""
1265 return _IMP_em.get_resampled(input, scaling)
1267 def get_transformed_into(source, tr, into, calc_rms=True):
1269 get_transformed_into(DensityMap source, Transformation3D tr, DensityMap into, bool calc_rms=True)
1270 get_transformed_into(DensityMap source, Transformation3D tr, DensityMap into)
1272 return _IMP_em.get_transformed_into(source, tr, into, calc_rms)
1274 def get_transformed_into2(source, tr, into):
1275 """get_transformed_into2(DensityMap source, Transformation3D tr, DensityMap into)"""
1276 return _IMP_em.get_transformed_into2(source, tr, into)
1278 def get_interiors_intersect(d1, d2):
1279 """get_interiors_intersect(DensityMap d1, DensityMap d2) -> bool"""
1280 return _IMP_em.get_interiors_intersect(d1, d2)
1284 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
1285 get_segment(DensityMap map_to_segment, IMP::algebra::Vector3Ds vecs, float dist) -> DensityMap
1287 return _IMP_em.get_segment(*args)
1290 """get_segment_by_masking(DensityMap map_to_segment, DensityMap mask, float mas_threshold) -> DensityMap"""
1291 return _IMP_em.get_segment_by_masking(map_to_segment, mask, mas_threshold)
1293 def binarize(orig_map, threshold, reverse=False):
1295 binarize(DensityMap orig_map, float threshold, bool reverse=False) -> DensityMap
1296 binarize(DensityMap orig_map, float threshold) -> DensityMap
1298 return _IMP_em.binarize(orig_map, threshold, reverse)
1301 """get_threshold_map(DensityMap orig_map, float threshold) -> DensityMap"""
1302 return _IMP_em.get_threshold_map(orig_map, threshold)
1305 """multiply(DensityMap m1, DensityMap m2) -> DensityMap"""
1306 return _IMP_em.multiply(m1, m2)
1309 """convolute(DensityMap m1, DensityMap m2) -> double"""
1310 return _IMP_em.convolute(m1, m2)
1313 """get_sum(DensityMap m1) -> double"""
1314 return _IMP_em.get_sum(m1)
1317 """get_max_map(IMP::em::DensityMaps maps) -> DensityMap"""
1318 return _IMP_em.get_max_map(maps)
1321 """interpolate_map(DensityMap in_map, double new_spacing) -> DensityMap"""
1322 return _IMP_em.interpolate_map(in_map, new_spacing)
1325 """get_grid(DensityMap in_map) -> IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,float >,float,IMP::algebra::DefaultEmbeddingD< 3 > >"""
1326 return _IMP_em.get_grid(in_map)
1330 create_density_map(DensityMap other) -> DensityMap
1331 create_density_map(BoundingBox3D bb, double spacing) -> DensityMap
1332 create_density_map(int nx, int ny, int nz, double spacing) -> DensityMap
1333 create_density_map(IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,float >,float,IMP::algebra::DefaultEmbeddingD< 3 > > const & grid) -> DensityMap
1335 return _IMP_em.create_density_map(*args)
1337 def get_binarized_interior(dmap):
1338 """get_binarized_interior(DensityMap dmap) -> DensityMap"""
1339 return _IMP_em.get_binarized_interior(dmap)
1341 def add_to_map(dm, pis):
1342 """add_to_map(DensityMap dm, IMP::Particles const & pis)"""
1343 return _IMP_em.add_to_map(dm, pis)
1344 class RadiusDependentDistanceMask(object):
1345 """Proxy of C++ IMP::em::RadiusDependentDistanceMask class."""
1347 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1348 __repr__ = _swig_repr
1350 def __init__(self, sampling_radius, header):
1351 """__init__(IMP::em::RadiusDependentDistanceMask self, float sampling_radius, DensityHeader header) -> RadiusDependentDistanceMask"""
1352 this = _IMP_em.new_RadiusDependentDistanceMask(sampling_radius, header)
1354 self.this.append(this)
1358 def get_neighbor_shift(self):
1359 """get_neighbor_shift(RadiusDependentDistanceMask self) -> std::vector< double,std::allocator< double > > const *"""
1360 return _IMP_em.RadiusDependentDistanceMask_get_neighbor_shift(self)
1363 def get_neighbor_dist(self):
1364 """get_neighbor_dist(RadiusDependentDistanceMask self) -> std::vector< double,std::allocator< double > > const *"""
1365 return _IMP_em.RadiusDependentDistanceMask_get_neighbor_dist(self)
1368 def get_neighbor_dist_exp(self):
1369 """get_neighbor_dist_exp(RadiusDependentDistanceMask self) -> std::vector< double,std::allocator< double > > const *"""
1370 return _IMP_em.RadiusDependentDistanceMask_get_neighbor_dist_exp(self)
1373 def show(self, out):
1374 """show(RadiusDependentDistanceMask self, _ostream out)"""
1375 return _IMP_em.RadiusDependentDistanceMask_show(self, out)
1377 __swig_destroy__ = _IMP_em.delete_RadiusDependentDistanceMask
1378 __del__ =
lambda self:
None
1379 RadiusDependentDistanceMask_swigregister = _IMP_em.RadiusDependentDistanceMask_swigregister
1380 RadiusDependentDistanceMask_swigregister(RadiusDependentDistanceMask)
1382 class DistanceMask(object):
1383 """Proxy of C++ IMP::em::DistanceMask class."""
1385 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1386 __repr__ = _swig_repr
1388 def __init__(self, *args):
1390 __init__(IMP::em::DistanceMask self) -> DistanceMask
1391 __init__(IMP::em::DistanceMask self, DensityHeader header) -> DistanceMask
1393 this = _IMP_em.new_DistanceMask(*args)
1395 self.this.append(this)
1399 def show(self, out):
1400 """show(DistanceMask self, _ostream out)"""
1401 return _IMP_em.DistanceMask_show(self, out)
1404 def is_mask_set(self, radius, eps=0.001):
1406 is_mask_set(DistanceMask self, float radius, float eps=0.001) -> bool
1407 is_mask_set(DistanceMask self, float radius) -> bool
1409 return _IMP_em.DistanceMask_is_mask_set(self, radius, eps)
1411 __swig_destroy__ = _IMP_em.delete_DistanceMask
1412 __del__ =
lambda self:
None
1413 DistanceMask_swigregister = _IMP_em.DistanceMask_swigregister
1414 DistanceMask_swigregister(DistanceMask)
1416 class EMReaderWriter(MapReaderWriter):
1417 """Proxy of C++ IMP::em::EMReaderWriter class."""
1419 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1422 """__str__(EMReaderWriter self) -> std::string"""
1423 return _IMP_em.EMReaderWriter___str__(self)
1427 """__repr__(EMReaderWriter self) -> std::string"""
1428 return _IMP_em.EMReaderWriter___repr__(self)
1433 return _object_cast_to_EMReaderWriter(o)
1437 """__init__(IMP::em::EMReaderWriter self) -> EMReaderWriter"""
1438 this = _IMP_em.new_EMReaderWriter()
1440 self.this.append(this)
1443 EMReaderWriter_swigregister = _IMP_em.EMReaderWriter_swigregister
1444 EMReaderWriter_swigregister(EMReaderWriter)
1446 class XplorReaderWriter(MapReaderWriter):
1447 """Proxy of C++ IMP::em::XplorReaderWriter class."""
1449 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1452 """__str__(XplorReaderWriter self) -> std::string"""
1453 return _IMP_em.XplorReaderWriter___str__(self)
1457 """__repr__(XplorReaderWriter self) -> std::string"""
1458 return _IMP_em.XplorReaderWriter___repr__(self)
1463 return _object_cast_to_XplorReaderWriter(o)
1467 """__init__(IMP::em::XplorReaderWriter self) -> XplorReaderWriter"""
1468 this = _IMP_em.new_XplorReaderWriter()
1470 self.this.append(this)
1473 XplorReaderWriter_swigregister = _IMP_em.XplorReaderWriter_swigregister
1474 XplorReaderWriter_swigregister(XplorReaderWriter)
1476 class MRCReaderWriter(MapReaderWriter):
1477 """Proxy of C++ IMP::em::MRCReaderWriter class."""
1479 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1481 def __init__(self, *args):
1483 __init__(IMP::em::MRCReaderWriter self) -> MRCReaderWriter
1484 __init__(IMP::em::MRCReaderWriter self, std::string fn) -> MRCReaderWriter
1486 this = _IMP_em.new_MRCReaderWriter(*args)
1488 self.this.append(this)
1493 """__str__(MRCReaderWriter self) -> std::string"""
1494 return _IMP_em.MRCReaderWriter___str__(self)
1498 """__repr__(MRCReaderWriter self) -> std::string"""
1499 return _IMP_em.MRCReaderWriter___repr__(self)
1504 return _object_cast_to_MRCReaderWriter(o)
1506 MRCReaderWriter_swigregister = _IMP_em.MRCReaderWriter_swigregister
1507 MRCReaderWriter_swigregister(MRCReaderWriter)
1509 class KernelParameters(object):
1510 """Proxy of C++ IMP::em::KernelParameters class."""
1512 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1514 def __init__(self, *args):
1516 __init__(IMP::em::KernelParameters self) -> KernelParameters
1517 __init__(IMP::em::KernelParameters self, float resolution) -> KernelParameters
1519 this = _IMP_em.new_KernelParameters(*args)
1521 self.this.append(this)
1524 __swig_destroy__ = _IMP_em.delete_KernelParameters
1525 __del__ =
lambda self:
None
1528 """get_rsig(KernelParameters self) -> float"""
1529 return _IMP_em.KernelParameters_get_rsig(self)
1532 def get_rsigsq(self):
1533 """get_rsigsq(KernelParameters self) -> float"""
1534 return _IMP_em.KernelParameters_get_rsigsq(self)
1537 def get_inv_rsigsq(self):
1538 """get_inv_rsigsq(KernelParameters self) -> float"""
1539 return _IMP_em.KernelParameters_get_inv_rsigsq(self)
1542 def get_timessig(self):
1543 """get_timessig(KernelParameters self) -> float"""
1544 return _IMP_em.KernelParameters_get_timessig(self)
1547 def get_sq2pi3(self):
1548 """get_sq2pi3(KernelParameters self) -> float"""
1549 return _IMP_em.KernelParameters_get_sq2pi3(self)
1552 def get_rnormfac(self):
1553 """get_rnormfac(KernelParameters self) -> float"""
1554 return _IMP_em.KernelParameters_get_rnormfac(self)
1557 def get_rkdist(self):
1558 """get_rkdist(KernelParameters self) -> float"""
1559 return _IMP_em.KernelParameters_get_rkdist(self)
1562 def get_rkdistsq(self):
1563 """get_rkdistsq(KernelParameters self) -> float"""
1564 return _IMP_em.KernelParameters_get_rkdistsq(self)
1568 """get_lim(KernelParameters self) -> float"""
1569 return _IMP_em.KernelParameters_get_lim(self)
1572 def show(self, *args):
1574 show(KernelParameters self, _ostream out)
1575 show(KernelParameters self)
1577 return _IMP_em.KernelParameters_show(self, *args)
1581 """__str__(KernelParameters self) -> std::string"""
1582 return _IMP_em.KernelParameters___str__(self)
1586 """__repr__(KernelParameters self) -> std::string"""
1587 return _IMP_em.KernelParameters___repr__(self)
1589 KernelParameters_swigregister = _IMP_em.KernelParameters_swigregister
1590 KernelParameters_swigregister(KernelParameters)
1593 _IMP_em.GAUSSIAN_swigconstant(_IMP_em)
1594 GAUSSIAN = _IMP_em.GAUSSIAN
1596 _IMP_em.BINARIZED_SPHERE_swigconstant(_IMP_em)
1597 BINARIZED_SPHERE = _IMP_em.BINARIZED_SPHERE
1599 _IMP_em.SPHERE_swigconstant(_IMP_em)
1600 SPHERE = _IMP_em.SPHERE
1601 class SampledDensityMap(DensityMap):
1602 """Proxy of C++ IMP::em::SampledDensityMap class."""
1604 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1606 def __init__(self, *args):
1608 __init__(IMP::em::SampledDensityMap self, IMP::em::KernelType kt) -> SampledDensityMap
1609 __init__(IMP::em::SampledDensityMap self) -> SampledDensityMap
1610 __init__(IMP::em::SampledDensityMap self, DensityHeader header, IMP::em::KernelType kt) -> SampledDensityMap
1611 __init__(IMP::em::SampledDensityMap self, DensityHeader header) -> SampledDensityMap
1612 __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
1613 __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
1614 __init__(IMP::em::SampledDensityMap self, IMP::ParticlesTemp const & ps, IMP::em::emreal resolution, IMP::em::emreal voxel_size, FloatKey mass_key) -> SampledDensityMap
1615 __init__(IMP::em::SampledDensityMap self, IMP::ParticlesTemp const & ps, IMP::em::emreal resolution, IMP::em::emreal voxel_size) -> SampledDensityMap
1617 this = _IMP_em.new_SampledDensityMap(*args)
1619 self.this.append(this)
1624 """resample(SampledDensityMap self)"""
1625 return _IMP_em.SampledDensityMap_resample(self)
1628 def project(self, *args):
1630 project(SampledDensityMap self, IMP::ParticlesTemp const & ps, int x_margin, int y_margin, int z_margin, Vector3D shift, FloatKey mass_key)
1631 project(SampledDensityMap self, IMP::ParticlesTemp const & ps, int x_margin, int y_margin, int z_margin, Vector3D shift)
1632 project(SampledDensityMap self, IMP::ParticlesTemp const & ps, int x_margin, int y_margin, int z_margin)
1634 return _IMP_em.SampledDensityMap_project(self, *args)
1637 def set_particles(self, *args):
1639 set_particles(SampledDensityMap self, IMP::ParticlesTemp const & ps, FloatKey mass_key)
1640 set_particles(SampledDensityMap self, IMP::ParticlesTemp const & ps)
1642 return _IMP_em.SampledDensityMap_set_particles(self, *args)
1645 def get_xyzr_particles(self):
1646 """get_xyzr_particles(SampledDensityMap self) -> IMP::core::XYZRs const &"""
1647 return _IMP_em.SampledDensityMap_get_xyzr_particles(self)
1650 def get_sampled_particles(self):
1651 """get_sampled_particles(SampledDensityMap self) -> IMP::Particles const &"""
1652 return _IMP_em.SampledDensityMap_get_sampled_particles(self)
1655 def get_weight_key(self):
1656 """get_weight_key(SampledDensityMap self) -> FloatKey"""
1657 return _IMP_em.SampledDensityMap_get_weight_key(self)
1660 def get_minimum_resampled_value(self):
1661 """get_minimum_resampled_value(SampledDensityMap self) -> float"""
1662 return _IMP_em.SampledDensityMap_get_minimum_resampled_value(self)
1665 def update_resolution(self, res):
1666 """update_resolution(SampledDensityMap self, IMP::Float res)"""
1667 return _IMP_em.SampledDensityMap_update_resolution(self, res)
1669 __swig_destroy__ = _IMP_em.delete_SampledDensityMap
1670 __del__ =
lambda self:
None
1673 """__str__(SampledDensityMap self) -> std::string"""
1674 return _IMP_em.SampledDensityMap___str__(self)
1678 """__repr__(SampledDensityMap self) -> std::string"""
1679 return _IMP_em.SampledDensityMap___repr__(self)
1684 return _object_cast_to_SampledDensityMap(o)
1686 SampledDensityMap_swigregister = _IMP_em.SampledDensityMap_swigregister
1687 SampledDensityMap_swigregister(SampledDensityMap)
1690 _IMP_em.IMP_DEFAULT_NUM_SHELLS_swigconstant(_IMP_em)
1691 IMP_DEFAULT_NUM_SHELLS = _IMP_em.IMP_DEFAULT_NUM_SHELLS
1693 _IMP_em.IMP_SIG_CUTOFF_swigconstant(_IMP_em)
1694 IMP_SIG_CUTOFF = _IMP_em.IMP_SIG_CUTOFF
1695 class SurfaceShellDensityMap(SampledDensityMap):
1696 """Proxy of C++ IMP::em::SurfaceShellDensityMap class."""
1698 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1700 def __init__(self, *args):
1702 __init__(IMP::em::SurfaceShellDensityMap self) -> SurfaceShellDensityMap
1703 __init__(IMP::em::SurfaceShellDensityMap self, DensityHeader header) -> SurfaceShellDensityMap
1704 __init__(IMP::em::SurfaceShellDensityMap self, IMP::ParticlesTemp const & ps, float voxel_size, FloatKey mass_key, int num_shells=5) -> SurfaceShellDensityMap
1705 __init__(IMP::em::SurfaceShellDensityMap self, IMP::ParticlesTemp const & ps, float voxel_size, FloatKey mass_key) -> SurfaceShellDensityMap
1706 __init__(IMP::em::SurfaceShellDensityMap self, IMP::ParticlesTemp const & ps, float voxel_size) -> SurfaceShellDensityMap
1708 this = _IMP_em.new_SurfaceShellDensityMap(*args)
1710 self.this.append(this)
1715 """binarize(SurfaceShellDensityMap self, float scene_val)"""
1716 return _IMP_em.SurfaceShellDensityMap_binarize(self, scene_val)
1719 def binaries(self, scene_val):
1720 """binaries(SurfaceShellDensityMap self, float scene_val)"""
1721 return _IMP_em.SurfaceShellDensityMap_binaries(self, scene_val)
1724 def has_background_neighbor(self, voxel_ind):
1725 """has_background_neighbor(SurfaceShellDensityMap self, long voxel_ind) -> bool"""
1726 return _IMP_em.SurfaceShellDensityMap_has_background_neighbor(self, voxel_ind)
1728 __swig_destroy__ = _IMP_em.delete_SurfaceShellDensityMap
1729 __del__ =
lambda self:
None
1732 """__str__(SurfaceShellDensityMap self) -> std::string"""
1733 return _IMP_em.SurfaceShellDensityMap___str__(self)
1737 """__repr__(SurfaceShellDensityMap self) -> std::string"""
1738 return _IMP_em.SurfaceShellDensityMap___repr__(self)
1743 return _object_cast_to_SurfaceShellDensityMap(o)
1745 SurfaceShellDensityMap_swigregister = _IMP_em.SurfaceShellDensityMap_swigregister
1746 SurfaceShellDensityMap_swigregister(SurfaceShellDensityMap)
1749 """Proxy of C++ IMP::em::CoarseCC class."""
1751 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1754 """__init__(IMP::em::CoarseCC self) -> CoarseCC"""
1755 this = _IMP_em.new_CoarseCC()
1757 self.this.append(this)
1761 def calc_score(*args):
1763 calc_score(DensityMap data, SampledDensityMap model_map, float scalefactor, bool recalc_rms=True, bool resample=True, IMP::FloatPair norm_factors) -> float
1764 calc_score(DensityMap data, SampledDensityMap model_map, float scalefactor, bool recalc_rms=True, bool resample=True) -> float
1765 calc_score(DensityMap data, SampledDensityMap model_map, float scalefactor, bool recalc_rms=True) -> float
1766 calc_score(DensityMap data, SampledDensityMap model_map, float scalefactor) -> float
1768 return _IMP_em.CoarseCC_calc_score(*args)
1770 calc_score = staticmethod(calc_score)
1772 def cross_correlation_coefficient(*args):
1774 cross_correlation_coefficient(DensityMap grid1, DensityMap grid2, float grid2_voxel_data_threshold, bool allow_padding=False, IMP::FloatPair norm_factors) -> double
1775 cross_correlation_coefficient(DensityMap grid1, DensityMap grid2, float grid2_voxel_data_threshold, bool allow_padding=False) -> double
1776 cross_correlation_coefficient(DensityMap grid1, DensityMap grid2, float grid2_voxel_data_threshold) -> double
1778 return _IMP_em.CoarseCC_cross_correlation_coefficient(*args)
1780 cross_correlation_coefficient = staticmethod(cross_correlation_coefficient)
1782 def local_cross_correlation_coefficient(em_map, model_map, voxel_data_threshold):
1783 """local_cross_correlation_coefficient(DensityMap em_map, DensityMap model_map, float voxel_data_threshold) -> float"""
1784 return _IMP_em.CoarseCC_local_cross_correlation_coefficient(em_map, model_map, voxel_data_threshold)
1786 local_cross_correlation_coefficient = staticmethod(local_cross_correlation_coefficient)
1788 def get_version_info(self):
1789 """get_version_info(CoarseCC self) -> VersionInfo"""
1790 return _IMP_em.CoarseCC_get_version_info(self)
1794 """__str__(CoarseCC self) -> std::string"""
1795 return _IMP_em.CoarseCC___str__(self)
1799 """__repr__(CoarseCC self) -> std::string"""
1800 return _IMP_em.CoarseCC___repr__(self)
1805 return _object_cast_to_CoarseCC(o)
1807 CoarseCC_swigregister = _IMP_em.CoarseCC_swigregister
1808 CoarseCC_swigregister(CoarseCC)
1810 def CoarseCC_calc_score(*args):
1812 calc_score(DensityMap data, SampledDensityMap model_map, float scalefactor, bool recalc_rms=True, bool resample=True, IMP::FloatPair norm_factors) -> float
1813 calc_score(DensityMap data, SampledDensityMap model_map, float scalefactor, bool recalc_rms=True, bool resample=True) -> float
1814 calc_score(DensityMap data, SampledDensityMap model_map, float scalefactor, bool recalc_rms=True) -> float
1815 CoarseCC_calc_score(DensityMap data, SampledDensityMap model_map, float scalefactor) -> float
1817 return _IMP_em.CoarseCC_calc_score(*args)
1819 def CoarseCC_cross_correlation_coefficient(*args):
1821 cross_correlation_coefficient(DensityMap grid1, DensityMap grid2, float grid2_voxel_data_threshold, bool allow_padding=False, IMP::FloatPair norm_factors) -> double
1822 cross_correlation_coefficient(DensityMap grid1, DensityMap grid2, float grid2_voxel_data_threshold, bool allow_padding=False) -> double
1823 CoarseCC_cross_correlation_coefficient(DensityMap grid1, DensityMap grid2, float grid2_voxel_data_threshold) -> double
1825 return _IMP_em.CoarseCC_cross_correlation_coefficient(*args)
1827 def CoarseCC_local_cross_correlation_coefficient(em_map, model_map, voxel_data_threshold):
1828 """CoarseCC_local_cross_correlation_coefficient(DensityMap em_map, DensityMap model_map, float voxel_data_threshold) -> float"""
1829 return _IMP_em.CoarseCC_local_cross_correlation_coefficient(em_map, model_map, voxel_data_threshold)
1831 class CoarseConvolution(object):
1832 """Proxy of C++ IMP::em::CoarseConvolution class."""
1834 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1835 __repr__ = _swig_repr
1837 def convolution(em_map, model_map, voxel_data_threshold, recalc_ccnormfac=True):
1839 convolution(DensityMap em_map, DensityMap model_map, float voxel_data_threshold, bool recalc_ccnormfac=True) -> float
1840 convolution(DensityMap em_map, DensityMap model_map, float voxel_data_threshold) -> float
1842 return _IMP_em.CoarseConvolution_convolution(em_map, model_map, voxel_data_threshold, recalc_ccnormfac)
1844 convolution = staticmethod(convolution)
1847 """__init__(IMP::em::CoarseConvolution self) -> CoarseConvolution"""
1848 this = _IMP_em.new_CoarseConvolution()
1850 self.this.append(this)
1853 __swig_destroy__ = _IMP_em.delete_CoarseConvolution
1854 __del__ =
lambda self:
None
1855 CoarseConvolution_swigregister = _IMP_em.CoarseConvolution_swigregister
1856 CoarseConvolution_swigregister(CoarseConvolution)
1858 def CoarseConvolution_convolution(em_map, model_map, voxel_data_threshold, recalc_ccnormfac=True):
1860 convolution(DensityMap em_map, DensityMap model_map, float voxel_data_threshold, bool recalc_ccnormfac=True) -> float
1861 CoarseConvolution_convolution(DensityMap em_map, DensityMap model_map, float voxel_data_threshold) -> float
1863 return _IMP_em.CoarseConvolution_convolution(em_map, model_map, voxel_data_threshold, recalc_ccnormfac)
1865 class CoarseCCatIntervals(CoarseCC):
1866 """Proxy of C++ IMP::em::CoarseCCatIntervals class."""
1868 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1870 def __init__(self, *args):
1872 __init__(IMP::em::CoarseCCatIntervals self, int const & ncd) -> CoarseCCatIntervals
1873 __init__(IMP::em::CoarseCCatIntervals self) -> CoarseCCatIntervals
1875 this = _IMP_em.new_CoarseCCatIntervals(*args)
1877 self.this.append(this)
1881 def evaluate(self, em_map, model_map, deriv, scalefac, lderiv, eval_interval):
1882 """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 >"""
1883 return _IMP_em.CoarseCCatIntervals_evaluate(self, em_map, model_map, deriv, scalefac, lderiv, eval_interval)
1887 """__str__(CoarseCCatIntervals self) -> std::string"""
1888 return _IMP_em.CoarseCCatIntervals___str__(self)
1892 """__repr__(CoarseCCatIntervals self) -> std::string"""
1893 return _IMP_em.CoarseCCatIntervals___repr__(self)
1898 return _object_cast_to_CoarseCCatIntervals(o)
1900 CoarseCCatIntervals_swigregister = _IMP_em.CoarseCCatIntervals_swigregister
1901 CoarseCCatIntervals_swigregister(CoarseCCatIntervals)
1904 """Proxy of C++ IMP::em::FitRestraint class."""
1906 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1908 def __init__(self, *args):
1910 __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
1911 __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
1912 __init__(IMP::em::FitRestraint self, IMP::ParticlesTemp ps, DensityMap em_map, IMP::FloatPair norm_factors, FloatKey weight_key, float scale=1) -> FitRestraint
1913 __init__(IMP::em::FitRestraint self, IMP::ParticlesTemp ps, DensityMap em_map, IMP::FloatPair norm_factors, FloatKey weight_key) -> FitRestraint
1914 __init__(IMP::em::FitRestraint self, IMP::ParticlesTemp ps, DensityMap em_map, IMP::FloatPair norm_factors) -> FitRestraint
1915 __init__(IMP::em::FitRestraint self, IMP::ParticlesTemp ps, DensityMap em_map) -> FitRestraint
1917 this = _IMP_em.new_FitRestraint(*args)
1919 self.this.append(this)
1923 def get_model_dens_map(self):
1924 """get_model_dens_map(FitRestraint self) -> SampledDensityMap"""
1925 return _IMP_em.FitRestraint_get_model_dens_map(self)
1928 def set_scale_factor(self, scale):
1929 """set_scale_factor(FitRestraint self, float scale)"""
1930 return _IMP_em.FitRestraint_set_scale_factor(self, scale)
1933 def get_scale_factor(self):
1934 """get_scale_factor(FitRestraint self) -> float"""
1935 return _IMP_em.FitRestraint_get_scale_factor(self)
1938 def do_get_inputs(self):
1939 """do_get_inputs(FitRestraint self) -> IMP::ModelObjectsTemp"""
1940 return _IMP_em.FitRestraint_do_get_inputs(self)
1943 def get_version_info(self):
1944 """get_version_info(FitRestraint self) -> VersionInfo"""
1945 return _IMP_em.FitRestraint_get_version_info(self)
1949 """__str__(FitRestraint self) -> std::string"""
1950 return _IMP_em.FitRestraint___str__(self)
1954 """__repr__(FitRestraint self) -> std::string"""
1955 return _IMP_em.FitRestraint___repr__(self)
1960 return _object_cast_to_FitRestraint(o)
1964 """cast(Restraint r) -> FitRestraint"""
1965 return _IMP_em.FitRestraint_cast(r)
1967 cast = staticmethod(cast)
1968 FitRestraint_swigregister = _IMP_em.FitRestraint_swigregister
1969 FitRestraint_swigregister(FitRestraint)
1971 def FitRestraint_cast(r):
1972 """FitRestraint_cast(Restraint r) -> FitRestraint"""
1973 return _IMP_em.FitRestraint_cast(r)
1978 density2particles(DensityMap dmap, IMP::Float threshold, Model m, int step=1) -> IMP::Particles
1979 density2particles(DensityMap dmap, IMP::Float threshold, Model m) -> IMP::Particles
1981 return _IMP_em.density2particles(dmap, threshold, m, step)
1984 """density2vectors(DensityMap dmap, IMP::Float threshold) -> IMP::algebra::Vector3Ds"""
1985 return _IMP_em.density2vectors(dmap, threshold)
1989 particles2density(IMP::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix, int sig_cutoff=3, FloatKey weight_key) -> SampledDensityMap
1990 particles2density(IMP::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix, int sig_cutoff=3) -> SampledDensityMap
1991 particles2density(IMP::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix) -> SampledDensityMap
1993 return _IMP_em.particles2density(*args)
1997 particles2binarized_density(IMP::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix, int sig_cutoff=3, FloatKey weight_key) -> SampledDensityMap
1998 particles2binarized_density(IMP::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix, int sig_cutoff=3) -> SampledDensityMap
1999 particles2binarized_density(IMP::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix) -> SampledDensityMap
2001 return _IMP_em.particles2binarized_density(*args)
2005 particles2surface(IMP::ParticlesTemp const & ps, IMP::Float apix, FloatKey weight_key) -> SurfaceShellDensityMap
2006 particles2surface(IMP::ParticlesTemp const & ps, IMP::Float apix) -> SurfaceShellDensityMap
2008 return _IMP_em.particles2surface(*args)
2010 def calculate_intersection_score(d1, d2):
2011 """calculate_intersection_score(SurfaceShellDensityMap d1, SurfaceShellDensityMap d2) -> IMP::Float"""
2012 return _IMP_em.calculate_intersection_score(d1, d2)
2013 class SpiderHeader(object):
2014 """Proxy of C++ IMP::em::SpiderHeader class."""
2016 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2017 __repr__ = _swig_repr
2018 fNslice = _swig_property(_IMP_em.SpiderHeader_fNslice_get, _IMP_em.SpiderHeader_fNslice_set)
2019 fNrow = _swig_property(_IMP_em.SpiderHeader_fNrow_get, _IMP_em.SpiderHeader_fNrow_set)
2020 fNrec = _swig_property(_IMP_em.SpiderHeader_fNrec_get, _IMP_em.SpiderHeader_fNrec_set)
2021 fNlabel = _swig_property(_IMP_em.SpiderHeader_fNlabel_get, _IMP_em.SpiderHeader_fNlabel_set)
2022 fIform = _swig_property(_IMP_em.SpiderHeader_fIform_get, _IMP_em.SpiderHeader_fIform_set)
2023 fImami = _swig_property(_IMP_em.SpiderHeader_fImami_get, _IMP_em.SpiderHeader_fImami_set)
2024 fFmax = _swig_property(_IMP_em.SpiderHeader_fFmax_get, _IMP_em.SpiderHeader_fFmax_set)
2025 fFmin = _swig_property(_IMP_em.SpiderHeader_fFmin_get, _IMP_em.SpiderHeader_fFmin_set)
2026 fAv = _swig_property(_IMP_em.SpiderHeader_fAv_get, _IMP_em.SpiderHeader_fAv_set)
2027 fSig = _swig_property(_IMP_em.SpiderHeader_fSig_get, _IMP_em.SpiderHeader_fSig_set)
2028 fIhist = _swig_property(_IMP_em.SpiderHeader_fIhist_get, _IMP_em.SpiderHeader_fIhist_set)
2029 fNcol = _swig_property(_IMP_em.SpiderHeader_fNcol_get, _IMP_em.SpiderHeader_fNcol_set)
2030 fLabrec = _swig_property(_IMP_em.SpiderHeader_fLabrec_get, _IMP_em.SpiderHeader_fLabrec_set)
2031 fIangle = _swig_property(_IMP_em.SpiderHeader_fIangle_get, _IMP_em.SpiderHeader_fIangle_set)
2032 fPhi = _swig_property(_IMP_em.SpiderHeader_fPhi_get, _IMP_em.SpiderHeader_fPhi_set)
2033 fTheta = _swig_property(_IMP_em.SpiderHeader_fTheta_get, _IMP_em.SpiderHeader_fTheta_set)
2034 fPsi = _swig_property(_IMP_em.SpiderHeader_fPsi_get, _IMP_em.SpiderHeader_fPsi_set)
2035 fXoff = _swig_property(_IMP_em.SpiderHeader_fXoff_get, _IMP_em.SpiderHeader_fXoff_set)
2036 fYoff = _swig_property(_IMP_em.SpiderHeader_fYoff_get, _IMP_em.SpiderHeader_fYoff_set)
2037 fZoff = _swig_property(_IMP_em.SpiderHeader_fZoff_get, _IMP_em.SpiderHeader_fZoff_set)
2038 fScale = _swig_property(_IMP_em.SpiderHeader_fScale_get, _IMP_em.SpiderHeader_fScale_set)
2039 fLabbyt = _swig_property(_IMP_em.SpiderHeader_fLabbyt_get, _IMP_em.SpiderHeader_fLabbyt_set)
2040 fLenbyt = _swig_property(_IMP_em.SpiderHeader_fLenbyt_get, _IMP_em.SpiderHeader_fLenbyt_set)
2041 fNothing = _swig_property(_IMP_em.SpiderHeader_fNothing_get, _IMP_em.SpiderHeader_fNothing_set)
2042 fFlag = _swig_property(_IMP_em.SpiderHeader_fFlag_get, _IMP_em.SpiderHeader_fFlag_set)
2043 fPhi1 = _swig_property(_IMP_em.SpiderHeader_fPhi1_get, _IMP_em.SpiderHeader_fPhi1_set)
2044 fTheta1 = _swig_property(_IMP_em.SpiderHeader_fTheta1_get, _IMP_em.SpiderHeader_fTheta1_set)
2045 fPsi1 = _swig_property(_IMP_em.SpiderHeader_fPsi1_get, _IMP_em.SpiderHeader_fPsi1_set)
2046 fPhi2 = _swig_property(_IMP_em.SpiderHeader_fPhi2_get, _IMP_em.SpiderHeader_fPhi2_set)
2047 fTheta2 = _swig_property(_IMP_em.SpiderHeader_fTheta2_get, _IMP_em.SpiderHeader_fTheta2_set)
2048 fPsi2 = _swig_property(_IMP_em.SpiderHeader_fPsi2_get, _IMP_em.SpiderHeader_fPsi2_set)
2049 fGeo_matrix = _swig_property(_IMP_em.SpiderHeader_fGeo_matrix_get, _IMP_em.SpiderHeader_fGeo_matrix_set)
2050 fAngle1 = _swig_property(_IMP_em.SpiderHeader_fAngle1_get, _IMP_em.SpiderHeader_fAngle1_set)
2051 fr1 = _swig_property(_IMP_em.SpiderHeader_fr1_get, _IMP_em.SpiderHeader_fr1_set)
2052 fr2 = _swig_property(_IMP_em.SpiderHeader_fr2_get, _IMP_em.SpiderHeader_fr2_set)
2053 RTflag = _swig_property(_IMP_em.SpiderHeader_RTflag_get, _IMP_em.SpiderHeader_RTflag_set)
2054 Astart = _swig_property(_IMP_em.SpiderHeader_Astart_get, _IMP_em.SpiderHeader_Astart_set)
2055 Aend = _swig_property(_IMP_em.SpiderHeader_Aend_get, _IMP_em.SpiderHeader_Aend_set)
2056 Ainc = _swig_property(_IMP_em.SpiderHeader_Ainc_get, _IMP_em.SpiderHeader_Ainc_set)
2057 Rsigma = _swig_property(_IMP_em.SpiderHeader_Rsigma_get, _IMP_em.SpiderHeader_Rsigma_set)
2058 Tstart = _swig_property(_IMP_em.SpiderHeader_Tstart_get, _IMP_em.SpiderHeader_Tstart_set)
2059 Tend = _swig_property(_IMP_em.SpiderHeader_Tend_get, _IMP_em.SpiderHeader_Tend_set)
2060 Tinc = _swig_property(_IMP_em.SpiderHeader_Tinc_get, _IMP_em.SpiderHeader_Tinc_set)
2061 Weight = _swig_property(_IMP_em.SpiderHeader_Weight_get, _IMP_em.SpiderHeader_Weight_set)
2062 Flip = _swig_property(_IMP_em.SpiderHeader_Flip_get, _IMP_em.SpiderHeader_Flip_set)
2063 empty = _swig_property(_IMP_em.SpiderHeader_empty_get, _IMP_em.SpiderHeader_empty_set)
2064 szIDat = _swig_property(_IMP_em.SpiderHeader_szIDat_get, _IMP_em.SpiderHeader_szIDat_set)
2065 szITim = _swig_property(_IMP_em.SpiderHeader_szITim_get, _IMP_em.SpiderHeader_szITim_set)
2066 szITit = _swig_property(_IMP_em.SpiderHeader_szITit_get, _IMP_em.SpiderHeader_szITit_set)
2068 def show(self, out):
2069 """show(SpiderHeader self, _ostream out)"""
2070 return _IMP_em.SpiderHeader_show(self, out)
2074 """__init__(IMP::em::SpiderHeader self) -> SpiderHeader"""
2075 this = _IMP_em.new_SpiderHeader()
2077 self.this.append(this)
2080 __swig_destroy__ = _IMP_em.delete_SpiderHeader
2081 __del__ =
lambda self:
None
2082 SpiderHeader_swigregister = _IMP_em.SpiderHeader_swigregister
2083 SpiderHeader_swigregister(SpiderHeader)
2085 class ImageHeader(object):
2086 """Proxy of C++ IMP::em::ImageHeader class."""
2088 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2089 __repr__ = _swig_repr
2090 IMG_BYTE = _IMP_em.ImageHeader_IMG_BYTE
2091 IMG_IMPEM = _IMP_em.ImageHeader_IMG_IMPEM
2092 IMG_INT = _IMP_em.ImageHeader_IMG_INT
2093 VOL_BYTE = _IMP_em.ImageHeader_VOL_BYTE
2094 VOL_IMPEM = _IMP_em.ImageHeader_VOL_IMPEM
2095 VOL_INT = _IMP_em.ImageHeader_VOL_INT
2096 IMG_FOURIER = _IMP_em.ImageHeader_IMG_FOURIER
2097 VOL_FOURIER = _IMP_em.ImageHeader_VOL_FOURIER
2099 def __init__(self, *args):
2101 __init__(IMP::em::ImageHeader self) -> ImageHeader
2102 __init__(IMP::em::ImageHeader self, IMP::em::ImageHeader::img_type im) -> ImageHeader
2103 __init__(IMP::em::ImageHeader self, float im) -> ImageHeader
2105 this = _IMP_em.new_ImageHeader(*args)
2107 self.this.append(this)
2111 def get_image_type(self):
2112 """get_image_type(ImageHeader self) -> float"""
2113 return _IMP_em.ImageHeader_get_image_type(self)
2116 def set_image_type(self, *args):
2118 set_image_type(ImageHeader self, IMP::em::ImageHeader::img_type im)
2119 set_image_type(ImageHeader self, float im)
2121 return _IMP_em.ImageHeader_set_image_type(self, *args)
2124 def do_show(self, out):
2125 """do_show(ImageHeader self, _ostream out)"""
2126 return _IMP_em.ImageHeader_do_show(self, out)
2129 def show(self, *args):
2131 show(ImageHeader self, _ostream out)
2132 show(ImageHeader self)
2134 return _IMP_em.ImageHeader_show(self, *args)
2137 def print_hard(self, out):
2138 """print_hard(ImageHeader self, _ostream out)"""
2139 return _IMP_em.ImageHeader_print_hard(self, out)
2142 def show_projection_params(self, out):
2143 """show_projection_params(ImageHeader self, _ostream out)"""
2144 return _IMP_em.ImageHeader_show_projection_params(self, out)
2147 def read(self, *args):
2149 read(ImageHeader self, IMP::String const filename, bool skip_type_check=False, bool force_reversed=False, bool skip_extra_checkings=False) -> int
2150 read(ImageHeader self, IMP::String const filename, bool skip_type_check=False, bool force_reversed=False) -> int
2151 read(ImageHeader self, IMP::String const filename, bool skip_type_check=False) -> int
2152 read(ImageHeader self, IMP::String const filename) -> int
2153 read(ImageHeader self, std::ifstream & f, bool skip_type_check=False, bool force_reversed=False, bool skip_extra_checkings=False) -> bool
2154 read(ImageHeader self, std::ifstream & f, bool skip_type_check=False, bool force_reversed=False) -> bool
2155 read(ImageHeader self, std::ifstream & f, bool skip_type_check=False) -> bool
2156 read(ImageHeader self, std::ifstream & f) -> bool
2158 return _IMP_em.ImageHeader_read(self, *args)
2161 def write(self, *args):
2163 write(ImageHeader self, IMP::String const & filename, bool force_reversed=False)
2164 write(ImageHeader self, IMP::String const & filename)
2165 write(ImageHeader self, std::ofstream & f, bool force_reversed=False)
2166 write(ImageHeader self, std::ofstream & f)
2168 return _IMP_em.ImageHeader_write(self, *args)
2172 """clear(ImageHeader self)"""
2173 return _IMP_em.ImageHeader_clear(self)
2176 def set_header(self):
2177 """set_header(ImageHeader self)"""
2178 return _IMP_em.ImageHeader_set_header(self)
2181 def get_reversed(self):
2182 """get_reversed(ImageHeader self) -> bool"""
2183 return _IMP_em.ImageHeader_get_reversed(self)
2186 def set_reversed(self, value):
2187 """set_reversed(ImageHeader self, bool value)"""
2188 return _IMP_em.ImageHeader_set_reversed(self, value)
2191 def get_number_of_slices(self):
2192 """get_number_of_slices(ImageHeader self) -> unsigned int"""
2193 return _IMP_em.ImageHeader_get_number_of_slices(self)
2196 def set_number_of_slices(self, n):
2197 """set_number_of_slices(ImageHeader self, unsigned int n)"""
2198 return _IMP_em.ImageHeader_set_number_of_slices(self, n)
2201 def get_number_of_rows(self):
2202 """get_number_of_rows(ImageHeader self) -> unsigned int"""
2203 return _IMP_em.ImageHeader_get_number_of_rows(self)
2206 def set_number_of_rows(self, n):
2207 """set_number_of_rows(ImageHeader self, unsigned int n)"""
2208 return _IMP_em.ImageHeader_set_number_of_rows(self, n)
2211 def get_number_of_columns(self):
2212 """get_number_of_columns(ImageHeader self) -> unsigned int"""
2213 return _IMP_em.ImageHeader_get_number_of_columns(self)
2216 def set_number_of_columns(self, n):
2217 """set_number_of_columns(ImageHeader self, unsigned int n)"""
2218 return _IMP_em.ImageHeader_set_number_of_columns(self, n)
2221 def get_old_rot(self):
2222 """get_old_rot(ImageHeader self) -> float"""
2223 return _IMP_em.ImageHeader_get_old_rot(self)
2226 def set_old_rot(self, value):
2227 """set_old_rot(ImageHeader self, float value)"""
2228 return _IMP_em.ImageHeader_set_old_rot(self, value)
2231 def get_fAngle1(self):
2232 """get_fAngle1(ImageHeader self) -> float"""
2233 return _IMP_em.ImageHeader_get_fAngle1(self)
2236 def set_fAngle1(self, value):
2237 """set_fAngle1(ImageHeader self, float value)"""
2238 return _IMP_em.ImageHeader_set_fAngle1(self, value)
2241 def get_Scale(self):
2242 """get_Scale(ImageHeader self) -> float"""
2243 return _IMP_em.ImageHeader_get_Scale(self)
2246 def set_Scale(self, value):
2247 """set_Scale(ImageHeader self, float value)"""
2248 return _IMP_em.ImageHeader_set_Scale(self, value)
2252 """get_Flip(ImageHeader self) -> float"""
2253 return _IMP_em.ImageHeader_get_Flip(self)
2256 def set_Flip(self, value):
2257 """set_Flip(ImageHeader self, float value)"""
2258 return _IMP_em.ImageHeader_set_Flip(self, value)
2261 def get_Weight(self):
2262 """get_Weight(ImageHeader self) -> float"""
2263 return _IMP_em.ImageHeader_get_Weight(self)
2266 def set_Weight(self, value):
2267 """set_Weight(ImageHeader self, float value)"""
2268 return _IMP_em.ImageHeader_set_Weight(self, value)
2271 def get_fNrec(self):
2272 """get_fNrec(ImageHeader self) -> float"""
2273 return _IMP_em.ImageHeader_get_fNrec(self)
2276 def set_fNrec(self, value):
2277 """set_fNrec(ImageHeader self, float value)"""
2278 return _IMP_em.ImageHeader_set_fNrec(self, value)
2281 def get_fNlabel(self):
2282 """get_fNlabel(ImageHeader self) -> float"""
2283 return _IMP_em.ImageHeader_get_fNlabel(self)
2286 def set_fNlabel(self, value):
2287 """set_fNlabel(ImageHeader self, float value)"""
2288 return _IMP_em.ImageHeader_set_fNlabel(self, value)
2291 def get_fIform(self):
2292 """get_fIform(ImageHeader self) -> float"""
2293 return _IMP_em.ImageHeader_get_fIform(self)
2296 def set_fIform(self, value):
2297 """set_fIform(ImageHeader self, float value)"""
2298 return _IMP_em.ImageHeader_set_fIform(self, value)
2301 def get_fImami(self):
2302 """get_fImami(ImageHeader self) -> float"""
2303 return _IMP_em.ImageHeader_get_fImami(self)
2306 def set_fImami(self, value):
2307 """set_fImami(ImageHeader self, float value)"""
2308 return _IMP_em.ImageHeader_set_fImami(self, value)
2311 def get_fFmax(self):
2312 """get_fFmax(ImageHeader self) -> float"""
2313 return _IMP_em.ImageHeader_get_fFmax(self)
2316 def set_fFmax(self, value):
2317 """set_fFmax(ImageHeader self, float value)"""
2318 return _IMP_em.ImageHeader_set_fFmax(self, value)
2321 def get_fFmin(self):
2322 """get_fFmin(ImageHeader self) -> float"""
2323 return _IMP_em.ImageHeader_get_fFmin(self)
2326 def set_fFmin(self, value):
2327 """set_fFmin(ImageHeader self, float value)"""
2328 return _IMP_em.ImageHeader_set_fFmin(self, value)
2332 """get_fAv(ImageHeader self) -> float"""
2333 return _IMP_em.ImageHeader_get_fAv(self)
2336 def set_fAv(self, value):
2337 """set_fAv(ImageHeader self, float value)"""
2338 return _IMP_em.ImageHeader_set_fAv(self, value)
2342 """get_fSig(ImageHeader self) -> float"""
2343 return _IMP_em.ImageHeader_get_fSig(self)
2346 def set_fSig(self, value):
2347 """set_fSig(ImageHeader self, float value)"""
2348 return _IMP_em.ImageHeader_set_fSig(self, value)
2351 def get_fIhist(self):
2352 """get_fIhist(ImageHeader self) -> float"""
2353 return _IMP_em.ImageHeader_get_fIhist(self)
2356 def set_fIhist(self, value):
2357 """set_fIhist(ImageHeader self, float value)"""
2358 return _IMP_em.ImageHeader_set_fIhist(self, value)
2361 def get_fLabrec(self):
2362 """get_fLabrec(ImageHeader self) -> float"""
2363 return _IMP_em.ImageHeader_get_fLabrec(self)
2366 def set_fLabrec(self, value):
2367 """set_fLabrec(ImageHeader self, float value)"""
2368 return _IMP_em.ImageHeader_set_fLabrec(self, value)
2371 def get_fIangle(self):
2372 """get_fIangle(ImageHeader self) -> float"""
2373 return _IMP_em.ImageHeader_get_fIangle(self)
2376 def set_fIangle(self, value):
2377 """set_fIangle(ImageHeader self, float value)"""
2378 return _IMP_em.ImageHeader_set_fIangle(self, value)
2381 def get_origin(self):
2382 """get_origin(ImageHeader self) -> Vector3D"""
2383 return _IMP_em.ImageHeader_get_origin(self)
2386 def set_origin(self, *args):
2388 set_origin(ImageHeader self, Vector3D v)
2389 set_origin(ImageHeader self, Vector2D v)
2391 return _IMP_em.ImageHeader_set_origin(self, *args)
2394 def get_object_pixel_size(self):
2395 """get_object_pixel_size(ImageHeader self) -> float"""
2396 return _IMP_em.ImageHeader_get_object_pixel_size(self)
2399 def set_object_pixel_size(self, value):
2400 """set_object_pixel_size(ImageHeader self, float value)"""
2401 return _IMP_em.ImageHeader_set_object_pixel_size(self, value)
2404 def get_fLabbyt(self):
2405 """get_fLabbyt(ImageHeader self) -> float"""
2406 return _IMP_em.ImageHeader_get_fLabbyt(self)
2409 def set_fLabbyt(self, value):
2410 """set_fLabbyt(ImageHeader self, float value)"""
2411 return _IMP_em.ImageHeader_set_fLabbyt(self, value)
2414 def get_fLenbyt(self):
2415 """get_fLenbyt(ImageHeader self) -> float"""
2416 return _IMP_em.ImageHeader_get_fLenbyt(self)
2419 def set_fLenbyt(self, value):
2420 """set_fLenbyt(ImageHeader self, float value)"""
2421 return _IMP_em.ImageHeader_set_fLenbyt(self, value)
2424 def get_fGeo_matrix(self, i, j):
2425 """get_fGeo_matrix(ImageHeader self, unsigned int i, unsigned int j) -> double"""
2426 return _IMP_em.ImageHeader_get_fGeo_matrix(self, i, j)
2429 def get_fFlag(self):
2430 """get_fFlag(ImageHeader self) -> float"""
2431 return _IMP_em.ImageHeader_get_fFlag(self)
2434 def set_fFlag(self, value):
2435 """set_fFlag(ImageHeader self, float value)"""
2436 return _IMP_em.ImageHeader_set_fFlag(self, value)
2439 def get_euler_angles(self):
2440 """get_euler_angles(ImageHeader self) -> Vector3D"""
2441 return _IMP_em.ImageHeader_get_euler_angles(self)
2444 def get_euler_angles1(self):
2445 """get_euler_angles1(ImageHeader self) -> Vector3D"""
2446 return _IMP_em.ImageHeader_get_euler_angles1(self)
2449 def get_euler_angles2(self):
2450 """get_euler_angles2(ImageHeader self) -> Vector3D"""
2451 return _IMP_em.ImageHeader_get_euler_angles2(self)
2454 def set_euler_angles(self, euler):
2455 """set_euler_angles(ImageHeader self, Vector3D euler)"""
2456 return _IMP_em.ImageHeader_set_euler_angles(self, euler)
2459 def set_euler_angles1(self, euler):
2460 """set_euler_angles1(ImageHeader self, Vector3D euler)"""
2461 return _IMP_em.ImageHeader_set_euler_angles1(self, euler)
2464 def set_euler_angles2(self, euler):
2465 """set_euler_angles2(ImageHeader self, Vector3D euler)"""
2466 return _IMP_em.ImageHeader_set_euler_angles2(self, euler)
2469 def is_normalized(self):
2470 """is_normalized(ImageHeader self) -> bool"""
2471 return _IMP_em.ImageHeader_is_normalized(self)
2475 """set_date(ImageHeader self)"""
2476 return _IMP_em.ImageHeader_set_date(self)
2480 """set_time(ImageHeader self)"""
2481 return _IMP_em.ImageHeader_set_time(self)
2484 def set_title(self, newName):
2485 """set_title(ImageHeader self, IMP::String newName)"""
2486 return _IMP_em.ImageHeader_set_title(self, newName)
2488 __swig_destroy__ = _IMP_em.delete_ImageHeader
2489 __del__ =
lambda self:
None
2490 ImageHeader_swigregister = _IMP_em.ImageHeader_swigregister
2491 ImageHeader_swigregister(ImageHeader)
2493 class SpiderMapReaderWriter(MapReaderWriter):
2494 """Proxy of C++ IMP::em::SpiderMapReaderWriter class."""
2496 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2497 filename_ = _swig_property(_IMP_em.SpiderMapReaderWriter_filename__get, _IMP_em.SpiderMapReaderWriter_filename__set)
2498 skip_type_check_ = _swig_property(_IMP_em.SpiderMapReaderWriter_skip_type_check__get, _IMP_em.SpiderMapReaderWriter_skip_type_check__set)
2499 force_reversed_ = _swig_property(_IMP_em.SpiderMapReaderWriter_force_reversed__get, _IMP_em.SpiderMapReaderWriter_force_reversed__set)
2500 skip_extra_checkings_ = _swig_property(_IMP_em.SpiderMapReaderWriter_skip_extra_checkings__get, _IMP_em.SpiderMapReaderWriter_skip_extra_checkings__set)
2502 def __init__(self, *args):
2504 __init__(IMP::em::SpiderMapReaderWriter self) -> SpiderMapReaderWriter
2505 __init__(IMP::em::SpiderMapReaderWriter self, IMP::String filename, bool skip_type_check, bool force_reversed, bool skip_extra_checkings) -> SpiderMapReaderWriter
2507 this = _IMP_em.new_SpiderMapReaderWriter(*args)
2509 self.this.append(this)
2514 """__str__(SpiderMapReaderWriter self) -> std::string"""
2515 return _IMP_em.SpiderMapReaderWriter___str__(self)
2519 """__repr__(SpiderMapReaderWriter self) -> std::string"""
2520 return _IMP_em.SpiderMapReaderWriter___repr__(self)
2525 return _object_cast_to_SpiderMapReaderWriter(o)
2527 SpiderMapReaderWriter_swigregister = _IMP_em.SpiderMapReaderWriter_swigregister
2528 SpiderMapReaderWriter_swigregister(SpiderMapReaderWriter)
2530 class FittingSolutions(object):
2531 """Proxy of C++ IMP::em::FittingSolutions class."""
2533 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2536 """__init__(IMP::em::FittingSolutions self) -> FittingSolutions"""
2537 this = _IMP_em.new_FittingSolutions()
2539 self.this.append(this)
2543 def get_number_of_solutions(self):
2544 """get_number_of_solutions(FittingSolutions self) -> int"""
2545 return _IMP_em.FittingSolutions_get_number_of_solutions(self)
2548 def get_transformation(self, i):
2549 """get_transformation(FittingSolutions self, unsigned int i) -> Transformation3D"""
2550 return _IMP_em.FittingSolutions_get_transformation(self, i)
2553 def get_score(self, i):
2554 """get_score(FittingSolutions self, unsigned int i) -> IMP::Float"""
2555 return _IMP_em.FittingSolutions_get_score(self, i)
2558 def set_score(self, i, score):
2559 """set_score(FittingSolutions self, unsigned int i, IMP::Float score)"""
2560 return _IMP_em.FittingSolutions_set_score(self, i, score)
2563 def add_solution(self, t, score):
2564 """add_solution(FittingSolutions self, Transformation3D t, IMP::Float score)"""
2565 return _IMP_em.FittingSolutions_add_solution(self, t, score)
2568 def sort(self, reverse=False):
2570 sort(FittingSolutions self, bool reverse=False)
2571 sort(FittingSolutions self)
2573 return _IMP_em.FittingSolutions_sort(self, reverse)
2577 """multiply(FittingSolutions self, Transformation3D t)"""
2578 return _IMP_em.FittingSolutions_multiply(self, t)
2581 def get_transformations(self):
2582 """get_transformations(FittingSolutions self) -> IMP::algebra::Transformation3Ds"""
2583 return _IMP_em.FittingSolutions_get_transformations(self)
2586 def show(self, *args):
2588 show(FittingSolutions self, _ostream out)
2589 show(FittingSolutions self)
2591 return _IMP_em.FittingSolutions_show(self, *args)
2595 """__str__(FittingSolutions self) -> std::string"""
2596 return _IMP_em.FittingSolutions___str__(self)
2600 """__repr__(FittingSolutions self) -> std::string"""
2601 return _IMP_em.FittingSolutions___repr__(self)
2603 __swig_destroy__ = _IMP_em.delete_FittingSolutions
2604 __del__ =
lambda self:
None
2605 FittingSolutions_swigregister = _IMP_em.FittingSolutions_swigregister
2606 FittingSolutions_swigregister(FittingSolutions)
2609 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):
2611 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
2612 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
2613 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
2614 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
2615 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
2616 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
2617 local_rigid_fitting_around_point(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, Vector3D anchor_centroid, IMP::OptimizerStates display_log) -> FittingSolutions
2619 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)
2621 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):
2623 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
2624 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
2625 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
2626 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
2627 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
2628 local_rigid_fitting(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5) -> FittingSolutions
2629 local_rigid_fitting(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, IMP::OptimizerStates display_log) -> FittingSolutions
2631 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)
2633 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):
2635 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
2636 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
2637 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
2638 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
2639 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
2640 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
2642 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)
2644 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):
2646 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
2647 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
2648 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
2649 local_rigid_fitting_grid_search(IMP::ParticlesTemp const & ps, FloatKey wei_key, DensityMap dmap, IMP::Int max_voxels_translation=2) -> FittingSolutions
2650 local_rigid_fitting_grid_search(IMP::ParticlesTemp const & ps, FloatKey wei_key, DensityMap dmap) -> FittingSolutions
2652 return _IMP_em.local_rigid_fitting_grid_search(ps, wei_key, dmap, max_voxels_translation, translation_step, max_angle_in_radians, number_of_rotations)
2656 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
2657 compute_fitting_scores(IMP::ParticlesTemp const & ps, DensityMap em_map, IMP::algebra::Transformation3Ds const & transformations, bool fast_version=False, bool local_score=False) -> FittingSolutions
2658 compute_fitting_scores(IMP::ParticlesTemp const & ps, DensityMap em_map, IMP::algebra::Transformation3Ds const & transformations, bool fast_version=False) -> FittingSolutions
2659 compute_fitting_scores(IMP::ParticlesTemp const & ps, DensityMap em_map, IMP::algebra::Transformation3Ds const & transformations) -> FittingSolutions
2660 compute_fitting_scores(DensityMap em_map, RigidBody rb, Refiner refiner, IMP::algebra::Transformation3Ds const & transformations) -> FittingSolutions
2662 return _IMP_em.compute_fitting_scores(*args)
2666 compute_fitting_score(IMP::ParticlesTemp const & ps, DensityMap em_map, FloatKey wei_key) -> IMP::Float
2667 compute_fitting_score(IMP::ParticlesTemp const & ps, DensityMap em_map) -> IMP::Float
2669 return _IMP_em.compute_fitting_score(*args)
2673 get_number_of_particles_outside_of_the_density(DensityMap dmap, IMP::Particles const & ps, Transformation3D t, float thr=0.0) -> long
2674 get_number_of_particles_outside_of_the_density(DensityMap dmap, IMP::Particles const & ps, Transformation3D t) -> long
2675 get_number_of_particles_outside_of_the_density(DensityMap dmap, IMP::Particles const & ps) -> long
2677 return _IMP_em.get_number_of_particles_outside_of_the_density(*args)
2681 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
2682 get_numbers_of_particles_outside_of_the_density(DensityMap dmap, IMP::Particles const & ps, IMP::algebra::Transformation3Ds const & transformations) -> IMP::Ints
2684 return _IMP_em.get_numbers_of_particles_outside_of_the_density(dmap, ps, transformations, thr)
2688 get_percentage_of_voxels_covered_by_particles(DensityMap dmap, IMP::Particles const & ps, float smoothing_radius=3., Transformation3D t, float thr=0.0) -> double
2689 get_percentage_of_voxels_covered_by_particles(DensityMap dmap, IMP::Particles const & ps, float smoothing_radius=3., Transformation3D t) -> double
2690 get_percentage_of_voxels_covered_by_particles(DensityMap dmap, IMP::Particles const & ps, float smoothing_radius=3.) -> double
2691 get_percentage_of_voxels_covered_by_particles(DensityMap dmap, IMP::Particles const & ps) -> double
2693 return _IMP_em.get_percentage_of_voxels_covered_by_particles(*args)
2695 """Proxy of C++ IMP::em::HighDensityEmbedding class."""
2697 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2699 def __init__(self, dm, threshold):
2700 """__init__(IMP::em::HighDensityEmbedding self, DensityMap dm, double threshold) -> HighDensityEmbedding"""
2701 this = _IMP_em.new_HighDensityEmbedding(dm, threshold)
2703 self.this.append(this)
2707 def get_version_info(self):
2708 """get_version_info(HighDensityEmbedding self) -> VersionInfo"""
2709 return _IMP_em.HighDensityEmbedding_get_version_info(self)
2713 """__str__(HighDensityEmbedding self) -> std::string"""
2714 return _IMP_em.HighDensityEmbedding___str__(self)
2718 """__repr__(HighDensityEmbedding self) -> std::string"""
2719 return _IMP_em.HighDensityEmbedding___repr__(self)
2724 return _object_cast_to_HighDensityEmbedding(o)
2726 HighDensityEmbedding_swigregister = _IMP_em.HighDensityEmbedding_swigregister
2727 HighDensityEmbedding_swigregister(HighDensityEmbedding)
2731 """mask_and_norm(DensityMap dmap, DensityMap mask) -> DensityMap"""
2732 return _IMP_em.mask_and_norm(dmap, mask)
2735 """get_volume_at_threshold(DensityMap m, IMP::Float threshold) -> IMP::Float"""
2736 return _IMP_em.get_volume_at_threshold(m, threshold)
2740 get_molecular_mass_at_threshold(DensityMap m, IMP::Float threshold, IMP::atom::ProteinDensityReference ref) -> IMP::Float
2741 get_molecular_mass_at_threshold(DensityMap m, IMP::Float threshold) -> IMP::Float
2743 return _IMP_em.get_molecular_mass_at_threshold(*args)
2746 """get_threshold_for_approximate_volume(DensityMap m, IMP::Float desired_volume) -> IMP::Float"""
2747 return _IMP_em.get_threshold_for_approximate_volume(m, desired_volume)
2751 get_threshold_for_approximate_mass(DensityMap m, IMP::Float desired_mass, IMP::atom::ProteinDensityReference ref) -> IMP::Float
2752 get_threshold_for_approximate_mass(DensityMap m, IMP::Float desired_mass) -> IMP::Float
2754 return _IMP_em.get_threshold_for_approximate_mass(*args)
2756 """Proxy of C++ IMP::em::EnvelopePenetrationRestraint class."""
2758 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2760 def __init__(self, ps, em_map, threshold):
2761 """__init__(IMP::em::EnvelopePenetrationRestraint self, IMP::Particles ps, DensityMap em_map, IMP::Float threshold) -> EnvelopePenetrationRestraint"""
2762 this = _IMP_em.new_EnvelopePenetrationRestraint(ps, em_map, threshold)
2764 self.this.append(this)
2768 def do_get_inputs(self):
2769 """do_get_inputs(EnvelopePenetrationRestraint self) -> IMP::ModelObjectsTemp"""
2770 return _IMP_em.EnvelopePenetrationRestraint_do_get_inputs(self)
2773 def get_version_info(self):
2774 """get_version_info(EnvelopePenetrationRestraint self) -> VersionInfo"""
2775 return _IMP_em.EnvelopePenetrationRestraint_get_version_info(self)
2779 """__str__(EnvelopePenetrationRestraint self) -> std::string"""
2780 return _IMP_em.EnvelopePenetrationRestraint___str__(self)
2784 """__repr__(EnvelopePenetrationRestraint self) -> std::string"""
2785 return _IMP_em.EnvelopePenetrationRestraint___repr__(self)
2790 return _object_cast_to_EnvelopePenetrationRestraint(o)
2792 EnvelopePenetrationRestraint_swigregister = _IMP_em.EnvelopePenetrationRestraint_swigregister
2793 EnvelopePenetrationRestraint_swigregister(EnvelopePenetrationRestraint)
2796 """Proxy of C++ IMP::em::PCAFitRestraint class."""
2798 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2800 def __init__(self, *args):
2802 __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
2803 __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
2805 this = _IMP_em.new_PCAFitRestraint(*args)
2807 self.this.append(this)
2811 def do_get_inputs(self):
2812 """do_get_inputs(PCAFitRestraint self) -> IMP::ModelObjectsTemp"""
2813 return _IMP_em.PCAFitRestraint_do_get_inputs(self)
2816 def get_version_info(self):
2817 """get_version_info(PCAFitRestraint self) -> VersionInfo"""
2818 return _IMP_em.PCAFitRestraint_get_version_info(self)
2822 """__str__(PCAFitRestraint self) -> std::string"""
2823 return _IMP_em.PCAFitRestraint___str__(self)
2827 """__repr__(PCAFitRestraint self) -> std::string"""
2828 return _IMP_em.PCAFitRestraint___repr__(self)
2833 return _object_cast_to_PCAFitRestraint(o)
2835 PCAFitRestraint_swigregister = _IMP_em.PCAFitRestraint_swigregister
2836 PCAFitRestraint_swigregister(PCAFitRestraint)
2839 """Proxy of C++ IMP::em::EnvelopeFitRestraint class."""
2841 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2843 def __init__(self, particles, em_map, density_threshold, penetration_threshold):
2844 """__init__(IMP::em::EnvelopeFitRestraint self, IMP::Particles particles, DensityMap em_map, double density_threshold, double penetration_threshold) -> EnvelopeFitRestraint"""
2845 this = _IMP_em.new_EnvelopeFitRestraint(particles, em_map, density_threshold, penetration_threshold)
2847 self.this.append(this)
2851 def get_transformation(self):
2852 """get_transformation(EnvelopeFitRestraint self) -> Transformation3D"""
2853 return _IMP_em.EnvelopeFitRestraint_get_transformation(self)
2856 def apply_transformation(self):
2857 """apply_transformation(EnvelopeFitRestraint self)"""
2858 return _IMP_em.EnvelopeFitRestraint_apply_transformation(self)
2861 def do_get_inputs(self):
2862 """do_get_inputs(EnvelopeFitRestraint self) -> IMP::ModelObjectsTemp"""
2863 return _IMP_em.EnvelopeFitRestraint_do_get_inputs(self)
2866 def get_version_info(self):
2867 """get_version_info(EnvelopeFitRestraint self) -> VersionInfo"""
2868 return _IMP_em.EnvelopeFitRestraint_get_version_info(self)
2872 """__str__(EnvelopeFitRestraint self) -> std::string"""
2873 return _IMP_em.EnvelopeFitRestraint___str__(self)
2877 """__repr__(EnvelopeFitRestraint self) -> std::string"""
2878 return _IMP_em.EnvelopeFitRestraint___repr__(self)
2883 return _object_cast_to_EnvelopeFitRestraint(o)
2885 EnvelopeFitRestraint_swigregister = _IMP_em.EnvelopeFitRestraint_swigregister
2886 EnvelopeFitRestraint_swigregister(EnvelopeFitRestraint)
2892 """Write out principal components to a file in Chimera Marker format"""
2893 eigen_values = pca.get_principal_values()
2894 eigen_vecs = pca.get_principal_components()
2895 centroid = pca.get_centroid()
2897 fh.write(
"<marker_set>\n")
2898 fh.write(
"<!-- PCA with eigen values: (%g,%g,%g) and "
2899 "centroid (%g,%g,%g) -->\n"
2900 % (math.sqrt(eigen_values[0]),
2901 math.sqrt(eigen_values[1]),
2902 math.sqrt(eigen_values[2]),
2903 centroid[0], centroid[1], centroid[2]))
2908 val = math.sqrt(eigen_values[i])
2909 v1 = centroid - val * eigen_vecs[i]
2910 v2 = centroid + val * eigen_vecs[i]
2911 for markerid, v
in ((i*2+1, v1), (i*2+2, v2)):
2912 fh.write(
"<marker id=\"%d\" x=\"%g\" y=\"%g\" z=\"%g\" "
2914 % (markerid, v[0], v[1], v[2], radius))
2916 for i
in range(1, 7, 2):
2917 fh.write(
"<link id1= \"%d\" id2=\"%d\" radius=\"%g\"/>\n"
2919 fh.write(
"</marker_set>\n")
2922 def get_module_version():
2923 """get_module_version() -> std::string const"""
2924 return _IMP_em.get_module_version()
2927 """get_example_path(std::string fname) -> std::string"""
2928 return _IMP_em.get_example_path(fname)
2931 """get_data_path(std::string fname) -> std::string"""
2932 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()
Float get_threshold_for_approximate_mass(DensityMap *m, Float desired_mass, atom::ProteinDensityReference ref=atom::HARPAZ)
Computes the threshold to consider in an EM map to get a desired mass.
DensityMap * interpolate_map(DensityMap *in_map, double new_spacing)
Return a new map with an updated spacing.
Particles density2particles(DensityMap *dmap, Float threshold, Model *m, int step=1)
Convert a density grid to a set of particles.
algebra::Vector3Ds density2vectors(DensityMap *dmap, Float threshold)
Convert a density grid to a set of vectors.
algebra::BoundingBoxD< 3 > get_bounding_box(const DensityMap *m, Float threshold)
Get the bounding box for a map.
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)
Return a map with 0 for all voxels below the threshold and 1 for those above.
double get_sum(const DensityMap *m1)
Return the sum of all voxels.
SampledDensityMap * particles2binarized_density(const ParticlesTemp &ps, Float resolution, Float apix, int sig_cutoff=3, const FloatKey &weight_key=IMP::atom::Mass::get_mass_key())
Make CGAL functionality available to IMP.
DensityMap * mask_and_norm(em::DensityMap *dmap, em::DensityMap *mask)
Return a masked density, and normalize the output map within the mask region.
FittingSolutions compute_fitting_scores(const ParticlesTemp &ps, DensityMap *em_map, const algebra::Transformation3Ds &transformations, bool fast_version=false, bool local_score=false, const FloatKey &wei_key=atom::Mass::get_mass_key())
Compute fitting scores for a given set of rigid transformations.
DensityMap * get_threshold_map(const DensityMap *orig_map, float threshold)
Return a map with 0 for all voxels below the threshold.
DensityMap * get_segment_by_masking(DensityMap *map_to_segment, DensityMap *mask, float mas_threshold)
Get a segment of the map covered by another map.
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.
Code to compute statistical measures.
algebra::GridD< 3, algebra::DenseGridStorageD< 3, float >, float > get_grid(DensityMap *in_map)
Return a dense grid containing the voxels of the passed density map.
def write_pca_cmm
Write out principal components to a file in Chimera Marker format.
double convolute(const DensityMap *m1, const DensityMap *m2)
Return a convolution between density maps m1 and m2.
Common base class for heavy weight IMP objects.
DensityMap * multiply(const DensityMap *m1, const DensityMap *m2)
Return a density map for which voxel i contains the result of m1[i]*m2[i].
DensityHeader create_density_header(const algebra::BoundingBoxD< 3 > &bb, float spacing)
Create a header from a bounding box in 3D.
Float compute_fitting_score(const ParticlesTemp &ps, DensityMap *em_map, FloatKey wei_key=atom::Mass::get_mass_key())
Compute fitting scores for a given set of rigid transformations.
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.
long get_number_of_particles_outside_of_the_density(DensityMap *dmap, const Particles &ps, const IMP::algebra::Transformation3D &t=IMP::algebra::get_identity_transformation_3d(), float thr=0.0)
Get the number of particles that are outside of the density.
DensityMap * get_max_map(DensityMaps maps)
Return a map where each voxel is the maximum value from the input maps.
DensityMap * create_density_map(const DensityMap *other)
Create a copy of another map.
Store data to be clustered for embedding based algorithms.
Float approximate_molecular_mass(DensityMap *m, Float threshold)
Estimate the molecular mass from a map.
double get_percentage_of_voxels_covered_by_particles(DensityMap *dmap, const Particles &ps, float smoothing_radius=3., const IMP::algebra::Transformation3D &t=IMP::algebra::get_identity_transformation_3d(), float thr=0.0)
Get the number of density voxels that are not covered by particles.
Vector3D get_centroid(const Vector3Ds &ps)
Return the centroid of a set of vectors.
std::ostream & show(Hierarchy h, std::ostream &out=std::cout)
Print the hierarchy using a given decorator to display each node.
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
FittingSolutions local_rigid_fitting(Particle *p, Refiner *refiner, const FloatKey &weight_key, DensityMap *dmap, OptimizerStates display_log, Int number_of_optimization_runs=5, Int number_of_mc_steps=10, Int number_of_cg_steps=100, Float max_translation=2., Float max_rotation=.3, bool fast=true)
Local rigid fitting of a rigid body.
Basic functionality that is expected to be used by a wide variety of IMP users.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
SurfaceShellDensityMap * particles2surface(const ParticlesTemp &ps, Float apix, const FloatKey &weight_key=IMP::atom::Mass::get_mass_key())
Resample a set of particles into a density grid.
FittingSolutions local_rigid_fitting_around_points(Particle *p, Refiner *refiner, const FloatKey &wei_key, DensityMap *dmap, const algebra::Vector3Ds &anchor_centroids, OptimizerStates display_log, Int number_of_optimization_runs=5, Int number_of_mc_steps=10, Int number_of_cg_steps=100, Float max_translation=2., Float max_rotation=.3)
Local rigid fitting of a rigid body around a set of center points.
FittingSolutions local_rigid_fitting_grid_search(const ParticlesTemp &ps, const FloatKey &wei_key, DensityMap *dmap, Int max_voxels_translation=2, Int translation_step=1, Float max_angle_in_radians=0.174, Int number_of_rotations=100)
Local grid search rigid fitting.
double get_resolution(Model *m, ParticleIndex pi)
Estimate the resolution of the hierarchy as used by Representation.
Output IMP model data in various file formats.
Functionality for loading, creating, manipulating and scoring atomic structures.
Float get_molecular_mass_at_threshold(DensityMap *m, Float threshold, atom::ProteinDensityReference ref=atom::HARPAZ)
Compute an approximate molecular mass.
DensityMap * get_segment(DensityMap *map_to_segment, int nx_start, int nx_end, int ny_start, int ny_end, int nz_start, int nz_end)
Get a segment of the map according to xyz indexes.
Float get_threshold_for_approximate_volume(DensityMap *m, Float desired_volume)
Computes the threshold consider in an EM map to get a desired volume.
Float get_volume_at_threshold(DensityMap *m, Float threshold)
Compute an approximate volume.
A restraint is a term in an IMP ScoringFunction.