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