IMP logo
IMP Reference Guide  2.17.0
The Integrative Modeling Platform
em/__init__.py
1 # This file was automatically generated by SWIG (http://www.swig.org).
2 # Version 3.0.7
3 #
4 # Do not make changes to this file unless you know what you are doing--modify
5 # the SWIG interface file instead.
6 
7 
8 # This wrapper is part of IMP,
9 # Copyright 2007-2022 IMP Inventors. All rights reserved.
10 
11 from __future__ import print_function, division, absolute_import
12 
13 
14 
15 
16 
17 from sys import version_info
18 if version_info >= (2, 6, 0):
19  def swig_import_helper():
20  from os.path import dirname
21  import imp
22  fp = None
23  try:
24  fp, pathname, description = imp.find_module('_IMP_em', [dirname(__file__)])
25  except ImportError:
26  import _IMP_em
27  return _IMP_em
28  if fp is not None:
29  try:
30  _mod = imp.load_module('_IMP_em', fp, pathname, description)
31  finally:
32  fp.close()
33  return _mod
34  _IMP_em = swig_import_helper()
35  del swig_import_helper
36 else:
37  import _IMP_em
38 del version_info
39 try:
40  _swig_property = property
41 except NameError:
42  pass # Python < 2.2 doesn't have 'property'.
43 
44 
45 def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
46  if (name == "thisown"):
47  return self.this.own(value)
48  if (name == "this"):
49  if type(value).__name__ == 'SwigPyObject':
50  self.__dict__[name] = value
51  return
52  method = class_type.__swig_setmethods__.get(name, None)
53  if method:
54  return method(self, value)
55  if (not static):
56  object.__setattr__(self, name, value)
57  else:
58  raise AttributeError("You cannot add attributes to %s" % self)
59 
60 
61 def _swig_setattr(self, class_type, name, value):
62  return _swig_setattr_nondynamic(self, class_type, name, value, 0)
63 
64 
65 def _swig_getattr_nondynamic(self, class_type, name, static=1):
66  if (name == "thisown"):
67  return self.this.own()
68  method = class_type.__swig_getmethods__.get(name, None)
69  if method:
70  return method(self)
71  if (not static):
72  return object.__getattr__(self, name)
73  else:
74  raise AttributeError(name)
75 
76 def _swig_getattr(self, class_type, name):
77  return _swig_getattr_nondynamic(self, class_type, name, 0)
78 
79 
80 def _swig_repr(self):
81  try:
82  strthis = "proxy of " + self.this.__repr__()
83  except:
84  strthis = ""
85  return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
86 
87 try:
88  _object = object
89  _newclass = 1
90 except AttributeError:
91  class _object:
92  pass
93  _newclass = 0
94 
95 
96 
97 def _swig_setattr_nondynamic_method(set):
98  def set_attr(self, name, value):
99  if (name == "thisown"):
100  return self.this.own(value)
101  if hasattr(self, name) or (name == "this"):
102  set(self, name, value)
103  else:
104  raise AttributeError("You cannot add attributes to %s" % self)
105  return set_attr
106 
107 
108 try:
109  import weakref
110  weakref_proxy = weakref.proxy
111 except:
112  weakref_proxy = lambda x: x
113 
114 
115 class IMP_EM_SwigPyIterator(object):
116  """Proxy of C++ swig::IMP_EM_SwigPyIterator class"""
117  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
118 
119  def __init__(self, *args, **kwargs):
120  raise AttributeError("No constructor defined - class is abstract")
121  __repr__ = _swig_repr
122  __swig_destroy__ = _IMP_em.delete_IMP_EM_SwigPyIterator
123  __del__ = lambda self: None
124 
125  def value(self):
126  """value(IMP_EM_SwigPyIterator self) -> PyObject *"""
127  return _IMP_em.IMP_EM_SwigPyIterator_value(self)
128 
129 
130  def incr(self, n=1):
131  """
132  incr(IMP_EM_SwigPyIterator self, size_t n=1) -> IMP_EM_SwigPyIterator
133  incr(IMP_EM_SwigPyIterator self) -> IMP_EM_SwigPyIterator
134  """
135  return _IMP_em.IMP_EM_SwigPyIterator_incr(self, n)
136 
137 
138  def decr(self, n=1):
139  """
140  decr(IMP_EM_SwigPyIterator self, size_t n=1) -> IMP_EM_SwigPyIterator
141  decr(IMP_EM_SwigPyIterator self) -> IMP_EM_SwigPyIterator
142  """
143  return _IMP_em.IMP_EM_SwigPyIterator_decr(self, n)
144 
145 
146  def distance(self, x):
147  """distance(IMP_EM_SwigPyIterator self, IMP_EM_SwigPyIterator x) -> ptrdiff_t"""
148  return _IMP_em.IMP_EM_SwigPyIterator_distance(self, x)
149 
150 
151  def equal(self, x):
152  """equal(IMP_EM_SwigPyIterator self, IMP_EM_SwigPyIterator x) -> bool"""
153  return _IMP_em.IMP_EM_SwigPyIterator_equal(self, x)
154 
155 
156  def copy(self):
157  """copy(IMP_EM_SwigPyIterator self) -> IMP_EM_SwigPyIterator"""
158  return _IMP_em.IMP_EM_SwigPyIterator_copy(self)
159 
160 
161  def next(self):
162  """next(IMP_EM_SwigPyIterator self) -> PyObject *"""
163  return _IMP_em.IMP_EM_SwigPyIterator_next(self)
164 
165 
166  def __next__(self):
167  """__next__(IMP_EM_SwigPyIterator self) -> PyObject *"""
168  return _IMP_em.IMP_EM_SwigPyIterator___next__(self)
169 
170 
171  def previous(self):
172  """previous(IMP_EM_SwigPyIterator self) -> PyObject *"""
173  return _IMP_em.IMP_EM_SwigPyIterator_previous(self)
174 
175 
176  def advance(self, n):
177  """advance(IMP_EM_SwigPyIterator self, ptrdiff_t n) -> IMP_EM_SwigPyIterator"""
178  return _IMP_em.IMP_EM_SwigPyIterator_advance(self, n)
179 
180 
181  def __eq__(self, x):
182  """__eq__(IMP_EM_SwigPyIterator self, IMP_EM_SwigPyIterator x) -> bool"""
183  return _IMP_em.IMP_EM_SwigPyIterator___eq__(self, x)
184 
185 
186  def __ne__(self, x):
187  """__ne__(IMP_EM_SwigPyIterator self, IMP_EM_SwigPyIterator x) -> bool"""
188  return _IMP_em.IMP_EM_SwigPyIterator___ne__(self, x)
189 
190 
191  def __iadd__(self, n):
192  """__iadd__(IMP_EM_SwigPyIterator self, ptrdiff_t n) -> IMP_EM_SwigPyIterator"""
193  return _IMP_em.IMP_EM_SwigPyIterator___iadd__(self, n)
194 
195 
196  def __isub__(self, n):
197  """__isub__(IMP_EM_SwigPyIterator self, ptrdiff_t n) -> IMP_EM_SwigPyIterator"""
198  return _IMP_em.IMP_EM_SwigPyIterator___isub__(self, n)
199 
200 
201  def __add__(self, n):
202  """__add__(IMP_EM_SwigPyIterator self, ptrdiff_t n) -> IMP_EM_SwigPyIterator"""
203  return _IMP_em.IMP_EM_SwigPyIterator___add__(self, n)
204 
205 
206  def __sub__(self, *args):
207  """
208  __sub__(IMP_EM_SwigPyIterator self, ptrdiff_t n) -> IMP_EM_SwigPyIterator
209  __sub__(IMP_EM_SwigPyIterator self, IMP_EM_SwigPyIterator x) -> ptrdiff_t
210  """
211  return _IMP_em.IMP_EM_SwigPyIterator___sub__(self, *args)
212 
213  def __iter__(self):
214  return self
215 IMP_EM_SwigPyIterator_swigregister = _IMP_em.IMP_EM_SwigPyIterator_swigregister
216 IMP_EM_SwigPyIterator_swigregister(IMP_EM_SwigPyIterator)
217 
218 
219 _value_types=[]
220 _object_types=[]
221 _raii_types=[]
222 _plural_types=[]
223 
224 
225 _IMP_em.IMP_DEBUG_swigconstant(_IMP_em)
226 IMP_DEBUG = _IMP_em.IMP_DEBUG
227 
228 _IMP_em.IMP_RELEASE_swigconstant(_IMP_em)
229 IMP_RELEASE = _IMP_em.IMP_RELEASE
230 
231 _IMP_em.IMP_SILENT_swigconstant(_IMP_em)
232 IMP_SILENT = _IMP_em.IMP_SILENT
233 
234 _IMP_em.IMP_PROGRESS_swigconstant(_IMP_em)
235 IMP_PROGRESS = _IMP_em.IMP_PROGRESS
236 
237 _IMP_em.IMP_TERSE_swigconstant(_IMP_em)
238 IMP_TERSE = _IMP_em.IMP_TERSE
239 
240 _IMP_em.IMP_VERBOSE_swigconstant(_IMP_em)
241 IMP_VERBOSE = _IMP_em.IMP_VERBOSE
242 
243 _IMP_em.IMP_MEMORY_swigconstant(_IMP_em)
244 IMP_MEMORY = _IMP_em.IMP_MEMORY
245 
246 _IMP_em.IMP_NONE_swigconstant(_IMP_em)
247 IMP_NONE = _IMP_em.IMP_NONE
248 
249 _IMP_em.IMP_USAGE_swigconstant(_IMP_em)
250 IMP_USAGE = _IMP_em.IMP_USAGE
251 
252 _IMP_em.IMP_INTERNAL_swigconstant(_IMP_em)
253 IMP_INTERNAL = _IMP_em.IMP_INTERNAL
254 
255 _IMP_em.IMP_KERNEL_HAS_LOG4CXX_swigconstant(_IMP_em)
256 IMP_KERNEL_HAS_LOG4CXX = _IMP_em.IMP_KERNEL_HAS_LOG4CXX
257 
258 _IMP_em.IMP_COMPILER_HAS_DEBUG_VECTOR_swigconstant(_IMP_em)
259 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_em.IMP_COMPILER_HAS_DEBUG_VECTOR
260 
261 _IMP_em.IMP_COMPILER_HAS_RANDOM_SHUFFLE_swigconstant(_IMP_em)
262 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_em.IMP_COMPILER_HAS_RANDOM_SHUFFLE
263 
264 _IMP_em.IMP_COMPILER_HAS_THREE_WAY_swigconstant(_IMP_em)
265 IMP_COMPILER_HAS_THREE_WAY = _IMP_em.IMP_COMPILER_HAS_THREE_WAY
266 
267 _IMP_em.IMP_KERNEL_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
268 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_em.IMP_KERNEL_HAS_BOOST_RANDOM
269 
270 _IMP_em.IMP_KERNEL_HAS_NUMPY_swigconstant(_IMP_em)
271 IMP_KERNEL_HAS_NUMPY = _IMP_em.IMP_KERNEL_HAS_NUMPY
272 
273 _IMP_em.IMP_KERNEL_HAS_GPERFTOOLS_swigconstant(_IMP_em)
274 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_em.IMP_KERNEL_HAS_GPERFTOOLS
275 
276 _IMP_em.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER_swigconstant(_IMP_em)
277 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_em.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
278 
279 _IMP_em.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER_swigconstant(_IMP_em)
280 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_em.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
281 
282 _IMP_em.IMPKERNEL_SHOW_WARNINGS_swigconstant(_IMP_em)
283 IMPKERNEL_SHOW_WARNINGS = _IMP_em.IMPKERNEL_SHOW_WARNINGS
284 
285 import sys
286 class _DirectorObjects(object):
287  """@internal Simple class to keep references to director objects
288  to prevent premature deletion."""
289  def __init__(self):
290  self._objects = []
291  def register(self, obj):
292  """Take a reference to a director object; will only work for
293  refcounted C++ classes"""
294  if hasattr(obj, 'get_ref_count'):
295  self._objects.append(obj)
296  def cleanup(self):
297  """Only drop our reference and allow cleanup by Python if no other
298  Python references exist (we hold 3 references: one in self._objects,
299  one in x, and one in the argument list for getrefcount) *and* no
300  other C++ references exist (the Python object always holds one)"""
301  objs = [x for x in self._objects if sys.getrefcount(x) > 3 \
302  or x.get_ref_count() > 1]
303 # Do in two steps so the references are kept until the end of the
304 # function (deleting references may trigger a fresh call to this method)
305  self._objects = objs
306  def get_object_count(self):
307  """Get number of director objects (useful for testing only)"""
308  return len(self._objects)
309 _director_objects = _DirectorObjects()
310 
311 class _ostream(object):
312  """Proxy of C++ std::ostream class"""
313  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
314 
315  def __init__(self, *args, **kwargs):
316  raise AttributeError("No constructor defined")
317  __repr__ = _swig_repr
318 
319  def write(self, osa_buf):
320  """write(_ostream self, char const * osa_buf)"""
321  return _IMP_em._ostream_write(self, osa_buf)
322 
323 _ostream_swigregister = _IMP_em._ostream_swigregister
324 _ostream_swigregister(_ostream)
325 
326 
327 _IMP_em.IMP_HAS_NOEXCEPT_swigconstant(_IMP_em)
328 IMP_HAS_NOEXCEPT = _IMP_em.IMP_HAS_NOEXCEPT
329 
330 _IMP_em.IMP_C_OPEN_BINARY_swigconstant(_IMP_em)
331 IMP_C_OPEN_BINARY = _IMP_em.IMP_C_OPEN_BINARY
332 import IMP
333 
334 _IMP_em.IMP_CGAL_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
335 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_CGAL_HAS_BOOST_FILESYSTEM
336 
337 _IMP_em.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
338 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
339 
340 _IMP_em.IMP_CGAL_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
341 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_em.IMP_CGAL_HAS_BOOST_RANDOM
342 
343 _IMP_em.IMP_CGAL_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
344 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_em.IMP_CGAL_HAS_BOOST_SYSTEM
345 
346 _IMP_em.IMP_CGAL_HAS_NUMPY_swigconstant(_IMP_em)
347 IMP_CGAL_HAS_NUMPY = _IMP_em.IMP_CGAL_HAS_NUMPY
348 
349 _IMP_em.IMPCGAL_SHOW_WARNINGS_swigconstant(_IMP_em)
350 IMPCGAL_SHOW_WARNINGS = _IMP_em.IMPCGAL_SHOW_WARNINGS
351 import IMP.cgal
352 
353 _IMP_em.IMP_ALGEBRA_HAS_IMP_CGAL_swigconstant(_IMP_em)
354 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_em.IMP_ALGEBRA_HAS_IMP_CGAL
355 
356 _IMP_em.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
357 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
358 
359 _IMP_em.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
360 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
361 
362 _IMP_em.IMP_ALGEBRA_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
363 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_em.IMP_ALGEBRA_HAS_BOOST_RANDOM
364 
365 _IMP_em.IMP_ALGEBRA_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
366 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_em.IMP_ALGEBRA_HAS_BOOST_SYSTEM
367 
368 _IMP_em.IMP_ALGEBRA_HAS_CGAL_swigconstant(_IMP_em)
369 IMP_ALGEBRA_HAS_CGAL = _IMP_em.IMP_ALGEBRA_HAS_CGAL
370 
371 _IMP_em.IMP_ALGEBRA_HAS_NUMPY_swigconstant(_IMP_em)
372 IMP_ALGEBRA_HAS_NUMPY = _IMP_em.IMP_ALGEBRA_HAS_NUMPY
373 
374 _IMP_em.IMP_ALGEBRA_HAS_ANN_swigconstant(_IMP_em)
375 IMP_ALGEBRA_HAS_ANN = _IMP_em.IMP_ALGEBRA_HAS_ANN
376 
377 _IMP_em.IMPALGEBRA_SHOW_WARNINGS_swigconstant(_IMP_em)
378 IMPALGEBRA_SHOW_WARNINGS = _IMP_em.IMPALGEBRA_SHOW_WARNINGS
379 import IMP.algebra
380 
381 _IMP_em.IMP_DISPLAY_HAS_IMP_CGAL_swigconstant(_IMP_em)
382 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_em.IMP_DISPLAY_HAS_IMP_CGAL
383 
384 _IMP_em.IMP_DISPLAY_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
385 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
386 
387 _IMP_em.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
388 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
389 
390 _IMP_em.IMP_DISPLAY_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
391 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_em.IMP_DISPLAY_HAS_BOOST_RANDOM
392 
393 _IMP_em.IMP_DISPLAY_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
394 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_em.IMP_DISPLAY_HAS_BOOST_SYSTEM
395 
396 _IMP_em.IMP_DISPLAY_HAS_CGAL_swigconstant(_IMP_em)
397 IMP_DISPLAY_HAS_CGAL = _IMP_em.IMP_DISPLAY_HAS_CGAL
398 
399 _IMP_em.IMP_DISPLAY_HAS_NUMPY_swigconstant(_IMP_em)
400 IMP_DISPLAY_HAS_NUMPY = _IMP_em.IMP_DISPLAY_HAS_NUMPY
401 
402 _IMP_em.IMPDISPLAY_SHOW_WARNINGS_swigconstant(_IMP_em)
403 IMPDISPLAY_SHOW_WARNINGS = _IMP_em.IMPDISPLAY_SHOW_WARNINGS
404 import IMP.display
405 
406 _IMP_em.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL_swigconstant(_IMP_em)
407 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_em.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
408 
409 _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
410 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
411 
412 _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
413 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
414 
415 _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
416 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
417 
418 _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
419 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
420 
421 _IMP_em.IMP_SCORE_FUNCTOR_HAS_CGAL_swigconstant(_IMP_em)
422 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_em.IMP_SCORE_FUNCTOR_HAS_CGAL
423 
424 _IMP_em.IMP_SCORE_FUNCTOR_HAS_HDF5_swigconstant(_IMP_em)
425 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_em.IMP_SCORE_FUNCTOR_HAS_HDF5
426 
427 _IMP_em.IMP_SCORE_FUNCTOR_HAS_NUMPY_swigconstant(_IMP_em)
428 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_em.IMP_SCORE_FUNCTOR_HAS_NUMPY
429 
430 _IMP_em.IMPSCOREFUNCTOR_SHOW_WARNINGS_swigconstant(_IMP_em)
431 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_em.IMPSCOREFUNCTOR_SHOW_WARNINGS
432 import IMP.score_functor
433 
434 _IMP_em.IMP_STATISTICS_HAS_IMP_CGAL_swigconstant(_IMP_em)
435 IMP_STATISTICS_HAS_IMP_CGAL = _IMP_em.IMP_STATISTICS_HAS_IMP_CGAL
436 
437 _IMP_em.IMP_STATISTICS_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
438 IMP_STATISTICS_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_STATISTICS_HAS_BOOST_FILESYSTEM
439 
440 _IMP_em.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
441 IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS
442 
443 _IMP_em.IMP_STATISTICS_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
444 IMP_STATISTICS_HAS_BOOST_RANDOM = _IMP_em.IMP_STATISTICS_HAS_BOOST_RANDOM
445 
446 _IMP_em.IMP_STATISTICS_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
447 IMP_STATISTICS_HAS_BOOST_SYSTEM = _IMP_em.IMP_STATISTICS_HAS_BOOST_SYSTEM
448 
449 _IMP_em.IMP_STATISTICS_HAS_CGAL_swigconstant(_IMP_em)
450 IMP_STATISTICS_HAS_CGAL = _IMP_em.IMP_STATISTICS_HAS_CGAL
451 
452 _IMP_em.IMP_STATISTICS_HAS_NUMPY_swigconstant(_IMP_em)
453 IMP_STATISTICS_HAS_NUMPY = _IMP_em.IMP_STATISTICS_HAS_NUMPY
454 
455 _IMP_em.IMPSTATISTICS_SHOW_WARNINGS_swigconstant(_IMP_em)
456 IMPSTATISTICS_SHOW_WARNINGS = _IMP_em.IMPSTATISTICS_SHOW_WARNINGS
457 import IMP.statistics
458 
459 _IMP_em.IMP_CORE_HAS_IMP_CGAL_swigconstant(_IMP_em)
460 IMP_CORE_HAS_IMP_CGAL = _IMP_em.IMP_CORE_HAS_IMP_CGAL
461 
462 _IMP_em.IMP_CORE_HAS_IMP_KERNEL_swigconstant(_IMP_em)
463 IMP_CORE_HAS_IMP_KERNEL = _IMP_em.IMP_CORE_HAS_IMP_KERNEL
464 
465 _IMP_em.IMP_CORE_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
466 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_CORE_HAS_BOOST_FILESYSTEM
467 
468 _IMP_em.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
469 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
470 
471 _IMP_em.IMP_CORE_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
472 IMP_CORE_HAS_BOOST_RANDOM = _IMP_em.IMP_CORE_HAS_BOOST_RANDOM
473 
474 _IMP_em.IMP_CORE_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
475 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_em.IMP_CORE_HAS_BOOST_SYSTEM
476 
477 _IMP_em.IMP_CORE_HAS_CGAL_swigconstant(_IMP_em)
478 IMP_CORE_HAS_CGAL = _IMP_em.IMP_CORE_HAS_CGAL
479 
480 _IMP_em.IMP_CORE_HAS_HDF5_swigconstant(_IMP_em)
481 IMP_CORE_HAS_HDF5 = _IMP_em.IMP_CORE_HAS_HDF5
482 
483 _IMP_em.IMP_CORE_HAS_NUMPY_swigconstant(_IMP_em)
484 IMP_CORE_HAS_NUMPY = _IMP_em.IMP_CORE_HAS_NUMPY
485 
486 _IMP_em.IMPCORE_SHOW_WARNINGS_swigconstant(_IMP_em)
487 IMPCORE_SHOW_WARNINGS = _IMP_em.IMPCORE_SHOW_WARNINGS
488 import IMP.core
489 
490 _IMP_em.IMP_CONTAINER_HAS_IMP_ALGEBRA_swigconstant(_IMP_em)
491 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_em.IMP_CONTAINER_HAS_IMP_ALGEBRA
492 
493 _IMP_em.IMP_CONTAINER_HAS_IMP_CGAL_swigconstant(_IMP_em)
494 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_em.IMP_CONTAINER_HAS_IMP_CGAL
495 
496 _IMP_em.IMP_CONTAINER_HAS_IMP_DISPLAY_swigconstant(_IMP_em)
497 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_em.IMP_CONTAINER_HAS_IMP_DISPLAY
498 
499 _IMP_em.IMP_CONTAINER_HAS_IMP_KERNEL_swigconstant(_IMP_em)
500 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_em.IMP_CONTAINER_HAS_IMP_KERNEL
501 
502 _IMP_em.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_em)
503 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_em.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
504 
505 _IMP_em.IMP_CONTAINER_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
506 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
507 
508 _IMP_em.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
509 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
510 
511 _IMP_em.IMP_CONTAINER_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
512 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_em.IMP_CONTAINER_HAS_BOOST_RANDOM
513 
514 _IMP_em.IMP_CONTAINER_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
515 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_em.IMP_CONTAINER_HAS_BOOST_SYSTEM
516 
517 _IMP_em.IMP_CONTAINER_HAS_CGAL_swigconstant(_IMP_em)
518 IMP_CONTAINER_HAS_CGAL = _IMP_em.IMP_CONTAINER_HAS_CGAL
519 
520 _IMP_em.IMP_CONTAINER_HAS_HDF5_swigconstant(_IMP_em)
521 IMP_CONTAINER_HAS_HDF5 = _IMP_em.IMP_CONTAINER_HAS_HDF5
522 
523 _IMP_em.IMP_CONTAINER_HAS_NUMPY_swigconstant(_IMP_em)
524 IMP_CONTAINER_HAS_NUMPY = _IMP_em.IMP_CONTAINER_HAS_NUMPY
525 
526 _IMP_em.IMP_CONTAINER_HAS_PYTHON_IHM_swigconstant(_IMP_em)
527 IMP_CONTAINER_HAS_PYTHON_IHM = _IMP_em.IMP_CONTAINER_HAS_PYTHON_IHM
528 
529 _IMP_em.IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP_swigconstant(_IMP_em)
530 IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP = _IMP_em.IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP
531 
532 _IMP_em.IMP_CONTAINER_HAS_ROBIN_MAP_swigconstant(_IMP_em)
533 IMP_CONTAINER_HAS_ROBIN_MAP = _IMP_em.IMP_CONTAINER_HAS_ROBIN_MAP
534 
535 _IMP_em.IMPCONTAINER_SHOW_WARNINGS_swigconstant(_IMP_em)
536 IMPCONTAINER_SHOW_WARNINGS = _IMP_em.IMPCONTAINER_SHOW_WARNINGS
537 import IMP.container
538 
539 _IMP_em.IMP_ATOM_HAS_IMP_CGAL_swigconstant(_IMP_em)
540 IMP_ATOM_HAS_IMP_CGAL = _IMP_em.IMP_ATOM_HAS_IMP_CGAL
541 
542 _IMP_em.IMP_ATOM_HAS_IMP_KERNEL_swigconstant(_IMP_em)
543 IMP_ATOM_HAS_IMP_KERNEL = _IMP_em.IMP_ATOM_HAS_IMP_KERNEL
544 
545 _IMP_em.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_em)
546 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_em.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
547 
548 _IMP_em.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
549 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
550 
551 _IMP_em.IMP_ATOM_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
552 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_em.IMP_ATOM_HAS_BOOST_RANDOM
553 
554 _IMP_em.IMP_ATOM_HAS_BOOST_REGEX_swigconstant(_IMP_em)
555 IMP_ATOM_HAS_BOOST_REGEX = _IMP_em.IMP_ATOM_HAS_BOOST_REGEX
556 
557 _IMP_em.IMP_ATOM_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
558 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_em.IMP_ATOM_HAS_BOOST_SYSTEM
559 
560 _IMP_em.IMP_ATOM_HAS_CGAL_swigconstant(_IMP_em)
561 IMP_ATOM_HAS_CGAL = _IMP_em.IMP_ATOM_HAS_CGAL
562 
563 _IMP_em.IMP_ATOM_HAS_HDF5_swigconstant(_IMP_em)
564 IMP_ATOM_HAS_HDF5 = _IMP_em.IMP_ATOM_HAS_HDF5
565 
566 _IMP_em.IMP_ATOM_HAS_NUMPY_swigconstant(_IMP_em)
567 IMP_ATOM_HAS_NUMPY = _IMP_em.IMP_ATOM_HAS_NUMPY
568 
569 _IMP_em.IMP_ATOM_HAS_PYTHON_IHM_swigconstant(_IMP_em)
570 IMP_ATOM_HAS_PYTHON_IHM = _IMP_em.IMP_ATOM_HAS_PYTHON_IHM
571 
572 _IMP_em.IMPATOM_SHOW_WARNINGS_swigconstant(_IMP_em)
573 IMPATOM_SHOW_WARNINGS = _IMP_em.IMPATOM_SHOW_WARNINGS
574 
575 _IMP_em.IMP_ATOM_TYPE_INDEX_swigconstant(_IMP_em)
576 IMP_ATOM_TYPE_INDEX = _IMP_em.IMP_ATOM_TYPE_INDEX
577 
578 _IMP_em.IMP_RESIDUE_TYPE_INDEX_swigconstant(_IMP_em)
579 IMP_RESIDUE_TYPE_INDEX = _IMP_em.IMP_RESIDUE_TYPE_INDEX
580 
581 _IMP_em.IMP_HIERARCHY_TYPE_INDEX_swigconstant(_IMP_em)
582 IMP_HIERARCHY_TYPE_INDEX = _IMP_em.IMP_HIERARCHY_TYPE_INDEX
583 
584 _IMP_em.IMP_CHAIN_TYPE_INDEX_swigconstant(_IMP_em)
585 IMP_CHAIN_TYPE_INDEX = _IMP_em.IMP_CHAIN_TYPE_INDEX
586 import IMP.atom
587 
588 _IMP_em.IMP_EM_HAS_IMP_CGAL_swigconstant(_IMP_em)
589 IMP_EM_HAS_IMP_CGAL = _IMP_em.IMP_EM_HAS_IMP_CGAL
590 
591 _IMP_em.IMP_EM_HAS_IMP_CONTAINER_swigconstant(_IMP_em)
592 IMP_EM_HAS_IMP_CONTAINER = _IMP_em.IMP_EM_HAS_IMP_CONTAINER
593 
594 _IMP_em.IMP_EM_HAS_IMP_DISPLAY_swigconstant(_IMP_em)
595 IMP_EM_HAS_IMP_DISPLAY = _IMP_em.IMP_EM_HAS_IMP_DISPLAY
596 
597 _IMP_em.IMP_EM_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_em)
598 IMP_EM_HAS_IMP_SCORE_FUNCTOR = _IMP_em.IMP_EM_HAS_IMP_SCORE_FUNCTOR
599 
600 _IMP_em.IMP_EM_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
601 IMP_EM_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_EM_HAS_BOOST_FILESYSTEM
602 
603 _IMP_em.IMP_EM_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
604 IMP_EM_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_EM_HAS_BOOST_PROGRAMOPTIONS
605 
606 _IMP_em.IMP_EM_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
607 IMP_EM_HAS_BOOST_RANDOM = _IMP_em.IMP_EM_HAS_BOOST_RANDOM
608 
609 _IMP_em.IMP_EM_HAS_BOOST_REGEX_swigconstant(_IMP_em)
610 IMP_EM_HAS_BOOST_REGEX = _IMP_em.IMP_EM_HAS_BOOST_REGEX
611 
612 _IMP_em.IMP_EM_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
613 IMP_EM_HAS_BOOST_SYSTEM = _IMP_em.IMP_EM_HAS_BOOST_SYSTEM
614 
615 _IMP_em.IMP_EM_HAS_CGAL_swigconstant(_IMP_em)
616 IMP_EM_HAS_CGAL = _IMP_em.IMP_EM_HAS_CGAL
617 
618 _IMP_em.IMP_EM_HAS_HDF5_swigconstant(_IMP_em)
619 IMP_EM_HAS_HDF5 = _IMP_em.IMP_EM_HAS_HDF5
620 
621 _IMP_em.IMP_EM_HAS_NUMPY_swigconstant(_IMP_em)
622 IMP_EM_HAS_NUMPY = _IMP_em.IMP_EM_HAS_NUMPY
623 
624 _IMP_em.IMP_EM_HAS_PYTHON_IHM_swigconstant(_IMP_em)
625 IMP_EM_HAS_PYTHON_IHM = _IMP_em.IMP_EM_HAS_PYTHON_IHM
626 
627 _IMP_em.IMPEM_SHOW_WARNINGS_swigconstant(_IMP_em)
628 IMPEM_SHOW_WARNINGS = _IMP_em.IMPEM_SHOW_WARNINGS
629 
630 _object_types.append("DensityMap")
631 
632 
633 def _object_cast_to_DensityMap(o):
634  """_object_cast_to_DensityMap(Object o) -> DensityMap"""
635  return _IMP_em._object_cast_to_DensityMap(o)
636 
637 _object_types.append("SampledDensityMap")
638 
639 
640 def _object_cast_to_SampledDensityMap(o):
641  """_object_cast_to_SampledDensityMap(Object o) -> SampledDensityMap"""
642  return _IMP_em._object_cast_to_SampledDensityMap(o)
643 
644 _object_types.append("SurfaceShellDensityMap")
645 
646 
647 def _object_cast_to_SurfaceShellDensityMap(o):
648  """_object_cast_to_SurfaceShellDensityMap(Object o) -> SurfaceShellDensityMap"""
649  return _IMP_em._object_cast_to_SurfaceShellDensityMap(o)
650 
651 _object_types.append("FitRestraint")
652 
653 
654 def _object_cast_to_FitRestraint(o):
655  """_object_cast_to_FitRestraint(Object o) -> FitRestraint"""
656  return _IMP_em._object_cast_to_FitRestraint(o)
657 
658 _object_types.append("FitRestraintBayesEM3D")
659 
660 
661 def _object_cast_to_FitRestraintBayesEM3D(o):
662  """_object_cast_to_FitRestraintBayesEM3D(Object o) -> FitRestraintBayesEM3D"""
663  return _IMP_em._object_cast_to_FitRestraintBayesEM3D(o)
664 
665 _object_types.append("PCAFitRestraint")
666 
667 
668 def _object_cast_to_PCAFitRestraint(o):
669  """_object_cast_to_PCAFitRestraint(Object o) -> PCAFitRestraint"""
670  return _IMP_em._object_cast_to_PCAFitRestraint(o)
671 
672 _object_types.append("EnvelopePenetrationRestraint")
673 
674 
675 def _object_cast_to_EnvelopePenetrationRestraint(o):
676  """_object_cast_to_EnvelopePenetrationRestraint(Object o) -> EnvelopePenetrationRestraint"""
677  return _IMP_em._object_cast_to_EnvelopePenetrationRestraint(o)
678 
679 _object_types.append("EnvelopeFitRestraint")
680 
681 
682 def _object_cast_to_EnvelopeFitRestraint(o):
683  """_object_cast_to_EnvelopeFitRestraint(Object o) -> EnvelopeFitRestraint"""
684  return _IMP_em._object_cast_to_EnvelopeFitRestraint(o)
685 
686 KernelParametersList=list
687 _plural_types.append("KernelParametersList")
688 _value_types.append("KernelParameters")
689 
690 
691 _object_types.append("HighDensityEmbedding")
692 
693 
694 def _object_cast_to_HighDensityEmbedding(o):
695  """_object_cast_to_HighDensityEmbedding(Object o) -> HighDensityEmbedding"""
696  return _IMP_em._object_cast_to_HighDensityEmbedding(o)
697 
698 _object_types.append("MapReaderWriter")
699 
700 
701 def _object_cast_to_MapReaderWriter(o):
702  """_object_cast_to_MapReaderWriter(Object o) -> MapReaderWriter"""
703  return _IMP_em._object_cast_to_MapReaderWriter(o)
704 
705 _object_types.append("MRCReaderWriter")
706 
707 
708 def _object_cast_to_MRCReaderWriter(o):
709  """_object_cast_to_MRCReaderWriter(Object o) -> MRCReaderWriter"""
710  return _IMP_em._object_cast_to_MRCReaderWriter(o)
711 
712 _object_types.append("SpiderMapReaderWriter")
713 
714 
715 def _object_cast_to_SpiderMapReaderWriter(o):
716  """_object_cast_to_SpiderMapReaderWriter(Object o) -> SpiderMapReaderWriter"""
717  return _IMP_em._object_cast_to_SpiderMapReaderWriter(o)
718 
719 _object_types.append("EMReaderWriter")
720 
721 
722 def _object_cast_to_EMReaderWriter(o):
723  """_object_cast_to_EMReaderWriter(Object o) -> EMReaderWriter"""
724  return _IMP_em._object_cast_to_EMReaderWriter(o)
725 
726 _object_types.append("XplorReaderWriter")
727 
728 
729 def _object_cast_to_XplorReaderWriter(o):
730  """_object_cast_to_XplorReaderWriter(Object o) -> XplorReaderWriter"""
731  return _IMP_em._object_cast_to_XplorReaderWriter(o)
732 
733 _object_types.append("CoarseCCatIntervals")
734 
735 
736 def _object_cast_to_CoarseCCatIntervals(o):
737  """_object_cast_to_CoarseCCatIntervals(Object o) -> CoarseCCatIntervals"""
738  return _IMP_em._object_cast_to_CoarseCCatIntervals(o)
739 
740 FittingSolutionsList=list
741 _plural_types.append("FittingSolutionsList")
742 _value_types.append("FittingSolutions")
743 
744 
745 _object_types.append("MapDistanceTransform")
746 
747 
748 def _object_cast_to_MapDistanceTransform(o):
749  """_object_cast_to_MapDistanceTransform(Object o) -> MapDistanceTransform"""
750  return _IMP_em._object_cast_to_MapDistanceTransform(o)
751 
752 _object_types.append("EnvelopeScore")
753 
754 
755 def _object_cast_to_EnvelopeScore(o):
756  """_object_cast_to_EnvelopeScore(Object o) -> EnvelopeScore"""
757  return _IMP_em._object_cast_to_EnvelopeScore(o)
758 
759 def _get_density_map_x_loc(m, pyobj):
760  """_get_density_map_x_loc(DensityMap m, PyObject * pyobj) -> PyObject *"""
761  return _IMP_em._get_density_map_x_loc(m, pyobj)
762 
763 def _get_density_map_y_loc(m, pyobj):
764  """_get_density_map_y_loc(DensityMap m, PyObject * pyobj) -> PyObject *"""
765  return _IMP_em._get_density_map_y_loc(m, pyobj)
766 
767 def _get_density_map_z_loc(m, pyobj):
768  """_get_density_map_z_loc(DensityMap m, PyObject * pyobj) -> PyObject *"""
769  return _IMP_em._get_density_map_z_loc(m, pyobj)
770 
771 def _get_density_map_data(m, pyobj):
772  """_get_density_map_data(DensityMap m, PyObject * pyobj) -> PyObject *"""
773  return _IMP_em._get_density_map_data(m, pyobj)
774 class MapReaderWriter(IMP.Object):
775  """Proxy of C++ IMP::em::MapReaderWriter class"""
776  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
777 
778  def __init__(self):
779  """__init__(IMP::em::MapReaderWriter self) -> MapReaderWriter"""
780  this = _IMP_em.new_MapReaderWriter()
781  try:
782  self.this.append(this)
783  except:
784  self.this = this
785 
786  def get_version_info(self):
787  """get_version_info(MapReaderWriter self) -> VersionInfo"""
788  return _IMP_em.MapReaderWriter_get_version_info(self)
789 
790 
791  def __str__(self):
792  """__str__(MapReaderWriter self) -> std::string"""
793  return _IMP_em.MapReaderWriter___str__(self)
794 
795 
796  def __repr__(self):
797  """__repr__(MapReaderWriter self) -> std::string"""
798  return _IMP_em.MapReaderWriter___repr__(self)
799 
800 
801  @staticmethod
802  def get_from(o):
803  return _object_cast_to_MapReaderWriter(o)
804 
805 MapReaderWriter_swigregister = _IMP_em.MapReaderWriter_swigregister
806 MapReaderWriter_swigregister(MapReaderWriter)
807 cvar = _IMP_em.cvar
808 EPS = cvar.EPS
809 
810 class DensityHeader(object):
811  """Proxy of C++ IMP::em::DensityHeader class"""
812  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
813  __repr__ = _swig_repr
814 
815  def __init__(self):
816  """__init__(IMP::em::DensityHeader self) -> DensityHeader"""
817  this = _IMP_em.new_DensityHeader()
818  try:
819  self.this.append(this)
820  except:
821  self.this = this
822 
823  def get_top(self, ind):
824  """get_top(DensityHeader self, int ind) -> IMP::em::emreal"""
825  return _IMP_em.DensityHeader_get_top(self, ind)
826 
827 
828  def compute_xyz_top(self, force=False):
829  """
830  compute_xyz_top(DensityHeader self, bool force=False)
831  compute_xyz_top(DensityHeader self)
832  """
833  return _IMP_em.DensityHeader_compute_xyz_top(self, force)
834 
835 
836  def update_map_dimensions(self, nnx, nny, nnz):
837  """update_map_dimensions(DensityHeader self, int nnx, int nny, int nnz)"""
838  return _IMP_em.DensityHeader_update_map_dimensions(self, nnx, nny, nnz)
839 
840 
841  def update_cell_dimensions(self):
842  """update_cell_dimensions(DensityHeader self)"""
843  return _IMP_em.DensityHeader_update_cell_dimensions(self)
844 
845 
846  def show(self, *args):
847  """
848  show(DensityHeader self, _ostream out)
849  show(DensityHeader self)
850  """
851  return _IMP_em.DensityHeader_show(self, *args)
852 
853  MAP_FIELD_SIZE = _IMP_em.DensityHeader_MAP_FIELD_SIZE
854  USER_FIELD_SIZE = _IMP_em.DensityHeader_USER_FIELD_SIZE
855  COMMENT_FIELD_NUM_OF = _IMP_em.DensityHeader_COMMENT_FIELD_NUM_OF
856  COMMENT_FIELD_SINGLE_SIZE = _IMP_em.DensityHeader_COMMENT_FIELD_SINGLE_SIZE
857  nxstart = _swig_property(_IMP_em.DensityHeader_nxstart_get, _IMP_em.DensityHeader_nxstart_set)
858  nystart = _swig_property(_IMP_em.DensityHeader_nystart_get, _IMP_em.DensityHeader_nystart_set)
859  nzstart = _swig_property(_IMP_em.DensityHeader_nzstart_get, _IMP_em.DensityHeader_nzstart_set)
860  mx = _swig_property(_IMP_em.DensityHeader_mx_get, _IMP_em.DensityHeader_mx_set)
861  my = _swig_property(_IMP_em.DensityHeader_my_get, _IMP_em.DensityHeader_my_set)
862  mz = _swig_property(_IMP_em.DensityHeader_mz_get, _IMP_em.DensityHeader_mz_set)
863  xlen = _swig_property(_IMP_em.DensityHeader_xlen_get, _IMP_em.DensityHeader_xlen_set)
864  ylen = _swig_property(_IMP_em.DensityHeader_ylen_get, _IMP_em.DensityHeader_ylen_set)
865  zlen = _swig_property(_IMP_em.DensityHeader_zlen_get, _IMP_em.DensityHeader_zlen_set)
866  alpha = _swig_property(_IMP_em.DensityHeader_alpha_get, _IMP_em.DensityHeader_alpha_set)
867  beta = _swig_property(_IMP_em.DensityHeader_beta_get, _IMP_em.DensityHeader_beta_set)
868  gamma = _swig_property(_IMP_em.DensityHeader_gamma_get, _IMP_em.DensityHeader_gamma_set)
869  mapc = _swig_property(_IMP_em.DensityHeader_mapc_get, _IMP_em.DensityHeader_mapc_set)
870  mapr = _swig_property(_IMP_em.DensityHeader_mapr_get, _IMP_em.DensityHeader_mapr_set)
871  maps = _swig_property(_IMP_em.DensityHeader_maps_get, _IMP_em.DensityHeader_maps_set)
872  dmin = _swig_property(_IMP_em.DensityHeader_dmin_get, _IMP_em.DensityHeader_dmin_set)
873  dmax = _swig_property(_IMP_em.DensityHeader_dmax_get, _IMP_em.DensityHeader_dmax_set)
874  dmean = _swig_property(_IMP_em.DensityHeader_dmean_get, _IMP_em.DensityHeader_dmean_set)
875  ispg = _swig_property(_IMP_em.DensityHeader_ispg_get, _IMP_em.DensityHeader_ispg_set)
876  nsymbt = _swig_property(_IMP_em.DensityHeader_nsymbt_get, _IMP_em.DensityHeader_nsymbt_set)
877  user = _swig_property(_IMP_em.DensityHeader_user_get, _IMP_em.DensityHeader_user_set)
878  map = _swig_property(_IMP_em.DensityHeader_map_get, _IMP_em.DensityHeader_map_set)
879  machinestamp = _swig_property(_IMP_em.DensityHeader_machinestamp_get, _IMP_em.DensityHeader_machinestamp_set)
880  rms = _swig_property(_IMP_em.DensityHeader_rms_get, _IMP_em.DensityHeader_rms_set)
881  nlabl = _swig_property(_IMP_em.DensityHeader_nlabl_get, _IMP_em.DensityHeader_nlabl_set)
882  comments = _swig_property(_IMP_em.DensityHeader_comments_get, _IMP_em.DensityHeader_comments_set)
883  magic = _swig_property(_IMP_em.DensityHeader_magic_get, _IMP_em.DensityHeader_magic_set)
884  voltage = _swig_property(_IMP_em.DensityHeader_voltage_get, _IMP_em.DensityHeader_voltage_set)
885  Cs = _swig_property(_IMP_em.DensityHeader_Cs_get, _IMP_em.DensityHeader_Cs_set)
886  Aperture = _swig_property(_IMP_em.DensityHeader_Aperture_get, _IMP_em.DensityHeader_Aperture_set)
887  Magnification = _swig_property(_IMP_em.DensityHeader_Magnification_get, _IMP_em.DensityHeader_Magnification_set)
888  Postmagnification = _swig_property(_IMP_em.DensityHeader_Postmagnification_get, _IMP_em.DensityHeader_Postmagnification_set)
889  Exposuretime = _swig_property(_IMP_em.DensityHeader_Exposuretime_get, _IMP_em.DensityHeader_Exposuretime_set)
890  Microscope = _swig_property(_IMP_em.DensityHeader_Microscope_get, _IMP_em.DensityHeader_Microscope_set)
891  Pixelsize = _swig_property(_IMP_em.DensityHeader_Pixelsize_get, _IMP_em.DensityHeader_Pixelsize_set)
892  CCDArea = _swig_property(_IMP_em.DensityHeader_CCDArea_get, _IMP_em.DensityHeader_CCDArea_set)
893  Defocus = _swig_property(_IMP_em.DensityHeader_Defocus_get, _IMP_em.DensityHeader_Defocus_set)
894  Astigmatism = _swig_property(_IMP_em.DensityHeader_Astigmatism_get, _IMP_em.DensityHeader_Astigmatism_set)
895  AstigmatismAngle = _swig_property(_IMP_em.DensityHeader_AstigmatismAngle_get, _IMP_em.DensityHeader_AstigmatismAngle_set)
896  FocusIncrement = _swig_property(_IMP_em.DensityHeader_FocusIncrement_get, _IMP_em.DensityHeader_FocusIncrement_set)
897  CountsPerElectron = _swig_property(_IMP_em.DensityHeader_CountsPerElectron_get, _IMP_em.DensityHeader_CountsPerElectron_set)
898  Intensity = _swig_property(_IMP_em.DensityHeader_Intensity_get, _IMP_em.DensityHeader_Intensity_set)
899  EnergySlitwidth = _swig_property(_IMP_em.DensityHeader_EnergySlitwidth_get, _IMP_em.DensityHeader_EnergySlitwidth_set)
900  EnergyOffset = _swig_property(_IMP_em.DensityHeader_EnergyOffset_get, _IMP_em.DensityHeader_EnergyOffset_set)
901  Tiltangle = _swig_property(_IMP_em.DensityHeader_Tiltangle_get, _IMP_em.DensityHeader_Tiltangle_set)
902  Tiltaxis = _swig_property(_IMP_em.DensityHeader_Tiltaxis_get, _IMP_em.DensityHeader_Tiltaxis_set)
903  MarkerX = _swig_property(_IMP_em.DensityHeader_MarkerX_get, _IMP_em.DensityHeader_MarkerX_set)
904  MarkerY = _swig_property(_IMP_em.DensityHeader_MarkerY_get, _IMP_em.DensityHeader_MarkerY_set)
905  lswap = _swig_property(_IMP_em.DensityHeader_lswap_get, _IMP_em.DensityHeader_lswap_set)
906 
907  def get_resolution(self):
908  """get_resolution(DensityHeader self) -> float"""
909  return _IMP_em.DensityHeader_get_resolution(self)
910 
911 
912  def get_has_resolution(self):
913  """get_has_resolution(DensityHeader self) -> bool"""
914  return _IMP_em.DensityHeader_get_has_resolution(self)
915 
916 
917  def set_resolution(self, resolution):
918  """set_resolution(DensityHeader self, float resolution)"""
919  return _IMP_em.DensityHeader_set_resolution(self, resolution)
920 
921 
922  def get_spacing(self):
923  """get_spacing(DensityHeader self) -> float"""
924  return _IMP_em.DensityHeader_get_spacing(self)
925 
926 
927  def get_xorigin(self):
928  """get_xorigin(DensityHeader self) -> float"""
929  return _IMP_em.DensityHeader_get_xorigin(self)
930 
931 
932  def get_yorigin(self):
933  """get_yorigin(DensityHeader self) -> float"""
934  return _IMP_em.DensityHeader_get_yorigin(self)
935 
936 
937  def get_zorigin(self):
938  """get_zorigin(DensityHeader self) -> float"""
939  return _IMP_em.DensityHeader_get_zorigin(self)
940 
941 
942  def get_origin(self, i):
943  """get_origin(DensityHeader self, int i) -> float"""
944  return _IMP_em.DensityHeader_get_origin(self, i)
945 
946 
947  def set_xorigin(self, x):
948  """set_xorigin(DensityHeader self, float x)"""
949  return _IMP_em.DensityHeader_set_xorigin(self, x)
950 
951 
952  def set_yorigin(self, y):
953  """set_yorigin(DensityHeader self, float y)"""
954  return _IMP_em.DensityHeader_set_yorigin(self, y)
955 
956 
957  def set_zorigin(self, z):
958  """set_zorigin(DensityHeader self, float z)"""
959  return _IMP_em.DensityHeader_set_zorigin(self, z)
960 
961 
962  def is_top_calculated(self):
963  """is_top_calculated(DensityHeader self) -> bool"""
964  return _IMP_em.DensityHeader_is_top_calculated(self)
965 
966  Objectpixelsize_ = _swig_property(_IMP_em.DensityHeader_Objectpixelsize__get, _IMP_em.DensityHeader_Objectpixelsize__set)
967 
968  def get_nx(self):
969  """get_nx(DensityHeader self) -> int"""
970  return _IMP_em.DensityHeader_get_nx(self)
971 
972 
973  def get_ny(self):
974  """get_ny(DensityHeader self) -> int"""
975  return _IMP_em.DensityHeader_get_ny(self)
976 
977 
978  def get_nz(self):
979  """get_nz(DensityHeader self) -> int"""
980  return _IMP_em.DensityHeader_get_nz(self)
981 
982 
983  def get_number_of_voxels(self):
984  """get_number_of_voxels(DensityHeader self) -> int"""
985  return _IMP_em.DensityHeader_get_number_of_voxels(self)
986 
987 
988  def get_data_type(self):
989  """get_data_type(DensityHeader self) -> int"""
990  return _IMP_em.DensityHeader_get_data_type(self)
991 
992 
993  def set_data_type(self, data_type):
994  """set_data_type(DensityHeader self, int data_type)"""
995  return _IMP_em.DensityHeader_set_data_type(self, data_type)
996 
997  __swig_destroy__ = _IMP_em.delete_DensityHeader
998  __del__ = lambda self: None
999 DensityHeader_swigregister = _IMP_em.DensityHeader_swigregister
1000 DensityHeader_swigregister(DensityHeader)
1001 
1002 
1003 def create_density_header(bb, spacing):
1004  """create_density_header(BoundingBox3D bb, float spacing) -> DensityHeader"""
1005  return _IMP_em.create_density_header(bb, spacing)
1006 
1007 def read_map(*args):
1008  """
1009  read_map(std::string filename, MapReaderWriter reader) -> DensityMap
1010  read_map(std::string filename) -> DensityMap
1011  """
1012  return _IMP_em.read_map(*args)
1013 
1014 def write_map(*args):
1015  """
1016  write_map(DensityMap m, std::string filename, MapReaderWriter writer)
1017  write_map(DensityMap m, std::string filename)
1018  """
1019  return _IMP_em.write_map(*args)
1020 
1021 def approximate_molecular_mass(m, threshold):
1022  """approximate_molecular_mass(DensityMap m, IMP::Float threshold) -> IMP::Float"""
1023  return _IMP_em.approximate_molecular_mass(m, threshold)
1024 class DensityMap(IMP.Object):
1025  """Proxy of C++ IMP::em::DensityMap class"""
1026  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1027 
1028  def __init__(self, *args):
1029  """
1030  __init__(IMP::em::DensityMap self, std::string name) -> DensityMap
1031  __init__(IMP::em::DensityMap self) -> DensityMap
1032  __init__(IMP::em::DensityMap self, DensityHeader header, std::string name) -> DensityMap
1033  __init__(IMP::em::DensityMap self, DensityHeader header) -> DensityMap
1034  """
1035  this = _IMP_em.new_DensityMap(*args)
1036  try:
1037  self.this.append(this)
1038  except:
1039  self.this = this
1040 
1041  def reset_data(self, value=0.0):
1042  """
1043  reset_data(DensityMap self, float value=0.0)
1044  reset_data(DensityMap self)
1045  """
1046  return _IMP_em.DensityMap_reset_data(self, value)
1047 
1048 
1049  def calcRMS(self):
1050  """calcRMS(DensityMap self) -> IMP::em::emreal"""
1051  return _IMP_em.DensityMap_calcRMS(self)
1052 
1053 
1054  def std_normalize(self):
1055  """std_normalize(DensityMap self)"""
1056  return _IMP_em.DensityMap_std_normalize(self)
1057 
1058 
1059  def is_normalized(self):
1060  """is_normalized(DensityMap self) -> bool"""
1061  return _IMP_em.DensityMap_is_normalized(self)
1062 
1063 
1064  def get_location_in_dim_by_voxel(self, index, dim):
1065  """get_location_in_dim_by_voxel(DensityMap self, long index, int dim) -> float"""
1066  return _IMP_em.DensityMap_get_location_in_dim_by_voxel(self, index, dim)
1067 
1068 
1069  def xyz_ind2voxel(self, x, y, z):
1070  """xyz_ind2voxel(DensityMap self, int x, int y, int z) -> long"""
1071  return _IMP_em.DensityMap_xyz_ind2voxel(self, x, y, z)
1072 
1073 
1074  def get_voxel_by_location(self, *args):
1075  """
1076  get_voxel_by_location(DensityMap self, float x, float y, float z) -> long
1077  get_voxel_by_location(DensityMap self, Vector3D v) -> long
1078  """
1079  return _IMP_em.DensityMap_get_voxel_by_location(self, *args)
1080 
1081 
1082  def get_location_by_voxel(self, index):
1083  """get_location_by_voxel(DensityMap self, long index) -> Vector3D"""
1084  return _IMP_em.DensityMap_get_location_by_voxel(self, index)
1085 
1086 
1087  def is_xyz_ind_part_of_volume(self, ix, iy, iz):
1088  """is_xyz_ind_part_of_volume(DensityMap self, int ix, int iy, int iz) -> bool"""
1089  return _IMP_em.DensityMap_is_xyz_ind_part_of_volume(self, ix, iy, iz)
1090 
1091 
1092  def is_part_of_volume(self, *args):
1093  """
1094  is_part_of_volume(DensityMap self, float x, float y, float z) -> bool
1095  is_part_of_volume(DensityMap self, Vector3D v) -> bool
1096  """
1097  return _IMP_em.DensityMap_is_part_of_volume(self, *args)
1098 
1099 
1100  def get_value(self, *args):
1101  """
1102  get_value(DensityMap self, float x, float y, float z) -> IMP::em::emreal
1103  get_value(DensityMap self, Vector3D point) -> IMP::em::emreal
1104  get_value(DensityMap self, long index) -> IMP::em::emreal
1105  """
1106  return _IMP_em.DensityMap_get_value(self, *args)
1107 
1108 
1109  def set_value(self, *args):
1110  """
1111  set_value(DensityMap self, long index, IMP::em::emreal value)
1112  set_value(DensityMap self, float x, float y, float z, IMP::em::emreal value)
1113  """
1114  return _IMP_em.DensityMap_set_value(self, *args)
1115 
1116 
1117  def set_origin(self, *args):
1118  """
1119  set_origin(DensityMap self, float x, float y, float z)
1120  set_origin(DensityMap self, Vector3D v)
1121  """
1122  return _IMP_em.DensityMap_set_origin(self, *args)
1123 
1124 
1125  def get_origin(self):
1126  """get_origin(DensityMap self) -> Vector3D"""
1127  return _IMP_em.DensityMap_get_origin(self)
1128 
1129 
1130  def get_top(self):
1131  """get_top(DensityMap self) -> Vector3D"""
1132  return _IMP_em.DensityMap_get_top(self)
1133 
1134 
1135  def get_header(self):
1136  h = _IMP_em.DensityMap_get_header(self)
1137  h._owner = self
1138  return h
1139 
1140 
1141 
1142  def get_header_writable(self):
1143  h = _IMP_em.DensityMap_get_header_writable(self)
1144  h._owner = self
1145  return h
1146 
1147 
1148 
1149  def same_origin(self, other):
1150  """same_origin(DensityMap self, DensityMap other) -> bool"""
1151  return _IMP_em.DensityMap_same_origin(self, other)
1152 
1153 
1154  def same_dimensions(self, other):
1155  """same_dimensions(DensityMap self, DensityMap other) -> bool"""
1156  return _IMP_em.DensityMap_same_dimensions(self, other)
1157 
1158 
1159  def same_voxel_size(self, other):
1160  """same_voxel_size(DensityMap self, DensityMap other) -> bool"""
1161  return _IMP_em.DensityMap_same_voxel_size(self, other)
1162 
1163 
1164  def get_centroid(self, threshold=0.0):
1165  """
1166  get_centroid(DensityMap self, IMP::em::emreal threshold=0.0) -> Vector3D
1167  get_centroid(DensityMap self) -> Vector3D
1168  """
1169  return _IMP_em.DensityMap_get_centroid(self, threshold)
1170 
1171 
1172  def get_max_value(self):
1173  """get_max_value(DensityMap self) -> IMP::em::emreal"""
1174  return _IMP_em.DensityMap_get_max_value(self)
1175 
1176 
1177  def get_min_value(self):
1178  """get_min_value(DensityMap self) -> IMP::em::emreal"""
1179  return _IMP_em.DensityMap_get_min_value(self)
1180 
1181 
1182  def add(self, *args):
1183  """
1184  add(DensityMap self, DensityMap other)
1185  add(DensityMap self, IMP::Float d)
1186  """
1187  return _IMP_em.DensityMap_add(self, *args)
1188 
1189 
1190  def pick_max(self, other):
1191  """pick_max(DensityMap self, DensityMap other)"""
1192  return _IMP_em.DensityMap_pick_max(self, other)
1193 
1194 
1195  def get_number_of_voxels(self):
1196  """get_number_of_voxels(DensityMap self) -> long"""
1197  return _IMP_em.DensityMap_get_number_of_voxels(self)
1198 
1199 
1200  def set_void_map(self, nx, ny, nz):
1201  """set_void_map(DensityMap self, int nx, int ny, int nz)"""
1202  return _IMP_em.DensityMap_set_void_map(self, nx, ny, nz)
1203 
1204 
1205  def pad(self, nx, ny, nz, val=0.0):
1206  """
1207  pad(DensityMap self, int nx, int ny, int nz, float val=0.0)
1208  pad(DensityMap self, int nx, int ny, int nz)
1209  """
1210  return _IMP_em.DensityMap_pad(self, nx, ny, nz, val)
1211 
1212 
1213  def pad_margin(self, mrg_x, mrg_y, mrg_z, val=0.0):
1214  """
1215  pad_margin(DensityMap self, int mrg_x, int mrg_y, int mrg_z, float val=0.0) -> DensityMap
1216  pad_margin(DensityMap self, int mrg_x, int mrg_y, int mrg_z) -> DensityMap
1217  """
1218  return _IMP_em.DensityMap_pad_margin(self, mrg_x, mrg_y, mrg_z, val)
1219 
1220 
1221  def get_cropped(self, *args):
1222  """
1223  get_cropped(DensityMap self, float threshold) -> DensityMap
1224  get_cropped(DensityMap self, IMP::Particles ps, double distance, bool inverse=False, bool keep_map_dimensions=False) -> DensityMap
1225  get_cropped(DensityMap self, IMP::Particles ps, double distance, bool inverse=False) -> DensityMap
1226  get_cropped(DensityMap self, IMP::Particles ps, double distance) -> DensityMap
1227  get_cropped(DensityMap self, BoundingBox3D bb) -> DensityMap
1228  """
1229  return _IMP_em.DensityMap_get_cropped(self, *args)
1230 
1231 
1232  def get_maximum_value_in_xy_plane(self, z_ind):
1233  """get_maximum_value_in_xy_plane(DensityMap self, int z_ind) -> float"""
1234  return _IMP_em.DensityMap_get_maximum_value_in_xy_plane(self, z_ind)
1235 
1236 
1237  def get_maximum_value_in_xz_plane(self, y_ind):
1238  """get_maximum_value_in_xz_plane(DensityMap self, int y_ind) -> float"""
1239  return _IMP_em.DensityMap_get_maximum_value_in_xz_plane(self, y_ind)
1240 
1241 
1242  def get_maximum_value_in_yz_plane(self, x_ind):
1243  """get_maximum_value_in_yz_plane(DensityMap self, int x_ind) -> float"""
1244  return _IMP_em.DensityMap_get_maximum_value_in_yz_plane(self, x_ind)
1245 
1246 
1247  def multiply(self, factor):
1248  """multiply(DensityMap self, float factor)"""
1249  return _IMP_em.DensityMap_multiply(self, factor)
1250 
1251 
1252  def get_locations_string(self, t):
1253  """get_locations_string(DensityMap self, float t) -> std::string"""
1254  return _IMP_em.DensityMap_get_locations_string(self, t)
1255 
1256 
1257  def update_voxel_size(self, new_apix):
1258  """update_voxel_size(DensityMap self, float new_apix)"""
1259  return _IMP_em.DensityMap_update_voxel_size(self, new_apix)
1260 
1261 
1262  def get_spacing(self):
1263  """get_spacing(DensityMap self) -> IMP::Float"""
1264  return _IMP_em.DensityMap_get_spacing(self)
1265 
1266 
1267  def calc_all_voxel2loc(self):
1268  """calc_all_voxel2loc(DensityMap self)"""
1269  return _IMP_em.DensityMap_calc_all_voxel2loc(self)
1270 
1271 
1272  def copy_map(self, other):
1273  """copy_map(DensityMap self, DensityMap other)"""
1274  return _IMP_em.DensityMap_copy_map(self, other)
1275 
1276 
1277  def get_version_info(self):
1278  """get_version_info(DensityMap self) -> VersionInfo"""
1279  return _IMP_em.DensityMap_get_version_info(self)
1280 
1281 
1282  def lower_voxel_shift(self, loc, kdist, orig, ndim):
1283  """lower_voxel_shift(DensityMap self, IMP::em::emreal loc, IMP::em::emreal kdist, IMP::em::emreal orig, int ndim) -> int"""
1284  return _IMP_em.DensityMap_lower_voxel_shift(self, loc, kdist, orig, ndim)
1285 
1286 
1287  def upper_voxel_shift(self, loc, kdist, orig, ndim):
1288  """upper_voxel_shift(DensityMap self, IMP::em::emreal loc, IMP::em::emreal kdist, IMP::em::emreal orig, int ndim) -> int"""
1289  return _IMP_em.DensityMap_upper_voxel_shift(self, loc, kdist, orig, ndim)
1290 
1291 
1292  def get_rms_calculated(self):
1293  """get_rms_calculated(DensityMap self) -> bool"""
1294  return _IMP_em.DensityMap_get_rms_calculated(self)
1295 
1296 
1297  def get_dim_index_by_location(self, *args):
1298  """
1299  get_dim_index_by_location(DensityMap self, Vector3D v, int ind) -> int
1300  get_dim_index_by_location(DensityMap self, float loc_val, int ind) -> int
1301  """
1302  return _IMP_em.DensityMap_get_dim_index_by_location(self, *args)
1303 
1304 
1305  def __str__(self):
1306  """__str__(DensityMap self) -> std::string"""
1307  return _IMP_em.DensityMap___str__(self)
1308 
1309 
1310  def __repr__(self):
1311  """__repr__(DensityMap self) -> std::string"""
1312  return _IMP_em.DensityMap___repr__(self)
1313 
1314 
1315  @staticmethod
1316  def get_from(o):
1317  return _object_cast_to_DensityMap(o)
1318 
1319 
1320  def get_x_loc(self):
1321  return _get_density_map_x_loc(self, self)
1322 
1323  def get_y_loc(self):
1324  return _get_density_map_y_loc(self, self)
1325 
1326  def get_z_loc(self):
1327  return _get_density_map_z_loc(self, self)
1328 
1329  def get_data(self):
1330  return _get_density_map_data(self, self)
1331 
1332 DensityMap_swigregister = _IMP_em.DensityMap_swigregister
1333 DensityMap_swigregister(DensityMap)
1334 
1335 
1336 def get_bounding_box(*args):
1337  """
1338  get_bounding_box(DensityMap m, IMP::Float threshold) -> BoundingBox3D
1339  get_bounding_box(DensityMap m) -> BoundingBox3D
1340  """
1341  return _IMP_em.get_bounding_box(*args)
1342 
1343 def get_density(m, v):
1344  """get_density(DensityMap m, Vector3D v) -> double"""
1345  return _IMP_em.get_density(m, v)
1346 
1347 def get_transformed(*args):
1348  """
1349  get_transformed(DensityMap input, Transformation3D tr, double threshold) -> DensityMap
1350  get_transformed(DensityMap input, Transformation3D tr) -> DensityMap
1351  """
1352  return _IMP_em.get_transformed(*args)
1353 
1354 def get_resampled(input, scaling):
1355  """get_resampled(DensityMap input, double scaling) -> DensityMap"""
1356  return _IMP_em.get_resampled(input, scaling)
1357 
1358 def get_transformed_into(source, tr, into, calc_rms=True):
1359  """
1360  get_transformed_into(DensityMap source, Transformation3D tr, DensityMap into, bool calc_rms=True)
1361  get_transformed_into(DensityMap source, Transformation3D tr, DensityMap into)
1362  """
1363  return _IMP_em.get_transformed_into(source, tr, into, calc_rms)
1364 
1365 def get_transformed_into2(source, tr, into):
1366  """get_transformed_into2(DensityMap source, Transformation3D tr, DensityMap into)"""
1367  return _IMP_em.get_transformed_into2(source, tr, into)
1368 
1369 def get_interiors_intersect(d1, d2):
1370  """get_interiors_intersect(DensityMap d1, DensityMap d2) -> bool"""
1371  return _IMP_em.get_interiors_intersect(d1, d2)
1372 
1373 def get_segment(*args):
1374  """
1375  get_segment(DensityMap map_to_segment, int nx_start, int nx_end, int ny_start, int ny_end, int nz_start, int nz_end) -> DensityMap
1376  get_segment(DensityMap map_to_segment, IMP::algebra::Vector3Ds vecs, float dist) -> DensityMap
1377  """
1378  return _IMP_em.get_segment(*args)
1379 
1380 def get_segment_by_masking(map_to_segment, mask, mas_threshold):
1381  """get_segment_by_masking(DensityMap map_to_segment, DensityMap mask, float mas_threshold) -> DensityMap"""
1382  return _IMP_em.get_segment_by_masking(map_to_segment, mask, mas_threshold)
1383 
1384 def binarize(orig_map, threshold, reverse=False):
1385  """
1386  binarize(DensityMap orig_map, float threshold, bool reverse=False) -> DensityMap
1387  binarize(DensityMap orig_map, float threshold) -> DensityMap
1388  """
1389  return _IMP_em.binarize(orig_map, threshold, reverse)
1390 
1391 def get_threshold_map(orig_map, threshold):
1392  """get_threshold_map(DensityMap orig_map, float threshold) -> DensityMap"""
1393  return _IMP_em.get_threshold_map(orig_map, threshold)
1394 
1395 def multiply(m1, m2):
1396  """multiply(DensityMap m1, DensityMap m2) -> DensityMap"""
1397  return _IMP_em.multiply(m1, m2)
1398 
1399 def convolute(m1, m2):
1400  """convolute(DensityMap m1, DensityMap m2) -> double"""
1401  return _IMP_em.convolute(m1, m2)
1402 
1403 def get_sum(m1):
1404  """get_sum(DensityMap m1) -> double"""
1405  return _IMP_em.get_sum(m1)
1406 
1407 def get_max_map(maps):
1408  """get_max_map(IMP::em::DensityMaps maps) -> DensityMap"""
1409  return _IMP_em.get_max_map(maps)
1410 
1411 def interpolate_map(in_map, new_spacing):
1412  """interpolate_map(DensityMap in_map, double new_spacing) -> DensityMap"""
1413  return _IMP_em.interpolate_map(in_map, new_spacing)
1414 
1415 def get_grid(in_map):
1416  """get_grid(DensityMap in_map) -> IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,float >,float,IMP::algebra::DefaultEmbeddingD< 3 > >"""
1417  return _IMP_em.get_grid(in_map)
1418 
1419 def create_density_map(*args):
1420  """
1421  create_density_map(DensityMap other) -> DensityMap
1422  create_density_map(BoundingBox3D bb, double spacing) -> DensityMap
1423  create_density_map(int nx, int ny, int nz, double spacing) -> DensityMap
1424  create_density_map(DenseFloatGrid3D grid) -> DensityMap
1425  create_density_map(DenseDoubleGrid3D grid) -> DensityMap
1426  """
1427  return _IMP_em.create_density_map(*args)
1428 
1429 def get_binarized_interior(dmap):
1430  """get_binarized_interior(DensityMap dmap) -> DensityMap"""
1431  return _IMP_em.get_binarized_interior(dmap)
1432 
1433 def add_to_map(dm, pis):
1434  """add_to_map(DensityMap dm, IMP::Particles const & pis)"""
1435  return _IMP_em.add_to_map(dm, pis)
1436 class RadiusDependentDistanceMask(object):
1437  """Proxy of C++ IMP::em::RadiusDependentDistanceMask class"""
1438  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1439  __repr__ = _swig_repr
1440 
1441  def __init__(self, sampling_radius, header):
1442  """__init__(IMP::em::RadiusDependentDistanceMask self, float sampling_radius, DensityHeader header) -> RadiusDependentDistanceMask"""
1443  this = _IMP_em.new_RadiusDependentDistanceMask(sampling_radius, header)
1444  try:
1445  self.this.append(this)
1446  except:
1447  self.this = this
1448 
1449  def get_neighbor_shift(self):
1450  """get_neighbor_shift(RadiusDependentDistanceMask self) -> std::vector< double,std::allocator< double > > const *"""
1451  return _IMP_em.RadiusDependentDistanceMask_get_neighbor_shift(self)
1452 
1453 
1454  def get_neighbor_dist(self):
1455  """get_neighbor_dist(RadiusDependentDistanceMask self) -> std::vector< double,std::allocator< double > > const *"""
1456  return _IMP_em.RadiusDependentDistanceMask_get_neighbor_dist(self)
1457 
1458 
1459  def get_neighbor_dist_exp(self):
1460  """get_neighbor_dist_exp(RadiusDependentDistanceMask self) -> std::vector< double,std::allocator< double > > const *"""
1461  return _IMP_em.RadiusDependentDistanceMask_get_neighbor_dist_exp(self)
1462 
1463 
1464  def show(self, out):
1465  """show(RadiusDependentDistanceMask self, _ostream out)"""
1466  return _IMP_em.RadiusDependentDistanceMask_show(self, out)
1467 
1468  __swig_destroy__ = _IMP_em.delete_RadiusDependentDistanceMask
1469  __del__ = lambda self: None
1470 RadiusDependentDistanceMask_swigregister = _IMP_em.RadiusDependentDistanceMask_swigregister
1471 RadiusDependentDistanceMask_swigregister(RadiusDependentDistanceMask)
1472 
1473 class DistanceMask(object):
1474  """Proxy of C++ IMP::em::DistanceMask class"""
1475  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1476  __repr__ = _swig_repr
1477 
1478  def __init__(self, *args):
1479  """
1480  __init__(IMP::em::DistanceMask self) -> DistanceMask
1481  __init__(IMP::em::DistanceMask self, DensityHeader header) -> DistanceMask
1482  """
1483  this = _IMP_em.new_DistanceMask(*args)
1484  try:
1485  self.this.append(this)
1486  except:
1487  self.this = this
1488 
1489  def show(self, out):
1490  """show(DistanceMask self, _ostream out)"""
1491  return _IMP_em.DistanceMask_show(self, out)
1492 
1493 
1494  def is_mask_set(self, radius, eps=0.001):
1495  """
1496  is_mask_set(DistanceMask self, float radius, float eps=0.001) -> bool
1497  is_mask_set(DistanceMask self, float radius) -> bool
1498  """
1499  return _IMP_em.DistanceMask_is_mask_set(self, radius, eps)
1500 
1501  __swig_destroy__ = _IMP_em.delete_DistanceMask
1502  __del__ = lambda self: None
1503 DistanceMask_swigregister = _IMP_em.DistanceMask_swigregister
1504 DistanceMask_swigregister(DistanceMask)
1505 
1506 class EMReaderWriter(MapReaderWriter):
1507  """Proxy of C++ IMP::em::EMReaderWriter class"""
1508  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1509 
1510  def __str__(self):
1511  """__str__(EMReaderWriter self) -> std::string"""
1512  return _IMP_em.EMReaderWriter___str__(self)
1513 
1514 
1515  def __repr__(self):
1516  """__repr__(EMReaderWriter self) -> std::string"""
1517  return _IMP_em.EMReaderWriter___repr__(self)
1518 
1519 
1520  @staticmethod
1521  def get_from(o):
1522  return _object_cast_to_EMReaderWriter(o)
1523 
1524 
1525  def __init__(self):
1526  """__init__(IMP::em::EMReaderWriter self) -> EMReaderWriter"""
1527  this = _IMP_em.new_EMReaderWriter()
1528  try:
1529  self.this.append(this)
1530  except:
1531  self.this = this
1532 EMReaderWriter_swigregister = _IMP_em.EMReaderWriter_swigregister
1533 EMReaderWriter_swigregister(EMReaderWriter)
1534 
1535 class XplorReaderWriter(MapReaderWriter):
1536  """Proxy of C++ IMP::em::XplorReaderWriter class"""
1537  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1538 
1539  def __str__(self):
1540  """__str__(XplorReaderWriter self) -> std::string"""
1541  return _IMP_em.XplorReaderWriter___str__(self)
1542 
1543 
1544  def __repr__(self):
1545  """__repr__(XplorReaderWriter self) -> std::string"""
1546  return _IMP_em.XplorReaderWriter___repr__(self)
1547 
1548 
1549  @staticmethod
1550  def get_from(o):
1551  return _object_cast_to_XplorReaderWriter(o)
1552 
1553 
1554  def __init__(self):
1555  """__init__(IMP::em::XplorReaderWriter self) -> XplorReaderWriter"""
1556  this = _IMP_em.new_XplorReaderWriter()
1557  try:
1558  self.this.append(this)
1559  except:
1560  self.this = this
1561 XplorReaderWriter_swigregister = _IMP_em.XplorReaderWriter_swigregister
1562 XplorReaderWriter_swigregister(XplorReaderWriter)
1563 
1564 class MRCReaderWriter(MapReaderWriter):
1565  """Proxy of C++ IMP::em::MRCReaderWriter class"""
1566  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1567 
1568  def __init__(self, *args):
1569  """
1570  __init__(IMP::em::MRCReaderWriter self) -> MRCReaderWriter
1571  __init__(IMP::em::MRCReaderWriter self, std::string fn) -> MRCReaderWriter
1572  """
1573  this = _IMP_em.new_MRCReaderWriter(*args)
1574  try:
1575  self.this.append(this)
1576  except:
1577  self.this = this
1578 
1579  def __str__(self):
1580  """__str__(MRCReaderWriter self) -> std::string"""
1581  return _IMP_em.MRCReaderWriter___str__(self)
1582 
1583 
1584  def __repr__(self):
1585  """__repr__(MRCReaderWriter self) -> std::string"""
1586  return _IMP_em.MRCReaderWriter___repr__(self)
1587 
1588 
1589  @staticmethod
1590  def get_from(o):
1591  return _object_cast_to_MRCReaderWriter(o)
1592 
1593 MRCReaderWriter_swigregister = _IMP_em.MRCReaderWriter_swigregister
1594 MRCReaderWriter_swigregister(MRCReaderWriter)
1595 
1596 class KernelParameters(object):
1597  """Proxy of C++ IMP::em::KernelParameters class"""
1598  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1599 
1600  def __init__(self, *args):
1601  """
1602  __init__(IMP::em::KernelParameters self) -> KernelParameters
1603  __init__(IMP::em::KernelParameters self, float resolution) -> KernelParameters
1604  """
1605  this = _IMP_em.new_KernelParameters(*args)
1606  try:
1607  self.this.append(this)
1608  except:
1609  self.this = this
1610  __swig_destroy__ = _IMP_em.delete_KernelParameters
1611  __del__ = lambda self: None
1612 
1613  def get_rsig(self):
1614  """get_rsig(KernelParameters self) -> float"""
1615  return _IMP_em.KernelParameters_get_rsig(self)
1616 
1617 
1618  def get_rsigsq(self):
1619  """get_rsigsq(KernelParameters self) -> float"""
1620  return _IMP_em.KernelParameters_get_rsigsq(self)
1621 
1622 
1623  def get_inv_rsigsq(self):
1624  """get_inv_rsigsq(KernelParameters self) -> float"""
1625  return _IMP_em.KernelParameters_get_inv_rsigsq(self)
1626 
1627 
1628  def get_timessig(self):
1629  """get_timessig(KernelParameters self) -> float"""
1630  return _IMP_em.KernelParameters_get_timessig(self)
1631 
1632 
1633  def get_sq2pi3(self):
1634  """get_sq2pi3(KernelParameters self) -> float"""
1635  return _IMP_em.KernelParameters_get_sq2pi3(self)
1636 
1637 
1638  def get_rnormfac(self):
1639  """get_rnormfac(KernelParameters self) -> float"""
1640  return _IMP_em.KernelParameters_get_rnormfac(self)
1641 
1642 
1643  def get_rkdist(self):
1644  """get_rkdist(KernelParameters self) -> float"""
1645  return _IMP_em.KernelParameters_get_rkdist(self)
1646 
1647 
1648  def get_rkdistsq(self):
1649  """get_rkdistsq(KernelParameters self) -> float"""
1650  return _IMP_em.KernelParameters_get_rkdistsq(self)
1651 
1652 
1653  def get_lim(self):
1654  """get_lim(KernelParameters self) -> float"""
1655  return _IMP_em.KernelParameters_get_lim(self)
1656 
1657 
1658  def show(self, *args):
1659  """
1660  show(KernelParameters self, _ostream out)
1661  show(KernelParameters self)
1662  """
1663  return _IMP_em.KernelParameters_show(self, *args)
1664 
1665 
1666  def __str__(self):
1667  """__str__(KernelParameters self) -> std::string"""
1668  return _IMP_em.KernelParameters___str__(self)
1669 
1670 
1671  def __repr__(self):
1672  """__repr__(KernelParameters self) -> std::string"""
1673  return _IMP_em.KernelParameters___repr__(self)
1674 
1675 KernelParameters_swigregister = _IMP_em.KernelParameters_swigregister
1676 KernelParameters_swigregister(KernelParameters)
1677 
1678 
1679 _IMP_em.GAUSSIAN_swigconstant(_IMP_em)
1680 GAUSSIAN = _IMP_em.GAUSSIAN
1681 
1682 _IMP_em.BINARIZED_SPHERE_swigconstant(_IMP_em)
1683 BINARIZED_SPHERE = _IMP_em.BINARIZED_SPHERE
1684 
1685 _IMP_em.SPHERE_swigconstant(_IMP_em)
1686 SPHERE = _IMP_em.SPHERE
1687 class SampledDensityMap(DensityMap):
1688  """Proxy of C++ IMP::em::SampledDensityMap class"""
1689  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1690 
1691  def __init__(self, *args):
1692  """
1693  __init__(IMP::em::SampledDensityMap self, IMP::em::KernelType kt) -> SampledDensityMap
1694  __init__(IMP::em::SampledDensityMap self) -> SampledDensityMap
1695  __init__(IMP::em::SampledDensityMap self, DensityHeader header, IMP::em::KernelType kt) -> SampledDensityMap
1696  __init__(IMP::em::SampledDensityMap self, DensityHeader header) -> SampledDensityMap
1697  __init__(IMP::em::SampledDensityMap self, IMP::ParticlesTemp const & ps, IMP::em::emreal resolution, IMP::em::emreal voxel_size, FloatKey mass_key, int sig_cutoff=3, IMP::em::KernelType kt) -> SampledDensityMap
1698  __init__(IMP::em::SampledDensityMap self, IMP::ParticlesTemp const & ps, IMP::em::emreal resolution, IMP::em::emreal voxel_size, FloatKey mass_key, int sig_cutoff=3) -> SampledDensityMap
1699  __init__(IMP::em::SampledDensityMap self, IMP::ParticlesTemp const & ps, IMP::em::emreal resolution, IMP::em::emreal voxel_size, FloatKey mass_key) -> SampledDensityMap
1700  __init__(IMP::em::SampledDensityMap self, IMP::ParticlesTemp const & ps, IMP::em::emreal resolution, IMP::em::emreal voxel_size) -> SampledDensityMap
1701  """
1702  this = _IMP_em.new_SampledDensityMap(*args)
1703  try:
1704  self.this.append(this)
1705  except:
1706  self.this = this
1707 
1708  def resample(self):
1709  """resample(SampledDensityMap self)"""
1710  return _IMP_em.SampledDensityMap_resample(self)
1711 
1712 
1713  def project(self, *args):
1714  """
1715  project(SampledDensityMap self, IMP::ParticlesTemp const & ps, int x_margin, int y_margin, int z_margin, Vector3D shift, FloatKey mass_key)
1716  project(SampledDensityMap self, IMP::ParticlesTemp const & ps, int x_margin, int y_margin, int z_margin, Vector3D shift)
1717  project(SampledDensityMap self, IMP::ParticlesTemp const & ps, int x_margin, int y_margin, int z_margin)
1718  """
1719  return _IMP_em.SampledDensityMap_project(self, *args)
1720 
1721 
1722  def set_particles(self, *args):
1723  """
1724  set_particles(SampledDensityMap self, IMP::ParticlesTemp const & ps, FloatKey mass_key)
1725  set_particles(SampledDensityMap self, IMP::ParticlesTemp const & ps)
1726  """
1727  return _IMP_em.SampledDensityMap_set_particles(self, *args)
1728 
1729 
1730  def get_xyzr_particles(self):
1731  """get_xyzr_particles(SampledDensityMap self) -> IMP::core::XYZRs const &"""
1732  return _IMP_em.SampledDensityMap_get_xyzr_particles(self)
1733 
1734 
1735  def get_sampled_particles(self):
1736  """get_sampled_particles(SampledDensityMap self) -> IMP::Particles const &"""
1737  return _IMP_em.SampledDensityMap_get_sampled_particles(self)
1738 
1739 
1740  def get_weight_key(self):
1741  """get_weight_key(SampledDensityMap self) -> FloatKey"""
1742  return _IMP_em.SampledDensityMap_get_weight_key(self)
1743 
1744 
1745  def get_minimum_resampled_value(self):
1746  """get_minimum_resampled_value(SampledDensityMap self) -> float"""
1747  return _IMP_em.SampledDensityMap_get_minimum_resampled_value(self)
1748 
1749 
1750  def update_resolution(self, res):
1751  """update_resolution(SampledDensityMap self, IMP::Float res)"""
1752  return _IMP_em.SampledDensityMap_update_resolution(self, res)
1753 
1754  __swig_destroy__ = _IMP_em.delete_SampledDensityMap
1755  __del__ = lambda self: None
1756 
1757  def __str__(self):
1758  """__str__(SampledDensityMap self) -> std::string"""
1759  return _IMP_em.SampledDensityMap___str__(self)
1760 
1761 
1762  def __repr__(self):
1763  """__repr__(SampledDensityMap self) -> std::string"""
1764  return _IMP_em.SampledDensityMap___repr__(self)
1765 
1766 
1767  @staticmethod
1768  def get_from(o):
1769  return _object_cast_to_SampledDensityMap(o)
1770 
1771 SampledDensityMap_swigregister = _IMP_em.SampledDensityMap_swigregister
1772 SampledDensityMap_swigregister(SampledDensityMap)
1773 
1774 
1775 _IMP_em.IMP_DEFAULT_NUM_SHELLS_swigconstant(_IMP_em)
1776 IMP_DEFAULT_NUM_SHELLS = _IMP_em.IMP_DEFAULT_NUM_SHELLS
1777 
1778 _IMP_em.IMP_SIG_CUTOFF_swigconstant(_IMP_em)
1779 IMP_SIG_CUTOFF = _IMP_em.IMP_SIG_CUTOFF
1780 class SurfaceShellDensityMap(SampledDensityMap):
1781  """Proxy of C++ IMP::em::SurfaceShellDensityMap class"""
1782  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1783 
1784  def __init__(self, *args):
1785  """
1786  __init__(IMP::em::SurfaceShellDensityMap self) -> SurfaceShellDensityMap
1787  __init__(IMP::em::SurfaceShellDensityMap self, DensityHeader header) -> SurfaceShellDensityMap
1788  __init__(IMP::em::SurfaceShellDensityMap self, IMP::ParticlesTemp const & ps, float voxel_size, FloatKey mass_key, int num_shells=5) -> SurfaceShellDensityMap
1789  __init__(IMP::em::SurfaceShellDensityMap self, IMP::ParticlesTemp const & ps, float voxel_size, FloatKey mass_key) -> SurfaceShellDensityMap
1790  __init__(IMP::em::SurfaceShellDensityMap self, IMP::ParticlesTemp const & ps, float voxel_size) -> SurfaceShellDensityMap
1791  """
1792  this = _IMP_em.new_SurfaceShellDensityMap(*args)
1793  try:
1794  self.this.append(this)
1795  except:
1796  self.this = this
1797 
1798  def binarize(self, scene_val):
1799  """binarize(SurfaceShellDensityMap self, float scene_val)"""
1800  return _IMP_em.SurfaceShellDensityMap_binarize(self, scene_val)
1801 
1802 
1803  def has_background_neighbor(self, voxel_ind):
1804  """has_background_neighbor(SurfaceShellDensityMap self, long voxel_ind) -> bool"""
1805  return _IMP_em.SurfaceShellDensityMap_has_background_neighbor(self, voxel_ind)
1806 
1807  __swig_destroy__ = _IMP_em.delete_SurfaceShellDensityMap
1808  __del__ = lambda self: None
1809 
1810  def __str__(self):
1811  """__str__(SurfaceShellDensityMap self) -> std::string"""
1812  return _IMP_em.SurfaceShellDensityMap___str__(self)
1813 
1814 
1815  def __repr__(self):
1816  """__repr__(SurfaceShellDensityMap self) -> std::string"""
1817  return _IMP_em.SurfaceShellDensityMap___repr__(self)
1818 
1819 
1820  @staticmethod
1821  def get_from(o):
1822  return _object_cast_to_SurfaceShellDensityMap(o)
1823 
1824 SurfaceShellDensityMap_swigregister = _IMP_em.SurfaceShellDensityMap_swigregister
1825 SurfaceShellDensityMap_swigregister(SurfaceShellDensityMap)
1826 
1827 
1828 def get_coarse_cc_score(*args):
1829  """
1830  get_coarse_cc_score(DensityMap data, SampledDensityMap model_map, double scalefactor, bool recalc_rms=True, bool resample=True, IMP::FloatPair norm_factors) -> double
1831  get_coarse_cc_score(DensityMap data, SampledDensityMap model_map, double scalefactor, bool recalc_rms=True, bool resample=True) -> double
1832  get_coarse_cc_score(DensityMap data, SampledDensityMap model_map, double scalefactor, bool recalc_rms=True) -> double
1833  get_coarse_cc_score(DensityMap data, SampledDensityMap model_map, double scalefactor) -> double
1834  """
1835  return _IMP_em.get_coarse_cc_score(*args)
1836 
1837 def get_coarse_cc_coefficient(*args):
1838  """
1839  get_coarse_cc_coefficient(DensityMap grid1, DensityMap grid2, double grid2_voxel_data_threshold, bool allow_padding=False, IMP::FloatPair norm_factors) -> double
1840  get_coarse_cc_coefficient(DensityMap grid1, DensityMap grid2, double grid2_voxel_data_threshold, bool allow_padding=False) -> double
1841  get_coarse_cc_coefficient(DensityMap grid1, DensityMap grid2, double grid2_voxel_data_threshold) -> double
1842  """
1843  return _IMP_em.get_coarse_cc_coefficient(*args)
1844 
1845 def get_coarse_cc_local_coefficient(em_map, model_map, voxel_data_threshold):
1846  """get_coarse_cc_local_coefficient(DensityMap em_map, DensityMap model_map, double voxel_data_threshold) -> double"""
1847  return _IMP_em.get_coarse_cc_local_coefficient(em_map, model_map, voxel_data_threshold)
1848 class CoarseConvolution(object):
1849  """Proxy of C++ IMP::em::CoarseConvolution class"""
1850  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1851  __repr__ = _swig_repr
1852 
1853  def convolution(em_map, model_map, voxel_data_threshold, recalc_ccnormfac=True):
1854  """
1855  convolution(DensityMap em_map, DensityMap model_map, float voxel_data_threshold, bool recalc_ccnormfac=True) -> float
1856  convolution(DensityMap em_map, DensityMap model_map, float voxel_data_threshold) -> float
1857  """
1858  return _IMP_em.CoarseConvolution_convolution(em_map, model_map, voxel_data_threshold, recalc_ccnormfac)
1859 
1860  convolution = staticmethod(convolution)
1861 
1862  def __init__(self):
1863  """__init__(IMP::em::CoarseConvolution self) -> CoarseConvolution"""
1864  this = _IMP_em.new_CoarseConvolution()
1865  try:
1866  self.this.append(this)
1867  except:
1868  self.this = this
1869  __swig_destroy__ = _IMP_em.delete_CoarseConvolution
1870  __del__ = lambda self: None
1871 CoarseConvolution_swigregister = _IMP_em.CoarseConvolution_swigregister
1872 CoarseConvolution_swigregister(CoarseConvolution)
1873 
1874 def CoarseConvolution_convolution(em_map, model_map, voxel_data_threshold, recalc_ccnormfac=True):
1875  """
1876  convolution(DensityMap em_map, DensityMap model_map, float voxel_data_threshold, bool recalc_ccnormfac=True) -> float
1877  CoarseConvolution_convolution(DensityMap em_map, DensityMap model_map, float voxel_data_threshold) -> float
1878  """
1879  return _IMP_em.CoarseConvolution_convolution(em_map, model_map, voxel_data_threshold, recalc_ccnormfac)
1880 
1881 class CoarseCCatIntervals(IMP.Object):
1882  """Proxy of C++ IMP::em::CoarseCCatIntervals class"""
1883  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1884 
1885  def __init__(self, *args):
1886  """
1887  __init__(IMP::em::CoarseCCatIntervals self, int const & ncd) -> CoarseCCatIntervals
1888  __init__(IMP::em::CoarseCCatIntervals self) -> CoarseCCatIntervals
1889  """
1890  this = _IMP_em.new_CoarseCCatIntervals(*args)
1891  try:
1892  self.this.append(this)
1893  except:
1894  self.this = this
1895 
1896  def evaluate(self, em_map, model_map, deriv, scalefac, lderiv, eval_interval):
1897  """evaluate(CoarseCCatIntervals self, DensityMap em_map, SampledDensityMap model_map, IMP::algebra::Vector3Ds const & deriv, float scalefac, bool lderiv, unsigned long eval_interval) -> std::pair< double,IMP::algebra::Vector3Ds >"""
1898  return _IMP_em.CoarseCCatIntervals_evaluate(self, em_map, model_map, deriv, scalefac, lderiv, eval_interval)
1899 
1900 
1901  def get_version_info(self):
1902  """get_version_info(CoarseCCatIntervals self) -> VersionInfo"""
1903  return _IMP_em.CoarseCCatIntervals_get_version_info(self)
1904 
1905 
1906  def __str__(self):
1907  """__str__(CoarseCCatIntervals self) -> std::string"""
1908  return _IMP_em.CoarseCCatIntervals___str__(self)
1909 
1910 
1911  def __repr__(self):
1912  """__repr__(CoarseCCatIntervals self) -> std::string"""
1913  return _IMP_em.CoarseCCatIntervals___repr__(self)
1914 
1915 
1916  @staticmethod
1917  def get_from(o):
1918  return _object_cast_to_CoarseCCatIntervals(o)
1919 
1920 CoarseCCatIntervals_swigregister = _IMP_em.CoarseCCatIntervals_swigregister
1921 CoarseCCatIntervals_swigregister(CoarseCCatIntervals)
1922 
1923 
1925  """bayesem3d_get_distinct_and_counts(DensityMap em) -> std::map< double,int >"""
1926  return _IMP_em.bayesem3d_get_distinct_and_counts(em)
1927 
1929  """bayesem3d_get_cumulative_sum(DensityMap em) -> IMP::Floats"""
1930  return _IMP_em.bayesem3d_get_cumulative_sum(em)
1931 
1933  """bayesem3d_get_cumulative_sum_with_reference(DensityMap em) -> std::map< double,double >"""
1934  return _IMP_em.bayesem3d_get_cumulative_sum_with_reference(em)
1935 
1936 def bayesem3d_linear_interpolate(x_data, y_data, x, extrapolate):
1937  """bayesem3d_linear_interpolate(IMP::Floats const & x_data, IMP::Floats const & y_data, double x, bool extrapolate) -> double"""
1938  return _IMP_em.bayesem3d_linear_interpolate(x_data, y_data, x, extrapolate)
1939 
1940 def bayesem3d_get_logabssumexp(x, y, sx, sy):
1941  """bayesem3d_get_logabssumexp(double x, double y, double sx, double sy) -> IMP::FloatPair"""
1942  return _IMP_em.bayesem3d_get_logabssumexp(x, y, sx, sy)
1943 
1944 def bayesem3d_get_logabssumprodexp(x, y, wx, wy):
1945  """bayesem3d_get_logabssumprodexp(double x, double y, double wx, double wy) -> IMP::FloatPair"""
1946  return _IMP_em.bayesem3d_get_logabssumprodexp(x, y, wx, wy)
1947 
1948 def bayesem3d_get_logsumexp(x, y):
1949  """bayesem3d_get_logsumexp(double x, double y) -> double"""
1950  return _IMP_em.bayesem3d_get_logsumexp(x, y)
1951 
1952 def bayesem3d_get_logsumprodexp(x, y, wx, wy):
1953  """bayesem3d_get_logsumprodexp(double x, double y, double wx, double wy) -> double"""
1954  return _IMP_em.bayesem3d_get_logsumprodexp(x, y, wx, wy)
1955 
1956 def bayesem3d_get_em_density_squared(em, number_of_voxels):
1957  """bayesem3d_get_em_density_squared(DensityMap em, long number_of_voxels) -> IMP::FloatPair"""
1958  return _IMP_em.bayesem3d_get_em_density_squared(em, number_of_voxels)
1959 
1960 def bayesem3d_get_value(p, pt, mass_ii, kps):
1961  """bayesem3d_get_value(Particle p, Vector3D pt, double mass_ii, KernelParameters kps) -> std::vector< double,std::allocator< double > >"""
1962  return _IMP_em.bayesem3d_get_value(p, pt, mass_ii, kps)
1963 
1964 def bayesem3d_get_value_no_deriv(p, pt, mass_ii, kps):
1965  """bayesem3d_get_value_no_deriv(Particle p, Vector3D pt, double mass_ii, KernelParameters kps) -> std::vector< double,std::allocator< double > >"""
1966  return _IMP_em.bayesem3d_get_value_no_deriv(p, pt, mass_ii, kps)
1967 
1968 def bayesem3d_get_density_from_particle(em, ps, resolution, window_size=1.0):
1969  """
1970  bayesem3d_get_density_from_particle(DensityMap em, IMP::ParticlesTemp const & ps, double resolution, double const window_size=1.0) -> DensityMap
1971  bayesem3d_get_density_from_particle(DensityMap em, IMP::ParticlesTemp const & ps, double resolution) -> DensityMap
1972  """
1973  return _IMP_em.bayesem3d_get_density_from_particle(em, ps, resolution, window_size)
1974 
1976  """bayesem3d_get_cross_correlation_coefficient(DensityMap em1, DensityMap em2) -> double"""
1977  return _IMP_em.bayesem3d_get_cross_correlation_coefficient(em1, em2)
1978 
1979 def bayesem3d_get_score_and_derivative(em, ps, resolution, sigma, window_size=1.0):
1980  """
1981  bayesem3d_get_score_and_derivative(DensityMap em, IMP::ParticlesTemp const & ps, double resolution, double sigma, double const window_size=1.0) -> std::pair< double,IMP::algebra::Vector3Ds >
1982  bayesem3d_get_score_and_derivative(DensityMap em, IMP::ParticlesTemp const & ps, double resolution, double sigma) -> std::pair< double,IMP::algebra::Vector3Ds >
1983  """
1984  return _IMP_em.bayesem3d_get_score_and_derivative(em, ps, resolution, sigma, window_size)
1985 
1986 def bayesem3d_get_normalized_intensities(em, ps, resolution):
1987  """bayesem3d_get_normalized_intensities(DensityMap em, IMP::ParticlesTemp const & ps, double resolution)"""
1988  return _IMP_em.bayesem3d_get_normalized_intensities(em, ps, resolution)
1989 class FitRestraint(IMP.Restraint):
1990  """Proxy of C++ IMP::em::FitRestraint class"""
1991  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1992 
1993  def __init__(self, *args):
1994  """
1995  __init__(IMP::em::FitRestraint self, IMP::ParticlesTemp ps, DensityMap em_map, IMP::FloatPair norm_factors, FloatKey weight_key, float scale=1, bool use_rigid_bodies=True, IMP::em::KernelType kt) -> FitRestraint
1996  __init__(IMP::em::FitRestraint self, IMP::ParticlesTemp ps, DensityMap em_map, IMP::FloatPair norm_factors, FloatKey weight_key, float scale=1, bool use_rigid_bodies=True) -> FitRestraint
1997  __init__(IMP::em::FitRestraint self, IMP::ParticlesTemp ps, DensityMap em_map, IMP::FloatPair norm_factors, FloatKey weight_key, float scale=1) -> FitRestraint
1998  __init__(IMP::em::FitRestraint self, IMP::ParticlesTemp ps, DensityMap em_map, IMP::FloatPair norm_factors, FloatKey weight_key) -> FitRestraint
1999  __init__(IMP::em::FitRestraint self, IMP::ParticlesTemp ps, DensityMap em_map, IMP::FloatPair norm_factors) -> FitRestraint
2000  __init__(IMP::em::FitRestraint self, IMP::ParticlesTemp ps, DensityMap em_map) -> FitRestraint
2001  """
2002  this = _IMP_em.new_FitRestraint(*args)
2003  try:
2004  self.this.append(this)
2005  except:
2006  self.this = this
2007 
2008  def get_model_dens_map(self):
2009  """get_model_dens_map(FitRestraint self) -> SampledDensityMap"""
2010  return _IMP_em.FitRestraint_get_model_dens_map(self)
2011 
2012 
2013  def set_scale_factor(self, scale):
2014  """set_scale_factor(FitRestraint self, float scale)"""
2015  return _IMP_em.FitRestraint_set_scale_factor(self, scale)
2016 
2017 
2018  def get_scale_factor(self):
2019  """get_scale_factor(FitRestraint self) -> float"""
2020  return _IMP_em.FitRestraint_get_scale_factor(self)
2021 
2022 
2023  def do_get_inputs(self):
2024  """do_get_inputs(FitRestraint self) -> IMP::ModelObjectsTemp"""
2025  return _IMP_em.FitRestraint_do_get_inputs(self)
2026 
2027 
2028  def get_version_info(self):
2029  """get_version_info(FitRestraint self) -> VersionInfo"""
2030  return _IMP_em.FitRestraint_get_version_info(self)
2031 
2032 
2033  def __str__(self):
2034  """__str__(FitRestraint self) -> std::string"""
2035  return _IMP_em.FitRestraint___str__(self)
2036 
2037 
2038  def __repr__(self):
2039  """__repr__(FitRestraint self) -> std::string"""
2040  return _IMP_em.FitRestraint___repr__(self)
2041 
2042 
2043  @staticmethod
2044  def get_from(o):
2045  return _object_cast_to_FitRestraint(o)
2046 
2047 FitRestraint_swigregister = _IMP_em.FitRestraint_swigregister
2048 FitRestraint_swigregister(FitRestraint)
2049 
2050 class FitRestraintBayesEM3D(IMP.Restraint):
2051  """Proxy of C++ IMP::em::FitRestraintBayesEM3D class"""
2052  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2053 
2054  def __init__(self, *args):
2055  """
2056  __init__(IMP::em::FitRestraintBayesEM3D self, IMP::ParticlesTemp ps, DensityMap em_map, FloatKey weight_key, bool use_rigid_bodies=True, double sigma=.1, double window_size=1.0) -> FitRestraintBayesEM3D
2057  __init__(IMP::em::FitRestraintBayesEM3D self, IMP::ParticlesTemp ps, DensityMap em_map, FloatKey weight_key, bool use_rigid_bodies=True, double sigma=.1) -> FitRestraintBayesEM3D
2058  __init__(IMP::em::FitRestraintBayesEM3D self, IMP::ParticlesTemp ps, DensityMap em_map, FloatKey weight_key, bool use_rigid_bodies=True) -> FitRestraintBayesEM3D
2059  __init__(IMP::em::FitRestraintBayesEM3D self, IMP::ParticlesTemp ps, DensityMap em_map, FloatKey weight_key) -> FitRestraintBayesEM3D
2060  __init__(IMP::em::FitRestraintBayesEM3D self, IMP::ParticlesTemp ps, DensityMap em_map) -> FitRestraintBayesEM3D
2061  """
2062  this = _IMP_em.new_FitRestraintBayesEM3D(*args)
2063  try:
2064  self.this.append(this)
2065  except:
2066  self.this = this
2067 
2068  def do_get_inputs(self):
2069  """do_get_inputs(FitRestraintBayesEM3D self) -> IMP::ModelObjectsTemp"""
2070  return _IMP_em.FitRestraintBayesEM3D_do_get_inputs(self)
2071 
2072 
2073  def get_version_info(self):
2074  """get_version_info(FitRestraintBayesEM3D self) -> VersionInfo"""
2075  return _IMP_em.FitRestraintBayesEM3D_get_version_info(self)
2076 
2077 
2078  def __str__(self):
2079  """__str__(FitRestraintBayesEM3D self) -> std::string"""
2080  return _IMP_em.FitRestraintBayesEM3D___str__(self)
2081 
2082 
2083  def __repr__(self):
2084  """__repr__(FitRestraintBayesEM3D self) -> std::string"""
2085  return _IMP_em.FitRestraintBayesEM3D___repr__(self)
2086 
2087 
2088  @staticmethod
2089  def get_from(o):
2090  return _object_cast_to_FitRestraintBayesEM3D(o)
2091 
2092 FitRestraintBayesEM3D_swigregister = _IMP_em.FitRestraintBayesEM3D_swigregister
2093 FitRestraintBayesEM3D_swigregister(FitRestraintBayesEM3D)
2094 
2095 
2096 def density2particles(dmap, threshold, m, step=1):
2097  """
2098  density2particles(DensityMap dmap, IMP::Float threshold, Model m, int step=1) -> IMP::Particles
2099  density2particles(DensityMap dmap, IMP::Float threshold, Model m) -> IMP::Particles
2100  """
2101  return _IMP_em.density2particles(dmap, threshold, m, step)
2102 
2103 def density2vectors(dmap, threshold):
2104  """density2vectors(DensityMap dmap, IMP::Float threshold) -> IMP::algebra::Vector3Ds"""
2105  return _IMP_em.density2vectors(dmap, threshold)
2106 
2107 def particles2density(*args):
2108  """
2109  particles2density(IMP::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix, int sig_cutoff=3, FloatKey weight_key) -> SampledDensityMap
2110  particles2density(IMP::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix, int sig_cutoff=3) -> SampledDensityMap
2111  particles2density(IMP::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix) -> SampledDensityMap
2112  """
2113  return _IMP_em.particles2density(*args)
2114 
2115 def particles2binarized_density(*args):
2116  """
2117  particles2binarized_density(IMP::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix, int sig_cutoff=3, FloatKey weight_key) -> SampledDensityMap
2118  particles2binarized_density(IMP::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix, int sig_cutoff=3) -> SampledDensityMap
2119  particles2binarized_density(IMP::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix) -> SampledDensityMap
2120  """
2121  return _IMP_em.particles2binarized_density(*args)
2122 
2123 def particles2surface(*args):
2124  """
2125  particles2surface(IMP::ParticlesTemp const & ps, IMP::Float apix, FloatKey weight_key) -> SurfaceShellDensityMap
2126  particles2surface(IMP::ParticlesTemp const & ps, IMP::Float apix) -> SurfaceShellDensityMap
2127  """
2128  return _IMP_em.particles2surface(*args)
2129 
2130 def calculate_intersection_score(d1, d2):
2131  """calculate_intersection_score(SurfaceShellDensityMap d1, SurfaceShellDensityMap d2) -> IMP::Float"""
2132  return _IMP_em.calculate_intersection_score(d1, d2)
2133 class SpiderHeader(object):
2134  """Proxy of C++ IMP::em::SpiderHeader class"""
2135  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2136  __repr__ = _swig_repr
2137  fNslice = _swig_property(_IMP_em.SpiderHeader_fNslice_get, _IMP_em.SpiderHeader_fNslice_set)
2138  fNrow = _swig_property(_IMP_em.SpiderHeader_fNrow_get, _IMP_em.SpiderHeader_fNrow_set)
2139  fNrec = _swig_property(_IMP_em.SpiderHeader_fNrec_get, _IMP_em.SpiderHeader_fNrec_set)
2140  fNlabel = _swig_property(_IMP_em.SpiderHeader_fNlabel_get, _IMP_em.SpiderHeader_fNlabel_set)
2141  fIform = _swig_property(_IMP_em.SpiderHeader_fIform_get, _IMP_em.SpiderHeader_fIform_set)
2142  fImami = _swig_property(_IMP_em.SpiderHeader_fImami_get, _IMP_em.SpiderHeader_fImami_set)
2143  fFmax = _swig_property(_IMP_em.SpiderHeader_fFmax_get, _IMP_em.SpiderHeader_fFmax_set)
2144  fFmin = _swig_property(_IMP_em.SpiderHeader_fFmin_get, _IMP_em.SpiderHeader_fFmin_set)
2145  fAv = _swig_property(_IMP_em.SpiderHeader_fAv_get, _IMP_em.SpiderHeader_fAv_set)
2146  fSig = _swig_property(_IMP_em.SpiderHeader_fSig_get, _IMP_em.SpiderHeader_fSig_set)
2147  fIhist = _swig_property(_IMP_em.SpiderHeader_fIhist_get, _IMP_em.SpiderHeader_fIhist_set)
2148  fNcol = _swig_property(_IMP_em.SpiderHeader_fNcol_get, _IMP_em.SpiderHeader_fNcol_set)
2149  fLabrec = _swig_property(_IMP_em.SpiderHeader_fLabrec_get, _IMP_em.SpiderHeader_fLabrec_set)
2150  fIangle = _swig_property(_IMP_em.SpiderHeader_fIangle_get, _IMP_em.SpiderHeader_fIangle_set)
2151  fPhi = _swig_property(_IMP_em.SpiderHeader_fPhi_get, _IMP_em.SpiderHeader_fPhi_set)
2152  fTheta = _swig_property(_IMP_em.SpiderHeader_fTheta_get, _IMP_em.SpiderHeader_fTheta_set)
2153  fPsi = _swig_property(_IMP_em.SpiderHeader_fPsi_get, _IMP_em.SpiderHeader_fPsi_set)
2154  fXoff = _swig_property(_IMP_em.SpiderHeader_fXoff_get, _IMP_em.SpiderHeader_fXoff_set)
2155  fYoff = _swig_property(_IMP_em.SpiderHeader_fYoff_get, _IMP_em.SpiderHeader_fYoff_set)
2156  fZoff = _swig_property(_IMP_em.SpiderHeader_fZoff_get, _IMP_em.SpiderHeader_fZoff_set)
2157  fScale = _swig_property(_IMP_em.SpiderHeader_fScale_get, _IMP_em.SpiderHeader_fScale_set)
2158  fLabbyt = _swig_property(_IMP_em.SpiderHeader_fLabbyt_get, _IMP_em.SpiderHeader_fLabbyt_set)
2159  fLenbyt = _swig_property(_IMP_em.SpiderHeader_fLenbyt_get, _IMP_em.SpiderHeader_fLenbyt_set)
2160  fNothing = _swig_property(_IMP_em.SpiderHeader_fNothing_get, _IMP_em.SpiderHeader_fNothing_set)
2161  fFlag = _swig_property(_IMP_em.SpiderHeader_fFlag_get, _IMP_em.SpiderHeader_fFlag_set)
2162  fPhi1 = _swig_property(_IMP_em.SpiderHeader_fPhi1_get, _IMP_em.SpiderHeader_fPhi1_set)
2163  fTheta1 = _swig_property(_IMP_em.SpiderHeader_fTheta1_get, _IMP_em.SpiderHeader_fTheta1_set)
2164  fPsi1 = _swig_property(_IMP_em.SpiderHeader_fPsi1_get, _IMP_em.SpiderHeader_fPsi1_set)
2165  fPhi2 = _swig_property(_IMP_em.SpiderHeader_fPhi2_get, _IMP_em.SpiderHeader_fPhi2_set)
2166  fTheta2 = _swig_property(_IMP_em.SpiderHeader_fTheta2_get, _IMP_em.SpiderHeader_fTheta2_set)
2167  fPsi2 = _swig_property(_IMP_em.SpiderHeader_fPsi2_get, _IMP_em.SpiderHeader_fPsi2_set)
2168  fGeo_matrix = _swig_property(_IMP_em.SpiderHeader_fGeo_matrix_get, _IMP_em.SpiderHeader_fGeo_matrix_set)
2169  fAngle1 = _swig_property(_IMP_em.SpiderHeader_fAngle1_get, _IMP_em.SpiderHeader_fAngle1_set)
2170  fr1 = _swig_property(_IMP_em.SpiderHeader_fr1_get, _IMP_em.SpiderHeader_fr1_set)
2171  fr2 = _swig_property(_IMP_em.SpiderHeader_fr2_get, _IMP_em.SpiderHeader_fr2_set)
2172  RTflag = _swig_property(_IMP_em.SpiderHeader_RTflag_get, _IMP_em.SpiderHeader_RTflag_set)
2173  Astart = _swig_property(_IMP_em.SpiderHeader_Astart_get, _IMP_em.SpiderHeader_Astart_set)
2174  Aend = _swig_property(_IMP_em.SpiderHeader_Aend_get, _IMP_em.SpiderHeader_Aend_set)
2175  Ainc = _swig_property(_IMP_em.SpiderHeader_Ainc_get, _IMP_em.SpiderHeader_Ainc_set)
2176  Rsigma = _swig_property(_IMP_em.SpiderHeader_Rsigma_get, _IMP_em.SpiderHeader_Rsigma_set)
2177  Tstart = _swig_property(_IMP_em.SpiderHeader_Tstart_get, _IMP_em.SpiderHeader_Tstart_set)
2178  Tend = _swig_property(_IMP_em.SpiderHeader_Tend_get, _IMP_em.SpiderHeader_Tend_set)
2179  Tinc = _swig_property(_IMP_em.SpiderHeader_Tinc_get, _IMP_em.SpiderHeader_Tinc_set)
2180  Weight = _swig_property(_IMP_em.SpiderHeader_Weight_get, _IMP_em.SpiderHeader_Weight_set)
2181  Flip = _swig_property(_IMP_em.SpiderHeader_Flip_get, _IMP_em.SpiderHeader_Flip_set)
2182  empty = _swig_property(_IMP_em.SpiderHeader_empty_get, _IMP_em.SpiderHeader_empty_set)
2183  szIDat = _swig_property(_IMP_em.SpiderHeader_szIDat_get, _IMP_em.SpiderHeader_szIDat_set)
2184  szITim = _swig_property(_IMP_em.SpiderHeader_szITim_get, _IMP_em.SpiderHeader_szITim_set)
2185  szITit = _swig_property(_IMP_em.SpiderHeader_szITit_get, _IMP_em.SpiderHeader_szITit_set)
2186 
2187  def show(self, out):
2188  """show(SpiderHeader self, _ostream out)"""
2189  return _IMP_em.SpiderHeader_show(self, out)
2190 
2191 
2192  def __init__(self):
2193  """__init__(IMP::em::SpiderHeader self) -> SpiderHeader"""
2194  this = _IMP_em.new_SpiderHeader()
2195  try:
2196  self.this.append(this)
2197  except:
2198  self.this = this
2199  __swig_destroy__ = _IMP_em.delete_SpiderHeader
2200  __del__ = lambda self: None
2201 SpiderHeader_swigregister = _IMP_em.SpiderHeader_swigregister
2202 SpiderHeader_swigregister(SpiderHeader)
2203 
2204 class ImageHeader(object):
2205  """Proxy of C++ IMP::em::ImageHeader class"""
2206  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2207  __repr__ = _swig_repr
2208  IMG_BYTE = _IMP_em.ImageHeader_IMG_BYTE
2209  IMG_IMPEM = _IMP_em.ImageHeader_IMG_IMPEM
2210  IMG_INT = _IMP_em.ImageHeader_IMG_INT
2211  VOL_BYTE = _IMP_em.ImageHeader_VOL_BYTE
2212  VOL_IMPEM = _IMP_em.ImageHeader_VOL_IMPEM
2213  VOL_INT = _IMP_em.ImageHeader_VOL_INT
2214  IMG_FOURIER = _IMP_em.ImageHeader_IMG_FOURIER
2215  VOL_FOURIER = _IMP_em.ImageHeader_VOL_FOURIER
2216 
2217  def __init__(self, *args):
2218  """
2219  __init__(IMP::em::ImageHeader self) -> ImageHeader
2220  __init__(IMP::em::ImageHeader self, IMP::em::ImageHeader::img_type im) -> ImageHeader
2221  __init__(IMP::em::ImageHeader self, float im) -> ImageHeader
2222  """
2223  this = _IMP_em.new_ImageHeader(*args)
2224  try:
2225  self.this.append(this)
2226  except:
2227  self.this = this
2228 
2229  def get_image_type(self):
2230  """get_image_type(ImageHeader self) -> float"""
2231  return _IMP_em.ImageHeader_get_image_type(self)
2232 
2233 
2234  def set_image_type(self, *args):
2235  """
2236  set_image_type(ImageHeader self, IMP::em::ImageHeader::img_type im)
2237  set_image_type(ImageHeader self, float im)
2238  """
2239  return _IMP_em.ImageHeader_set_image_type(self, *args)
2240 
2241 
2242  def do_show(self, out):
2243  """do_show(ImageHeader self, _ostream out)"""
2244  return _IMP_em.ImageHeader_do_show(self, out)
2245 
2246 
2247  def show(self, *args):
2248  """
2249  show(ImageHeader self, _ostream out)
2250  show(ImageHeader self)
2251  """
2252  return _IMP_em.ImageHeader_show(self, *args)
2253 
2254 
2255  def print_hard(self, out):
2256  """print_hard(ImageHeader self, _ostream out)"""
2257  return _IMP_em.ImageHeader_print_hard(self, out)
2258 
2259 
2260  def show_projection_params(self, out):
2261  """show_projection_params(ImageHeader self, _ostream out)"""
2262  return _IMP_em.ImageHeader_show_projection_params(self, out)
2263 
2264 
2265  def read(self, *args):
2266  """
2267  read(ImageHeader self, IMP::String const filename, bool skip_type_check=False, bool force_reversed=False, bool skip_extra_checkings=False) -> int
2268  read(ImageHeader self, IMP::String const filename, bool skip_type_check=False, bool force_reversed=False) -> int
2269  read(ImageHeader self, IMP::String const filename, bool skip_type_check=False) -> int
2270  read(ImageHeader self, IMP::String const filename) -> int
2271  read(ImageHeader self, std::ifstream & f, bool skip_type_check=False, bool force_reversed=False, bool skip_extra_checkings=False) -> bool
2272  read(ImageHeader self, std::ifstream & f, bool skip_type_check=False, bool force_reversed=False) -> bool
2273  read(ImageHeader self, std::ifstream & f, bool skip_type_check=False) -> bool
2274  read(ImageHeader self, std::ifstream & f) -> bool
2275  """
2276  return _IMP_em.ImageHeader_read(self, *args)
2277 
2278 
2279  def write(self, *args):
2280  """
2281  write(ImageHeader self, IMP::String const & filename, bool force_reversed=False)
2282  write(ImageHeader self, IMP::String const & filename)
2283  write(ImageHeader self, std::ofstream & f, bool force_reversed=False)
2284  write(ImageHeader self, std::ofstream & f)
2285  """
2286  return _IMP_em.ImageHeader_write(self, *args)
2287 
2288 
2289  def clear(self):
2290  """clear(ImageHeader self)"""
2291  return _IMP_em.ImageHeader_clear(self)
2292 
2293 
2294  def set_header(self):
2295  """set_header(ImageHeader self)"""
2296  return _IMP_em.ImageHeader_set_header(self)
2297 
2298 
2299  def get_reversed(self):
2300  """get_reversed(ImageHeader self) -> bool"""
2301  return _IMP_em.ImageHeader_get_reversed(self)
2302 
2303 
2304  def set_reversed(self, value):
2305  """set_reversed(ImageHeader self, bool value)"""
2306  return _IMP_em.ImageHeader_set_reversed(self, value)
2307 
2308 
2309  def get_number_of_slices(self):
2310  """get_number_of_slices(ImageHeader self) -> unsigned int"""
2311  return _IMP_em.ImageHeader_get_number_of_slices(self)
2312 
2313 
2314  def set_number_of_slices(self, n):
2315  """set_number_of_slices(ImageHeader self, unsigned int n)"""
2316  return _IMP_em.ImageHeader_set_number_of_slices(self, n)
2317 
2318 
2319  def get_number_of_rows(self):
2320  """get_number_of_rows(ImageHeader self) -> unsigned int"""
2321  return _IMP_em.ImageHeader_get_number_of_rows(self)
2322 
2323 
2324  def set_number_of_rows(self, n):
2325  """set_number_of_rows(ImageHeader self, unsigned int n)"""
2326  return _IMP_em.ImageHeader_set_number_of_rows(self, n)
2327 
2328 
2329  def get_number_of_columns(self):
2330  """get_number_of_columns(ImageHeader self) -> unsigned int"""
2331  return _IMP_em.ImageHeader_get_number_of_columns(self)
2332 
2333 
2334  def set_number_of_columns(self, n):
2335  """set_number_of_columns(ImageHeader self, unsigned int n)"""
2336  return _IMP_em.ImageHeader_set_number_of_columns(self, n)
2337 
2338 
2339  def get_old_rot(self):
2340  """get_old_rot(ImageHeader self) -> float"""
2341  return _IMP_em.ImageHeader_get_old_rot(self)
2342 
2343 
2344  def set_old_rot(self, value):
2345  """set_old_rot(ImageHeader self, float value)"""
2346  return _IMP_em.ImageHeader_set_old_rot(self, value)
2347 
2348 
2349  def get_fAngle1(self):
2350  """get_fAngle1(ImageHeader self) -> float"""
2351  return _IMP_em.ImageHeader_get_fAngle1(self)
2352 
2353 
2354  def set_fAngle1(self, value):
2355  """set_fAngle1(ImageHeader self, float value)"""
2356  return _IMP_em.ImageHeader_set_fAngle1(self, value)
2357 
2358 
2359  def get_Scale(self):
2360  """get_Scale(ImageHeader self) -> float"""
2361  return _IMP_em.ImageHeader_get_Scale(self)
2362 
2363 
2364  def set_Scale(self, value):
2365  """set_Scale(ImageHeader self, float value)"""
2366  return _IMP_em.ImageHeader_set_Scale(self, value)
2367 
2368 
2369  def get_Flip(self):
2370  """get_Flip(ImageHeader self) -> float"""
2371  return _IMP_em.ImageHeader_get_Flip(self)
2372 
2373 
2374  def set_Flip(self, value):
2375  """set_Flip(ImageHeader self, float value)"""
2376  return _IMP_em.ImageHeader_set_Flip(self, value)
2377 
2378 
2379  def get_Weight(self):
2380  """get_Weight(ImageHeader self) -> float"""
2381  return _IMP_em.ImageHeader_get_Weight(self)
2382 
2383 
2384  def set_Weight(self, value):
2385  """set_Weight(ImageHeader self, float value)"""
2386  return _IMP_em.ImageHeader_set_Weight(self, value)
2387 
2388 
2389  def get_fNrec(self):
2390  """get_fNrec(ImageHeader self) -> float"""
2391  return _IMP_em.ImageHeader_get_fNrec(self)
2392 
2393 
2394  def set_fNrec(self, value):
2395  """set_fNrec(ImageHeader self, float value)"""
2396  return _IMP_em.ImageHeader_set_fNrec(self, value)
2397 
2398 
2399  def get_fNlabel(self):
2400  """get_fNlabel(ImageHeader self) -> float"""
2401  return _IMP_em.ImageHeader_get_fNlabel(self)
2402 
2403 
2404  def set_fNlabel(self, value):
2405  """set_fNlabel(ImageHeader self, float value)"""
2406  return _IMP_em.ImageHeader_set_fNlabel(self, value)
2407 
2408 
2409  def get_fIform(self):
2410  """get_fIform(ImageHeader self) -> float"""
2411  return _IMP_em.ImageHeader_get_fIform(self)
2412 
2413 
2414  def set_fIform(self, value):
2415  """set_fIform(ImageHeader self, float value)"""
2416  return _IMP_em.ImageHeader_set_fIform(self, value)
2417 
2418 
2419  def get_fImami(self):
2420  """get_fImami(ImageHeader self) -> float"""
2421  return _IMP_em.ImageHeader_get_fImami(self)
2422 
2423 
2424  def set_fImami(self, value):
2425  """set_fImami(ImageHeader self, float value)"""
2426  return _IMP_em.ImageHeader_set_fImami(self, value)
2427 
2428 
2429  def get_fFmax(self):
2430  """get_fFmax(ImageHeader self) -> float"""
2431  return _IMP_em.ImageHeader_get_fFmax(self)
2432 
2433 
2434  def set_fFmax(self, value):
2435  """set_fFmax(ImageHeader self, float value)"""
2436  return _IMP_em.ImageHeader_set_fFmax(self, value)
2437 
2438 
2439  def get_fFmin(self):
2440  """get_fFmin(ImageHeader self) -> float"""
2441  return _IMP_em.ImageHeader_get_fFmin(self)
2442 
2443 
2444  def set_fFmin(self, value):
2445  """set_fFmin(ImageHeader self, float value)"""
2446  return _IMP_em.ImageHeader_set_fFmin(self, value)
2447 
2448 
2449  def get_fAv(self):
2450  """get_fAv(ImageHeader self) -> float"""
2451  return _IMP_em.ImageHeader_get_fAv(self)
2452 
2453 
2454  def set_fAv(self, value):
2455  """set_fAv(ImageHeader self, float value)"""
2456  return _IMP_em.ImageHeader_set_fAv(self, value)
2457 
2458 
2459  def get_fSig(self):
2460  """get_fSig(ImageHeader self) -> float"""
2461  return _IMP_em.ImageHeader_get_fSig(self)
2462 
2463 
2464  def set_fSig(self, value):
2465  """set_fSig(ImageHeader self, float value)"""
2466  return _IMP_em.ImageHeader_set_fSig(self, value)
2467 
2468 
2469  def get_fIhist(self):
2470  """get_fIhist(ImageHeader self) -> float"""
2471  return _IMP_em.ImageHeader_get_fIhist(self)
2472 
2473 
2474  def set_fIhist(self, value):
2475  """set_fIhist(ImageHeader self, float value)"""
2476  return _IMP_em.ImageHeader_set_fIhist(self, value)
2477 
2478 
2479  def get_fLabrec(self):
2480  """get_fLabrec(ImageHeader self) -> float"""
2481  return _IMP_em.ImageHeader_get_fLabrec(self)
2482 
2483 
2484  def set_fLabrec(self, value):
2485  """set_fLabrec(ImageHeader self, float value)"""
2486  return _IMP_em.ImageHeader_set_fLabrec(self, value)
2487 
2488 
2489  def get_fIangle(self):
2490  """get_fIangle(ImageHeader self) -> float"""
2491  return _IMP_em.ImageHeader_get_fIangle(self)
2492 
2493 
2494  def set_fIangle(self, value):
2495  """set_fIangle(ImageHeader self, float value)"""
2496  return _IMP_em.ImageHeader_set_fIangle(self, value)
2497 
2498 
2499  def get_origin(self):
2500  """get_origin(ImageHeader self) -> Vector3D"""
2501  return _IMP_em.ImageHeader_get_origin(self)
2502 
2503 
2504  def set_origin(self, *args):
2505  """
2506  set_origin(ImageHeader self, Vector3D v)
2507  set_origin(ImageHeader self, Vector2D v)
2508  """
2509  return _IMP_em.ImageHeader_set_origin(self, *args)
2510 
2511 
2512  def get_object_pixel_size(self):
2513  """get_object_pixel_size(ImageHeader self) -> float"""
2514  return _IMP_em.ImageHeader_get_object_pixel_size(self)
2515 
2516 
2517  def set_object_pixel_size(self, value):
2518  """set_object_pixel_size(ImageHeader self, float value)"""
2519  return _IMP_em.ImageHeader_set_object_pixel_size(self, value)
2520 
2521 
2522  def get_fLabbyt(self):
2523  """get_fLabbyt(ImageHeader self) -> float"""
2524  return _IMP_em.ImageHeader_get_fLabbyt(self)
2525 
2526 
2527  def set_fLabbyt(self, value):
2528  """set_fLabbyt(ImageHeader self, float value)"""
2529  return _IMP_em.ImageHeader_set_fLabbyt(self, value)
2530 
2531 
2532  def get_fLenbyt(self):
2533  """get_fLenbyt(ImageHeader self) -> float"""
2534  return _IMP_em.ImageHeader_get_fLenbyt(self)
2535 
2536 
2537  def set_fLenbyt(self, value):
2538  """set_fLenbyt(ImageHeader self, float value)"""
2539  return _IMP_em.ImageHeader_set_fLenbyt(self, value)
2540 
2541 
2542  def get_fGeo_matrix(self, i, j):
2543  """get_fGeo_matrix(ImageHeader self, unsigned int i, unsigned int j) -> double"""
2544  return _IMP_em.ImageHeader_get_fGeo_matrix(self, i, j)
2545 
2546 
2547  def get_fFlag(self):
2548  """get_fFlag(ImageHeader self) -> float"""
2549  return _IMP_em.ImageHeader_get_fFlag(self)
2550 
2551 
2552  def set_fFlag(self, value):
2553  """set_fFlag(ImageHeader self, float value)"""
2554  return _IMP_em.ImageHeader_set_fFlag(self, value)
2555 
2556 
2557  def get_euler_angles(self):
2558  """get_euler_angles(ImageHeader self) -> Vector3D"""
2559  return _IMP_em.ImageHeader_get_euler_angles(self)
2560 
2561 
2562  def get_euler_angles1(self):
2563  """get_euler_angles1(ImageHeader self) -> Vector3D"""
2564  return _IMP_em.ImageHeader_get_euler_angles1(self)
2565 
2566 
2567  def get_euler_angles2(self):
2568  """get_euler_angles2(ImageHeader self) -> Vector3D"""
2569  return _IMP_em.ImageHeader_get_euler_angles2(self)
2570 
2571 
2572  def set_euler_angles(self, euler):
2573  """set_euler_angles(ImageHeader self, Vector3D euler)"""
2574  return _IMP_em.ImageHeader_set_euler_angles(self, euler)
2575 
2576 
2577  def set_euler_angles1(self, euler):
2578  """set_euler_angles1(ImageHeader self, Vector3D euler)"""
2579  return _IMP_em.ImageHeader_set_euler_angles1(self, euler)
2580 
2581 
2582  def set_euler_angles2(self, euler):
2583  """set_euler_angles2(ImageHeader self, Vector3D euler)"""
2584  return _IMP_em.ImageHeader_set_euler_angles2(self, euler)
2585 
2586 
2587  def is_normalized(self):
2588  """is_normalized(ImageHeader self) -> bool"""
2589  return _IMP_em.ImageHeader_is_normalized(self)
2590 
2591 
2592  def set_date(self):
2593  """set_date(ImageHeader self)"""
2594  return _IMP_em.ImageHeader_set_date(self)
2595 
2596 
2597  def set_time(self):
2598  """set_time(ImageHeader self)"""
2599  return _IMP_em.ImageHeader_set_time(self)
2600 
2601 
2602  def set_title(self, newName):
2603  """set_title(ImageHeader self, IMP::String newName)"""
2604  return _IMP_em.ImageHeader_set_title(self, newName)
2605 
2606  __swig_destroy__ = _IMP_em.delete_ImageHeader
2607  __del__ = lambda self: None
2608 ImageHeader_swigregister = _IMP_em.ImageHeader_swigregister
2609 ImageHeader_swigregister(ImageHeader)
2610 
2611 class SpiderMapReaderWriter(MapReaderWriter):
2612  """Proxy of C++ IMP::em::SpiderMapReaderWriter class"""
2613  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2614  filename_ = _swig_property(_IMP_em.SpiderMapReaderWriter_filename__get, _IMP_em.SpiderMapReaderWriter_filename__set)
2615  skip_type_check_ = _swig_property(_IMP_em.SpiderMapReaderWriter_skip_type_check__get, _IMP_em.SpiderMapReaderWriter_skip_type_check__set)
2616  force_reversed_ = _swig_property(_IMP_em.SpiderMapReaderWriter_force_reversed__get, _IMP_em.SpiderMapReaderWriter_force_reversed__set)
2617  skip_extra_checkings_ = _swig_property(_IMP_em.SpiderMapReaderWriter_skip_extra_checkings__get, _IMP_em.SpiderMapReaderWriter_skip_extra_checkings__set)
2618 
2619  def __init__(self, *args):
2620  """
2621  __init__(IMP::em::SpiderMapReaderWriter self) -> SpiderMapReaderWriter
2622  __init__(IMP::em::SpiderMapReaderWriter self, IMP::String filename, bool skip_type_check, bool force_reversed, bool skip_extra_checkings) -> SpiderMapReaderWriter
2623  """
2624  this = _IMP_em.new_SpiderMapReaderWriter(*args)
2625  try:
2626  self.this.append(this)
2627  except:
2628  self.this = this
2629 
2630  def __str__(self):
2631  """__str__(SpiderMapReaderWriter self) -> std::string"""
2632  return _IMP_em.SpiderMapReaderWriter___str__(self)
2633 
2634 
2635  def __repr__(self):
2636  """__repr__(SpiderMapReaderWriter self) -> std::string"""
2637  return _IMP_em.SpiderMapReaderWriter___repr__(self)
2638 
2639 
2640  @staticmethod
2641  def get_from(o):
2642  return _object_cast_to_SpiderMapReaderWriter(o)
2643 
2644 SpiderMapReaderWriter_swigregister = _IMP_em.SpiderMapReaderWriter_swigregister
2645 SpiderMapReaderWriter_swigregister(SpiderMapReaderWriter)
2646 
2647 class FittingSolutions(object):
2648  """Proxy of C++ IMP::em::FittingSolutions class"""
2649  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2650 
2651  def __init__(self):
2652  """__init__(IMP::em::FittingSolutions self) -> FittingSolutions"""
2653  this = _IMP_em.new_FittingSolutions()
2654  try:
2655  self.this.append(this)
2656  except:
2657  self.this = this
2658 
2659  def get_number_of_solutions(self):
2660  """get_number_of_solutions(FittingSolutions self) -> int"""
2661  return _IMP_em.FittingSolutions_get_number_of_solutions(self)
2662 
2663 
2664  def get_transformation(self, i):
2665  """get_transformation(FittingSolutions self, unsigned int i) -> Transformation3D"""
2666  return _IMP_em.FittingSolutions_get_transformation(self, i)
2667 
2668 
2669  def get_score(self, i):
2670  """get_score(FittingSolutions self, unsigned int i) -> IMP::Float"""
2671  return _IMP_em.FittingSolutions_get_score(self, i)
2672 
2673 
2674  def set_score(self, i, score):
2675  """set_score(FittingSolutions self, unsigned int i, IMP::Float score)"""
2676  return _IMP_em.FittingSolutions_set_score(self, i, score)
2677 
2678 
2679  def add_solution(self, t, score):
2680  """add_solution(FittingSolutions self, Transformation3D t, IMP::Float score)"""
2681  return _IMP_em.FittingSolutions_add_solution(self, t, score)
2682 
2683 
2684  def sort(self, reverse=False):
2685  """
2686  sort(FittingSolutions self, bool reverse=False)
2687  sort(FittingSolutions self)
2688  """
2689  return _IMP_em.FittingSolutions_sort(self, reverse)
2690 
2691 
2692  def multiply(self, t):
2693  """multiply(FittingSolutions self, Transformation3D t)"""
2694  return _IMP_em.FittingSolutions_multiply(self, t)
2695 
2696 
2697  def get_transformations(self):
2698  """get_transformations(FittingSolutions self) -> IMP::algebra::Transformation3Ds"""
2699  return _IMP_em.FittingSolutions_get_transformations(self)
2700 
2701 
2702  def show(self, *args):
2703  """
2704  show(FittingSolutions self, _ostream out)
2705  show(FittingSolutions self)
2706  """
2707  return _IMP_em.FittingSolutions_show(self, *args)
2708 
2709 
2710  def __str__(self):
2711  """__str__(FittingSolutions self) -> std::string"""
2712  return _IMP_em.FittingSolutions___str__(self)
2713 
2714 
2715  def __repr__(self):
2716  """__repr__(FittingSolutions self) -> std::string"""
2717  return _IMP_em.FittingSolutions___repr__(self)
2718 
2719  __swig_destroy__ = _IMP_em.delete_FittingSolutions
2720  __del__ = lambda self: None
2721 FittingSolutions_swigregister = _IMP_em.FittingSolutions_swigregister
2722 FittingSolutions_swigregister(FittingSolutions)
2723 
2724 
2725 def local_rigid_fitting_around_point(p, refiner, weight_key, dmap, anchor_centroid, display_log, number_of_optimization_runs=5, number_of_mc_steps=10, number_of_cg_steps=100, max_translation=2., max_rotation=.3, fast=False):
2726  """
2727  local_rigid_fitting_around_point(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, Vector3D anchor_centroid, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10, IMP::Int number_of_cg_steps=100, IMP::Float max_translation=2., IMP::Float max_rotation=.3, bool fast=False) -> FittingSolutions
2728  local_rigid_fitting_around_point(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, Vector3D anchor_centroid, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10, IMP::Int number_of_cg_steps=100, IMP::Float max_translation=2., IMP::Float max_rotation=.3) -> FittingSolutions
2729  local_rigid_fitting_around_point(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, Vector3D anchor_centroid, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10, IMP::Int number_of_cg_steps=100, IMP::Float max_translation=2.) -> FittingSolutions
2730  local_rigid_fitting_around_point(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, Vector3D anchor_centroid, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10, IMP::Int number_of_cg_steps=100) -> FittingSolutions
2731  local_rigid_fitting_around_point(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, Vector3D anchor_centroid, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10) -> FittingSolutions
2732  local_rigid_fitting_around_point(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, Vector3D anchor_centroid, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5) -> FittingSolutions
2733  local_rigid_fitting_around_point(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, Vector3D anchor_centroid, IMP::OptimizerStates display_log) -> FittingSolutions
2734  """
2735  return _IMP_em.local_rigid_fitting_around_point(p, refiner, weight_key, dmap, anchor_centroid, display_log, number_of_optimization_runs, number_of_mc_steps, number_of_cg_steps, max_translation, max_rotation, fast)
2736 
2737 def local_rigid_fitting(p, refiner, weight_key, dmap, display_log, number_of_optimization_runs=5, number_of_mc_steps=10, number_of_cg_steps=100, max_translation=2., max_rotation=.3, fast=True):
2738  """
2739  local_rigid_fitting(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10, IMP::Int number_of_cg_steps=100, IMP::Float max_translation=2., IMP::Float max_rotation=.3, bool fast=True) -> FittingSolutions
2740  local_rigid_fitting(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10, IMP::Int number_of_cg_steps=100, IMP::Float max_translation=2., IMP::Float max_rotation=.3) -> FittingSolutions
2741  local_rigid_fitting(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10, IMP::Int number_of_cg_steps=100, IMP::Float max_translation=2.) -> FittingSolutions
2742  local_rigid_fitting(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10, IMP::Int number_of_cg_steps=100) -> FittingSolutions
2743  local_rigid_fitting(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10) -> FittingSolutions
2744  local_rigid_fitting(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5) -> FittingSolutions
2745  local_rigid_fitting(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, IMP::OptimizerStates display_log) -> FittingSolutions
2746  """
2747  return _IMP_em.local_rigid_fitting(p, refiner, weight_key, dmap, display_log, number_of_optimization_runs, number_of_mc_steps, number_of_cg_steps, max_translation, max_rotation, fast)
2748 
2749 def local_rigid_fitting_around_points(p, refiner, wei_key, dmap, anchor_centroids, display_log, number_of_optimization_runs=5, number_of_mc_steps=10, number_of_cg_steps=100, max_translation=2., max_rotation=.3):
2750  """
2751  local_rigid_fitting_around_points(Particle p, Refiner refiner, FloatKey wei_key, DensityMap dmap, IMP::algebra::Vector3Ds const & anchor_centroids, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10, IMP::Int number_of_cg_steps=100, IMP::Float max_translation=2., IMP::Float max_rotation=.3) -> FittingSolutions
2752  local_rigid_fitting_around_points(Particle p, Refiner refiner, FloatKey wei_key, DensityMap dmap, IMP::algebra::Vector3Ds const & anchor_centroids, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10, IMP::Int number_of_cg_steps=100, IMP::Float max_translation=2.) -> FittingSolutions
2753  local_rigid_fitting_around_points(Particle p, Refiner refiner, FloatKey wei_key, DensityMap dmap, IMP::algebra::Vector3Ds const & anchor_centroids, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10, IMP::Int number_of_cg_steps=100) -> FittingSolutions
2754  local_rigid_fitting_around_points(Particle p, Refiner refiner, FloatKey wei_key, DensityMap dmap, IMP::algebra::Vector3Ds const & anchor_centroids, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10) -> FittingSolutions
2755  local_rigid_fitting_around_points(Particle p, Refiner refiner, FloatKey wei_key, DensityMap dmap, IMP::algebra::Vector3Ds const & anchor_centroids, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5) -> FittingSolutions
2756  local_rigid_fitting_around_points(Particle p, Refiner refiner, FloatKey wei_key, DensityMap dmap, IMP::algebra::Vector3Ds const & anchor_centroids, IMP::OptimizerStates display_log) -> FittingSolutions
2757  """
2758  return _IMP_em.local_rigid_fitting_around_points(p, refiner, wei_key, dmap, anchor_centroids, display_log, number_of_optimization_runs, number_of_mc_steps, number_of_cg_steps, max_translation, max_rotation)
2759 
2760 def local_rigid_fitting_grid_search(ps, wei_key, dmap, max_voxels_translation=2, translation_step=1, max_angle_in_radians=0.174, number_of_rotations=100):
2761  """
2762  local_rigid_fitting_grid_search(IMP::ParticlesTemp const & ps, FloatKey wei_key, DensityMap dmap, IMP::Int max_voxels_translation=2, IMP::Int translation_step=1, IMP::Float max_angle_in_radians=0.174, IMP::Int number_of_rotations=100) -> FittingSolutions
2763  local_rigid_fitting_grid_search(IMP::ParticlesTemp const & ps, FloatKey wei_key, DensityMap dmap, IMP::Int max_voxels_translation=2, IMP::Int translation_step=1, IMP::Float max_angle_in_radians=0.174) -> FittingSolutions
2764  local_rigid_fitting_grid_search(IMP::ParticlesTemp const & ps, FloatKey wei_key, DensityMap dmap, IMP::Int max_voxels_translation=2, IMP::Int translation_step=1) -> FittingSolutions
2765  local_rigid_fitting_grid_search(IMP::ParticlesTemp const & ps, FloatKey wei_key, DensityMap dmap, IMP::Int max_voxels_translation=2) -> FittingSolutions
2766  local_rigid_fitting_grid_search(IMP::ParticlesTemp const & ps, FloatKey wei_key, DensityMap dmap) -> FittingSolutions
2767  """
2768  return _IMP_em.local_rigid_fitting_grid_search(ps, wei_key, dmap, max_voxels_translation, translation_step, max_angle_in_radians, number_of_rotations)
2769 
2770 def compute_fitting_scores(*args):
2771  """
2772  compute_fitting_scores(IMP::ParticlesTemp const & ps, DensityMap em_map, IMP::algebra::Transformation3Ds const & transformations, bool fast_version=False, bool local_score=False, FloatKey wei_key) -> FittingSolutions
2773  compute_fitting_scores(IMP::ParticlesTemp const & ps, DensityMap em_map, IMP::algebra::Transformation3Ds const & transformations, bool fast_version=False, bool local_score=False) -> FittingSolutions
2774  compute_fitting_scores(IMP::ParticlesTemp const & ps, DensityMap em_map, IMP::algebra::Transformation3Ds const & transformations, bool fast_version=False) -> FittingSolutions
2775  compute_fitting_scores(IMP::ParticlesTemp const & ps, DensityMap em_map, IMP::algebra::Transformation3Ds const & transformations) -> FittingSolutions
2776  compute_fitting_scores(DensityMap em_map, RigidBody rb, Refiner refiner, IMP::algebra::Transformation3Ds const & transformations) -> FittingSolutions
2777  """
2778  return _IMP_em.compute_fitting_scores(*args)
2779 
2780 def compute_fitting_score(*args):
2781  """
2782  compute_fitting_score(IMP::ParticlesTemp const & ps, DensityMap em_map, FloatKey wei_key) -> IMP::Float
2783  compute_fitting_score(IMP::ParticlesTemp const & ps, DensityMap em_map) -> IMP::Float
2784  """
2785  return _IMP_em.compute_fitting_score(*args)
2786 
2788  """
2789  get_number_of_particles_outside_of_the_density(DensityMap dmap, IMP::Particles const & ps, Transformation3D t, float thr=0.0) -> long
2790  get_number_of_particles_outside_of_the_density(DensityMap dmap, IMP::Particles const & ps, Transformation3D t) -> long
2791  get_number_of_particles_outside_of_the_density(DensityMap dmap, IMP::Particles const & ps) -> long
2792  """
2793  return _IMP_em.get_number_of_particles_outside_of_the_density(*args)
2794 
2795 def get_numbers_of_particles_outside_of_the_density(dmap, ps, transformations, thr=0.0):
2796  """
2797  get_numbers_of_particles_outside_of_the_density(DensityMap dmap, IMP::Particles const & ps, IMP::algebra::Transformation3Ds const & transformations, float thr=0.0) -> IMP::Ints
2798  get_numbers_of_particles_outside_of_the_density(DensityMap dmap, IMP::Particles const & ps, IMP::algebra::Transformation3Ds const & transformations) -> IMP::Ints
2799  """
2800  return _IMP_em.get_numbers_of_particles_outside_of_the_density(dmap, ps, transformations, thr)
2801 
2803  """
2804  get_percentage_of_voxels_covered_by_particles(DensityMap dmap, IMP::Particles const & ps, float smoothing_radius=3., Transformation3D t, float thr=0.0) -> double
2805  get_percentage_of_voxels_covered_by_particles(DensityMap dmap, IMP::Particles const & ps, float smoothing_radius=3., Transformation3D t) -> double
2806  get_percentage_of_voxels_covered_by_particles(DensityMap dmap, IMP::Particles const & ps, float smoothing_radius=3.) -> double
2807  get_percentage_of_voxels_covered_by_particles(DensityMap dmap, IMP::Particles const & ps) -> double
2808  """
2809  return _IMP_em.get_percentage_of_voxels_covered_by_particles(*args)
2810 class HighDensityEmbedding(IMP.statistics.Embedding):
2811  """Proxy of C++ IMP::em::HighDensityEmbedding class"""
2812  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2813 
2814  def __init__(self, dm, threshold):
2815  """__init__(IMP::em::HighDensityEmbedding self, DensityMap dm, double threshold) -> HighDensityEmbedding"""
2816  this = _IMP_em.new_HighDensityEmbedding(dm, threshold)
2817  try:
2818  self.this.append(this)
2819  except:
2820  self.this = this
2821 
2822  def get_version_info(self):
2823  """get_version_info(HighDensityEmbedding self) -> VersionInfo"""
2824  return _IMP_em.HighDensityEmbedding_get_version_info(self)
2825 
2826 
2827  def __str__(self):
2828  """__str__(HighDensityEmbedding self) -> std::string"""
2829  return _IMP_em.HighDensityEmbedding___str__(self)
2830 
2831 
2832  def __repr__(self):
2833  """__repr__(HighDensityEmbedding self) -> std::string"""
2834  return _IMP_em.HighDensityEmbedding___repr__(self)
2835 
2836 
2837  @staticmethod
2838  def get_from(o):
2839  return _object_cast_to_HighDensityEmbedding(o)
2840 
2841 HighDensityEmbedding_swigregister = _IMP_em.HighDensityEmbedding_swigregister
2842 HighDensityEmbedding_swigregister(HighDensityEmbedding)
2843 
2844 
2845 def mask_and_norm(dmap, mask):
2846  """mask_and_norm(DensityMap dmap, DensityMap mask) -> DensityMap"""
2847  return _IMP_em.mask_and_norm(dmap, mask)
2848 
2849 def get_volume_at_threshold(m, threshold):
2850  """get_volume_at_threshold(DensityMap m, IMP::Float threshold) -> IMP::Float"""
2851  return _IMP_em.get_volume_at_threshold(m, threshold)
2852 
2854  """
2855  get_molecular_mass_at_threshold(DensityMap m, IMP::Float threshold, IMP::atom::ProteinDensityReference ref) -> IMP::Float
2856  get_molecular_mass_at_threshold(DensityMap m, IMP::Float threshold) -> IMP::Float
2857  """
2858  return _IMP_em.get_molecular_mass_at_threshold(*args)
2859 
2860 def get_threshold_for_approximate_volume(m, desired_volume):
2861  """get_threshold_for_approximate_volume(DensityMap m, IMP::Float desired_volume) -> IMP::Float"""
2862  return _IMP_em.get_threshold_for_approximate_volume(m, desired_volume)
2863 
2865  """
2866  get_threshold_for_approximate_mass(DensityMap m, IMP::Float desired_mass, IMP::atom::ProteinDensityReference ref) -> IMP::Float
2867  get_threshold_for_approximate_mass(DensityMap m, IMP::Float desired_mass) -> IMP::Float
2868  """
2869  return _IMP_em.get_threshold_for_approximate_mass(*args)
2870 class EnvelopePenetrationRestraint(IMP.Restraint):
2871  """Proxy of C++ IMP::em::EnvelopePenetrationRestraint class"""
2872  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2873 
2874  def __init__(self, ps, em_map, threshold):
2875  """__init__(IMP::em::EnvelopePenetrationRestraint self, IMP::Particles ps, DensityMap em_map, IMP::Float threshold) -> EnvelopePenetrationRestraint"""
2876  this = _IMP_em.new_EnvelopePenetrationRestraint(ps, em_map, threshold)
2877  try:
2878  self.this.append(this)
2879  except:
2880  self.this = this
2881 
2882  def do_get_inputs(self):
2883  """do_get_inputs(EnvelopePenetrationRestraint self) -> IMP::ModelObjectsTemp"""
2884  return _IMP_em.EnvelopePenetrationRestraint_do_get_inputs(self)
2885 
2886 
2887  def get_version_info(self):
2888  """get_version_info(EnvelopePenetrationRestraint self) -> VersionInfo"""
2889  return _IMP_em.EnvelopePenetrationRestraint_get_version_info(self)
2890 
2891 
2892  def __str__(self):
2893  """__str__(EnvelopePenetrationRestraint self) -> std::string"""
2894  return _IMP_em.EnvelopePenetrationRestraint___str__(self)
2895 
2896 
2897  def __repr__(self):
2898  """__repr__(EnvelopePenetrationRestraint self) -> std::string"""
2899  return _IMP_em.EnvelopePenetrationRestraint___repr__(self)
2900 
2901 
2902  @staticmethod
2903  def get_from(o):
2904  return _object_cast_to_EnvelopePenetrationRestraint(o)
2905 
2906 EnvelopePenetrationRestraint_swigregister = _IMP_em.EnvelopePenetrationRestraint_swigregister
2907 EnvelopePenetrationRestraint_swigregister(EnvelopePenetrationRestraint)
2908 
2909 class PCAFitRestraint(IMP.Restraint):
2910  """Proxy of C++ IMP::em::PCAFitRestraint class"""
2911  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2912 
2913  def __init__(self, *args):
2914  """
2915  __init__(IMP::em::PCAFitRestraint self, IMP::ParticlesTemp ps, DensityMap em_map, float threshold, float max_pca_size_diff, float max_angle_diff, float max_centroid_diff, FloatKey weight_key) -> PCAFitRestraint
2916  __init__(IMP::em::PCAFitRestraint self, IMP::ParticlesTemp ps, DensityMap em_map, float threshold, float max_pca_size_diff, float max_angle_diff, float max_centroid_diff) -> PCAFitRestraint
2917  """
2918  this = _IMP_em.new_PCAFitRestraint(*args)
2919  try:
2920  self.this.append(this)
2921  except:
2922  self.this = this
2923 
2924  def do_get_inputs(self):
2925  """do_get_inputs(PCAFitRestraint self) -> IMP::ModelObjectsTemp"""
2926  return _IMP_em.PCAFitRestraint_do_get_inputs(self)
2927 
2928 
2929  def get_version_info(self):
2930  """get_version_info(PCAFitRestraint self) -> VersionInfo"""
2931  return _IMP_em.PCAFitRestraint_get_version_info(self)
2932 
2933 
2934  def __str__(self):
2935  """__str__(PCAFitRestraint self) -> std::string"""
2936  return _IMP_em.PCAFitRestraint___str__(self)
2937 
2938 
2939  def __repr__(self):
2940  """__repr__(PCAFitRestraint self) -> std::string"""
2941  return _IMP_em.PCAFitRestraint___repr__(self)
2942 
2943 
2944  @staticmethod
2945  def get_from(o):
2946  return _object_cast_to_PCAFitRestraint(o)
2947 
2948 PCAFitRestraint_swigregister = _IMP_em.PCAFitRestraint_swigregister
2949 PCAFitRestraint_swigregister(PCAFitRestraint)
2950 
2951 class EnvelopeFitRestraint(IMP.Restraint):
2952  """Proxy of C++ IMP::em::EnvelopeFitRestraint class"""
2953  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2954 
2955  def __init__(self, particles, em_map, density_threshold, penetration_threshold):
2956  """__init__(IMP::em::EnvelopeFitRestraint self, IMP::Particles particles, DensityMap em_map, double density_threshold, double penetration_threshold) -> EnvelopeFitRestraint"""
2957  this = _IMP_em.new_EnvelopeFitRestraint(particles, em_map, density_threshold, penetration_threshold)
2958  try:
2959  self.this.append(this)
2960  except:
2961  self.this = this
2962 
2963  def get_transformation(self):
2964  """get_transformation(EnvelopeFitRestraint self) -> Transformation3D"""
2965  return _IMP_em.EnvelopeFitRestraint_get_transformation(self)
2966 
2967 
2968  def apply_transformation(self):
2969  """apply_transformation(EnvelopeFitRestraint self)"""
2970  return _IMP_em.EnvelopeFitRestraint_apply_transformation(self)
2971 
2972 
2973  def do_get_inputs(self):
2974  """do_get_inputs(EnvelopeFitRestraint self) -> IMP::ModelObjectsTemp"""
2975  return _IMP_em.EnvelopeFitRestraint_do_get_inputs(self)
2976 
2977 
2978  def get_version_info(self):
2979  """get_version_info(EnvelopeFitRestraint self) -> VersionInfo"""
2980  return _IMP_em.EnvelopeFitRestraint_get_version_info(self)
2981 
2982 
2983  def __str__(self):
2984  """__str__(EnvelopeFitRestraint self) -> std::string"""
2985  return _IMP_em.EnvelopeFitRestraint___str__(self)
2986 
2987 
2988  def __repr__(self):
2989  """__repr__(EnvelopeFitRestraint self) -> std::string"""
2990  return _IMP_em.EnvelopeFitRestraint___repr__(self)
2991 
2992 
2993  @staticmethod
2994  def get_from(o):
2995  return _object_cast_to_EnvelopeFitRestraint(o)
2996 
2997 EnvelopeFitRestraint_swigregister = _IMP_em.EnvelopeFitRestraint_swigregister
2998 EnvelopeFitRestraint_swigregister(EnvelopeFitRestraint)
2999 
3000 class MapDistanceTransform(DensityMap):
3001  """Proxy of C++ IMP::em::MapDistanceTransform class"""
3002  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3003 
3004  def __init__(self, map, density_threshold, max_distance):
3005  """__init__(IMP::em::MapDistanceTransform self, DensityMap map, float density_threshold, float max_distance) -> MapDistanceTransform"""
3006  this = _IMP_em.new_MapDistanceTransform(map, density_threshold, max_distance)
3007  try:
3008  self.this.append(this)
3009  except:
3010  self.this = this
3011 
3012  def get_distance_from_envelope(self, v):
3013  """get_distance_from_envelope(MapDistanceTransform self, Vector3D v) -> float"""
3014  return _IMP_em.MapDistanceTransform_get_distance_from_envelope(self, v)
3015 
3016 
3017  def __str__(self):
3018  """__str__(MapDistanceTransform self) -> std::string"""
3019  return _IMP_em.MapDistanceTransform___str__(self)
3020 
3021 
3022  def __repr__(self):
3023  """__repr__(MapDistanceTransform self) -> std::string"""
3024  return _IMP_em.MapDistanceTransform___repr__(self)
3025 
3026 
3027  @staticmethod
3028  def get_from(o):
3029  return _object_cast_to_MapDistanceTransform(o)
3030 
3031  __swig_destroy__ = _IMP_em.delete_MapDistanceTransform
3032  __del__ = lambda self: None
3033 MapDistanceTransform_swigregister = _IMP_em.MapDistanceTransform_swigregister
3034 MapDistanceTransform_swigregister(MapDistanceTransform)
3035 
3036 class EnvelopeScore(IMP.Object):
3037  """Proxy of C++ IMP::em::EnvelopeScore class"""
3038  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3039 
3040  def __init__(self, mdt):
3041  """__init__(IMP::em::EnvelopeScore self, MapDistanceTransform mdt) -> EnvelopeScore"""
3042  this = _IMP_em.new_EnvelopeScore(mdt)
3043  try:
3044  self.this.append(this)
3045  except:
3046  self.this = this
3047 
3048  def is_penetrating(self, *args):
3049  """
3050  is_penetrating(EnvelopeScore self, IMP::algebra::Vector3Ds const & points, float penetration_thr) -> bool
3051  is_penetrating(EnvelopeScore self, IMP::algebra::Vector3Ds const & points, Transformation3D trans, float penetration_thr) -> bool
3052  """
3053  return _IMP_em.EnvelopeScore_is_penetrating(self, *args)
3054 
3055 
3056  def score(self, *args):
3057  """
3058  score(EnvelopeScore self, IMP::algebra::Vector3Ds const & points) -> double
3059  score(EnvelopeScore self, IMP::algebra::Vector3Ds const & points, Transformation3D trans) -> double
3060  """
3061  return _IMP_em.EnvelopeScore_score(self, *args)
3062 
3063  __swig_destroy__ = _IMP_em.delete_EnvelopeScore
3064  __del__ = lambda self: None
3065 
3066  def __str__(self):
3067  """__str__(EnvelopeScore self) -> std::string"""
3068  return _IMP_em.EnvelopeScore___str__(self)
3069 
3070 
3071  def __repr__(self):
3072  """__repr__(EnvelopeScore self) -> std::string"""
3073  return _IMP_em.EnvelopeScore___repr__(self)
3074 
3075 
3076  @staticmethod
3077  def get_from(o):
3078  return _object_cast_to_EnvelopeScore(o)
3079 
3080 EnvelopeScore_swigregister = _IMP_em.EnvelopeScore_swigregister
3081 EnvelopeScore_swigregister(EnvelopeScore)
3082 
3083 
3084 import math
3085 
3086 def write_pca_cmm(pca, fh):
3087  """Write out principal components to a file in Chimera Marker format"""
3088  eigen_values = pca.get_principal_values()
3089  eigen_vecs = pca.get_principal_components()
3090  centroid = pca.get_centroid()
3091 
3092  fh.write("<marker_set>\n")
3093  fh.write("<!-- PCA with eigen values: (%g,%g,%g) and "
3094  "centroid (%g,%g,%g) -->\n"
3095  % (math.sqrt(eigen_values[0]),
3096  math.sqrt(eigen_values[1]),
3097  math.sqrt(eigen_values[2]),
3098  centroid[0], centroid[1], centroid[2]))
3099 
3100  radius = 2.
3101 
3102  for i in range(3):
3103  val = math.sqrt(eigen_values[i])
3104  v1 = centroid - val * eigen_vecs[i]
3105  v2 = centroid + val * eigen_vecs[i]
3106  for markerid, v in ((i*2+1, v1), (i*2+2, v2)):
3107  fh.write("<marker id=\"%d\" x=\"%g\" y=\"%g\" z=\"%g\" "
3108  "radius=\"%g\"/>\n"
3109  % (markerid, v[0], v[1], v[2], radius))
3110 
3111  for i in range(1, 7, 2):
3112  fh.write("<link id1= \"%d\" id2=\"%d\" radius=\"%g\"/>\n"
3113  % (i, i+1, radius))
3114  fh.write("</marker_set>\n")
3115 
3116 
3117 def get_module_version():
3118  """get_module_version() -> std::string const"""
3119  return _IMP_em.get_module_version()
3120 
3121 def get_example_path(fname):
3122  """get_example_path(std::string fname) -> std::string"""
3123  return _IMP_em.get_example_path(fname)
3124 
3125 def get_data_path(fname):
3126  """get_data_path(std::string fname) -> std::string"""
3127  return _IMP_em.get_data_path(fname)
3128 
3129 from . import _version_check
3130 _version_check.check_version(get_module_version())
3131 __version__ = get_module_version()
3132 
3133 
3134 
double bayesem3d_linear_interpolate(const Floats &x_data, const Floats &y_data, double x, bool extrapolate)
Basic linear interpolation given vectors of values.
Float get_threshold_for_approximate_mass(DensityMap *m, Float desired_mass, atom::ProteinDensityReference ref=atom::HARPAZ)
Computes the threshold to consider in an EM map to get a desired mass.
DensityMap * interpolate_map(DensityMap *in_map, double new_spacing)
Return a new map with an updated spacing.
Particles density2particles(DensityMap *dmap, Float threshold, Model *m, int step=1)
Convert a density grid to a set of particles.
algebra::Vector3Ds density2vectors(DensityMap *dmap, Float threshold)
Convert a density grid to a set of vectors.
algebra::BoundingBoxD< 3 > get_bounding_box(const DensityMap *m, Float threshold)
Get the bounding box for a map.
std::string get_module_version()
Return the version of this module, as a string.
DensityMap * bayesem3d_get_density_from_particle(DensityMap *em, const IMP::ParticlesTemp &ps, double resolution, const double window_size=1.0)
Ints get_numbers_of_particles_outside_of_the_density(DensityMap *dmap, const Particles &ps, const IMP::algebra::Transformation3Ds &transformations, float thr=0.0)
Get numbers of particles (mult transforms) that are outside the density.
double bayesem3d_get_logsumexp(double x, double y)
Numerically stable logsumexp.
double get_coarse_cc_coefficient(const DensityMap *grid1, const DensityMap *grid2, double grid2_voxel_data_threshold, bool allow_padding=false, FloatPair norm_factors=FloatPair(0., 0.))
Calculates the cross correlation coefficient between two maps.
Various classes to hold sets of particles.
std::vector< double > bayesem3d_get_value(Particle *p, const algebra::Vector3D &pt, double mass_ii, const IMP::em::KernelParameters &kps)
Compute the score and derivatives for a particle at a given voxel.
DensityMap * binarize(DensityMap *orig_map, float threshold, bool reverse=false)
Return a map with 0 for all voxels below the threshold and 1 for those above.
double get_sum(const DensityMap *m1)
Return the sum of all voxels.
SampledDensityMap * particles2binarized_density(const ParticlesTemp &ps, Float resolution, Float apix, int sig_cutoff=3, const FloatKey &weight_key=IMP::atom::Mass::get_mass_key())
Definition: converters.h:76
Make CGAL functionality available to IMP.
DensityMap * mask_and_norm(em::DensityMap *dmap, em::DensityMap *mask)
Return a masked density, and normalize the output map within the mask region.
FittingSolutions compute_fitting_scores(const ParticlesTemp &ps, DensityMap *em_map, const algebra::Transformation3Ds &transformations, bool fast_version=false, bool local_score=false, const FloatKey &wei_key=atom::Mass::get_mass_key())
Compute fitting scores for a given set of rigid transformations.
DensityMap * get_threshold_map(const DensityMap *orig_map, float threshold)
Return a map with 0 for all voxels below the threshold.
DensityMap * get_segment_by_masking(DensityMap *map_to_segment, DensityMap *mask, float mas_threshold)
Get a segment of the map covered by another map.
FloatPair bayesem3d_get_logabssumexp(double x, double y, double sx, double sy)
Numerically stable logabssumexp.
std::string get_data_path(std::string file_name)
Return the full path to one of this module's data files.
SampledDensityMap * particles2density(const ParticlesTemp &ps, Float resolution, Float apix, int sig_cutoff=3, const FloatKey &weight_key=IMP::atom::Mass::get_mass_key())
Resample a set of particles into a density grid.
double get_coarse_cc_score(DensityMap *data, SampledDensityMap *model_map, double scalefactor, bool recalc_rms=true, bool resample=true, FloatPair norm_factors=FloatPair(0., 0.))
Calculates the value of the EM fitting term.
std::pair< double, algebra::Vector3Ds > bayesem3d_get_score_and_derivative(DensityMap *em, const IMP::ParticlesTemp &ps, double resolution, double sigma, const double window_size=1.0)
The function returns the negative log of the Normal distributed difference between a normalized EM de...
Composable functors to implement scores via compile-time composition.
Code to compute statistical measures.
algebra::GridD< 3, algebra::DenseGridStorageD< 3, float >, float > get_grid(DensityMap *in_map)
Return a dense grid containing the voxels of the passed density map.
void bayesem3d_get_normalized_intensities(DensityMap *em, const IMP::ParticlesTemp &ps, double resolution)
FloatPair bayesem3d_get_em_density_squared(DensityMap *em, long number_of_voxels)
Compute the sum of the density and the sum of the squares of the density.
def write_pca_cmm
Write out principal components to a file in Chimera Marker format.
double convolute(const DensityMap *m1, const DensityMap *m2)
Return a convolution between density maps m1 and m2.
Common base class for heavy weight IMP objects.
Definition: Object.h:106
DensityMap * multiply(const DensityMap *m1, const DensityMap *m2)
Return a density map for which voxel i contains the result of m1[i]*m2[i].
std::map< double, int > bayesem3d_get_distinct_and_counts(DensityMap *em)
Get histogram of density in EM map.
DensityHeader create_density_header(const algebra::BoundingBoxD< 3 > &bb, float spacing)
Create a header from a bounding box in 3D.
Float compute_fitting_score(const ParticlesTemp &ps, DensityMap *em_map, FloatKey wei_key=atom::Mass::get_mass_key())
Compute fitting scores for a given set of rigid transformations.
double get_coarse_cc_local_coefficient(const DensityMap *em_map, DensityMap *model_map, double voxel_data_threshold)
Local cross correlation function.
double bayesem3d_get_cross_correlation_coefficient(const DensityMap *em1, const DensityMap *em2)
Compute a normalized cross-correlation coefficient.
Floats bayesem3d_get_cumulative_sum(DensityMap *em)
Compute the cumulative sum of the histogram computed from EM map.
FittingSolutions local_rigid_fitting_around_point(Particle *p, Refiner *refiner, const FloatKey &weight_key, DensityMap *dmap, const algebra::Vector3D &anchor_centroid, OptimizerStates display_log, Int number_of_optimization_runs=5, Int number_of_mc_steps=10, Int number_of_cg_steps=100, Float max_translation=2., Float max_rotation=.3, bool fast=false)
Local rigid fitting of a rigid body around a center point.
double bayesem3d_get_logsumprodexp(double x, double y, double wx, double wy)
Numerically stable logsumexpprod.
std::vector< double > bayesem3d_get_value_no_deriv(Particle *p, const algebra::Vector3D &pt, double mass_ii, const IMP::em::KernelParameters &kps)
Compute the score without its derivative.
long get_number_of_particles_outside_of_the_density(DensityMap *dmap, const Particles &ps, const IMP::algebra::Transformation3D &t=IMP::algebra::get_identity_transformation_3d(), float thr=0.0)
Get the number of particles that are outside of the density.
DensityMap * get_max_map(DensityMaps maps)
Return a map where each voxel is the maximum value from the input maps.
DensityMap * create_density_map(const DensityMap *other)
Create a copy of another map.
Store data to be clustered for embedding based algorithms.
Float approximate_molecular_mass(DensityMap *m, Float threshold)
Estimate the molecular mass from a map.
std::map< double, double > bayesem3d_get_cumulative_sum_with_reference(DensityMap *em)
Compute the cumulative sum of the histogram given a reference.
double get_percentage_of_voxels_covered_by_particles(DensityMap *dmap, const Particles &ps, float smoothing_radius=3., const IMP::algebra::Transformation3D &t=IMP::algebra::get_identity_transformation_3d(), float thr=0.0)
Get the number of density voxels that are not covered by particles.
Vector3D get_centroid(const Vector3Ds &ps)
Return the centroid of a set of vectors.
Definition: Vector3D.h:68
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.
Definition: Restraint.h:53
FloatPair bayesem3d_get_logabssumprodexp(double x, double y, double wx, double wy)
Numerically stable logabssumprodexp.