11 from sys
import version_info
12 if version_info >= (2,6,0):
13 def swig_import_helper():
14 from os.path
import dirname
18 fp, pathname, description = imp.find_module(
'_IMP_rotamer', [dirname(__file__)])
24 _mod = imp.load_module(
'_IMP_rotamer', fp, pathname, description)
28 _IMP_rotamer = swig_import_helper()
29 del swig_import_helper
34 _swig_property = property
37 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
38 if (name ==
"thisown"):
return self.this.own(value)
40 if type(value).__name__ ==
'SwigPyObject':
41 self.__dict__[name] = value
43 method = class_type.__swig_setmethods__.get(name,
None)
44 if method:
return method(self,value)
46 self.__dict__[name] = value
48 raise AttributeError(
"You cannot add attributes to %s" % self)
50 def _swig_setattr(self,class_type,name,value):
51 return _swig_setattr_nondynamic(self,class_type,name,value,0)
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)
60 try: strthis =
"proxy of " + self.this.__repr__()
62 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
67 except AttributeError:
74 weakref_proxy = weakref.proxy
76 weakref_proxy =
lambda x: x
79 class IMP_ROTAMER_SwigPyIterator(_object):
80 """Proxy of C++ swig::IMP_ROTAMER_SwigPyIterator class"""
81 __swig_setmethods__ = {}
82 __setattr__ =
lambda self, name, value: _swig_setattr(self, IMP_ROTAMER_SwigPyIterator, name, value)
83 __swig_getmethods__ = {}
84 __getattr__ =
lambda self, name: _swig_getattr(self, IMP_ROTAMER_SwigPyIterator, name)
85 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined - class is abstract")
87 __swig_destroy__ = _IMP_rotamer.delete_IMP_ROTAMER_SwigPyIterator
88 __del__ =
lambda self :
None;
90 """value(IMP_ROTAMER_SwigPyIterator self) -> PyObject *"""
91 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator_value(self)
95 incr(IMP_ROTAMER_SwigPyIterator self, size_t n=1) -> IMP_ROTAMER_SwigPyIterator
96 incr(IMP_ROTAMER_SwigPyIterator self) -> IMP_ROTAMER_SwigPyIterator
98 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator_incr(self, n)
102 decr(IMP_ROTAMER_SwigPyIterator self, size_t n=1) -> IMP_ROTAMER_SwigPyIterator
103 decr(IMP_ROTAMER_SwigPyIterator self) -> IMP_ROTAMER_SwigPyIterator
105 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator_decr(self, n)
107 def distance(self, *args):
108 """distance(IMP_ROTAMER_SwigPyIterator self, IMP_ROTAMER_SwigPyIterator x) -> ptrdiff_t"""
109 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator_distance(self, *args)
111 def equal(self, *args):
112 """equal(IMP_ROTAMER_SwigPyIterator self, IMP_ROTAMER_SwigPyIterator x) -> bool"""
113 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator_equal(self, *args)
116 """copy(IMP_ROTAMER_SwigPyIterator self) -> IMP_ROTAMER_SwigPyIterator"""
117 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator_copy(self)
120 """next(IMP_ROTAMER_SwigPyIterator self) -> PyObject *"""
121 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator_next(self)
124 """__next__(IMP_ROTAMER_SwigPyIterator self) -> PyObject *"""
125 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator___next__(self)
128 """previous(IMP_ROTAMER_SwigPyIterator self) -> PyObject *"""
129 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator_previous(self)
131 def advance(self, *args):
132 """advance(IMP_ROTAMER_SwigPyIterator self, ptrdiff_t n) -> IMP_ROTAMER_SwigPyIterator"""
133 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator_advance(self, *args)
135 def __eq__(self, *args):
136 """__eq__(IMP_ROTAMER_SwigPyIterator self, IMP_ROTAMER_SwigPyIterator x) -> bool"""
137 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator___eq__(self, *args)
139 def __ne__(self, *args):
140 """__ne__(IMP_ROTAMER_SwigPyIterator self, IMP_ROTAMER_SwigPyIterator x) -> bool"""
141 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator___ne__(self, *args)
143 def __iadd__(self, *args):
144 """__iadd__(IMP_ROTAMER_SwigPyIterator self, ptrdiff_t n) -> IMP_ROTAMER_SwigPyIterator"""
145 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator___iadd__(self, *args)
147 def __isub__(self, *args):
148 """__isub__(IMP_ROTAMER_SwigPyIterator self, ptrdiff_t n) -> IMP_ROTAMER_SwigPyIterator"""
149 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator___isub__(self, *args)
151 def __add__(self, *args):
152 """__add__(IMP_ROTAMER_SwigPyIterator self, ptrdiff_t n) -> IMP_ROTAMER_SwigPyIterator"""
153 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator___add__(self, *args)
155 def __sub__(self, *args):
157 __sub__(IMP_ROTAMER_SwigPyIterator self, ptrdiff_t n) -> IMP_ROTAMER_SwigPyIterator
158 __sub__(IMP_ROTAMER_SwigPyIterator self, IMP_ROTAMER_SwigPyIterator x) -> ptrdiff_t
160 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator___sub__(self, *args)
162 def __iter__(self):
return self
163 IMP_ROTAMER_SwigPyIterator_swigregister = _IMP_rotamer.IMP_ROTAMER_SwigPyIterator_swigregister
164 IMP_ROTAMER_SwigPyIterator_swigregister(IMP_ROTAMER_SwigPyIterator)
171 IMP_DEBUG = _IMP_rotamer.IMP_DEBUG
172 IMP_RELEASE = _IMP_rotamer.IMP_RELEASE
173 IMP_SILENT = _IMP_rotamer.IMP_SILENT
174 IMP_PROGRESS = _IMP_rotamer.IMP_PROGRESS
175 IMP_TERSE = _IMP_rotamer.IMP_TERSE
176 IMP_VERBOSE = _IMP_rotamer.IMP_VERBOSE
177 IMP_MEMORY = _IMP_rotamer.IMP_MEMORY
178 IMP_NONE = _IMP_rotamer.IMP_NONE
179 IMP_USAGE = _IMP_rotamer.IMP_USAGE
180 IMP_INTERNAL = _IMP_rotamer.IMP_INTERNAL
181 IMP_BASE_HAS_LOG4CXX = _IMP_rotamer.IMP_BASE_HAS_LOG4CXX
182 IMP_COMPILER_HAS_AUTO = _IMP_rotamer.IMP_COMPILER_HAS_AUTO
183 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_rotamer.IMP_COMPILER_HAS_DEBUG_VECTOR
184 IMP_BASE_HAS_BOOST_RANDOM = _IMP_rotamer.IMP_BASE_HAS_BOOST_RANDOM
185 IMP_BASE_HAS_GPERFTOOLS = _IMP_rotamer.IMP_BASE_HAS_GPERFTOOLS
186 IMP_BASE_HAS_TCMALLOC_HEAPCHECKER = _IMP_rotamer.IMP_BASE_HAS_TCMALLOC_HEAPCHECKER
187 IMP_BASE_HAS_TCMALLOC_HEAPPROFILER = _IMP_rotamer.IMP_BASE_HAS_TCMALLOC_HEAPPROFILER
188 IMPBASE_SHOW_WARNINGS = _IMP_rotamer.IMPBASE_SHOW_WARNINGS
190 class _DirectorObjects(object):
191 """@internal Simple class to keep references to director objects
192 to prevent premature deletion."""
195 def register(self, obj):
196 """Take a reference to a director object; will only work for
197 refcounted C++ classes"""
198 if hasattr(obj,
'get_ref_count'):
199 self._objects.append(obj)
201 """Only drop our reference and allow cleanup by Python if no other
202 Python references exist (we hold 3 references: one in self._objects,
203 one in x, and one in the argument list for getrefcount) *and* no
204 other C++ references exist (the Python object always holds one)"""
205 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
206 or x.get_ref_count() > 1]
210 def get_object_count(self):
211 """Get number of director objects (useful for testing only)"""
212 return len(self._objects)
213 _director_objects = _DirectorObjects()
215 DEFAULT_CHECK = _IMP_rotamer.DEFAULT_CHECK
216 NONE = _IMP_rotamer.NONE
217 USAGE = _IMP_rotamer.USAGE
218 USAGE_AND_INTERNAL = _IMP_rotamer.USAGE_AND_INTERNAL
221 """set_check_level(IMP::base::CheckLevel tf)"""
222 return _IMP_rotamer.set_check_level(*args)
225 """get_check_level() -> IMP::base::CheckLevel"""
226 return _IMP_rotamer.get_check_level()
227 class _ostream(_object):
228 """Proxy of C++ std::ostream class"""
229 __swig_setmethods__ = {}
230 __setattr__ =
lambda self, name, value: _swig_setattr(self, _ostream, name, value)
231 __swig_getmethods__ = {}
232 __getattr__ =
lambda self, name: _swig_getattr(self, _ostream, name)
233 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined")
234 __repr__ = _swig_repr
235 def write(self, *args):
236 """write(_ostream self, char const * osa_buf)"""
237 return _IMP_rotamer._ostream_write(self, *args)
239 _ostream_swigregister = _IMP_rotamer._ostream_swigregister
240 _ostream_swigregister(_ostream)
242 IMP_COMPILER_HAS_OVERRIDE = _IMP_rotamer.IMP_COMPILER_HAS_OVERRIDE
243 IMP_COMPILER_HAS_FINAL = _IMP_rotamer.IMP_COMPILER_HAS_FINAL
244 IMP_HAS_NOEXCEPT = _IMP_rotamer.IMP_HAS_NOEXCEPT
246 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_rotamer.IMP_CGAL_HAS_BOOST_FILESYSTEM
247 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_rotamer.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
248 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_rotamer.IMP_CGAL_HAS_BOOST_RANDOM
249 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_rotamer.IMP_CGAL_HAS_BOOST_SYSTEM
250 IMPCGAL_SHOW_WARNINGS = _IMP_rotamer.IMPCGAL_SHOW_WARNINGS
252 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_rotamer.IMP_ALGEBRA_HAS_IMP_CGAL
253 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_rotamer.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
254 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_rotamer.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
255 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_rotamer.IMP_ALGEBRA_HAS_BOOST_RANDOM
256 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_rotamer.IMP_ALGEBRA_HAS_BOOST_SYSTEM
257 IMP_ALGEBRA_HAS_CGAL = _IMP_rotamer.IMP_ALGEBRA_HAS_CGAL
258 IMP_ALGEBRA_HAS_ANN = _IMP_rotamer.IMP_ALGEBRA_HAS_ANN
259 IMPALGEBRA_SHOW_WARNINGS = _IMP_rotamer.IMPALGEBRA_SHOW_WARNINGS
261 IMP_KERNEL_HAS_IMP_CGAL = _IMP_rotamer.IMP_KERNEL_HAS_IMP_CGAL
262 IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS = _IMP_rotamer.IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS
263 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_rotamer.IMP_KERNEL_HAS_BOOST_RANDOM
264 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_rotamer.IMP_KERNEL_HAS_BOOST_SYSTEM
265 IMP_KERNEL_HAS_CGAL = _IMP_rotamer.IMP_KERNEL_HAS_CGAL
266 IMPKERNEL_SHOW_WARNINGS = _IMP_rotamer.IMPKERNEL_SHOW_WARNINGS
268 IMP_DISPLAY_HAS_IMP_BASE = _IMP_rotamer.IMP_DISPLAY_HAS_IMP_BASE
269 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_rotamer.IMP_DISPLAY_HAS_IMP_CGAL
270 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_rotamer.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
271 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_rotamer.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
272 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_rotamer.IMP_DISPLAY_HAS_BOOST_RANDOM
273 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_rotamer.IMP_DISPLAY_HAS_BOOST_SYSTEM
274 IMP_DISPLAY_HAS_CGAL = _IMP_rotamer.IMP_DISPLAY_HAS_CGAL
275 IMPDISPLAY_SHOW_WARNINGS = _IMP_rotamer.IMPDISPLAY_SHOW_WARNINGS
277 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_rotamer.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
278 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_rotamer.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
279 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_rotamer.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
280 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_rotamer.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
281 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_rotamer.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
282 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_rotamer.IMP_SCORE_FUNCTOR_HAS_CGAL
283 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_rotamer.IMP_SCORE_FUNCTOR_HAS_HDF5
284 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_rotamer.IMPSCOREFUNCTOR_SHOW_WARNINGS
286 IMP_CORE_HAS_IMP_BASE = _IMP_rotamer.IMP_CORE_HAS_IMP_BASE
287 IMP_CORE_HAS_IMP_CGAL = _IMP_rotamer.IMP_CORE_HAS_IMP_CGAL
288 IMP_CORE_HAS_IMP_KERNEL = _IMP_rotamer.IMP_CORE_HAS_IMP_KERNEL
289 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_rotamer.IMP_CORE_HAS_BOOST_FILESYSTEM
290 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_rotamer.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
291 IMP_CORE_HAS_BOOST_RANDOM = _IMP_rotamer.IMP_CORE_HAS_BOOST_RANDOM
292 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_rotamer.IMP_CORE_HAS_BOOST_SYSTEM
293 IMP_CORE_HAS_CGAL = _IMP_rotamer.IMP_CORE_HAS_CGAL
294 IMP_CORE_HAS_HDF5 = _IMP_rotamer.IMP_CORE_HAS_HDF5
295 IMPCORE_SHOW_WARNINGS = _IMP_rotamer.IMPCORE_SHOW_WARNINGS
297 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_rotamer.IMP_CONTAINER_HAS_IMP_ALGEBRA
298 IMP_CONTAINER_HAS_IMP_BASE = _IMP_rotamer.IMP_CONTAINER_HAS_IMP_BASE
299 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_rotamer.IMP_CONTAINER_HAS_IMP_CGAL
300 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_rotamer.IMP_CONTAINER_HAS_IMP_DISPLAY
301 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_rotamer.IMP_CONTAINER_HAS_IMP_KERNEL
302 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_rotamer.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
303 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_rotamer.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
304 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_rotamer.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
305 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_rotamer.IMP_CONTAINER_HAS_BOOST_RANDOM
306 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_rotamer.IMP_CONTAINER_HAS_BOOST_SYSTEM
307 IMP_CONTAINER_HAS_CGAL = _IMP_rotamer.IMP_CONTAINER_HAS_CGAL
308 IMP_CONTAINER_HAS_HDF5 = _IMP_rotamer.IMP_CONTAINER_HAS_HDF5
309 IMPCONTAINER_SHOW_WARNINGS = _IMP_rotamer.IMPCONTAINER_SHOW_WARNINGS
311 IMP_ATOM_HAS_IMP_BASE = _IMP_rotamer.IMP_ATOM_HAS_IMP_BASE
312 IMP_ATOM_HAS_IMP_CGAL = _IMP_rotamer.IMP_ATOM_HAS_IMP_CGAL
313 IMP_ATOM_HAS_IMP_KERNEL = _IMP_rotamer.IMP_ATOM_HAS_IMP_KERNEL
314 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_rotamer.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
315 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_rotamer.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
316 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_rotamer.IMP_ATOM_HAS_BOOST_RANDOM
317 IMP_ATOM_HAS_BOOST_REGEX = _IMP_rotamer.IMP_ATOM_HAS_BOOST_REGEX
318 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_rotamer.IMP_ATOM_HAS_BOOST_SYSTEM
319 IMP_ATOM_HAS_CGAL = _IMP_rotamer.IMP_ATOM_HAS_CGAL
320 IMP_ATOM_HAS_HDF5 = _IMP_rotamer.IMP_ATOM_HAS_HDF5
321 IMPATOM_SHOW_WARNINGS = _IMP_rotamer.IMPATOM_SHOW_WARNINGS
322 IMP_ATOM_TYPE_INDEX = _IMP_rotamer.IMP_ATOM_TYPE_INDEX
323 IMP_RESIDUE_TYPE_INDEX = _IMP_rotamer.IMP_RESIDUE_TYPE_INDEX
324 IMP_HIERARCHY_TYPE_INDEX = _IMP_rotamer.IMP_HIERARCHY_TYPE_INDEX
326 IMP_ROTAMER_HAS_IMP_ALGEBRA = _IMP_rotamer.IMP_ROTAMER_HAS_IMP_ALGEBRA
327 IMP_ROTAMER_HAS_IMP_BASE = _IMP_rotamer.IMP_ROTAMER_HAS_IMP_BASE
328 IMP_ROTAMER_HAS_IMP_CGAL = _IMP_rotamer.IMP_ROTAMER_HAS_IMP_CGAL
329 IMP_ROTAMER_HAS_IMP_CONTAINER = _IMP_rotamer.IMP_ROTAMER_HAS_IMP_CONTAINER
330 IMP_ROTAMER_HAS_IMP_DISPLAY = _IMP_rotamer.IMP_ROTAMER_HAS_IMP_DISPLAY
331 IMP_ROTAMER_HAS_IMP_KERNEL = _IMP_rotamer.IMP_ROTAMER_HAS_IMP_KERNEL
332 IMP_ROTAMER_HAS_IMP_SCORE_FUNCTOR = _IMP_rotamer.IMP_ROTAMER_HAS_IMP_SCORE_FUNCTOR
333 IMP_ROTAMER_HAS_BOOST_FILESYSTEM = _IMP_rotamer.IMP_ROTAMER_HAS_BOOST_FILESYSTEM
334 IMP_ROTAMER_HAS_BOOST_PROGRAMOPTIONS = _IMP_rotamer.IMP_ROTAMER_HAS_BOOST_PROGRAMOPTIONS
335 IMP_ROTAMER_HAS_BOOST_RANDOM = _IMP_rotamer.IMP_ROTAMER_HAS_BOOST_RANDOM
336 IMP_ROTAMER_HAS_BOOST_REGEX = _IMP_rotamer.IMP_ROTAMER_HAS_BOOST_REGEX
337 IMP_ROTAMER_HAS_BOOST_SYSTEM = _IMP_rotamer.IMP_ROTAMER_HAS_BOOST_SYSTEM
338 IMP_ROTAMER_HAS_CGAL = _IMP_rotamer.IMP_ROTAMER_HAS_CGAL
339 IMP_ROTAMER_HAS_HDF5 = _IMP_rotamer.IMP_ROTAMER_HAS_HDF5
340 IMPROTAMER_SHOW_WARNINGS = _IMP_rotamer.IMPROTAMER_SHOW_WARNINGS
341 RotamerAngleTuples=list
342 _plural_types.append(
"RotamerAngleTuples")
343 _value_types.append(
"RotamerAngleTuple")
346 _plural_types.append(
"ResidueRotamers")
347 _value_types.append(
"ResidueRotamer")
349 _object_types.append(
"RotamerLibrary")
352 def _object_cast_to_RotamerLibrary(*args):
353 """_object_cast_to_RotamerLibrary(Object o) -> RotamerLibrary"""
354 return _IMP_rotamer._object_cast_to_RotamerLibrary(*args)
355 _object_types.append(
"RotamerCalculator")
358 def _object_cast_to_RotamerCalculator(*args):
359 """_object_cast_to_RotamerCalculator(Object o) -> RotamerCalculator"""
360 return _IMP_rotamer._object_cast_to_RotamerCalculator(*args)
361 class RotamerAngleTuple(_object):
362 """Proxy of C++ IMP::rotamer::RotamerAngleTuple class"""
363 __swig_setmethods__ = {}
364 __setattr__ =
lambda self, name, value: _swig_setattr(self, RotamerAngleTuple, name, value)
365 __swig_getmethods__ = {}
366 __getattr__ =
lambda self, name: _swig_getattr(self, RotamerAngleTuple, name)
367 def __init__(self, *args):
369 __init__(IMP::rotamer::RotamerAngleTuple self) -> RotamerAngleTuple
370 __init__(IMP::rotamer::RotamerAngleTuple self, float chi1, float chi2, float chi3, float chi4, float probability) -> RotamerAngleTuple
372 this = _IMP_rotamer.new_RotamerAngleTuple(*args)
373 try: self.this.append(this)
374 except: self.this = this
376 """get_chi1(RotamerAngleTuple self) -> float"""
377 return _IMP_rotamer.RotamerAngleTuple_get_chi1(self)
380 """get_chi2(RotamerAngleTuple self) -> float"""
381 return _IMP_rotamer.RotamerAngleTuple_get_chi2(self)
384 """get_chi3(RotamerAngleTuple self) -> float"""
385 return _IMP_rotamer.RotamerAngleTuple_get_chi3(self)
388 """get_chi4(RotamerAngleTuple self) -> float"""
389 return _IMP_rotamer.RotamerAngleTuple_get_chi4(self)
391 def get_probability(self):
392 """get_probability(RotamerAngleTuple self) -> float"""
393 return _IMP_rotamer.RotamerAngleTuple_get_probability(self)
395 def show(self, *args):
397 show(RotamerAngleTuple self, _ostream out=std::cout)
398 show(RotamerAngleTuple self)
400 return _IMP_rotamer.RotamerAngleTuple_show(self, *args)
403 """__str__(RotamerAngleTuple self) -> std::string"""
404 return _IMP_rotamer.RotamerAngleTuple___str__(self)
407 """__repr__(RotamerAngleTuple self) -> std::string"""
408 return _IMP_rotamer.RotamerAngleTuple___repr__(self)
410 __swig_destroy__ = _IMP_rotamer.delete_RotamerAngleTuple
411 __del__ =
lambda self :
None;
412 RotamerAngleTuple_swigregister = _IMP_rotamer.RotamerAngleTuple_swigregister
413 RotamerAngleTuple_swigregister(RotamerAngleTuple)
416 """Proxy of C++ IMP::rotamer::RotamerLibrary class"""
417 __swig_setmethods__ = {}
418 for _s
in [
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
419 __setattr__ =
lambda self, name, value: _swig_setattr(self, RotamerLibrary, name, value)
420 __swig_getmethods__ = {}
421 for _s
in [
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
422 __getattr__ =
lambda self, name: _swig_getattr(self, RotamerLibrary, name)
423 def __init__(self, angle_step=10):
425 __init__(IMP::rotamer::RotamerLibrary self, unsigned int angle_step=10) -> RotamerLibrary
426 __init__(IMP::rotamer::RotamerLibrary self) -> RotamerLibrary
428 this = _IMP_rotamer.new_RotamerLibrary(angle_step)
429 try: self.this.append(this)
430 except: self.this = this
431 def get_rotamers(self, *args):
432 """get_rotamers(RotamerLibrary self, ResidueType residue, float phi, float psi, float probability_thr) -> IMP::rotamer::RotamerAngleTuples"""
433 return _IMP_rotamer.RotamerLibrary_get_rotamers(self, *args)
435 def read_library_file(self, *args):
436 """read_library_file(RotamerLibrary self, std::string const & lib_file_name)"""
437 return _IMP_rotamer.RotamerLibrary_read_library_file(self, *args)
439 def get_version_info(self):
440 """get_version_info(RotamerLibrary self) -> VersionInfo"""
441 return _IMP_rotamer.RotamerLibrary_get_version_info(self)
444 """__str__(RotamerLibrary self) -> std::string"""
445 return _IMP_rotamer.RotamerLibrary___str__(self)
448 """__repr__(RotamerLibrary self) -> std::string"""
449 return _IMP_rotamer.RotamerLibrary___repr__(self)
452 return _object_cast_to_RotamerLibrary(o)
453 get_from = staticmethod(get_from)
455 RotamerLibrary_swigregister = _IMP_rotamer.RotamerLibrary_swigregister
456 RotamerLibrary_swigregister(RotamerLibrary)
458 class ResidueRotamer(_object):
459 """Proxy of C++ IMP::rotamer::ResidueRotamer class"""
460 __swig_setmethods__ = {}
461 __setattr__ =
lambda self, name, value: _swig_setattr(self, ResidueRotamer, name, value)
462 __swig_getmethods__ = {}
463 __getattr__ =
lambda self, name: _swig_getattr(self, ResidueRotamer, name)
464 def __init__(self, *args):
466 __init__(IMP::rotamer::ResidueRotamer self, ResidueType rt=UNK) -> ResidueRotamer
467 __init__(IMP::rotamer::ResidueRotamer self) -> ResidueRotamer
469 this = _IMP_rotamer.new_ResidueRotamer(*args)
470 try: self.this.append(this)
471 except: self.this = this
472 def get_coordinates(self, *args):
473 """get_coordinates(ResidueRotamer self, unsigned int index, AtomType at) -> Vector3D"""
474 return _IMP_rotamer.ResidueRotamer_get_coordinates(self, *args)
476 def get_number_of_cases(self, *args):
477 """get_number_of_cases(ResidueRotamer self, AtomType at) -> unsigned int"""
478 return _IMP_rotamer.ResidueRotamer_get_number_of_cases(self, *args)
480 def get_atom_exists(self, *args):
481 """get_atom_exists(ResidueRotamer self, AtomType at) -> bool"""
482 return _IMP_rotamer.ResidueRotamer_get_atom_exists(self, *args)
485 """get_size(ResidueRotamer self) -> unsigned int"""
486 return _IMP_rotamer.ResidueRotamer_get_size(self)
488 def get_probability(self, *args):
489 """get_probability(ResidueRotamer self, unsigned int index) -> double"""
490 return _IMP_rotamer.ResidueRotamer_get_probability(self, *args)
492 def show(self, *args):
494 show(ResidueRotamer self, _ostream out=std::cout)
495 show(ResidueRotamer self)
497 return _IMP_rotamer.ResidueRotamer_show(self, *args)
500 """__str__(ResidueRotamer self) -> std::string"""
501 return _IMP_rotamer.ResidueRotamer___str__(self)
504 """__repr__(ResidueRotamer self) -> std::string"""
505 return _IMP_rotamer.ResidueRotamer___repr__(self)
507 __swig_destroy__ = _IMP_rotamer.delete_ResidueRotamer
508 __del__ =
lambda self :
None;
509 ResidueRotamer_swigregister = _IMP_rotamer.ResidueRotamer_swigregister
510 ResidueRotamer_swigregister(ResidueRotamer)
513 """Proxy of C++ IMP::rotamer::RotamerCalculator class"""
514 __swig_setmethods__ = {}
515 for _s
in [
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
516 __setattr__ =
lambda self, name, value: _swig_setattr(self, RotamerCalculator, name, value)
517 __swig_getmethods__ = {}
518 for _s
in [
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
519 __getattr__ =
lambda self, name: _swig_getattr(self, RotamerCalculator, name)
520 def __init__(self, *args):
521 """__init__(IMP::rotamer::RotamerCalculator self, RotamerLibrary rl) -> RotamerCalculator"""
522 this = _IMP_rotamer.new_RotamerCalculator(*args)
523 try: self.this.append(this)
524 except: self.this = this
525 def get_rotamer(self, *args):
526 """get_rotamer(RotamerCalculator self, Residue rd, double thr) -> ResidueRotamer"""
527 return _IMP_rotamer.RotamerCalculator_get_rotamer(self, *args)
529 def get_version_info(self):
530 """get_version_info(RotamerCalculator self) -> VersionInfo"""
531 return _IMP_rotamer.RotamerCalculator_get_version_info(self)
534 """transform(RotamerCalculator self, Hierarchy protein, PairScore score, double thr, double K, int num_iter)"""
535 return _IMP_rotamer.RotamerCalculator_transform(self, *args)
538 """__str__(RotamerCalculator self) -> std::string"""
539 return _IMP_rotamer.RotamerCalculator___str__(self)
542 """__repr__(RotamerCalculator self) -> std::string"""
543 return _IMP_rotamer.RotamerCalculator___repr__(self)
546 return _object_cast_to_RotamerCalculator(o)
547 get_from = staticmethod(get_from)
549 RotamerCalculator_swigregister = _IMP_rotamer.RotamerCalculator_swigregister
550 RotamerCalculator_swigregister(RotamerCalculator)
553 def get_module_version():
554 """get_module_version() -> std::string const"""
555 return _IMP_rotamer.get_module_version()
558 """get_example_path(std::string fname) -> std::string"""
559 return _IMP_rotamer.get_example_path(*args)
562 """get_data_path(std::string fname) -> std::string"""
563 return _IMP_rotamer.get_data_path(*args)
564 import _version_check
565 _version_check.check_version(get_module_version())
std::string get_data_path(std::string file_name)
Return the full path to installed data.
Various classes to hold sets of particles.
Make CGAL functionality available to IMP.
void set_check_level(CheckLevel tf)
Control runtime checks in the code.
Low level functionality (logging, error handling, profiling, command line flags etc) that is used by ...
Composable functors to implement scores via compile-time composition.
void transform(Hierarchy h, const algebra::Transformation3D &tr)
Transform a hierarchy. This is aware of rigid bodies.
Base functionality and abstract base classes for representation, scoring and sampling.
std::string get_example_path(std::string file_name)
Return the path to installed example data for this module.
Common base class for heavy weight IMP objects.
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.
Output IMP model data in various file formats.
CheckLevel get_check_level()
Get the current audit mode.
Functionality for loading, creating, manipulating and scoring atomic structures.