IMP  2.4.0
The Integrative Modeling Platform
em/__init__.py
1 # This file was automatically generated by SWIG (http://www.swig.org).
2 # Version 3.0.2
3 #
4 # Do not make changes to this file unless you know what you are doing--modify
5 # the SWIG interface file instead.
6 
7 
8 
9 
10 
11 from sys import version_info
12 if version_info >= (2,6,0):
13  def swig_import_helper():
14  from os.path import dirname
15  import imp
16  fp = None
17  try:
18  fp, pathname, description = imp.find_module('_IMP_em', [dirname(__file__)])
19  except ImportError:
20  import _IMP_em
21  return _IMP_em
22  if fp is not None:
23  try:
24  _mod = imp.load_module('_IMP_em', fp, pathname, description)
25  finally:
26  fp.close()
27  return _mod
28  _IMP_em = swig_import_helper()
29  del swig_import_helper
30 else:
31  import _IMP_em
32 del version_info
33 try:
34  _swig_property = property
35 except NameError:
36  pass # Python < 2.2 doesn't have 'property'.
37 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
38  if (name == "thisown"): return self.this.own(value)
39  if (name == "this"):
40  if type(value).__name__ == 'SwigPyObject':
41  self.__dict__[name] = value
42  return
43  method = class_type.__swig_setmethods__.get(name,None)
44  if method: return method(self,value)
45  if (not static):
46  self.__dict__[name] = value
47  else:
48  raise AttributeError("You cannot add attributes to %s" % self)
49 
50 def _swig_setattr(self,class_type,name,value):
51  return _swig_setattr_nondynamic(self,class_type,name,value,0)
52 
53 def _swig_getattr(self,class_type,name):
54  if (name == "thisown"): return self.this.own()
55  method = class_type.__swig_getmethods__.get(name,None)
56  if method: return method(self)
57  raise AttributeError(name)
58 
59 def _swig_repr(self):
60  try: strthis = "proxy of " + self.this.__repr__()
61  except: strthis = ""
62  return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
63 
64 try:
65  _object = object
66  _newclass = 1
67 except AttributeError:
68  class _object : pass
69  _newclass = 0
70 
71 
72 def _swig_setattr_nondynamic_method(set):
73  def set_attr(self,name,value):
74  if (name == "thisown"): return self.this.own(value)
75  if hasattr(self,name) or (name == "this"):
76  set(self,name,value)
77  else:
78  raise AttributeError("You cannot add attributes to %s" % self)
79  return set_attr
80 
81 
82 try:
83  import weakref
84  weakref_proxy = weakref.proxy
85 except:
86  weakref_proxy = lambda x: x
87 
88 
89 class IMP_EM_SwigPyIterator(object):
90  """Proxy of C++ swig::IMP_EM_SwigPyIterator class"""
91  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
92  def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
93  __repr__ = _swig_repr
94  __swig_destroy__ = _IMP_em.delete_IMP_EM_SwigPyIterator
95  __del__ = lambda self : None;
96  def value(self):
97  """value(IMP_EM_SwigPyIterator self) -> PyObject *"""
98  return _IMP_em.IMP_EM_SwigPyIterator_value(self)
99 
100  def incr(self, n=1):
101  """
102  incr(IMP_EM_SwigPyIterator self, size_t n=1) -> IMP_EM_SwigPyIterator
103  incr(IMP_EM_SwigPyIterator self) -> IMP_EM_SwigPyIterator
104  """
105  return _IMP_em.IMP_EM_SwigPyIterator_incr(self, n)
106 
107  def decr(self, n=1):
108  """
109  decr(IMP_EM_SwigPyIterator self, size_t n=1) -> IMP_EM_SwigPyIterator
110  decr(IMP_EM_SwigPyIterator self) -> IMP_EM_SwigPyIterator
111  """
112  return _IMP_em.IMP_EM_SwigPyIterator_decr(self, n)
113 
114  def distance(self, *args):
115  """distance(IMP_EM_SwigPyIterator self, IMP_EM_SwigPyIterator x) -> ptrdiff_t"""
116  return _IMP_em.IMP_EM_SwigPyIterator_distance(self, *args)
117 
118  def equal(self, *args):
119  """equal(IMP_EM_SwigPyIterator self, IMP_EM_SwigPyIterator x) -> bool"""
120  return _IMP_em.IMP_EM_SwigPyIterator_equal(self, *args)
121 
122  def copy(self):
123  """copy(IMP_EM_SwigPyIterator self) -> IMP_EM_SwigPyIterator"""
124  return _IMP_em.IMP_EM_SwigPyIterator_copy(self)
125 
126  def next(self):
127  """next(IMP_EM_SwigPyIterator self) -> PyObject *"""
128  return _IMP_em.IMP_EM_SwigPyIterator_next(self)
129 
130  def __next__(self):
131  """__next__(IMP_EM_SwigPyIterator self) -> PyObject *"""
132  return _IMP_em.IMP_EM_SwigPyIterator___next__(self)
133 
134  def previous(self):
135  """previous(IMP_EM_SwigPyIterator self) -> PyObject *"""
136  return _IMP_em.IMP_EM_SwigPyIterator_previous(self)
137 
138  def advance(self, *args):
139  """advance(IMP_EM_SwigPyIterator self, ptrdiff_t n) -> IMP_EM_SwigPyIterator"""
140  return _IMP_em.IMP_EM_SwigPyIterator_advance(self, *args)
141 
142  def __eq__(self, *args):
143  """__eq__(IMP_EM_SwigPyIterator self, IMP_EM_SwigPyIterator x) -> bool"""
144  return _IMP_em.IMP_EM_SwigPyIterator___eq__(self, *args)
145 
146  def __ne__(self, *args):
147  """__ne__(IMP_EM_SwigPyIterator self, IMP_EM_SwigPyIterator x) -> bool"""
148  return _IMP_em.IMP_EM_SwigPyIterator___ne__(self, *args)
149 
150  def __iadd__(self, *args):
151  """__iadd__(IMP_EM_SwigPyIterator self, ptrdiff_t n) -> IMP_EM_SwigPyIterator"""
152  return _IMP_em.IMP_EM_SwigPyIterator___iadd__(self, *args)
153 
154  def __isub__(self, *args):
155  """__isub__(IMP_EM_SwigPyIterator self, ptrdiff_t n) -> IMP_EM_SwigPyIterator"""
156  return _IMP_em.IMP_EM_SwigPyIterator___isub__(self, *args)
157 
158  def __add__(self, *args):
159  """__add__(IMP_EM_SwigPyIterator self, ptrdiff_t n) -> IMP_EM_SwigPyIterator"""
160  return _IMP_em.IMP_EM_SwigPyIterator___add__(self, *args)
161 
162  def __sub__(self, *args):
163  """
164  __sub__(IMP_EM_SwigPyIterator self, ptrdiff_t n) -> IMP_EM_SwigPyIterator
165  __sub__(IMP_EM_SwigPyIterator self, IMP_EM_SwigPyIterator x) -> ptrdiff_t
166  """
167  return _IMP_em.IMP_EM_SwigPyIterator___sub__(self, *args)
168 
169  def __iter__(self): return self
170 IMP_EM_SwigPyIterator_swigregister = _IMP_em.IMP_EM_SwigPyIterator_swigregister
171 IMP_EM_SwigPyIterator_swigregister(IMP_EM_SwigPyIterator)
172 
173 _value_types=[]
174 _object_types=[]
175 _raii_types=[]
176 _plural_types=[]
177 
178 IMP_DEBUG = _IMP_em.IMP_DEBUG
179 IMP_RELEASE = _IMP_em.IMP_RELEASE
180 IMP_SILENT = _IMP_em.IMP_SILENT
181 IMP_PROGRESS = _IMP_em.IMP_PROGRESS
182 IMP_TERSE = _IMP_em.IMP_TERSE
183 IMP_VERBOSE = _IMP_em.IMP_VERBOSE
184 IMP_MEMORY = _IMP_em.IMP_MEMORY
185 IMP_NONE = _IMP_em.IMP_NONE
186 IMP_USAGE = _IMP_em.IMP_USAGE
187 IMP_INTERNAL = _IMP_em.IMP_INTERNAL
188 IMP_BASE_HAS_LOG4CXX = _IMP_em.IMP_BASE_HAS_LOG4CXX
189 IMP_COMPILER_HAS_AUTO = _IMP_em.IMP_COMPILER_HAS_AUTO
190 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_em.IMP_COMPILER_HAS_DEBUG_VECTOR
191 IMP_BASE_HAS_BOOST_RANDOM = _IMP_em.IMP_BASE_HAS_BOOST_RANDOM
192 IMP_BASE_HAS_GPERFTOOLS = _IMP_em.IMP_BASE_HAS_GPERFTOOLS
193 IMP_BASE_HAS_TCMALLOC_HEAPCHECKER = _IMP_em.IMP_BASE_HAS_TCMALLOC_HEAPCHECKER
194 IMP_BASE_HAS_TCMALLOC_HEAPPROFILER = _IMP_em.IMP_BASE_HAS_TCMALLOC_HEAPPROFILER
195 IMPBASE_SHOW_WARNINGS = _IMP_em.IMPBASE_SHOW_WARNINGS
196 import sys
197 class _DirectorObjects(object):
198  """@internal Simple class to keep references to director objects
199  to prevent premature deletion."""
200  def __init__(self):
201  self._objects = []
202  def register(self, obj):
203  """Take a reference to a director object; will only work for
204  refcounted C++ classes"""
205  if hasattr(obj, 'get_ref_count'):
206  self._objects.append(obj)
207  def cleanup(self):
208  """Only drop our reference and allow cleanup by Python if no other
209  Python references exist (we hold 3 references: one in self._objects,
210  one in x, and one in the argument list for getrefcount) *and* no
211  other C++ references exist (the Python object always holds one)"""
212  objs = [x for x in self._objects if sys.getrefcount(x) > 3 \
213  or x.get_ref_count() > 1]
214  # Do in two steps so the references are kept until the end of the
215  # function (deleting references may trigger a fresh call to this method)
216  self._objects = objs
217  def get_object_count(self):
218  """Get number of director objects (useful for testing only)"""
219  return len(self._objects)
220 _director_objects = _DirectorObjects()
221 
222 class _ostream(object):
223  """Proxy of C++ std::ostream class"""
224  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
225  def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
226  __repr__ = _swig_repr
227  def write(self, *args):
228  """write(_ostream self, char const * osa_buf)"""
229  return _IMP_em._ostream_write(self, *args)
230 
231 _ostream_swigregister = _IMP_em._ostream_swigregister
232 _ostream_swigregister(_ostream)
233 
234 IMP_COMPILER_HAS_OVERRIDE = _IMP_em.IMP_COMPILER_HAS_OVERRIDE
235 IMP_COMPILER_HAS_FINAL = _IMP_em.IMP_COMPILER_HAS_FINAL
236 IMP_HAS_NOEXCEPT = _IMP_em.IMP_HAS_NOEXCEPT
237 import IMP.base
238 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_CGAL_HAS_BOOST_FILESYSTEM
239 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
240 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_em.IMP_CGAL_HAS_BOOST_RANDOM
241 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_em.IMP_CGAL_HAS_BOOST_SYSTEM
242 IMPCGAL_SHOW_WARNINGS = _IMP_em.IMPCGAL_SHOW_WARNINGS
243 import IMP.cgal
244 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_em.IMP_ALGEBRA_HAS_IMP_CGAL
245 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
246 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
247 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_em.IMP_ALGEBRA_HAS_BOOST_RANDOM
248 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_em.IMP_ALGEBRA_HAS_BOOST_SYSTEM
249 IMP_ALGEBRA_HAS_CGAL = _IMP_em.IMP_ALGEBRA_HAS_CGAL
250 IMP_ALGEBRA_HAS_ANN = _IMP_em.IMP_ALGEBRA_HAS_ANN
251 IMPALGEBRA_SHOW_WARNINGS = _IMP_em.IMPALGEBRA_SHOW_WARNINGS
252 import IMP.algebra
253 IMP_KERNEL_HAS_IMP_CGAL = _IMP_em.IMP_KERNEL_HAS_IMP_CGAL
254 IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS
255 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_em.IMP_KERNEL_HAS_BOOST_RANDOM
256 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_em.IMP_KERNEL_HAS_BOOST_SYSTEM
257 IMP_KERNEL_HAS_CGAL = _IMP_em.IMP_KERNEL_HAS_CGAL
258 IMPKERNEL_SHOW_WARNINGS = _IMP_em.IMPKERNEL_SHOW_WARNINGS
259 import IMP.kernel
260 IMP_DISPLAY_HAS_IMP_BASE = _IMP_em.IMP_DISPLAY_HAS_IMP_BASE
261 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_em.IMP_DISPLAY_HAS_IMP_CGAL
262 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
263 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
264 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_em.IMP_DISPLAY_HAS_BOOST_RANDOM
265 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_em.IMP_DISPLAY_HAS_BOOST_SYSTEM
266 IMP_DISPLAY_HAS_CGAL = _IMP_em.IMP_DISPLAY_HAS_CGAL
267 IMPDISPLAY_SHOW_WARNINGS = _IMP_em.IMPDISPLAY_SHOW_WARNINGS
268 import IMP.display
269 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_em.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
270 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
271 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
272 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
273 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
274 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_em.IMP_SCORE_FUNCTOR_HAS_CGAL
275 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_em.IMP_SCORE_FUNCTOR_HAS_HDF5
276 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_em.IMPSCOREFUNCTOR_SHOW_WARNINGS
277 import IMP.score_functor
278 IMP_STATISTICS_HAS_IMP_BASE = _IMP_em.IMP_STATISTICS_HAS_IMP_BASE
279 IMP_STATISTICS_HAS_IMP_CGAL = _IMP_em.IMP_STATISTICS_HAS_IMP_CGAL
280 IMP_STATISTICS_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_STATISTICS_HAS_BOOST_FILESYSTEM
281 IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS
282 IMP_STATISTICS_HAS_BOOST_RANDOM = _IMP_em.IMP_STATISTICS_HAS_BOOST_RANDOM
283 IMP_STATISTICS_HAS_BOOST_SYSTEM = _IMP_em.IMP_STATISTICS_HAS_BOOST_SYSTEM
284 IMP_STATISTICS_HAS_CGAL = _IMP_em.IMP_STATISTICS_HAS_CGAL
285 IMPSTATISTICS_SHOW_WARNINGS = _IMP_em.IMPSTATISTICS_SHOW_WARNINGS
286 import IMP.statistics
287 IMP_CORE_HAS_IMP_BASE = _IMP_em.IMP_CORE_HAS_IMP_BASE
288 IMP_CORE_HAS_IMP_CGAL = _IMP_em.IMP_CORE_HAS_IMP_CGAL
289 IMP_CORE_HAS_IMP_KERNEL = _IMP_em.IMP_CORE_HAS_IMP_KERNEL
290 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_CORE_HAS_BOOST_FILESYSTEM
291 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
292 IMP_CORE_HAS_BOOST_RANDOM = _IMP_em.IMP_CORE_HAS_BOOST_RANDOM
293 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_em.IMP_CORE_HAS_BOOST_SYSTEM
294 IMP_CORE_HAS_CGAL = _IMP_em.IMP_CORE_HAS_CGAL
295 IMP_CORE_HAS_HDF5 = _IMP_em.IMP_CORE_HAS_HDF5
296 IMPCORE_SHOW_WARNINGS = _IMP_em.IMPCORE_SHOW_WARNINGS
297 import IMP.core
298 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_em.IMP_CONTAINER_HAS_IMP_ALGEBRA
299 IMP_CONTAINER_HAS_IMP_BASE = _IMP_em.IMP_CONTAINER_HAS_IMP_BASE
300 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_em.IMP_CONTAINER_HAS_IMP_CGAL
301 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_em.IMP_CONTAINER_HAS_IMP_DISPLAY
302 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_em.IMP_CONTAINER_HAS_IMP_KERNEL
303 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_em.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
304 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
305 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
306 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_em.IMP_CONTAINER_HAS_BOOST_RANDOM
307 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_em.IMP_CONTAINER_HAS_BOOST_SYSTEM
308 IMP_CONTAINER_HAS_CGAL = _IMP_em.IMP_CONTAINER_HAS_CGAL
309 IMP_CONTAINER_HAS_HDF5 = _IMP_em.IMP_CONTAINER_HAS_HDF5
310 IMPCONTAINER_SHOW_WARNINGS = _IMP_em.IMPCONTAINER_SHOW_WARNINGS
311 import IMP.container
312 IMP_ATOM_HAS_IMP_BASE = _IMP_em.IMP_ATOM_HAS_IMP_BASE
313 IMP_ATOM_HAS_IMP_CGAL = _IMP_em.IMP_ATOM_HAS_IMP_CGAL
314 IMP_ATOM_HAS_IMP_KERNEL = _IMP_em.IMP_ATOM_HAS_IMP_KERNEL
315 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_em.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
316 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
317 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_em.IMP_ATOM_HAS_BOOST_RANDOM
318 IMP_ATOM_HAS_BOOST_REGEX = _IMP_em.IMP_ATOM_HAS_BOOST_REGEX
319 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_em.IMP_ATOM_HAS_BOOST_SYSTEM
320 IMP_ATOM_HAS_CGAL = _IMP_em.IMP_ATOM_HAS_CGAL
321 IMP_ATOM_HAS_HDF5 = _IMP_em.IMP_ATOM_HAS_HDF5
322 IMPATOM_SHOW_WARNINGS = _IMP_em.IMPATOM_SHOW_WARNINGS
323 IMP_ATOM_TYPE_INDEX = _IMP_em.IMP_ATOM_TYPE_INDEX
324 IMP_RESIDUE_TYPE_INDEX = _IMP_em.IMP_RESIDUE_TYPE_INDEX
325 IMP_HIERARCHY_TYPE_INDEX = _IMP_em.IMP_HIERARCHY_TYPE_INDEX
326 import IMP.atom
327 IMP_EM_HAS_IMP_CGAL = _IMP_em.IMP_EM_HAS_IMP_CGAL
328 IMP_EM_HAS_IMP_CONTAINER = _IMP_em.IMP_EM_HAS_IMP_CONTAINER
329 IMP_EM_HAS_IMP_DISPLAY = _IMP_em.IMP_EM_HAS_IMP_DISPLAY
330 IMP_EM_HAS_IMP_KERNEL = _IMP_em.IMP_EM_HAS_IMP_KERNEL
331 IMP_EM_HAS_IMP_SCORE_FUNCTOR = _IMP_em.IMP_EM_HAS_IMP_SCORE_FUNCTOR
332 IMP_EM_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_EM_HAS_BOOST_FILESYSTEM
333 IMP_EM_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_EM_HAS_BOOST_PROGRAMOPTIONS
334 IMP_EM_HAS_BOOST_RANDOM = _IMP_em.IMP_EM_HAS_BOOST_RANDOM
335 IMP_EM_HAS_BOOST_REGEX = _IMP_em.IMP_EM_HAS_BOOST_REGEX
336 IMP_EM_HAS_BOOST_SYSTEM = _IMP_em.IMP_EM_HAS_BOOST_SYSTEM
337 IMP_EM_HAS_CGAL = _IMP_em.IMP_EM_HAS_CGAL
338 IMP_EM_HAS_HDF5 = _IMP_em.IMP_EM_HAS_HDF5
339 IMPEM_SHOW_WARNINGS = _IMP_em.IMPEM_SHOW_WARNINGS
340 _object_types.append("DensityMap")
341 
342 
343 def _object_cast_to_DensityMap(*args):
344  """_object_cast_to_DensityMap(Object o) -> DensityMap"""
345  return _IMP_em._object_cast_to_DensityMap(*args)
346 _object_types.append("SampledDensityMap")
347 
348 
349 def _object_cast_to_SampledDensityMap(*args):
350  """_object_cast_to_SampledDensityMap(Object o) -> SampledDensityMap"""
351  return _IMP_em._object_cast_to_SampledDensityMap(*args)
352 _object_types.append("SurfaceShellDensityMap")
353 
354 
355 def _object_cast_to_SurfaceShellDensityMap(*args):
356  """_object_cast_to_SurfaceShellDensityMap(Object o) -> SurfaceShellDensityMap"""
357  return _IMP_em._object_cast_to_SurfaceShellDensityMap(*args)
358 _object_types.append("FitRestraint")
359 
360 
361 def _object_cast_to_FitRestraint(*args):
362  """_object_cast_to_FitRestraint(Object o) -> FitRestraint"""
363  return _IMP_em._object_cast_to_FitRestraint(*args)
364 _object_types.append("PCAFitRestraint")
365 
366 
367 def _object_cast_to_PCAFitRestraint(*args):
368  """_object_cast_to_PCAFitRestraint(Object o) -> PCAFitRestraint"""
369  return _IMP_em._object_cast_to_PCAFitRestraint(*args)
370 _object_types.append("EnvelopePenetrationRestraint")
371 
372 
373 def _object_cast_to_EnvelopePenetrationRestraint(*args):
374  """_object_cast_to_EnvelopePenetrationRestraint(Object o) -> EnvelopePenetrationRestraint"""
375  return _IMP_em._object_cast_to_EnvelopePenetrationRestraint(*args)
376 _object_types.append("EnvelopeFitRestraint")
377 
378 
379 def _object_cast_to_EnvelopeFitRestraint(*args):
380  """_object_cast_to_EnvelopeFitRestraint(Object o) -> EnvelopeFitRestraint"""
381  return _IMP_em._object_cast_to_EnvelopeFitRestraint(*args)
382 RadiusDependentKernelParametersList=list
383 _plural_types.append("RadiusDependentKernelParametersList")
384 _value_types.append("RadiusDependentKernelParameters")
385 
386 KernelParametersList=list
387 _plural_types.append("KernelParametersList")
388 _value_types.append("KernelParameters")
389 
390 _object_types.append("HighDensityEmbedding")
391 
392 
393 def _object_cast_to_HighDensityEmbedding(*args):
394  """_object_cast_to_HighDensityEmbedding(Object o) -> HighDensityEmbedding"""
395  return _IMP_em._object_cast_to_HighDensityEmbedding(*args)
396 _object_types.append("MapReaderWriter")
397 
398 
399 def _object_cast_to_MapReaderWriter(*args):
400  """_object_cast_to_MapReaderWriter(Object o) -> MapReaderWriter"""
401  return _IMP_em._object_cast_to_MapReaderWriter(*args)
402 _object_types.append("MRCReaderWriter")
403 
404 
405 def _object_cast_to_MRCReaderWriter(*args):
406  """_object_cast_to_MRCReaderWriter(Object o) -> MRCReaderWriter"""
407  return _IMP_em._object_cast_to_MRCReaderWriter(*args)
408 _object_types.append("SpiderMapReaderWriter")
409 
410 
411 def _object_cast_to_SpiderMapReaderWriter(*args):
412  """_object_cast_to_SpiderMapReaderWriter(Object o) -> SpiderMapReaderWriter"""
413  return _IMP_em._object_cast_to_SpiderMapReaderWriter(*args)
414 _object_types.append("EMReaderWriter")
415 
416 
417 def _object_cast_to_EMReaderWriter(*args):
418  """_object_cast_to_EMReaderWriter(Object o) -> EMReaderWriter"""
419  return _IMP_em._object_cast_to_EMReaderWriter(*args)
420 _object_types.append("XplorReaderWriter")
421 
422 
423 def _object_cast_to_XplorReaderWriter(*args):
424  """_object_cast_to_XplorReaderWriter(Object o) -> XplorReaderWriter"""
425  return _IMP_em._object_cast_to_XplorReaderWriter(*args)
426 _object_types.append("CoarseCC")
427 
428 
429 def _object_cast_to_CoarseCC(*args):
430  """_object_cast_to_CoarseCC(Object o) -> CoarseCC"""
431  return _IMP_em._object_cast_to_CoarseCC(*args)
432 _object_types.append("CoarseCCatIntervals")
433 
434 
435 def _object_cast_to_CoarseCCatIntervals(*args):
436  """_object_cast_to_CoarseCCatIntervals(Object o) -> CoarseCCatIntervals"""
437  return _IMP_em._object_cast_to_CoarseCCatIntervals(*args)
438 FittingSolutionsList=list
439 _plural_types.append("FittingSolutionsList")
440 _value_types.append("FittingSolutions")
441 
442 class MapReaderWriter(IMP.base.Object):
443  """Proxy of C++ IMP::em::MapReaderWriter class"""
444  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
445  def __init__(self):
446  """__init__(IMP::em::MapReaderWriter self) -> MapReaderWriter"""
447  this = _IMP_em.new_MapReaderWriter()
448  try: self.this.append(this)
449  except: self.this = this
450  def get_version_info(self):
451  """get_version_info(MapReaderWriter self) -> VersionInfo"""
452  return _IMP_em.MapReaderWriter_get_version_info(self)
453 
454  def __str__(self):
455  """__str__(MapReaderWriter self) -> std::string"""
456  return _IMP_em.MapReaderWriter___str__(self)
457 
458  def __repr__(self):
459  """__repr__(MapReaderWriter self) -> std::string"""
460  return _IMP_em.MapReaderWriter___repr__(self)
461 
462  def get_from(o):
463  return _object_cast_to_MapReaderWriter(o)
464  get_from = staticmethod(get_from)
465 
466 MapReaderWriter_swigregister = _IMP_em.MapReaderWriter_swigregister
467 MapReaderWriter_swigregister(MapReaderWriter)
468 cvar = _IMP_em.cvar
469 EPS = cvar.EPS
470 
471 class DensityHeader(object):
472  """Proxy of C++ IMP::em::DensityHeader class"""
473  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
474  __repr__ = _swig_repr
475  def __init__(self):
476  """__init__(IMP::em::DensityHeader self) -> DensityHeader"""
477  this = _IMP_em.new_DensityHeader()
478  try: self.this.append(this)
479  except: self.this = this
480  def get_top(self, *args):
481  """get_top(DensityHeader self, int ind) -> IMP::em::emreal"""
482  return _IMP_em.DensityHeader_get_top(self, *args)
483 
484  def compute_xyz_top(self, force=False):
485  """
486  compute_xyz_top(DensityHeader self, bool force=False)
487  compute_xyz_top(DensityHeader self)
488  """
489  return _IMP_em.DensityHeader_compute_xyz_top(self, force)
490 
491  def update_map_dimensions(self, *args):
492  """update_map_dimensions(DensityHeader self, int nnx, int nny, int nnz)"""
493  return _IMP_em.DensityHeader_update_map_dimensions(self, *args)
494 
495  def update_cell_dimensions(self):
496  """update_cell_dimensions(DensityHeader self)"""
497  return _IMP_em.DensityHeader_update_cell_dimensions(self)
498 
499  def show(self, *args):
500  """
501  show(DensityHeader self, _ostream out=std::cout)
502  show(DensityHeader self)
503  """
504  return _IMP_em.DensityHeader_show(self, *args)
505 
506  MAP_FIELD_SIZE = _IMP_em.DensityHeader_MAP_FIELD_SIZE
507  USER_FIELD_SIZE = _IMP_em.DensityHeader_USER_FIELD_SIZE
508  COMMENT_FIELD_NUM_OF = _IMP_em.DensityHeader_COMMENT_FIELD_NUM_OF
509  COMMENT_FIELD_SINGLE_SIZE = _IMP_em.DensityHeader_COMMENT_FIELD_SINGLE_SIZE
510  nxstart = _swig_property(_IMP_em.DensityHeader_nxstart_get, _IMP_em.DensityHeader_nxstart_set)
511  nystart = _swig_property(_IMP_em.DensityHeader_nystart_get, _IMP_em.DensityHeader_nystart_set)
512  nzstart = _swig_property(_IMP_em.DensityHeader_nzstart_get, _IMP_em.DensityHeader_nzstart_set)
513  mx = _swig_property(_IMP_em.DensityHeader_mx_get, _IMP_em.DensityHeader_mx_set)
514  my = _swig_property(_IMP_em.DensityHeader_my_get, _IMP_em.DensityHeader_my_set)
515  mz = _swig_property(_IMP_em.DensityHeader_mz_get, _IMP_em.DensityHeader_mz_set)
516  xlen = _swig_property(_IMP_em.DensityHeader_xlen_get, _IMP_em.DensityHeader_xlen_set)
517  ylen = _swig_property(_IMP_em.DensityHeader_ylen_get, _IMP_em.DensityHeader_ylen_set)
518  zlen = _swig_property(_IMP_em.DensityHeader_zlen_get, _IMP_em.DensityHeader_zlen_set)
519  alpha = _swig_property(_IMP_em.DensityHeader_alpha_get, _IMP_em.DensityHeader_alpha_set)
520  beta = _swig_property(_IMP_em.DensityHeader_beta_get, _IMP_em.DensityHeader_beta_set)
521  gamma = _swig_property(_IMP_em.DensityHeader_gamma_get, _IMP_em.DensityHeader_gamma_set)
522  mapc = _swig_property(_IMP_em.DensityHeader_mapc_get, _IMP_em.DensityHeader_mapc_set)
523  mapr = _swig_property(_IMP_em.DensityHeader_mapr_get, _IMP_em.DensityHeader_mapr_set)
524  maps = _swig_property(_IMP_em.DensityHeader_maps_get, _IMP_em.DensityHeader_maps_set)
525  dmin = _swig_property(_IMP_em.DensityHeader_dmin_get, _IMP_em.DensityHeader_dmin_set)
526  dmax = _swig_property(_IMP_em.DensityHeader_dmax_get, _IMP_em.DensityHeader_dmax_set)
527  dmean = _swig_property(_IMP_em.DensityHeader_dmean_get, _IMP_em.DensityHeader_dmean_set)
528  ispg = _swig_property(_IMP_em.DensityHeader_ispg_get, _IMP_em.DensityHeader_ispg_set)
529  nsymbt = _swig_property(_IMP_em.DensityHeader_nsymbt_get, _IMP_em.DensityHeader_nsymbt_set)
530  user = _swig_property(_IMP_em.DensityHeader_user_get, _IMP_em.DensityHeader_user_set)
531  map = _swig_property(_IMP_em.DensityHeader_map_get, _IMP_em.DensityHeader_map_set)
532  machinestamp = _swig_property(_IMP_em.DensityHeader_machinestamp_get, _IMP_em.DensityHeader_machinestamp_set)
533  rms = _swig_property(_IMP_em.DensityHeader_rms_get, _IMP_em.DensityHeader_rms_set)
534  nlabl = _swig_property(_IMP_em.DensityHeader_nlabl_get, _IMP_em.DensityHeader_nlabl_set)
535  comments = _swig_property(_IMP_em.DensityHeader_comments_get, _IMP_em.DensityHeader_comments_set)
536  magic = _swig_property(_IMP_em.DensityHeader_magic_get, _IMP_em.DensityHeader_magic_set)
537  voltage = _swig_property(_IMP_em.DensityHeader_voltage_get, _IMP_em.DensityHeader_voltage_set)
538  Cs = _swig_property(_IMP_em.DensityHeader_Cs_get, _IMP_em.DensityHeader_Cs_set)
539  Aperture = _swig_property(_IMP_em.DensityHeader_Aperture_get, _IMP_em.DensityHeader_Aperture_set)
540  Magnification = _swig_property(_IMP_em.DensityHeader_Magnification_get, _IMP_em.DensityHeader_Magnification_set)
541  Postmagnification = _swig_property(_IMP_em.DensityHeader_Postmagnification_get, _IMP_em.DensityHeader_Postmagnification_set)
542  Exposuretime = _swig_property(_IMP_em.DensityHeader_Exposuretime_get, _IMP_em.DensityHeader_Exposuretime_set)
543  Microscope = _swig_property(_IMP_em.DensityHeader_Microscope_get, _IMP_em.DensityHeader_Microscope_set)
544  Pixelsize = _swig_property(_IMP_em.DensityHeader_Pixelsize_get, _IMP_em.DensityHeader_Pixelsize_set)
545  CCDArea = _swig_property(_IMP_em.DensityHeader_CCDArea_get, _IMP_em.DensityHeader_CCDArea_set)
546  Defocus = _swig_property(_IMP_em.DensityHeader_Defocus_get, _IMP_em.DensityHeader_Defocus_set)
547  Astigmatism = _swig_property(_IMP_em.DensityHeader_Astigmatism_get, _IMP_em.DensityHeader_Astigmatism_set)
548  AstigmatismAngle = _swig_property(_IMP_em.DensityHeader_AstigmatismAngle_get, _IMP_em.DensityHeader_AstigmatismAngle_set)
549  FocusIncrement = _swig_property(_IMP_em.DensityHeader_FocusIncrement_get, _IMP_em.DensityHeader_FocusIncrement_set)
550  CountsPerElectron = _swig_property(_IMP_em.DensityHeader_CountsPerElectron_get, _IMP_em.DensityHeader_CountsPerElectron_set)
551  Intensity = _swig_property(_IMP_em.DensityHeader_Intensity_get, _IMP_em.DensityHeader_Intensity_set)
552  EnergySlitwidth = _swig_property(_IMP_em.DensityHeader_EnergySlitwidth_get, _IMP_em.DensityHeader_EnergySlitwidth_set)
553  EnergyOffset = _swig_property(_IMP_em.DensityHeader_EnergyOffset_get, _IMP_em.DensityHeader_EnergyOffset_set)
554  Tiltangle = _swig_property(_IMP_em.DensityHeader_Tiltangle_get, _IMP_em.DensityHeader_Tiltangle_set)
555  Tiltaxis = _swig_property(_IMP_em.DensityHeader_Tiltaxis_get, _IMP_em.DensityHeader_Tiltaxis_set)
556  MarkerX = _swig_property(_IMP_em.DensityHeader_MarkerX_get, _IMP_em.DensityHeader_MarkerX_set)
557  MarkerY = _swig_property(_IMP_em.DensityHeader_MarkerY_get, _IMP_em.DensityHeader_MarkerY_set)
558  lswap = _swig_property(_IMP_em.DensityHeader_lswap_get, _IMP_em.DensityHeader_lswap_set)
559  def get_resolution(self):
560  """get_resolution(DensityHeader self) -> float"""
561  return _IMP_em.DensityHeader_get_resolution(self)
562 
563  def get_has_resolution(self):
564  """get_has_resolution(DensityHeader self) -> bool"""
565  return _IMP_em.DensityHeader_get_has_resolution(self)
566 
567  def set_resolution(self, *args):
568  """set_resolution(DensityHeader self, float resolution)"""
569  return _IMP_em.DensityHeader_set_resolution(self, *args)
570 
571  def get_spacing(self):
572  """get_spacing(DensityHeader self) -> float"""
573  return _IMP_em.DensityHeader_get_spacing(self)
574 
575  def get_xorigin(self):
576  """get_xorigin(DensityHeader self) -> float"""
577  return _IMP_em.DensityHeader_get_xorigin(self)
578 
579  def get_yorigin(self):
580  """get_yorigin(DensityHeader self) -> float"""
581  return _IMP_em.DensityHeader_get_yorigin(self)
582 
583  def get_zorigin(self):
584  """get_zorigin(DensityHeader self) -> float"""
585  return _IMP_em.DensityHeader_get_zorigin(self)
586 
587  def get_origin(self, *args):
588  """get_origin(DensityHeader self, int i) -> float"""
589  return _IMP_em.DensityHeader_get_origin(self, *args)
590 
591  def set_xorigin(self, *args):
592  """set_xorigin(DensityHeader self, float x)"""
593  return _IMP_em.DensityHeader_set_xorigin(self, *args)
594 
595  def set_yorigin(self, *args):
596  """set_yorigin(DensityHeader self, float y)"""
597  return _IMP_em.DensityHeader_set_yorigin(self, *args)
598 
599  def set_zorigin(self, *args):
600  """set_zorigin(DensityHeader self, float z)"""
601  return _IMP_em.DensityHeader_set_zorigin(self, *args)
602 
603  def is_top_calculated(self):
604  """is_top_calculated(DensityHeader self) -> bool"""
605  return _IMP_em.DensityHeader_is_top_calculated(self)
606 
607  Objectpixelsize_ = _swig_property(_IMP_em.DensityHeader_Objectpixelsize__get, _IMP_em.DensityHeader_Objectpixelsize__set)
608  def get_nx(self):
609  """get_nx(DensityHeader self) -> int"""
610  return _IMP_em.DensityHeader_get_nx(self)
611 
612  def get_ny(self):
613  """get_ny(DensityHeader self) -> int"""
614  return _IMP_em.DensityHeader_get_ny(self)
615 
616  def get_nz(self):
617  """get_nz(DensityHeader self) -> int"""
618  return _IMP_em.DensityHeader_get_nz(self)
619 
620  def get_number_of_voxels(self):
621  """get_number_of_voxels(DensityHeader self) -> int"""
622  return _IMP_em.DensityHeader_get_number_of_voxels(self)
623 
624  def get_data_type(self):
625  """get_data_type(DensityHeader self) -> int"""
626  return _IMP_em.DensityHeader_get_data_type(self)
627 
628  def set_data_type(self, *args):
629  """set_data_type(DensityHeader self, int data_type)"""
630  return _IMP_em.DensityHeader_set_data_type(self, *args)
631 
632  __swig_destroy__ = _IMP_em.delete_DensityHeader
633  __del__ = lambda self : None;
634 DensityHeader_swigregister = _IMP_em.DensityHeader_swigregister
635 DensityHeader_swigregister(DensityHeader)
636 
637 
638 def create_density_header(*args):
639  """create_density_header(BoundingBox3D bb, float spacing) -> DensityHeader"""
640  return _IMP_em.create_density_header(*args)
641 
642 def read_map(*args):
643  """
644  read_map(std::string filename, MapReaderWriter reader) -> DensityMap
645  read_map(std::string filename) -> DensityMap
646  """
647  return _IMP_em.read_map(*args)
648 
649 def write_map(*args):
650  """
651  write_map(DensityMap m, std::string filename, MapReaderWriter writer)
652  write_map(DensityMap m, std::string filename)
653  """
654  return _IMP_em.write_map(*args)
655 
656 def approximate_molecular_mass(*args):
657  """approximate_molecular_mass(DensityMap m, IMP::Float threshold) -> IMP::Float"""
658  return _IMP_em.approximate_molecular_mass(*args)
659 class DensityMap(IMP.base.Object):
660  """Proxy of C++ IMP::em::DensityMap class"""
661  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
662  def __init__(self, *args):
663  """
664  __init__(IMP::em::DensityMap self, std::string name="DensityMap%1%") -> DensityMap
665  __init__(IMP::em::DensityMap self) -> DensityMap
666  __init__(IMP::em::DensityMap self, DensityHeader header, std::string name="DensityMap%1%") -> DensityMap
667  __init__(IMP::em::DensityMap self, DensityHeader header) -> DensityMap
668  """
669  this = _IMP_em.new_DensityMap(*args)
670  try: self.this.append(this)
671  except: self.this = this
672  def reset_data(self, value=0.0):
673  """
674  reset_data(DensityMap self, float value=0.0)
675  reset_data(DensityMap self)
676  """
677  return _IMP_em.DensityMap_reset_data(self, value)
678 
679  def calcRMS(self):
680  """calcRMS(DensityMap self) -> IMP::em::emreal"""
681  return _IMP_em.DensityMap_calcRMS(self)
682 
683  def std_normalize(self):
684  """std_normalize(DensityMap self)"""
685  return _IMP_em.DensityMap_std_normalize(self)
686 
687  def is_normalized(self):
688  """is_normalized(DensityMap self) -> bool"""
689  return _IMP_em.DensityMap_is_normalized(self)
690 
691  def get_location_in_dim_by_voxel(self, *args):
692  """get_location_in_dim_by_voxel(DensityMap self, long index, int dim) -> float"""
693  return _IMP_em.DensityMap_get_location_in_dim_by_voxel(self, *args)
694 
695  def xyz_ind2voxel(self, *args):
696  """xyz_ind2voxel(DensityMap self, int x, int y, int z) -> long"""
697  return _IMP_em.DensityMap_xyz_ind2voxel(self, *args)
698 
699  def get_voxel_by_location(self, *args):
700  """
701  get_voxel_by_location(DensityMap self, float x, float y, float z) -> long
702  get_voxel_by_location(DensityMap self, Vector3D v) -> long
703  """
704  return _IMP_em.DensityMap_get_voxel_by_location(self, *args)
705 
706  def get_location_by_voxel(self, *args):
707  """get_location_by_voxel(DensityMap self, long index) -> Vector3D"""
708  return _IMP_em.DensityMap_get_location_by_voxel(self, *args)
709 
710  def is_xyz_ind_part_of_volume(self, *args):
711  """is_xyz_ind_part_of_volume(DensityMap self, int ix, int iy, int iz) -> bool"""
712  return _IMP_em.DensityMap_is_xyz_ind_part_of_volume(self, *args)
713 
714  def is_part_of_volume(self, *args):
715  """
716  is_part_of_volume(DensityMap self, float x, float y, float z) -> bool
717  is_part_of_volume(DensityMap self, Vector3D v) -> bool
718  """
719  return _IMP_em.DensityMap_is_part_of_volume(self, *args)
720 
721  def get_value(self, *args):
722  """
723  get_value(DensityMap self, float x, float y, float z) -> IMP::em::emreal
724  get_value(DensityMap self, Vector3D point) -> IMP::em::emreal
725  get_value(DensityMap self, long index) -> IMP::em::emreal
726  """
727  return _IMP_em.DensityMap_get_value(self, *args)
728 
729  def set_value(self, *args):
730  """
731  set_value(DensityMap self, long index, IMP::em::emreal value)
732  set_value(DensityMap self, float x, float y, float z, IMP::em::emreal value)
733  """
734  return _IMP_em.DensityMap_set_value(self, *args)
735 
736  def set_origin(self, *args):
737  """
738  set_origin(DensityMap self, float x, float y, float z)
739  set_origin(DensityMap self, Vector3D v)
740  """
741  return _IMP_em.DensityMap_set_origin(self, *args)
742 
743  def get_origin(self):
744  """get_origin(DensityMap self) -> Vector3D"""
745  return _IMP_em.DensityMap_get_origin(self)
746 
747  def get_top(self):
748  """get_top(DensityMap self) -> Vector3D"""
749  return _IMP_em.DensityMap_get_top(self)
750 
751  def get_header(self):
752  h = _IMP_em.DensityMap_get_header(self)
753  h._owner = self
754  return h
755 
756 
757  def get_header_writable(self):
758  h = _IMP_em.DensityMap_get_header_writable(self)
759  h._owner = self
760  return h
761 
762 
763  def same_origin(self, *args):
764  """same_origin(DensityMap self, DensityMap other) -> bool"""
765  return _IMP_em.DensityMap_same_origin(self, *args)
766 
767  def same_dimensions(self, *args):
768  """same_dimensions(DensityMap self, DensityMap other) -> bool"""
769  return _IMP_em.DensityMap_same_dimensions(self, *args)
770 
771  def same_voxel_size(self, *args):
772  """same_voxel_size(DensityMap self, DensityMap other) -> bool"""
773  return _IMP_em.DensityMap_same_voxel_size(self, *args)
774 
775  def get_centroid(self, threshold=0.0):
776  """
777  get_centroid(DensityMap self, IMP::em::emreal threshold=0.0) -> Vector3D
778  get_centroid(DensityMap self) -> Vector3D
779  """
780  return _IMP_em.DensityMap_get_centroid(self, threshold)
781 
782  def get_max_value(self):
783  """get_max_value(DensityMap self) -> IMP::em::emreal"""
784  return _IMP_em.DensityMap_get_max_value(self)
785 
786  def get_min_value(self):
787  """get_min_value(DensityMap self) -> IMP::em::emreal"""
788  return _IMP_em.DensityMap_get_min_value(self)
789 
790  def add(self, *args):
791  """add(DensityMap self, DensityMap other)"""
792  return _IMP_em.DensityMap_add(self, *args)
793 
794  def pick_max(self, *args):
795  """pick_max(DensityMap self, DensityMap other)"""
796  return _IMP_em.DensityMap_pick_max(self, *args)
797 
798  def get_number_of_voxels(self):
799  """get_number_of_voxels(DensityMap self) -> long"""
800  return _IMP_em.DensityMap_get_number_of_voxels(self)
801 
802  def set_void_map(self, *args):
803  """set_void_map(DensityMap self, int nx, int ny, int nz)"""
804  return _IMP_em.DensityMap_set_void_map(self, *args)
805 
806  def pad(self, *args):
807  """
808  pad(DensityMap self, int nx, int ny, int nz, float val=0.0)
809  pad(DensityMap self, int nx, int ny, int nz)
810  """
811  return _IMP_em.DensityMap_pad(self, *args)
812 
813  def pad_margin(self, *args):
814  """
815  pad_margin(DensityMap self, int mrg_x, int mrg_y, int mrg_z, float val=0.0) -> DensityMap
816  pad_margin(DensityMap self, int mrg_x, int mrg_y, int mrg_z) -> DensityMap
817  """
818  return _IMP_em.DensityMap_pad_margin(self, *args)
819 
820  def get_cropped(self, *args):
821  """
822  get_cropped(DensityMap self, float threshold) -> DensityMap
823  get_cropped(DensityMap self, BoundingBox3D bb) -> DensityMap
824  """
825  return _IMP_em.DensityMap_get_cropped(self, *args)
826 
827  def get_maximum_value_in_xy_plane(self, *args):
828  """get_maximum_value_in_xy_plane(DensityMap self, int z_ind) -> float"""
829  return _IMP_em.DensityMap_get_maximum_value_in_xy_plane(self, *args)
830 
831  def get_maximum_value_in_xz_plane(self, *args):
832  """get_maximum_value_in_xz_plane(DensityMap self, int y_ind) -> float"""
833  return _IMP_em.DensityMap_get_maximum_value_in_xz_plane(self, *args)
834 
835  def get_maximum_value_in_yz_plane(self, *args):
836  """get_maximum_value_in_yz_plane(DensityMap self, int x_ind) -> float"""
837  return _IMP_em.DensityMap_get_maximum_value_in_yz_plane(self, *args)
838 
839  def multiply(self, *args):
840  """multiply(DensityMap self, float factor)"""
841  return _IMP_em.DensityMap_multiply(self, *args)
842 
843  def get_locations_string(self, *args):
844  """get_locations_string(DensityMap self, float t) -> std::string"""
845  return _IMP_em.DensityMap_get_locations_string(self, *args)
846 
847  def update_voxel_size(self, *args):
848  """update_voxel_size(DensityMap self, float new_apix)"""
849  return _IMP_em.DensityMap_update_voxel_size(self, *args)
850 
851  def get_spacing(self):
852  """get_spacing(DensityMap self) -> IMP::Float"""
853  return _IMP_em.DensityMap_get_spacing(self)
854 
855  def calc_all_voxel2loc(self):
856  """calc_all_voxel2loc(DensityMap self)"""
857  return _IMP_em.DensityMap_calc_all_voxel2loc(self)
858 
859  def copy_map(self, *args):
860  """copy_map(DensityMap self, DensityMap other)"""
861  return _IMP_em.DensityMap_copy_map(self, *args)
862 
863  def get_version_info(self):
864  """get_version_info(DensityMap self) -> VersionInfo"""
865  return _IMP_em.DensityMap_get_version_info(self)
866 
867  def lower_voxel_shift(self, *args):
868  """lower_voxel_shift(DensityMap self, IMP::em::emreal loc, IMP::em::emreal kdist, IMP::em::emreal orig, int ndim) -> int"""
869  return _IMP_em.DensityMap_lower_voxel_shift(self, *args)
870 
871  def upper_voxel_shift(self, *args):
872  """upper_voxel_shift(DensityMap self, IMP::em::emreal loc, IMP::em::emreal kdist, IMP::em::emreal orig, int ndim) -> int"""
873  return _IMP_em.DensityMap_upper_voxel_shift(self, *args)
874 
875  def get_rms_calculated(self):
876  """get_rms_calculated(DensityMap self) -> bool"""
877  return _IMP_em.DensityMap_get_rms_calculated(self)
878 
879  def get_dim_index_by_location(self, *args):
880  """
881  get_dim_index_by_location(DensityMap self, Vector3D v, int ind) -> int
882  get_dim_index_by_location(DensityMap self, float loc_val, int ind) -> int
883  """
884  return _IMP_em.DensityMap_get_dim_index_by_location(self, *args)
885 
886  def __str__(self):
887  """__str__(DensityMap self) -> std::string"""
888  return _IMP_em.DensityMap___str__(self)
889 
890  def __repr__(self):
891  """__repr__(DensityMap self) -> std::string"""
892  return _IMP_em.DensityMap___repr__(self)
893 
894  def get_from(o):
895  return _object_cast_to_DensityMap(o)
896  get_from = staticmethod(get_from)
897 
898 DensityMap_swigregister = _IMP_em.DensityMap_swigregister
899 DensityMap_swigregister(DensityMap)
900 
901 
902 def get_bounding_box(*args):
903  """
904  get_bounding_box(DensityMap m, IMP::Float threshold) -> BoundingBox3D
905  get_bounding_box(DensityMap m) -> BoundingBox3D
906  """
907  return _IMP_em.get_bounding_box(*args)
908 
909 def get_density(*args):
910  """get_density(DensityMap m, Vector3D v) -> double"""
911  return _IMP_em.get_density(*args)
912 
913 def get_transformed(*args):
914  """
915  get_transformed(DensityMap input, Transformation3D tr, double threshold) -> DensityMap
916  get_transformed(DensityMap input, Transformation3D tr) -> DensityMap
917  """
918  return _IMP_em.get_transformed(*args)
919 
920 def get_resampled(*args):
921  """get_resampled(DensityMap input, double scaling) -> DensityMap"""
922  return _IMP_em.get_resampled(*args)
923 
924 def get_transformed_into(*args):
925  """
926  get_transformed_into(DensityMap source, Transformation3D tr, DensityMap into, bool calc_rms=True)
927  get_transformed_into(DensityMap source, Transformation3D tr, DensityMap into)
928  """
929  return _IMP_em.get_transformed_into(*args)
930 
931 def get_transformed_into2(*args):
932  """get_transformed_into2(DensityMap source, Transformation3D tr, DensityMap into)"""
933  return _IMP_em.get_transformed_into2(*args)
934 
935 def get_interiors_intersect(*args):
936  """get_interiors_intersect(DensityMap d1, DensityMap d2) -> bool"""
937  return _IMP_em.get_interiors_intersect(*args)
938 
939 def get_segment(*args):
940  """
941  get_segment(DensityMap map_to_segment, int nx_start, int nx_end, int ny_start, int ny_end, int nz_start,
942  int nz_end) -> DensityMap
943  get_segment(DensityMap map_to_segment, IMP::algebra::Vector3Ds vecs, float dist) -> DensityMap
944  """
945  return _IMP_em.get_segment(*args)
946 
947 def get_segment_by_masking(*args):
948  """get_segment_by_masking(DensityMap map_to_segment, DensityMap mask, float mas_threshold) -> DensityMap"""
949  return _IMP_em.get_segment_by_masking(*args)
950 
951 def binarize(*args):
952  """
953  binarize(DensityMap orig_map, float threshold, bool reverse=False) -> DensityMap
954  binarize(DensityMap orig_map, float threshold) -> DensityMap
955  """
956  return _IMP_em.binarize(*args)
957 
958 def get_threshold_map(*args):
959  """get_threshold_map(DensityMap orig_map, float threshold) -> DensityMap"""
960  return _IMP_em.get_threshold_map(*args)
961 
962 def multiply(*args):
963  """multiply(DensityMap m1, DensityMap m2) -> DensityMap"""
964  return _IMP_em.multiply(*args)
965 
966 def convolute(*args):
967  """convolute(DensityMap m1, DensityMap m2) -> double"""
968  return _IMP_em.convolute(*args)
969 
970 def get_sum(*args):
971  """get_sum(DensityMap m1) -> double"""
972  return _IMP_em.get_sum(*args)
973 
974 def get_max_map(*args):
975  """get_max_map(IMP::em::DensityMaps maps) -> DensityMap"""
976  return _IMP_em.get_max_map(*args)
977 
978 def interpolate_map(*args):
979  """interpolate_map(DensityMap in_map, double new_spacing) -> DensityMap"""
980  return _IMP_em.interpolate_map(*args)
981 
982 def get_grid(*args):
983  """get_grid(DensityMap in_map) -> IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,float >,float,IMP::algebra::DefaultEmbeddingD< 3 > >"""
984  return _IMP_em.get_grid(*args)
985 
986 def create_density_map(*args):
987  """
988  create_density_map(DensityMap other) -> DensityMap
989  create_density_map(BoundingBox3D bb, double spacing) -> DensityMap
990  create_density_map(int nx, int ny, int nz, double spacing) -> DensityMap
991  create_density_map(IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,float >,float,IMP::algebra::DefaultEmbeddingD< 3 > > const & grid) -> DensityMap
992  """
993  return _IMP_em.create_density_map(*args)
994 
995 def get_binarized_interior(*args):
996  """get_binarized_interior(DensityMap dmap) -> DensityMap"""
997  return _IMP_em.get_binarized_interior(*args)
998 
999 def add_to_map(*args):
1000  """add_to_map(DensityMap dm, IMP::kernel::Particles const & pis)"""
1001  return _IMP_em.add_to_map(*args)
1002 class RadiusDependentDistanceMask(object):
1003  """Proxy of C++ IMP::em::RadiusDependentDistanceMask class"""
1004  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1005  __repr__ = _swig_repr
1006  def __init__(self, *args):
1007  """__init__(IMP::em::RadiusDependentDistanceMask self, float sampling_radius, DensityHeader header) -> RadiusDependentDistanceMask"""
1008  this = _IMP_em.new_RadiusDependentDistanceMask(*args)
1009  try: self.this.append(this)
1010  except: self.this = this
1011  def get_neighbor_shift(self):
1012  """get_neighbor_shift(RadiusDependentDistanceMask self) -> std::vector< double,std::allocator< double > > const *"""
1013  return _IMP_em.RadiusDependentDistanceMask_get_neighbor_shift(self)
1014 
1015  def get_neighbor_dist(self):
1016  """get_neighbor_dist(RadiusDependentDistanceMask self) -> std::vector< double,std::allocator< double > > const *"""
1017  return _IMP_em.RadiusDependentDistanceMask_get_neighbor_dist(self)
1018 
1019  def get_neighbor_dist_exp(self):
1020  """get_neighbor_dist_exp(RadiusDependentDistanceMask self) -> std::vector< double,std::allocator< double > > const *"""
1021  return _IMP_em.RadiusDependentDistanceMask_get_neighbor_dist_exp(self)
1022 
1023  def show(self, *args):
1024  """show(RadiusDependentDistanceMask self, _ostream out)"""
1025  return _IMP_em.RadiusDependentDistanceMask_show(self, *args)
1026 
1027  __swig_destroy__ = _IMP_em.delete_RadiusDependentDistanceMask
1028  __del__ = lambda self : None;
1029 RadiusDependentDistanceMask_swigregister = _IMP_em.RadiusDependentDistanceMask_swigregister
1030 RadiusDependentDistanceMask_swigregister(RadiusDependentDistanceMask)
1031 
1032 class DistanceMask(object):
1033  """Proxy of C++ IMP::em::DistanceMask class"""
1034  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1035  __repr__ = _swig_repr
1036  def __init__(self, *args):
1037  """
1038  __init__(IMP::em::DistanceMask self) -> DistanceMask
1039  __init__(IMP::em::DistanceMask self, DensityHeader header) -> DistanceMask
1040  """
1041  this = _IMP_em.new_DistanceMask(*args)
1042  try: self.this.append(this)
1043  except: self.this = this
1044  def show(self, *args):
1045  """show(DistanceMask self, _ostream out)"""
1046  return _IMP_em.DistanceMask_show(self, *args)
1047 
1048  def is_mask_set(self, *args):
1049  """
1050  is_mask_set(DistanceMask self, float radius, float eps=0.001) -> bool
1051  is_mask_set(DistanceMask self, float radius) -> bool
1052  """
1053  return _IMP_em.DistanceMask_is_mask_set(self, *args)
1054 
1055  __swig_destroy__ = _IMP_em.delete_DistanceMask
1056  __del__ = lambda self : None;
1057 DistanceMask_swigregister = _IMP_em.DistanceMask_swigregister
1058 DistanceMask_swigregister(DistanceMask)
1059 
1060 class EMReaderWriter(MapReaderWriter):
1061  """Proxy of C++ IMP::em::EMReaderWriter class"""
1062  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1063  def __str__(self):
1064  """__str__(EMReaderWriter self) -> std::string"""
1065  return _IMP_em.EMReaderWriter___str__(self)
1066 
1067  def __repr__(self):
1068  """__repr__(EMReaderWriter self) -> std::string"""
1069  return _IMP_em.EMReaderWriter___repr__(self)
1070 
1071  def get_from(o):
1072  return _object_cast_to_EMReaderWriter(o)
1073  get_from = staticmethod(get_from)
1074 
1075  def __init__(self):
1076  """__init__(IMP::em::EMReaderWriter self) -> EMReaderWriter"""
1077  this = _IMP_em.new_EMReaderWriter()
1078  try: self.this.append(this)
1079  except: self.this = this
1080 EMReaderWriter_swigregister = _IMP_em.EMReaderWriter_swigregister
1081 EMReaderWriter_swigregister(EMReaderWriter)
1082 
1083 class XplorReaderWriter(MapReaderWriter):
1084  """Proxy of C++ IMP::em::XplorReaderWriter class"""
1085  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1086  def __str__(self):
1087  """__str__(XplorReaderWriter self) -> std::string"""
1088  return _IMP_em.XplorReaderWriter___str__(self)
1089 
1090  def __repr__(self):
1091  """__repr__(XplorReaderWriter self) -> std::string"""
1092  return _IMP_em.XplorReaderWriter___repr__(self)
1093 
1094  def get_from(o):
1095  return _object_cast_to_XplorReaderWriter(o)
1096  get_from = staticmethod(get_from)
1097 
1098  def __init__(self):
1099  """__init__(IMP::em::XplorReaderWriter self) -> XplorReaderWriter"""
1100  this = _IMP_em.new_XplorReaderWriter()
1101  try: self.this.append(this)
1102  except: self.this = this
1103 XplorReaderWriter_swigregister = _IMP_em.XplorReaderWriter_swigregister
1104 XplorReaderWriter_swigregister(XplorReaderWriter)
1105 
1106 class MRCReaderWriter(MapReaderWriter):
1107  """Proxy of C++ IMP::em::MRCReaderWriter class"""
1108  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1109  def __init__(self, *args):
1110  """
1111  __init__(IMP::em::MRCReaderWriter self) -> MRCReaderWriter
1112  __init__(IMP::em::MRCReaderWriter self, std::string fn) -> MRCReaderWriter
1113  """
1114  this = _IMP_em.new_MRCReaderWriter(*args)
1115  try: self.this.append(this)
1116  except: self.this = this
1117  def __str__(self):
1118  """__str__(MRCReaderWriter self) -> std::string"""
1119  return _IMP_em.MRCReaderWriter___str__(self)
1120 
1121  def __repr__(self):
1122  """__repr__(MRCReaderWriter self) -> std::string"""
1123  return _IMP_em.MRCReaderWriter___repr__(self)
1124 
1125  def get_from(o):
1126  return _object_cast_to_MRCReaderWriter(o)
1127  get_from = staticmethod(get_from)
1128 
1129 MRCReaderWriter_swigregister = _IMP_em.MRCReaderWriter_swigregister
1130 MRCReaderWriter_swigregister(MRCReaderWriter)
1131 
1132 class RadiusDependentKernelParameters(object):
1133  """Proxy of C++ IMP::em::RadiusDependentKernelParameters class"""
1134  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1135  def __init__(self, *args):
1136  """
1137  __init__(IMP::em::RadiusDependentKernelParameters self, float radii, float rsigsq, float timessig, float sq2pi3, float inv_rsigsq, float rnormfac,
1138  float rkdist) -> RadiusDependentKernelParameters
1139  """
1140  this = _IMP_em.new_RadiusDependentKernelParameters(*args)
1141  try: self.this.append(this)
1142  except: self.this = this
1143  def show(self, *args):
1144  """
1145  show(RadiusDependentKernelParameters self, _ostream s=std::cout)
1146  show(RadiusDependentKernelParameters self)
1147  """
1148  return _IMP_em.RadiusDependentKernelParameters_show(self, *args)
1149 
1150  def get_vsig(self):
1151  """get_vsig(RadiusDependentKernelParameters self) -> float"""
1152  return _IMP_em.RadiusDependentKernelParameters_get_vsig(self)
1153 
1154  def get_vsigsq(self):
1155  """get_vsigsq(RadiusDependentKernelParameters self) -> float"""
1156  return _IMP_em.RadiusDependentKernelParameters_get_vsigsq(self)
1157 
1158  def get_inv_sigsq(self):
1159  """get_inv_sigsq(RadiusDependentKernelParameters self) -> float"""
1160  return _IMP_em.RadiusDependentKernelParameters_get_inv_sigsq(self)
1161 
1162  def get_sig(self):
1163  """get_sig(RadiusDependentKernelParameters self) -> float"""
1164  return _IMP_em.RadiusDependentKernelParameters_get_sig(self)
1165 
1166  def get_kdist(self):
1167  """get_kdist(RadiusDependentKernelParameters self) -> float"""
1168  return _IMP_em.RadiusDependentKernelParameters_get_kdist(self)
1169 
1170  def get_normfac(self):
1171  """get_normfac(RadiusDependentKernelParameters self) -> float"""
1172  return _IMP_em.RadiusDependentKernelParameters_get_normfac(self)
1173 
1174  __swig_destroy__ = _IMP_em.delete_RadiusDependentKernelParameters
1175  __del__ = lambda self : None;
1176  def __str__(self):
1177  """__str__(RadiusDependentKernelParameters self) -> std::string"""
1178  return _IMP_em.RadiusDependentKernelParameters___str__(self)
1179 
1180  def __repr__(self):
1181  """__repr__(RadiusDependentKernelParameters self) -> std::string"""
1182  return _IMP_em.RadiusDependentKernelParameters___repr__(self)
1183 
1184 RadiusDependentKernelParameters_swigregister = _IMP_em.RadiusDependentKernelParameters_swigregister
1185 RadiusDependentKernelParameters_swigregister(RadiusDependentKernelParameters)
1186 
1187 class KernelParameters(object):
1188  """Proxy of C++ IMP::em::KernelParameters class"""
1189  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1190  def __init__(self, *args):
1191  """
1192  __init__(IMP::em::KernelParameters self) -> KernelParameters
1193  __init__(IMP::em::KernelParameters self, float resolution) -> KernelParameters
1194  """
1195  this = _IMP_em.new_KernelParameters(*args)
1196  try: self.this.append(this)
1197  except: self.this = this
1198  __swig_destroy__ = _IMP_em.delete_KernelParameters
1199  __del__ = lambda self : None;
1200  def set_params(self, *args):
1201  """set_params(KernelParameters self, float radius) -> RadiusDependentKernelParameters"""
1202  return _IMP_em.KernelParameters_set_params(self, *args)
1203 
1204  def get_params(self, *args):
1205  """
1206  get_params(KernelParameters self, float radius, float eps=0.001) -> RadiusDependentKernelParameters
1207  get_params(KernelParameters self, float radius) -> RadiusDependentKernelParameters
1208  """
1209  return _IMP_em.KernelParameters_get_params(self, *args)
1210 
1211  def get_rsig(self):
1212  """get_rsig(KernelParameters self) -> float"""
1213  return _IMP_em.KernelParameters_get_rsig(self)
1214 
1215  def get_rsigsq(self):
1216  """get_rsigsq(KernelParameters self) -> float"""
1217  return _IMP_em.KernelParameters_get_rsigsq(self)
1218 
1219  def get_inv_rsigsq(self):
1220  """get_inv_rsigsq(KernelParameters self) -> float"""
1221  return _IMP_em.KernelParameters_get_inv_rsigsq(self)
1222 
1223  def get_timessig(self):
1224  """get_timessig(KernelParameters self) -> float"""
1225  return _IMP_em.KernelParameters_get_timessig(self)
1226 
1227  def get_sq2pi3(self):
1228  """get_sq2pi3(KernelParameters self) -> float"""
1229  return _IMP_em.KernelParameters_get_sq2pi3(self)
1230 
1231  def get_rnormfac(self):
1232  """get_rnormfac(KernelParameters self) -> float"""
1233  return _IMP_em.KernelParameters_get_rnormfac(self)
1234 
1235  def get_rkdist(self):
1236  """get_rkdist(KernelParameters self) -> float"""
1237  return _IMP_em.KernelParameters_get_rkdist(self)
1238 
1239  def get_lim(self):
1240  """get_lim(KernelParameters self) -> float"""
1241  return _IMP_em.KernelParameters_get_lim(self)
1242 
1243  def show(self, *args):
1244  """
1245  show(KernelParameters self, _ostream out=std::cout)
1246  show(KernelParameters self)
1247  """
1248  return _IMP_em.KernelParameters_show(self, *args)
1249 
1250  def __str__(self):
1251  """__str__(KernelParameters self) -> std::string"""
1252  return _IMP_em.KernelParameters___str__(self)
1253 
1254  def __repr__(self):
1255  """__repr__(KernelParameters self) -> std::string"""
1256  return _IMP_em.KernelParameters___repr__(self)
1257 
1258 KernelParameters_swigregister = _IMP_em.KernelParameters_swigregister
1259 KernelParameters_swigregister(KernelParameters)
1260 
1261 GAUSSIAN = _IMP_em.GAUSSIAN
1262 BINARIZED_SPHERE = _IMP_em.BINARIZED_SPHERE
1263 SPHERE = _IMP_em.SPHERE
1264 class SampledDensityMap(DensityMap):
1265  """Proxy of C++ IMP::em::SampledDensityMap class"""
1266  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1267  def __init__(self, *args):
1268  """
1269  __init__(IMP::em::SampledDensityMap self, IMP::em::KernelType kt=GAUSSIAN) -> SampledDensityMap
1270  __init__(IMP::em::SampledDensityMap self) -> SampledDensityMap
1271  __init__(IMP::em::SampledDensityMap self, DensityHeader header, IMP::em::KernelType kt=GAUSSIAN) -> SampledDensityMap
1272  __init__(IMP::em::SampledDensityMap self, DensityHeader header) -> SampledDensityMap
1273  __init__(IMP::em::SampledDensityMap self, IMP::kernel::ParticlesTemp const & ps, IMP::em::emreal resolution, IMP::em::emreal voxel_size,
1274  FloatKey mass_key=IMP::atom::Mass::get_mass_key(), int sig_cuttoff=3,
1275  IMP::em::KernelType kt=GAUSSIAN) -> SampledDensityMap
1276  __init__(IMP::em::SampledDensityMap self, IMP::kernel::ParticlesTemp const & ps, IMP::em::emreal resolution, IMP::em::emreal voxel_size,
1277  FloatKey mass_key=IMP::atom::Mass::get_mass_key(), int sig_cuttoff=3) -> SampledDensityMap
1278  __init__(IMP::em::SampledDensityMap self, IMP::kernel::ParticlesTemp const & ps, IMP::em::emreal resolution, IMP::em::emreal voxel_size,
1279  FloatKey mass_key=IMP::atom::Mass::get_mass_key()) -> SampledDensityMap
1280  __init__(IMP::em::SampledDensityMap self, IMP::kernel::ParticlesTemp const & ps, IMP::em::emreal resolution, IMP::em::emreal voxel_size) -> SampledDensityMap
1281  """
1282  this = _IMP_em.new_SampledDensityMap(*args)
1283  try: self.this.append(this)
1284  except: self.this = this
1285  def resample(self):
1286  """resample(SampledDensityMap self)"""
1287  return _IMP_em.SampledDensityMap_resample(self)
1288 
1289  def project(self, *args):
1290  """
1291  project(SampledDensityMap self, IMP::kernel::ParticlesTemp const & ps, int x_margin, int y_margin, int z_margin,
1292  Vector3D shift=IMP::algebra::Vector3D(0., 0., 0.), FloatKey mass_key=IMP::atom::Mass::get_mass_key())
1293  project(SampledDensityMap self, IMP::kernel::ParticlesTemp const & ps, int x_margin, int y_margin, int z_margin,
1294  Vector3D shift=IMP::algebra::Vector3D(0., 0., 0.))
1295  project(SampledDensityMap self, IMP::kernel::ParticlesTemp const & ps, int x_margin, int y_margin, int z_margin)
1296  """
1297  return _IMP_em.SampledDensityMap_project(self, *args)
1298 
1299  def set_particles(self, *args):
1300  """
1301  set_particles(SampledDensityMap self, IMP::kernel::ParticlesTemp const & ps, FloatKey mass_key=IMP::atom::Mass::get_mass_key())
1302  set_particles(SampledDensityMap self, IMP::kernel::ParticlesTemp const & ps)
1303  """
1304  return _IMP_em.SampledDensityMap_set_particles(self, *args)
1305 
1306  def get_xyzr_particles(self):
1307  """get_xyzr_particles(SampledDensityMap self) -> IMP::core::XYZRs const &"""
1308  return _IMP_em.SampledDensityMap_get_xyzr_particles(self)
1309 
1310  def get_sampled_particles(self):
1311  """get_sampled_particles(SampledDensityMap self) -> IMP::kernel::Particles const &"""
1312  return _IMP_em.SampledDensityMap_get_sampled_particles(self)
1313 
1314  def get_weight_key(self):
1315  """get_weight_key(SampledDensityMap self) -> FloatKey"""
1316  return _IMP_em.SampledDensityMap_get_weight_key(self)
1317 
1318  def get_minimum_resampled_value(self):
1319  """get_minimum_resampled_value(SampledDensityMap self) -> float"""
1320  return _IMP_em.SampledDensityMap_get_minimum_resampled_value(self)
1321 
1322  __swig_destroy__ = _IMP_em.delete_SampledDensityMap
1323  __del__ = lambda self : None;
1324  def __str__(self):
1325  """__str__(SampledDensityMap self) -> std::string"""
1326  return _IMP_em.SampledDensityMap___str__(self)
1327 
1328  def __repr__(self):
1329  """__repr__(SampledDensityMap self) -> std::string"""
1330  return _IMP_em.SampledDensityMap___repr__(self)
1331 
1332  def get_from(o):
1333  return _object_cast_to_SampledDensityMap(o)
1334  get_from = staticmethod(get_from)
1335 
1336 SampledDensityMap_swigregister = _IMP_em.SampledDensityMap_swigregister
1337 SampledDensityMap_swigregister(SampledDensityMap)
1338 
1339 IMP_DEFAULT_NUM_SHELLS = _IMP_em.IMP_DEFAULT_NUM_SHELLS
1340 IMP_SIG_CUTOFF = _IMP_em.IMP_SIG_CUTOFF
1341 class SurfaceShellDensityMap(SampledDensityMap):
1342  """Proxy of C++ IMP::em::SurfaceShellDensityMap class"""
1343  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1344  def __init__(self, *args):
1345  """
1346  __init__(IMP::em::SurfaceShellDensityMap self) -> SurfaceShellDensityMap
1347  __init__(IMP::em::SurfaceShellDensityMap self, DensityHeader header) -> SurfaceShellDensityMap
1348  __init__(IMP::em::SurfaceShellDensityMap self, IMP::kernel::ParticlesTemp const & ps, float voxel_size, FloatKey mass_key=IMP::atom::Mass::get_mass_key(),
1349  int num_shells=5) -> SurfaceShellDensityMap
1350  __init__(IMP::em::SurfaceShellDensityMap self, IMP::kernel::ParticlesTemp const & ps, float voxel_size, FloatKey mass_key=IMP::atom::Mass::get_mass_key()) -> SurfaceShellDensityMap
1351  __init__(IMP::em::SurfaceShellDensityMap self, IMP::kernel::ParticlesTemp const & ps, float voxel_size) -> SurfaceShellDensityMap
1352  """
1353  this = _IMP_em.new_SurfaceShellDensityMap(*args)
1354  try: self.this.append(this)
1355  except: self.this = this
1356  def binaries(self, *args):
1357  """binaries(SurfaceShellDensityMap self, float scene_val)"""
1358  return _IMP_em.SurfaceShellDensityMap_binaries(self, *args)
1359 
1360  def has_background_neighbor(self, *args):
1361  """has_background_neighbor(SurfaceShellDensityMap self, long voxel_ind) -> bool"""
1362  return _IMP_em.SurfaceShellDensityMap_has_background_neighbor(self, *args)
1363 
1364  __swig_destroy__ = _IMP_em.delete_SurfaceShellDensityMap
1365  __del__ = lambda self : None;
1366  def __str__(self):
1367  """__str__(SurfaceShellDensityMap self) -> std::string"""
1368  return _IMP_em.SurfaceShellDensityMap___str__(self)
1369 
1370  def __repr__(self):
1371  """__repr__(SurfaceShellDensityMap self) -> std::string"""
1372  return _IMP_em.SurfaceShellDensityMap___repr__(self)
1373 
1374  def get_from(o):
1375  return _object_cast_to_SurfaceShellDensityMap(o)
1376  get_from = staticmethod(get_from)
1377 
1378 SurfaceShellDensityMap_swigregister = _IMP_em.SurfaceShellDensityMap_swigregister
1379 SurfaceShellDensityMap_swigregister(SurfaceShellDensityMap)
1380 
1381 class CoarseCC(IMP.base.Object):
1382  """Proxy of C++ IMP::em::CoarseCC class"""
1383  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1384  def __init__(self):
1385  """__init__(IMP::em::CoarseCC self) -> CoarseCC"""
1386  this = _IMP_em.new_CoarseCC()
1387  try: self.this.append(this)
1388  except: self.this = this
1389  def calc_score(*args):
1390  """
1391  calc_score(DensityMap data, SampledDensityMap model_map, float scalefactor, bool recalc_rms=True,
1392  bool resample=True, IMP::FloatPair norm_factors=IMP::FloatPair(0., 0.)) -> float
1393  calc_score(DensityMap data, SampledDensityMap model_map, float scalefactor, bool recalc_rms=True,
1394  bool resample=True) -> float
1395  calc_score(DensityMap data, SampledDensityMap model_map, float scalefactor, bool recalc_rms=True) -> float
1396  calc_score(DensityMap data, SampledDensityMap model_map, float scalefactor) -> float
1397  """
1398  return _IMP_em.CoarseCC_calc_score(*args)
1399 
1400  calc_score = staticmethod(calc_score)
1401  def cross_correlation_coefficient(*args):
1402  """
1403  cross_correlation_coefficient(DensityMap grid1, DensityMap grid2, float grid2_voxel_data_threshold, bool allow_padding=False,
1404  IMP::FloatPair norm_factors=IMP::FloatPair(0., 0.)) -> double
1405  cross_correlation_coefficient(DensityMap grid1, DensityMap grid2, float grid2_voxel_data_threshold, bool allow_padding=False) -> double
1406  cross_correlation_coefficient(DensityMap grid1, DensityMap grid2, float grid2_voxel_data_threshold) -> double
1407  """
1408  return _IMP_em.CoarseCC_cross_correlation_coefficient(*args)
1409 
1410  cross_correlation_coefficient = staticmethod(cross_correlation_coefficient)
1411  def local_cross_correlation_coefficient(*args):
1412  """local_cross_correlation_coefficient(DensityMap em_map, DensityMap model_map, float voxel_data_threshold) -> float"""
1413  return _IMP_em.CoarseCC_local_cross_correlation_coefficient(*args)
1414 
1415  local_cross_correlation_coefficient = staticmethod(local_cross_correlation_coefficient)
1416  def get_version_info(self):
1417  """get_version_info(CoarseCC self) -> VersionInfo"""
1418  return _IMP_em.CoarseCC_get_version_info(self)
1419 
1420  def __str__(self):
1421  """__str__(CoarseCC self) -> std::string"""
1422  return _IMP_em.CoarseCC___str__(self)
1423 
1424  def __repr__(self):
1425  """__repr__(CoarseCC self) -> std::string"""
1426  return _IMP_em.CoarseCC___repr__(self)
1427 
1428  def get_from(o):
1429  return _object_cast_to_CoarseCC(o)
1430  get_from = staticmethod(get_from)
1431 
1432 CoarseCC_swigregister = _IMP_em.CoarseCC_swigregister
1433 CoarseCC_swigregister(CoarseCC)
1434 
1435 def CoarseCC_calc_score(*args):
1436  """
1437  calc_score(DensityMap data, SampledDensityMap model_map, float scalefactor, bool recalc_rms=True,
1438  bool resample=True, IMP::FloatPair norm_factors=IMP::FloatPair(0., 0.)) -> float
1439  calc_score(DensityMap data, SampledDensityMap model_map, float scalefactor, bool recalc_rms=True,
1440  bool resample=True) -> float
1441  calc_score(DensityMap data, SampledDensityMap model_map, float scalefactor, bool recalc_rms=True) -> float
1442  CoarseCC_calc_score(DensityMap data, SampledDensityMap model_map, float scalefactor) -> float
1443  """
1444  return _IMP_em.CoarseCC_calc_score(*args)
1445 
1446 def CoarseCC_cross_correlation_coefficient(*args):
1447  """
1448  cross_correlation_coefficient(DensityMap grid1, DensityMap grid2, float grid2_voxel_data_threshold, bool allow_padding=False,
1449  IMP::FloatPair norm_factors=IMP::FloatPair(0., 0.)) -> double
1450  cross_correlation_coefficient(DensityMap grid1, DensityMap grid2, float grid2_voxel_data_threshold, bool allow_padding=False) -> double
1451  CoarseCC_cross_correlation_coefficient(DensityMap grid1, DensityMap grid2, float grid2_voxel_data_threshold) -> double
1452  """
1453  return _IMP_em.CoarseCC_cross_correlation_coefficient(*args)
1454 
1455 def CoarseCC_local_cross_correlation_coefficient(*args):
1456  """CoarseCC_local_cross_correlation_coefficient(DensityMap em_map, DensityMap model_map, float voxel_data_threshold) -> float"""
1457  return _IMP_em.CoarseCC_local_cross_correlation_coefficient(*args)
1458 
1459 class CoarseConvolution(object):
1460  """Proxy of C++ IMP::em::CoarseConvolution class"""
1461  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1462  __repr__ = _swig_repr
1463  def convolution(*args):
1464  """
1465  convolution(DensityMap em_map, DensityMap model_map, float voxel_data_threshold, bool recalc_ccnormfac=True) -> float
1466  convolution(DensityMap em_map, DensityMap model_map, float voxel_data_threshold) -> float
1467  """
1468  return _IMP_em.CoarseConvolution_convolution(*args)
1469 
1470  convolution = staticmethod(convolution)
1471  def __init__(self):
1472  """__init__(IMP::em::CoarseConvolution self) -> CoarseConvolution"""
1473  this = _IMP_em.new_CoarseConvolution()
1474  try: self.this.append(this)
1475  except: self.this = this
1476  __swig_destroy__ = _IMP_em.delete_CoarseConvolution
1477  __del__ = lambda self : None;
1478 CoarseConvolution_swigregister = _IMP_em.CoarseConvolution_swigregister
1479 CoarseConvolution_swigregister(CoarseConvolution)
1480 
1481 def CoarseConvolution_convolution(*args):
1482  """
1483  convolution(DensityMap em_map, DensityMap model_map, float voxel_data_threshold, bool recalc_ccnormfac=True) -> float
1484  CoarseConvolution_convolution(DensityMap em_map, DensityMap model_map, float voxel_data_threshold) -> float
1485  """
1486  return _IMP_em.CoarseConvolution_convolution(*args)
1487 
1488 class CoarseCCatIntervals(CoarseCC):
1489  """Proxy of C++ IMP::em::CoarseCCatIntervals class"""
1490  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1491  def __init__(self, *args):
1492  """
1493  __init__(IMP::em::CoarseCCatIntervals self, int const & ncd) -> CoarseCCatIntervals
1494  __init__(IMP::em::CoarseCCatIntervals self) -> CoarseCCatIntervals
1495  """
1496  this = _IMP_em.new_CoarseCCatIntervals(*args)
1497  try: self.this.append(this)
1498  except: self.this = this
1499  def evaluate(self, *args):
1500  """
1501  evaluate(CoarseCCatIntervals self, DensityMap em_map, SampledDensityMap model_map, IMP::algebra::Vector3Ds const & deriv,
1502  float scalefac, bool lderiv, unsigned long eval_interval) -> std::pair< double,IMP::algebra::Vector3Ds >
1503  """
1504  return _IMP_em.CoarseCCatIntervals_evaluate(self, *args)
1505 
1506  def __str__(self):
1507  """__str__(CoarseCCatIntervals self) -> std::string"""
1508  return _IMP_em.CoarseCCatIntervals___str__(self)
1509 
1510  def __repr__(self):
1511  """__repr__(CoarseCCatIntervals self) -> std::string"""
1512  return _IMP_em.CoarseCCatIntervals___repr__(self)
1513 
1514  def get_from(o):
1515  return _object_cast_to_CoarseCCatIntervals(o)
1516  get_from = staticmethod(get_from)
1517 
1518 CoarseCCatIntervals_swigregister = _IMP_em.CoarseCCatIntervals_swigregister
1519 CoarseCCatIntervals_swigregister(CoarseCCatIntervals)
1520 
1521 class FitRestraint(IMP.kernel.Restraint):
1522  """Proxy of C++ IMP::em::FitRestraint class"""
1523  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1524  def __init__(self, *args):
1525  """
1526  __init__(IMP::em::FitRestraint self, IMP::kernel::ParticlesTemp ps, DensityMap em_map, IMP::FloatPair norm_factors=IMP::FloatPair(0., 0.),
1527  FloatKey weight_key=IMP::atom::Mass::get_mass_key(), float scale=1,
1528  bool use_rigid_bodies=True, IMP::em::KernelType kt=GAUSSIAN) -> FitRestraint
1529  __init__(IMP::em::FitRestraint self, IMP::kernel::ParticlesTemp ps, DensityMap em_map, IMP::FloatPair norm_factors=IMP::FloatPair(0., 0.),
1530  FloatKey weight_key=IMP::atom::Mass::get_mass_key(), float scale=1,
1531  bool use_rigid_bodies=True) -> FitRestraint
1532  __init__(IMP::em::FitRestraint self, IMP::kernel::ParticlesTemp ps, DensityMap em_map, IMP::FloatPair norm_factors=IMP::FloatPair(0., 0.),
1533  FloatKey weight_key=IMP::atom::Mass::get_mass_key(), float scale=1) -> FitRestraint
1534  __init__(IMP::em::FitRestraint self, IMP::kernel::ParticlesTemp ps, DensityMap em_map, IMP::FloatPair norm_factors=IMP::FloatPair(0., 0.),
1535  FloatKey weight_key=IMP::atom::Mass::get_mass_key()) -> FitRestraint
1536  __init__(IMP::em::FitRestraint self, IMP::kernel::ParticlesTemp ps, DensityMap em_map, IMP::FloatPair norm_factors=IMP::FloatPair(0., 0.)) -> FitRestraint
1537  __init__(IMP::em::FitRestraint self, IMP::kernel::ParticlesTemp ps, DensityMap em_map) -> FitRestraint
1538  """
1539  this = _IMP_em.new_FitRestraint(*args)
1540  try: self.this.append(this)
1541  except: self.this = this
1542  def get_model_dens_map(self):
1543  """get_model_dens_map(FitRestraint self) -> SampledDensityMap"""
1544  return _IMP_em.FitRestraint_get_model_dens_map(self)
1545 
1546  def set_scale_factor(self, *args):
1547  """set_scale_factor(FitRestraint self, float scale)"""
1548  return _IMP_em.FitRestraint_set_scale_factor(self, *args)
1549 
1550  def get_scale_factor(self):
1551  """get_scale_factor(FitRestraint self) -> float"""
1552  return _IMP_em.FitRestraint_get_scale_factor(self)
1553 
1554  def do_get_inputs(self):
1555  """do_get_inputs(FitRestraint self) -> IMP::kernel::ModelObjectsTemp"""
1556  return _IMP_em.FitRestraint_do_get_inputs(self)
1557 
1558  def get_version_info(self):
1559  """get_version_info(FitRestraint self) -> VersionInfo"""
1560  return _IMP_em.FitRestraint_get_version_info(self)
1561 
1562  def __str__(self):
1563  """__str__(FitRestraint self) -> std::string"""
1564  return _IMP_em.FitRestraint___str__(self)
1565 
1566  def __repr__(self):
1567  """__repr__(FitRestraint self) -> std::string"""
1568  return _IMP_em.FitRestraint___repr__(self)
1569 
1570  def get_from(o):
1571  return _object_cast_to_FitRestraint(o)
1572  get_from = staticmethod(get_from)
1573 
1574  def cast(*args):
1575  """cast(Restraint r) -> FitRestraint"""
1576  return _IMP_em.FitRestraint_cast(*args)
1577 
1578  cast = staticmethod(cast)
1579 FitRestraint_swigregister = _IMP_em.FitRestraint_swigregister
1580 FitRestraint_swigregister(FitRestraint)
1581 
1582 def FitRestraint_cast(*args):
1583  """FitRestraint_cast(Restraint r) -> FitRestraint"""
1584  return _IMP_em.FitRestraint_cast(*args)
1585 
1586 
1587 def density2particles(*args):
1588  """
1589  density2particles(DensityMap dmap, IMP::Float threshold, Model m, int step=1) -> IMP::kernel::Particles
1590  density2particles(DensityMap dmap, IMP::Float threshold, Model m) -> IMP::kernel::Particles
1591  """
1592  return _IMP_em.density2particles(*args)
1593 
1594 def density2vectors(*args):
1595  """density2vectors(DensityMap dmap, IMP::Float threshold) -> IMP::algebra::Vector3Ds"""
1596  return _IMP_em.density2vectors(*args)
1597 
1598 def particles2density(*args):
1599  """
1600  particles2density(IMP::kernel::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix, int sig_cutoff=3,
1601  FloatKey weight_key=IMP::atom::Mass::get_mass_key()) -> SampledDensityMap
1602  particles2density(IMP::kernel::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix, int sig_cutoff=3) -> SampledDensityMap
1603  particles2density(IMP::kernel::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix) -> SampledDensityMap
1604  """
1605  return _IMP_em.particles2density(*args)
1606 
1607 def particles2binarized_density(*args):
1608  """
1609  particles2binarized_density(IMP::kernel::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix, int sig_cutoff=3,
1610  FloatKey weight_key=IMP::atom::Mass::get_mass_key()) -> SampledDensityMap
1611  particles2binarized_density(IMP::kernel::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix, int sig_cutoff=3) -> SampledDensityMap
1612  particles2binarized_density(IMP::kernel::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix) -> SampledDensityMap
1613  """
1614  return _IMP_em.particles2binarized_density(*args)
1615 
1616 def particles2surface(*args):
1617  """
1618  particles2surface(IMP::kernel::ParticlesTemp const & ps, IMP::Float apix, FloatKey weight_key=IMP::atom::Mass::get_mass_key()) -> SurfaceShellDensityMap
1619  particles2surface(IMP::kernel::ParticlesTemp const & ps, IMP::Float apix) -> SurfaceShellDensityMap
1620  """
1621  return _IMP_em.particles2surface(*args)
1622 
1623 def calculate_intersection_score(*args):
1624  """calculate_intersection_score(SurfaceShellDensityMap d1, SurfaceShellDensityMap d2) -> IMP::Float"""
1625  return _IMP_em.calculate_intersection_score(*args)
1626 class SpiderHeader(object):
1627  """Proxy of C++ IMP::em::SpiderHeader class"""
1628  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1629  __repr__ = _swig_repr
1630  fNslice = _swig_property(_IMP_em.SpiderHeader_fNslice_get, _IMP_em.SpiderHeader_fNslice_set)
1631  fNrow = _swig_property(_IMP_em.SpiderHeader_fNrow_get, _IMP_em.SpiderHeader_fNrow_set)
1632  fNrec = _swig_property(_IMP_em.SpiderHeader_fNrec_get, _IMP_em.SpiderHeader_fNrec_set)
1633  fNlabel = _swig_property(_IMP_em.SpiderHeader_fNlabel_get, _IMP_em.SpiderHeader_fNlabel_set)
1634  fIform = _swig_property(_IMP_em.SpiderHeader_fIform_get, _IMP_em.SpiderHeader_fIform_set)
1635  fImami = _swig_property(_IMP_em.SpiderHeader_fImami_get, _IMP_em.SpiderHeader_fImami_set)
1636  fFmax = _swig_property(_IMP_em.SpiderHeader_fFmax_get, _IMP_em.SpiderHeader_fFmax_set)
1637  fFmin = _swig_property(_IMP_em.SpiderHeader_fFmin_get, _IMP_em.SpiderHeader_fFmin_set)
1638  fAv = _swig_property(_IMP_em.SpiderHeader_fAv_get, _IMP_em.SpiderHeader_fAv_set)
1639  fSig = _swig_property(_IMP_em.SpiderHeader_fSig_get, _IMP_em.SpiderHeader_fSig_set)
1640  fIhist = _swig_property(_IMP_em.SpiderHeader_fIhist_get, _IMP_em.SpiderHeader_fIhist_set)
1641  fNcol = _swig_property(_IMP_em.SpiderHeader_fNcol_get, _IMP_em.SpiderHeader_fNcol_set)
1642  fLabrec = _swig_property(_IMP_em.SpiderHeader_fLabrec_get, _IMP_em.SpiderHeader_fLabrec_set)
1643  fIangle = _swig_property(_IMP_em.SpiderHeader_fIangle_get, _IMP_em.SpiderHeader_fIangle_set)
1644  fPhi = _swig_property(_IMP_em.SpiderHeader_fPhi_get, _IMP_em.SpiderHeader_fPhi_set)
1645  fTheta = _swig_property(_IMP_em.SpiderHeader_fTheta_get, _IMP_em.SpiderHeader_fTheta_set)
1646  fPsi = _swig_property(_IMP_em.SpiderHeader_fPsi_get, _IMP_em.SpiderHeader_fPsi_set)
1647  fXoff = _swig_property(_IMP_em.SpiderHeader_fXoff_get, _IMP_em.SpiderHeader_fXoff_set)
1648  fYoff = _swig_property(_IMP_em.SpiderHeader_fYoff_get, _IMP_em.SpiderHeader_fYoff_set)
1649  fZoff = _swig_property(_IMP_em.SpiderHeader_fZoff_get, _IMP_em.SpiderHeader_fZoff_set)
1650  fScale = _swig_property(_IMP_em.SpiderHeader_fScale_get, _IMP_em.SpiderHeader_fScale_set)
1651  fLabbyt = _swig_property(_IMP_em.SpiderHeader_fLabbyt_get, _IMP_em.SpiderHeader_fLabbyt_set)
1652  fLenbyt = _swig_property(_IMP_em.SpiderHeader_fLenbyt_get, _IMP_em.SpiderHeader_fLenbyt_set)
1653  fNothing = _swig_property(_IMP_em.SpiderHeader_fNothing_get, _IMP_em.SpiderHeader_fNothing_set)
1654  fFlag = _swig_property(_IMP_em.SpiderHeader_fFlag_get, _IMP_em.SpiderHeader_fFlag_set)
1655  fPhi1 = _swig_property(_IMP_em.SpiderHeader_fPhi1_get, _IMP_em.SpiderHeader_fPhi1_set)
1656  fTheta1 = _swig_property(_IMP_em.SpiderHeader_fTheta1_get, _IMP_em.SpiderHeader_fTheta1_set)
1657  fPsi1 = _swig_property(_IMP_em.SpiderHeader_fPsi1_get, _IMP_em.SpiderHeader_fPsi1_set)
1658  fPhi2 = _swig_property(_IMP_em.SpiderHeader_fPhi2_get, _IMP_em.SpiderHeader_fPhi2_set)
1659  fTheta2 = _swig_property(_IMP_em.SpiderHeader_fTheta2_get, _IMP_em.SpiderHeader_fTheta2_set)
1660  fPsi2 = _swig_property(_IMP_em.SpiderHeader_fPsi2_get, _IMP_em.SpiderHeader_fPsi2_set)
1661  fGeo_matrix = _swig_property(_IMP_em.SpiderHeader_fGeo_matrix_get, _IMP_em.SpiderHeader_fGeo_matrix_set)
1662  fAngle1 = _swig_property(_IMP_em.SpiderHeader_fAngle1_get, _IMP_em.SpiderHeader_fAngle1_set)
1663  fr1 = _swig_property(_IMP_em.SpiderHeader_fr1_get, _IMP_em.SpiderHeader_fr1_set)
1664  fr2 = _swig_property(_IMP_em.SpiderHeader_fr2_get, _IMP_em.SpiderHeader_fr2_set)
1665  RTflag = _swig_property(_IMP_em.SpiderHeader_RTflag_get, _IMP_em.SpiderHeader_RTflag_set)
1666  Astart = _swig_property(_IMP_em.SpiderHeader_Astart_get, _IMP_em.SpiderHeader_Astart_set)
1667  Aend = _swig_property(_IMP_em.SpiderHeader_Aend_get, _IMP_em.SpiderHeader_Aend_set)
1668  Ainc = _swig_property(_IMP_em.SpiderHeader_Ainc_get, _IMP_em.SpiderHeader_Ainc_set)
1669  Rsigma = _swig_property(_IMP_em.SpiderHeader_Rsigma_get, _IMP_em.SpiderHeader_Rsigma_set)
1670  Tstart = _swig_property(_IMP_em.SpiderHeader_Tstart_get, _IMP_em.SpiderHeader_Tstart_set)
1671  Tend = _swig_property(_IMP_em.SpiderHeader_Tend_get, _IMP_em.SpiderHeader_Tend_set)
1672  Tinc = _swig_property(_IMP_em.SpiderHeader_Tinc_get, _IMP_em.SpiderHeader_Tinc_set)
1673  Weight = _swig_property(_IMP_em.SpiderHeader_Weight_get, _IMP_em.SpiderHeader_Weight_set)
1674  Flip = _swig_property(_IMP_em.SpiderHeader_Flip_get, _IMP_em.SpiderHeader_Flip_set)
1675  empty = _swig_property(_IMP_em.SpiderHeader_empty_get, _IMP_em.SpiderHeader_empty_set)
1676  szIDat = _swig_property(_IMP_em.SpiderHeader_szIDat_get, _IMP_em.SpiderHeader_szIDat_set)
1677  szITim = _swig_property(_IMP_em.SpiderHeader_szITim_get, _IMP_em.SpiderHeader_szITim_set)
1678  szITit = _swig_property(_IMP_em.SpiderHeader_szITit_get, _IMP_em.SpiderHeader_szITit_set)
1679  def show(self, *args):
1680  """show(SpiderHeader self, _ostream out)"""
1681  return _IMP_em.SpiderHeader_show(self, *args)
1682 
1683  def __init__(self):
1684  """__init__(IMP::em::SpiderHeader self) -> SpiderHeader"""
1685  this = _IMP_em.new_SpiderHeader()
1686  try: self.this.append(this)
1687  except: self.this = this
1688  __swig_destroy__ = _IMP_em.delete_SpiderHeader
1689  __del__ = lambda self : None;
1690 SpiderHeader_swigregister = _IMP_em.SpiderHeader_swigregister
1691 SpiderHeader_swigregister(SpiderHeader)
1692 
1693 class ImageHeader(object):
1694  """Proxy of C++ IMP::em::ImageHeader class"""
1695  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1696  __repr__ = _swig_repr
1697  IMG_BYTE = _IMP_em.ImageHeader_IMG_BYTE
1698  IMG_IMPEM = _IMP_em.ImageHeader_IMG_IMPEM
1699  IMG_INT = _IMP_em.ImageHeader_IMG_INT
1700  VOL_BYTE = _IMP_em.ImageHeader_VOL_BYTE
1701  VOL_IMPEM = _IMP_em.ImageHeader_VOL_IMPEM
1702  VOL_INT = _IMP_em.ImageHeader_VOL_INT
1703  IMG_FOURIER = _IMP_em.ImageHeader_IMG_FOURIER
1704  VOL_FOURIER = _IMP_em.ImageHeader_VOL_FOURIER
1705  def __init__(self, *args):
1706  """
1707  __init__(IMP::em::ImageHeader self) -> ImageHeader
1708  __init__(IMP::em::ImageHeader self, IMP::em::ImageHeader::img_type im) -> ImageHeader
1709  __init__(IMP::em::ImageHeader self, float im) -> ImageHeader
1710  """
1711  this = _IMP_em.new_ImageHeader(*args)
1712  try: self.this.append(this)
1713  except: self.this = this
1714  def get_image_type(self):
1715  """get_image_type(ImageHeader self) -> float"""
1716  return _IMP_em.ImageHeader_get_image_type(self)
1717 
1718  def set_image_type(self, *args):
1719  """
1720  set_image_type(ImageHeader self, IMP::em::ImageHeader::img_type im)
1721  set_image_type(ImageHeader self, float im)
1722  """
1723  return _IMP_em.ImageHeader_set_image_type(self, *args)
1724 
1725  def do_show(self, *args):
1726  """do_show(ImageHeader self, _ostream out)"""
1727  return _IMP_em.ImageHeader_do_show(self, *args)
1728 
1729  def show(self, *args):
1730  """
1731  show(ImageHeader self, _ostream out=std::cout)
1732  show(ImageHeader self)
1733  """
1734  return _IMP_em.ImageHeader_show(self, *args)
1735 
1736  def print_hard(self, *args):
1737  """print_hard(ImageHeader self, _ostream out)"""
1738  return _IMP_em.ImageHeader_print_hard(self, *args)
1739 
1740  def show_projection_params(self, *args):
1741  """show_projection_params(ImageHeader self, _ostream out)"""
1742  return _IMP_em.ImageHeader_show_projection_params(self, *args)
1743 
1744  def read(self, *args):
1745  """
1746  read(ImageHeader self, IMP::String const filename, bool skip_type_check=False, bool force_reversed=False,
1747  bool skip_extra_checkings=False) -> int
1748  read(ImageHeader self, IMP::String const filename, bool skip_type_check=False, bool force_reversed=False) -> int
1749  read(ImageHeader self, IMP::String const filename, bool skip_type_check=False) -> int
1750  read(ImageHeader self, IMP::String const filename) -> int
1751  read(ImageHeader self, std::ifstream & f, bool skip_type_check=False, bool force_reversed=False, bool skip_extra_checkings=False) -> bool
1752  read(ImageHeader self, std::ifstream & f, bool skip_type_check=False, bool force_reversed=False) -> bool
1753  read(ImageHeader self, std::ifstream & f, bool skip_type_check=False) -> bool
1754  read(ImageHeader self, std::ifstream & f) -> bool
1755  """
1756  return _IMP_em.ImageHeader_read(self, *args)
1757 
1758  def write(self, *args):
1759  """
1760  write(ImageHeader self, IMP::String const & filename, bool force_reversed=False)
1761  write(ImageHeader self, IMP::String const & filename)
1762  write(ImageHeader self, std::ofstream & f, bool force_reversed=False)
1763  write(ImageHeader self, std::ofstream & f)
1764  """
1765  return _IMP_em.ImageHeader_write(self, *args)
1766 
1767  def clear(self):
1768  """clear(ImageHeader self)"""
1769  return _IMP_em.ImageHeader_clear(self)
1770 
1771  def set_header(self):
1772  """set_header(ImageHeader self)"""
1773  return _IMP_em.ImageHeader_set_header(self)
1774 
1775  def get_reversed(self):
1776  """get_reversed(ImageHeader self) -> bool"""
1777  return _IMP_em.ImageHeader_get_reversed(self)
1778 
1779  def set_reversed(self, *args):
1780  """set_reversed(ImageHeader self, bool value)"""
1781  return _IMP_em.ImageHeader_set_reversed(self, *args)
1782 
1783  def get_number_of_slices(self):
1784  """get_number_of_slices(ImageHeader self) -> unsigned int"""
1785  return _IMP_em.ImageHeader_get_number_of_slices(self)
1786 
1787  def set_number_of_slices(self, *args):
1788  """set_number_of_slices(ImageHeader self, unsigned int n)"""
1789  return _IMP_em.ImageHeader_set_number_of_slices(self, *args)
1790 
1791  def get_number_of_rows(self):
1792  """get_number_of_rows(ImageHeader self) -> unsigned int"""
1793  return _IMP_em.ImageHeader_get_number_of_rows(self)
1794 
1795  def set_number_of_rows(self, *args):
1796  """set_number_of_rows(ImageHeader self, unsigned int n)"""
1797  return _IMP_em.ImageHeader_set_number_of_rows(self, *args)
1798 
1799  def get_number_of_columns(self):
1800  """get_number_of_columns(ImageHeader self) -> unsigned int"""
1801  return _IMP_em.ImageHeader_get_number_of_columns(self)
1802 
1803  def set_number_of_columns(self, *args):
1804  """set_number_of_columns(ImageHeader self, unsigned int n)"""
1805  return _IMP_em.ImageHeader_set_number_of_columns(self, *args)
1806 
1807  def get_old_rot(self):
1808  """get_old_rot(ImageHeader self) -> float"""
1809  return _IMP_em.ImageHeader_get_old_rot(self)
1810 
1811  def set_old_rot(self, *args):
1812  """set_old_rot(ImageHeader self, float value)"""
1813  return _IMP_em.ImageHeader_set_old_rot(self, *args)
1814 
1815  def get_fAngle1(self):
1816  """get_fAngle1(ImageHeader self) -> float"""
1817  return _IMP_em.ImageHeader_get_fAngle1(self)
1818 
1819  def set_fAngle1(self, *args):
1820  """set_fAngle1(ImageHeader self, float value)"""
1821  return _IMP_em.ImageHeader_set_fAngle1(self, *args)
1822 
1823  def get_Scale(self):
1824  """get_Scale(ImageHeader self) -> float"""
1825  return _IMP_em.ImageHeader_get_Scale(self)
1826 
1827  def set_Scale(self, *args):
1828  """set_Scale(ImageHeader self, float value)"""
1829  return _IMP_em.ImageHeader_set_Scale(self, *args)
1830 
1831  def get_Flip(self):
1832  """get_Flip(ImageHeader self) -> float"""
1833  return _IMP_em.ImageHeader_get_Flip(self)
1834 
1835  def set_Flip(self, *args):
1836  """set_Flip(ImageHeader self, float value)"""
1837  return _IMP_em.ImageHeader_set_Flip(self, *args)
1838 
1839  def get_Weight(self):
1840  """get_Weight(ImageHeader self) -> float"""
1841  return _IMP_em.ImageHeader_get_Weight(self)
1842 
1843  def set_Weight(self, *args):
1844  """set_Weight(ImageHeader self, float value)"""
1845  return _IMP_em.ImageHeader_set_Weight(self, *args)
1846 
1847  def get_fNrec(self):
1848  """get_fNrec(ImageHeader self) -> float"""
1849  return _IMP_em.ImageHeader_get_fNrec(self)
1850 
1851  def set_fNrec(self, *args):
1852  """set_fNrec(ImageHeader self, float value)"""
1853  return _IMP_em.ImageHeader_set_fNrec(self, *args)
1854 
1855  def get_fNlabel(self):
1856  """get_fNlabel(ImageHeader self) -> float"""
1857  return _IMP_em.ImageHeader_get_fNlabel(self)
1858 
1859  def set_fNlabel(self, *args):
1860  """set_fNlabel(ImageHeader self, float value)"""
1861  return _IMP_em.ImageHeader_set_fNlabel(self, *args)
1862 
1863  def get_fIform(self):
1864  """get_fIform(ImageHeader self) -> float"""
1865  return _IMP_em.ImageHeader_get_fIform(self)
1866 
1867  def set_fIform(self, *args):
1868  """set_fIform(ImageHeader self, float value)"""
1869  return _IMP_em.ImageHeader_set_fIform(self, *args)
1870 
1871  def get_fImami(self):
1872  """get_fImami(ImageHeader self) -> float"""
1873  return _IMP_em.ImageHeader_get_fImami(self)
1874 
1875  def set_fImami(self, *args):
1876  """set_fImami(ImageHeader self, float value)"""
1877  return _IMP_em.ImageHeader_set_fImami(self, *args)
1878 
1879  def get_fFmax(self):
1880  """get_fFmax(ImageHeader self) -> float"""
1881  return _IMP_em.ImageHeader_get_fFmax(self)
1882 
1883  def set_fFmax(self, *args):
1884  """set_fFmax(ImageHeader self, float value)"""
1885  return _IMP_em.ImageHeader_set_fFmax(self, *args)
1886 
1887  def get_fFmin(self):
1888  """get_fFmin(ImageHeader self) -> float"""
1889  return _IMP_em.ImageHeader_get_fFmin(self)
1890 
1891  def set_fFmin(self, *args):
1892  """set_fFmin(ImageHeader self, float value)"""
1893  return _IMP_em.ImageHeader_set_fFmin(self, *args)
1894 
1895  def get_fAv(self):
1896  """get_fAv(ImageHeader self) -> float"""
1897  return _IMP_em.ImageHeader_get_fAv(self)
1898 
1899  def set_fAv(self, *args):
1900  """set_fAv(ImageHeader self, float value)"""
1901  return _IMP_em.ImageHeader_set_fAv(self, *args)
1902 
1903  def get_fSig(self):
1904  """get_fSig(ImageHeader self) -> float"""
1905  return _IMP_em.ImageHeader_get_fSig(self)
1906 
1907  def set_fSig(self, *args):
1908  """set_fSig(ImageHeader self, float value)"""
1909  return _IMP_em.ImageHeader_set_fSig(self, *args)
1910 
1911  def get_fIhist(self):
1912  """get_fIhist(ImageHeader self) -> float"""
1913  return _IMP_em.ImageHeader_get_fIhist(self)
1914 
1915  def set_fIhist(self, *args):
1916  """set_fIhist(ImageHeader self, float value)"""
1917  return _IMP_em.ImageHeader_set_fIhist(self, *args)
1918 
1919  def get_fLabrec(self):
1920  """get_fLabrec(ImageHeader self) -> float"""
1921  return _IMP_em.ImageHeader_get_fLabrec(self)
1922 
1923  def set_fLabrec(self, *args):
1924  """set_fLabrec(ImageHeader self, float value)"""
1925  return _IMP_em.ImageHeader_set_fLabrec(self, *args)
1926 
1927  def get_fIangle(self):
1928  """get_fIangle(ImageHeader self) -> float"""
1929  return _IMP_em.ImageHeader_get_fIangle(self)
1930 
1931  def set_fIangle(self, *args):
1932  """set_fIangle(ImageHeader self, float value)"""
1933  return _IMP_em.ImageHeader_set_fIangle(self, *args)
1934 
1935  def get_origin(self):
1936  """get_origin(ImageHeader self) -> Vector3D"""
1937  return _IMP_em.ImageHeader_get_origin(self)
1938 
1939  def set_origin(self, *args):
1940  """
1941  set_origin(ImageHeader self, Vector3D v)
1942  set_origin(ImageHeader self, Vector2D v)
1943  """
1944  return _IMP_em.ImageHeader_set_origin(self, *args)
1945 
1946  def get_object_pixel_size(self):
1947  """get_object_pixel_size(ImageHeader self) -> float"""
1948  return _IMP_em.ImageHeader_get_object_pixel_size(self)
1949 
1950  def set_object_pixel_size(self, *args):
1951  """set_object_pixel_size(ImageHeader self, float value)"""
1952  return _IMP_em.ImageHeader_set_object_pixel_size(self, *args)
1953 
1954  def get_fLabbyt(self):
1955  """get_fLabbyt(ImageHeader self) -> float"""
1956  return _IMP_em.ImageHeader_get_fLabbyt(self)
1957 
1958  def set_fLabbyt(self, *args):
1959  """set_fLabbyt(ImageHeader self, float value)"""
1960  return _IMP_em.ImageHeader_set_fLabbyt(self, *args)
1961 
1962  def get_fLenbyt(self):
1963  """get_fLenbyt(ImageHeader self) -> float"""
1964  return _IMP_em.ImageHeader_get_fLenbyt(self)
1965 
1966  def set_fLenbyt(self, *args):
1967  """set_fLenbyt(ImageHeader self, float value)"""
1968  return _IMP_em.ImageHeader_set_fLenbyt(self, *args)
1969 
1970  def get_fGeo_matrix(self, *args):
1971  """get_fGeo_matrix(ImageHeader self, unsigned int i, unsigned int j) -> double"""
1972  return _IMP_em.ImageHeader_get_fGeo_matrix(self, *args)
1973 
1974  def get_fFlag(self):
1975  """get_fFlag(ImageHeader self) -> float"""
1976  return _IMP_em.ImageHeader_get_fFlag(self)
1977 
1978  def set_fFlag(self, *args):
1979  """set_fFlag(ImageHeader self, float value)"""
1980  return _IMP_em.ImageHeader_set_fFlag(self, *args)
1981 
1982  def get_euler_angles(self):
1983  """get_euler_angles(ImageHeader self) -> Vector3D"""
1984  return _IMP_em.ImageHeader_get_euler_angles(self)
1985 
1986  def get_euler_angles1(self):
1987  """get_euler_angles1(ImageHeader self) -> Vector3D"""
1988  return _IMP_em.ImageHeader_get_euler_angles1(self)
1989 
1990  def get_euler_angles2(self):
1991  """get_euler_angles2(ImageHeader self) -> Vector3D"""
1992  return _IMP_em.ImageHeader_get_euler_angles2(self)
1993 
1994  def set_euler_angles(self, *args):
1995  """set_euler_angles(ImageHeader self, Vector3D euler)"""
1996  return _IMP_em.ImageHeader_set_euler_angles(self, *args)
1997 
1998  def set_euler_angles1(self, *args):
1999  """set_euler_angles1(ImageHeader self, Vector3D euler)"""
2000  return _IMP_em.ImageHeader_set_euler_angles1(self, *args)
2001 
2002  def set_euler_angles2(self, *args):
2003  """set_euler_angles2(ImageHeader self, Vector3D euler)"""
2004  return _IMP_em.ImageHeader_set_euler_angles2(self, *args)
2005 
2006  def is_normalized(self):
2007  """is_normalized(ImageHeader self) -> bool"""
2008  return _IMP_em.ImageHeader_is_normalized(self)
2009 
2010  def set_date(self):
2011  """set_date(ImageHeader self)"""
2012  return _IMP_em.ImageHeader_set_date(self)
2013 
2014  def set_time(self):
2015  """set_time(ImageHeader self)"""
2016  return _IMP_em.ImageHeader_set_time(self)
2017 
2018  def set_title(self, *args):
2019  """set_title(ImageHeader self, IMP::String newName)"""
2020  return _IMP_em.ImageHeader_set_title(self, *args)
2021 
2022  __swig_destroy__ = _IMP_em.delete_ImageHeader
2023  __del__ = lambda self : None;
2024 ImageHeader_swigregister = _IMP_em.ImageHeader_swigregister
2025 ImageHeader_swigregister(ImageHeader)
2026 
2027 class SpiderMapReaderWriter(MapReaderWriter):
2028  """Proxy of C++ IMP::em::SpiderMapReaderWriter class"""
2029  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2030  filename_ = _swig_property(_IMP_em.SpiderMapReaderWriter_filename__get, _IMP_em.SpiderMapReaderWriter_filename__set)
2031  skip_type_check_ = _swig_property(_IMP_em.SpiderMapReaderWriter_skip_type_check__get, _IMP_em.SpiderMapReaderWriter_skip_type_check__set)
2032  force_reversed_ = _swig_property(_IMP_em.SpiderMapReaderWriter_force_reversed__get, _IMP_em.SpiderMapReaderWriter_force_reversed__set)
2033  skip_extra_checkings_ = _swig_property(_IMP_em.SpiderMapReaderWriter_skip_extra_checkings__get, _IMP_em.SpiderMapReaderWriter_skip_extra_checkings__set)
2034  def __init__(self, *args):
2035  """
2036  __init__(IMP::em::SpiderMapReaderWriter self) -> SpiderMapReaderWriter
2037  __init__(IMP::em::SpiderMapReaderWriter self, IMP::String filename, bool skip_type_check, bool force_reversed, bool skip_extra_checkings) -> SpiderMapReaderWriter
2038  """
2039  this = _IMP_em.new_SpiderMapReaderWriter(*args)
2040  try: self.this.append(this)
2041  except: self.this = this
2042  def __str__(self):
2043  """__str__(SpiderMapReaderWriter self) -> std::string"""
2044  return _IMP_em.SpiderMapReaderWriter___str__(self)
2045 
2046  def __repr__(self):
2047  """__repr__(SpiderMapReaderWriter self) -> std::string"""
2048  return _IMP_em.SpiderMapReaderWriter___repr__(self)
2049 
2050  def get_from(o):
2051  return _object_cast_to_SpiderMapReaderWriter(o)
2052  get_from = staticmethod(get_from)
2053 
2054 SpiderMapReaderWriter_swigregister = _IMP_em.SpiderMapReaderWriter_swigregister
2055 SpiderMapReaderWriter_swigregister(SpiderMapReaderWriter)
2056 
2057 class FittingSolutions(object):
2058  """Proxy of C++ IMP::em::FittingSolutions class"""
2059  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2060  def __init__(self):
2061  """__init__(IMP::em::FittingSolutions self) -> FittingSolutions"""
2062  this = _IMP_em.new_FittingSolutions()
2063  try: self.this.append(this)
2064  except: self.this = this
2065  def get_number_of_solutions(self):
2066  """get_number_of_solutions(FittingSolutions self) -> int"""
2067  return _IMP_em.FittingSolutions_get_number_of_solutions(self)
2068 
2069  def get_transformation(self, *args):
2070  """get_transformation(FittingSolutions self, unsigned int i) -> Transformation3D"""
2071  return _IMP_em.FittingSolutions_get_transformation(self, *args)
2072 
2073  def get_score(self, *args):
2074  """get_score(FittingSolutions self, unsigned int i) -> IMP::Float"""
2075  return _IMP_em.FittingSolutions_get_score(self, *args)
2076 
2077  def set_score(self, *args):
2078  """set_score(FittingSolutions self, unsigned int i, IMP::Float score)"""
2079  return _IMP_em.FittingSolutions_set_score(self, *args)
2080 
2081  def add_solution(self, *args):
2082  """add_solution(FittingSolutions self, Transformation3D t, IMP::Float score)"""
2083  return _IMP_em.FittingSolutions_add_solution(self, *args)
2084 
2085  def sort(self, reverse=False):
2086  """
2087  sort(FittingSolutions self, bool reverse=False)
2088  sort(FittingSolutions self)
2089  """
2090  return _IMP_em.FittingSolutions_sort(self, reverse)
2091 
2092  def multiply(self, *args):
2093  """multiply(FittingSolutions self, Transformation3D t)"""
2094  return _IMP_em.FittingSolutions_multiply(self, *args)
2095 
2096  def get_transformations(self):
2097  """get_transformations(FittingSolutions self) -> IMP::algebra::Transformation3Ds"""
2098  return _IMP_em.FittingSolutions_get_transformations(self)
2099 
2100  def show(self, *args):
2101  """
2102  show(FittingSolutions self, _ostream out=std::cout)
2103  show(FittingSolutions self)
2104  """
2105  return _IMP_em.FittingSolutions_show(self, *args)
2106 
2107  def __str__(self):
2108  """__str__(FittingSolutions self) -> std::string"""
2109  return _IMP_em.FittingSolutions___str__(self)
2110 
2111  def __repr__(self):
2112  """__repr__(FittingSolutions self) -> std::string"""
2113  return _IMP_em.FittingSolutions___repr__(self)
2114 
2115  __swig_destroy__ = _IMP_em.delete_FittingSolutions
2116  __del__ = lambda self : None;
2117 FittingSolutions_swigregister = _IMP_em.FittingSolutions_swigregister
2118 FittingSolutions_swigregister(FittingSolutions)
2119 
2120 
2122  """
2123  local_rigid_fitting_around_point(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, Vector3D anchor_centroid,
2124  IMP::kernel::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5,
2125  IMP::Int number_of_mc_steps=10, IMP::Int number_of_cg_steps=100,
2126  IMP::Float max_translation=2., IMP::Float max_rotation=.3, bool fast=False) -> FittingSolutions
2127  local_rigid_fitting_around_point(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, Vector3D anchor_centroid,
2128  IMP::kernel::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5,
2129  IMP::Int number_of_mc_steps=10, IMP::Int number_of_cg_steps=100,
2130  IMP::Float max_translation=2., IMP::Float max_rotation=.3) -> FittingSolutions
2131  local_rigid_fitting_around_point(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, Vector3D anchor_centroid,
2132  IMP::kernel::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5,
2133  IMP::Int number_of_mc_steps=10, IMP::Int number_of_cg_steps=100,
2134  IMP::Float max_translation=2.) -> FittingSolutions
2135  local_rigid_fitting_around_point(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, Vector3D anchor_centroid,
2136  IMP::kernel::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5,
2137  IMP::Int number_of_mc_steps=10, IMP::Int number_of_cg_steps=100) -> FittingSolutions
2138  local_rigid_fitting_around_point(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, Vector3D anchor_centroid,
2139  IMP::kernel::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5,
2140  IMP::Int number_of_mc_steps=10) -> FittingSolutions
2141  local_rigid_fitting_around_point(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, Vector3D anchor_centroid,
2142  IMP::kernel::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5) -> FittingSolutions
2143  local_rigid_fitting_around_point(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, Vector3D anchor_centroid,
2144  IMP::kernel::OptimizerStates display_log) -> FittingSolutions
2145  """
2146  return _IMP_em.local_rigid_fitting_around_point(*args)
2147 
2148 def local_rigid_fitting(*args):
2149  """
2150  local_rigid_fitting(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, IMP::kernel::OptimizerStates display_log,
2151  IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10,
2152  IMP::Int number_of_cg_steps=100, IMP::Float max_translation=2.,
2153  IMP::Float max_rotation=.3, bool fast=True) -> FittingSolutions
2154  local_rigid_fitting(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, IMP::kernel::OptimizerStates display_log,
2155  IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10,
2156  IMP::Int number_of_cg_steps=100, IMP::Float max_translation=2.,
2157  IMP::Float max_rotation=.3) -> FittingSolutions
2158  local_rigid_fitting(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, IMP::kernel::OptimizerStates display_log,
2159  IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10,
2160  IMP::Int number_of_cg_steps=100, IMP::Float max_translation=2.) -> FittingSolutions
2161  local_rigid_fitting(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, IMP::kernel::OptimizerStates display_log,
2162  IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10,
2163  IMP::Int number_of_cg_steps=100) -> FittingSolutions
2164  local_rigid_fitting(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, IMP::kernel::OptimizerStates display_log,
2165  IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10) -> FittingSolutions
2166  local_rigid_fitting(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, IMP::kernel::OptimizerStates display_log,
2167  IMP::Int number_of_optimization_runs=5) -> FittingSolutions
2168  local_rigid_fitting(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, IMP::kernel::OptimizerStates display_log) -> FittingSolutions
2169  """
2170  return _IMP_em.local_rigid_fitting(*args)
2171 
2173  """
2174  local_rigid_fitting_around_points(Particle p, Refiner refiner, FloatKey wei_key, DensityMap dmap, IMP::algebra::Vector3Ds const & anchor_centroids,
2175  IMP::kernel::OptimizerStates display_log,
2176  IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10, IMP::Int number_of_cg_steps=100,
2177  IMP::Float max_translation=2., IMP::Float max_rotation=.3) -> FittingSolutions
2178  local_rigid_fitting_around_points(Particle p, Refiner refiner, FloatKey wei_key, DensityMap dmap, IMP::algebra::Vector3Ds const & anchor_centroids,
2179  IMP::kernel::OptimizerStates display_log,
2180  IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10, IMP::Int number_of_cg_steps=100,
2181  IMP::Float max_translation=2.) -> FittingSolutions
2182  local_rigid_fitting_around_points(Particle p, Refiner refiner, FloatKey wei_key, DensityMap dmap, IMP::algebra::Vector3Ds const & anchor_centroids,
2183  IMP::kernel::OptimizerStates display_log,
2184  IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10, IMP::Int number_of_cg_steps=100) -> FittingSolutions
2185  local_rigid_fitting_around_points(Particle p, Refiner refiner, FloatKey wei_key, DensityMap dmap, IMP::algebra::Vector3Ds const & anchor_centroids,
2186  IMP::kernel::OptimizerStates display_log,
2187  IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10) -> FittingSolutions
2188  local_rigid_fitting_around_points(Particle p, Refiner refiner, FloatKey wei_key, DensityMap dmap, IMP::algebra::Vector3Ds const & anchor_centroids,
2189  IMP::kernel::OptimizerStates display_log,
2190  IMP::Int number_of_optimization_runs=5) -> FittingSolutions
2191  local_rigid_fitting_around_points(Particle p, Refiner refiner, FloatKey wei_key, DensityMap dmap, IMP::algebra::Vector3Ds const & anchor_centroids,
2192  IMP::kernel::OptimizerStates display_log) -> FittingSolutions
2193  """
2194  return _IMP_em.local_rigid_fitting_around_points(*args)
2195 
2197  """
2198  local_rigid_fitting_grid_search(IMP::kernel::ParticlesTemp const & ps, FloatKey wei_key, DensityMap dmap, IMP::Int max_voxels_translation=2,
2199  IMP::Int translation_step=1, IMP::Float max_angle_in_radians=0.174,
2200  IMP::Int number_of_rotations=100) -> FittingSolutions
2201  local_rigid_fitting_grid_search(IMP::kernel::ParticlesTemp const & ps, FloatKey wei_key, DensityMap dmap, IMP::Int max_voxels_translation=2,
2202  IMP::Int translation_step=1, IMP::Float max_angle_in_radians=0.174) -> FittingSolutions
2203  local_rigid_fitting_grid_search(IMP::kernel::ParticlesTemp const & ps, FloatKey wei_key, DensityMap dmap, IMP::Int max_voxels_translation=2,
2204  IMP::Int translation_step=1) -> FittingSolutions
2205  local_rigid_fitting_grid_search(IMP::kernel::ParticlesTemp const & ps, FloatKey wei_key, DensityMap dmap, IMP::Int max_voxels_translation=2) -> FittingSolutions
2206  local_rigid_fitting_grid_search(IMP::kernel::ParticlesTemp const & ps, FloatKey wei_key, DensityMap dmap) -> FittingSolutions
2207  """
2208  return _IMP_em.local_rigid_fitting_grid_search(*args)
2209 
2210 def compute_fitting_scores(*args):
2211  """
2212  compute_fitting_scores(IMP::kernel::ParticlesTemp const & ps, DensityMap em_map, IMP::algebra::Transformation3Ds const & transformations,
2213  bool fast_version=False, bool local_score=False,
2214  FloatKey wei_key=IMP::atom::Mass::get_mass_key()) -> FittingSolutions
2215  compute_fitting_scores(IMP::kernel::ParticlesTemp const & ps, DensityMap em_map, IMP::algebra::Transformation3Ds const & transformations,
2216  bool fast_version=False, bool local_score=False) -> FittingSolutions
2217  compute_fitting_scores(IMP::kernel::ParticlesTemp const & ps, DensityMap em_map, IMP::algebra::Transformation3Ds const & transformations,
2218  bool fast_version=False) -> FittingSolutions
2219  compute_fitting_scores(IMP::kernel::ParticlesTemp const & ps, DensityMap em_map, IMP::algebra::Transformation3Ds const & transformations) -> FittingSolutions
2220  compute_fitting_scores(DensityMap em_map, RigidBody rb, Refiner refiner, IMP::algebra::Transformation3Ds const & transformations) -> FittingSolutions
2221  """
2222  return _IMP_em.compute_fitting_scores(*args)
2223 
2224 def compute_fitting_score(*args):
2225  """
2226  compute_fitting_score(IMP::kernel::ParticlesTemp const & ps, DensityMap em_map, FloatKey wei_key=IMP::atom::Mass::get_mass_key()) -> IMP::Float
2227  compute_fitting_score(IMP::kernel::ParticlesTemp const & ps, DensityMap em_map) -> IMP::Float
2228  """
2229  return _IMP_em.compute_fitting_score(*args)
2230 
2232  """
2233  get_number_of_particles_outside_of_the_density(DensityMap dmap, IMP::kernel::Particles const & ps, Transformation3D t=IMP::algebra::get_identity_transformation_3d(),
2234  float thr=0.0) -> long
2235  get_number_of_particles_outside_of_the_density(DensityMap dmap, IMP::kernel::Particles const & ps, Transformation3D t=IMP::algebra::get_identity_transformation_3d()) -> long
2236  get_number_of_particles_outside_of_the_density(DensityMap dmap, IMP::kernel::Particles const & ps) -> long
2237  """
2238  return _IMP_em.get_number_of_particles_outside_of_the_density(*args)
2239 
2241  """
2242  get_numbers_of_particles_outside_of_the_density(DensityMap dmap, IMP::kernel::Particles const & ps, IMP::algebra::Transformation3Ds const & transformations,
2243  float thr=0.0) -> IMP::Ints
2244  get_numbers_of_particles_outside_of_the_density(DensityMap dmap, IMP::kernel::Particles const & ps, IMP::algebra::Transformation3Ds const & transformations) -> IMP::Ints
2245  """
2246  return _IMP_em.get_numbers_of_particles_outside_of_the_density(*args)
2247 
2249  """
2250  get_percentage_of_voxels_covered_by_particles(DensityMap dmap, IMP::kernel::Particles const & ps, float smoothing_radius=3., Transformation3D t=IMP::algebra::get_identity_transformation_3d(),
2251  float thr=0.0) -> double
2252  get_percentage_of_voxels_covered_by_particles(DensityMap dmap, IMP::kernel::Particles const & ps, float smoothing_radius=3., Transformation3D t=IMP::algebra::get_identity_transformation_3d()) -> double
2253  get_percentage_of_voxels_covered_by_particles(DensityMap dmap, IMP::kernel::Particles const & ps, float smoothing_radius=3.) -> double
2254  get_percentage_of_voxels_covered_by_particles(DensityMap dmap, IMP::kernel::Particles const & ps) -> double
2255  """
2256  return _IMP_em.get_percentage_of_voxels_covered_by_particles(*args)
2257 class HighDensityEmbedding(IMP.statistics.Embedding):
2258  """Proxy of C++ IMP::em::HighDensityEmbedding class"""
2259  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2260  def __init__(self, *args):
2261  """__init__(IMP::em::HighDensityEmbedding self, DensityMap dm, double threshold) -> HighDensityEmbedding"""
2262  this = _IMP_em.new_HighDensityEmbedding(*args)
2263  try: self.this.append(this)
2264  except: self.this = this
2265  def get_version_info(self):
2266  """get_version_info(HighDensityEmbedding self) -> VersionInfo"""
2267  return _IMP_em.HighDensityEmbedding_get_version_info(self)
2268 
2269  def __str__(self):
2270  """__str__(HighDensityEmbedding self) -> std::string"""
2271  return _IMP_em.HighDensityEmbedding___str__(self)
2272 
2273  def __repr__(self):
2274  """__repr__(HighDensityEmbedding self) -> std::string"""
2275  return _IMP_em.HighDensityEmbedding___repr__(self)
2276 
2277  def get_from(o):
2278  return _object_cast_to_HighDensityEmbedding(o)
2279  get_from = staticmethod(get_from)
2280 
2281 HighDensityEmbedding_swigregister = _IMP_em.HighDensityEmbedding_swigregister
2282 HighDensityEmbedding_swigregister(HighDensityEmbedding)
2283 
2284 
2285 def mask_and_norm(*args):
2286  """mask_and_norm(DensityMap dmap, DensityMap mask) -> DensityMap"""
2287  return _IMP_em.mask_and_norm(*args)
2288 
2289 def get_volume_at_threshold(*args):
2290  """get_volume_at_threshold(DensityMap m, IMP::Float threshold) -> IMP::Float"""
2291  return _IMP_em.get_volume_at_threshold(*args)
2292 
2294  """
2295  get_molecular_mass_at_threshold(DensityMap m, IMP::Float threshold, IMP::atom::ProteinDensityReference ref=HARPAZ) -> IMP::Float
2296  get_molecular_mass_at_threshold(DensityMap m, IMP::Float threshold) -> IMP::Float
2297  """
2298  return _IMP_em.get_molecular_mass_at_threshold(*args)
2299 
2301  """get_threshold_for_approximate_volume(DensityMap m, IMP::Float desired_volume) -> IMP::Float"""
2302  return _IMP_em.get_threshold_for_approximate_volume(*args)
2303 
2305  """
2306  get_threshold_for_approximate_mass(DensityMap m, IMP::Float desired_mass, IMP::atom::ProteinDensityReference ref=HARPAZ) -> IMP::Float
2307  get_threshold_for_approximate_mass(DensityMap m, IMP::Float desired_mass) -> IMP::Float
2308  """
2309  return _IMP_em.get_threshold_for_approximate_mass(*args)
2310 class EnvelopePenetrationRestraint(IMP.kernel.Restraint):
2311  """Proxy of C++ IMP::em::EnvelopePenetrationRestraint class"""
2312  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2313  def __init__(self, *args):
2314  """__init__(IMP::em::EnvelopePenetrationRestraint self, IMP::kernel::Particles ps, DensityMap em_map, IMP::Float threshold) -> EnvelopePenetrationRestraint"""
2315  this = _IMP_em.new_EnvelopePenetrationRestraint(*args)
2316  try: self.this.append(this)
2317  except: self.this = this
2318  def do_get_inputs(self):
2319  """do_get_inputs(EnvelopePenetrationRestraint self) -> IMP::kernel::ModelObjectsTemp"""
2320  return _IMP_em.EnvelopePenetrationRestraint_do_get_inputs(self)
2321 
2322  def get_version_info(self):
2323  """get_version_info(EnvelopePenetrationRestraint self) -> VersionInfo"""
2324  return _IMP_em.EnvelopePenetrationRestraint_get_version_info(self)
2325 
2326  def __str__(self):
2327  """__str__(EnvelopePenetrationRestraint self) -> std::string"""
2328  return _IMP_em.EnvelopePenetrationRestraint___str__(self)
2329 
2330  def __repr__(self):
2331  """__repr__(EnvelopePenetrationRestraint self) -> std::string"""
2332  return _IMP_em.EnvelopePenetrationRestraint___repr__(self)
2333 
2334  def get_from(o):
2335  return _object_cast_to_EnvelopePenetrationRestraint(o)
2336  get_from = staticmethod(get_from)
2337 
2338 EnvelopePenetrationRestraint_swigregister = _IMP_em.EnvelopePenetrationRestraint_swigregister
2339 EnvelopePenetrationRestraint_swigregister(EnvelopePenetrationRestraint)
2340 
2341 class PCAFitRestraint(IMP.kernel.Restraint):
2342  """Proxy of C++ IMP::em::PCAFitRestraint class"""
2343  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2344  def __init__(self, *args):
2345  """
2346  __init__(IMP::em::PCAFitRestraint self, IMP::kernel::ParticlesTemp ps, DensityMap em_map, float threahold, float max_pca_size_diff,
2347  float max_angle_diff, float max_centroid_diff, FloatKey weight_key=IMP::atom::Mass::get_mass_key()) -> PCAFitRestraint
2348  __init__(IMP::em::PCAFitRestraint self, IMP::kernel::ParticlesTemp ps, DensityMap em_map, float threahold, float max_pca_size_diff,
2349  float max_angle_diff, float max_centroid_diff) -> PCAFitRestraint
2350  """
2351  this = _IMP_em.new_PCAFitRestraint(*args)
2352  try: self.this.append(this)
2353  except: self.this = this
2354  def do_get_inputs(self):
2355  """do_get_inputs(PCAFitRestraint self) -> IMP::kernel::ModelObjectsTemp"""
2356  return _IMP_em.PCAFitRestraint_do_get_inputs(self)
2357 
2358  def get_version_info(self):
2359  """get_version_info(PCAFitRestraint self) -> VersionInfo"""
2360  return _IMP_em.PCAFitRestraint_get_version_info(self)
2361 
2362  def __str__(self):
2363  """__str__(PCAFitRestraint self) -> std::string"""
2364  return _IMP_em.PCAFitRestraint___str__(self)
2365 
2366  def __repr__(self):
2367  """__repr__(PCAFitRestraint self) -> std::string"""
2368  return _IMP_em.PCAFitRestraint___repr__(self)
2369 
2370  def get_from(o):
2371  return _object_cast_to_PCAFitRestraint(o)
2372  get_from = staticmethod(get_from)
2373 
2374 PCAFitRestraint_swigregister = _IMP_em.PCAFitRestraint_swigregister
2375 PCAFitRestraint_swigregister(PCAFitRestraint)
2376 
2377 class EnvelopeFitRestraint(IMP.kernel.Restraint):
2378  """Proxy of C++ IMP::em::EnvelopeFitRestraint class"""
2379  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2380  def __init__(self, *args):
2381  """__init__(IMP::em::EnvelopeFitRestraint self, IMP::kernel::Particles particles, DensityMap em_map, double density_threshold, double penetration_threshold) -> EnvelopeFitRestraint"""
2382  this = _IMP_em.new_EnvelopeFitRestraint(*args)
2383  try: self.this.append(this)
2384  except: self.this = this
2385  def get_transformation(self):
2386  """get_transformation(EnvelopeFitRestraint self) -> Transformation3D"""
2387  return _IMP_em.EnvelopeFitRestraint_get_transformation(self)
2388 
2389  def apply_transformation(self):
2390  """apply_transformation(EnvelopeFitRestraint self)"""
2391  return _IMP_em.EnvelopeFitRestraint_apply_transformation(self)
2392 
2393  def do_get_inputs(self):
2394  """do_get_inputs(EnvelopeFitRestraint self) -> IMP::kernel::ModelObjectsTemp"""
2395  return _IMP_em.EnvelopeFitRestraint_do_get_inputs(self)
2396 
2397  def get_version_info(self):
2398  """get_version_info(EnvelopeFitRestraint self) -> VersionInfo"""
2399  return _IMP_em.EnvelopeFitRestraint_get_version_info(self)
2400 
2401  def __str__(self):
2402  """__str__(EnvelopeFitRestraint self) -> std::string"""
2403  return _IMP_em.EnvelopeFitRestraint___str__(self)
2404 
2405  def __repr__(self):
2406  """__repr__(EnvelopeFitRestraint self) -> std::string"""
2407  return _IMP_em.EnvelopeFitRestraint___repr__(self)
2408 
2409  def get_from(o):
2410  return _object_cast_to_EnvelopeFitRestraint(o)
2411  get_from = staticmethod(get_from)
2412 
2413 EnvelopeFitRestraint_swigregister = _IMP_em.EnvelopeFitRestraint_swigregister
2414 EnvelopeFitRestraint_swigregister(EnvelopeFitRestraint)
2415 
2416 import math
2417 
2418 def write_pca_cmm(pca, fh):
2419  """Write out principal components to a file in Chimera Marker format"""
2420  eigen_values = pca.get_principal_values()
2421  eigen_vecs = pca.get_principal_components()
2422  centroid = pca.get_centroid()
2423 
2424  fh.write("<marker_set>\n")
2425  fh.write("<!-- PCA with eigen values: (%g,%g,%g) and "
2426  "centroid (%g,%g,%g) -->\n"
2427  % (math.sqrt(eigen_values[0]),
2428  math.sqrt(eigen_values[1]),
2429  math.sqrt(eigen_values[2]),
2430  centroid[0], centroid[1], centroid[2]))
2431 
2432  radius = 2.
2433 
2434  for i in range(3):
2435  val = math.sqrt(eigen_values[i])
2436  v1 = centroid - val * eigen_vecs[i]
2437  v2 = centroid + val * eigen_vecs[i]
2438  for markerid, v in ((i*2+1, v1), (i*2+2, v2)):
2439  fh.write("<marker id=\"%d\" x=\"%g\" y=\"%g\" z=\"%g\" "
2440  "radius=\"%g\"/>\n"
2441  % (markerid, v[0], v[1], v[2], radius))
2442 
2443  for i in range(1, 7, 2):
2444  fh.write("<link id1= \"%d\" id2=\"%d\" radius=\"%g\"/>\n"
2445  % (i, i+1, radius))
2446  fh.write("</marker_set>\n")
2447 
2448 
2449 def get_module_version():
2450  """get_module_version() -> std::string const"""
2451  return _IMP_em.get_module_version()
2452 
2453 def get_example_path(*args):
2454  """get_example_path(std::string fname) -> std::string"""
2455  return _IMP_em.get_example_path(*args)
2456 
2457 def get_data_path(*args):
2458  """get_data_path(std::string fname) -> std::string"""
2459  return _IMP_em.get_data_path(*args)
2460 from . import _version_check
2461 _version_check.check_version(get_module_version())
2462 
2463 
2464 
void get_transformed_into(const DensityMap *source, const algebra::Transformation3D &tr, DensityMap *into, bool calc_rms=true)
Rotate a density map into another map.
Float get_threshold_for_approximate_mass(DensityMap *m, Float desired_mass, atom::ProteinDensityReference ref=atom::HARPAZ)
Computes the threshold to consider in an EM map to get a desired mass.
DensityMap * interpolate_map(DensityMap *in_map, double new_spacing)
algebra::Vector3Ds density2vectors(DensityMap *dmap, Float threshold)
Converts a density grid to a set of paritlces.
algebra::BoundingBoxD< 3 > get_bounding_box(const DensityMap *m, Float threshold)
SurfaceShellDensityMap * particles2surface(const kernel::ParticlesTemp &ps, Float apix, const FloatKey &weight_key=IMP::atom::Mass::get_mass_key())
Resample a set of particles into a density grid.
SampledDensityMap * particles2density(const kernel::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.
Various classes to hold sets of particles.
DensityMap * binarize(DensityMap *orig_map, float threshold, bool reverse=false)
double get_sum(const DensityMap *m1)
Return the sum of all voxels.
void add_to_map(DensityMap *dm, const kernel::Particles &pis)
Make CGAL functionality available to IMP.
FittingSolutions local_rigid_fitting_grid_search(const kernel::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(kernel::Model *m, kernel::ParticleIndex pi)
DensityMap * mask_and_norm(em::DensityMap *dmap, em::DensityMap *mask)
Return a masked density, and normalize the output map within the mask region.
Ints get_numbers_of_particles_outside_of_the_density(DensityMap *dmap, const kernel::Particles &ps, const IMP::algebra::Transformation3Ds &transformations, float thr=0.0)
Get numbers of particles (mult transforms) that are outside the density.
Low level functionality (logging, error handling, profiling, command line flags etc) that is used by ...
DensityMap * get_threshold_map(const DensityMap *orig_map, float threshold)
DensityMap * get_segment_by_masking(DensityMap *map_to_segment, DensityMap *mask, float mas_threshold)
Get a segment of the map covered by another map.
std::string get_data_path(std::string file_name)
Return the full path to installed data.
Composable functors to implement scores via compile-time composition.
DensityMap * read_map(std::string filename, MapReaderWriter *reader)
Read a density map from a file and return it.
double get_percentage_of_voxels_covered_by_particles(DensityMap *dmap, const kernel::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.
FittingSolutions compute_fitting_scores(const kernel::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.
Code to compute statistical measures.
algebra::GridD< 3, algebra::DenseGridStorageD< 3, float >, float > get_grid(DensityMap *in_map)
def write_pca_cmm
Write out principal components to a file in Chimera Marker format.
double convolute(const DensityMap *m1, const DensityMap *m2)
DensityMap * multiply(const DensityMap *m1, const DensityMap *m2)
void write_map(DensityMap *m, std::string filename, MapReaderWriter *writer)
Write a density map to a file.
DensityHeader create_density_header(const algebra::BoundingBoxD< 3 > &bb, float spacing)
Create a header from a bounding box in 3D.
Base functionality and abstract base classes for representation, scoring and sampling.
DensityMap * get_binarized_interior(DensityMap *dmap)
Return a binaries density map with 1 for voxels that are internal.
A restraint is a term in an IMP ScoringFunction.
Float compute_fitting_score(const kernel::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_density(const DensityMap *m, const algebra::Vector3D &v)
DensityMap * get_max_map(DensityMaps maps)
DensityMap * create_density_map(const DensityMap *other)
create a copy of another map
Store data to be clustered for embedding based algorithms.
Common base class for heavy weight IMP objects.
Definition: Object.h:106
Float approximate_molecular_mass(DensityMap *m, Float threshold)
DensityMap * get_transformed(const DensityMap *input, const algebra::Transformation3D &tr, double threshold)
Return a new density map containing a rotated version of the old one.
Vector3D get_centroid(const Vector3Ds &ps)
Returns the centroid of a set of vectors.
Definition: Vector3D.h:56
std::string get_example_path(std::string file_name)
Return the path to installed example data for this module.
Basic functionality that is expected to be used by a wide variety of IMP users.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
void show(Hierarchy h, std::ostream &out=std::cout)
Print out a molecular hierarchy.
FittingSolutions local_rigid_fitting_around_points(kernel::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.
kernel::Particles density2particles(DensityMap *dmap, Float threshold, kernel::Model *m, int step=1)
Converts a density grid to a set of paritlces.
FittingSolutions local_rigid_fitting_around_point(kernel::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.
SampledDensityMap * particles2binarized_density(const kernel::ParticlesTemp &ps, Float resolution, Float apix, int sig_cutoff=3, const FloatKey &weight_key=IMP::atom::Mass::get_mass_key())
Definition: converters.h:80
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.
long get_number_of_particles_outside_of_the_density(DensityMap *dmap, const kernel::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_segment(DensityMap *map_to_segment, int nx_start, int nx_end, int ny_start, int ny_end, int nz_start, int nz_end)
Get a segment of the map according to xyz indexes.
DensityMap * get_resampled(DensityMap *input, double scaling)
Get a resampled version of the map.
FittingSolutions local_rigid_fitting(kernel::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.
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.