9 from sys
import version_info
10 if version_info >= (2,6,0):
11 def swig_import_helper():
12 from os.path
import dirname
16 fp, pathname, description = imp.find_module(
'_IMP_rotamer', [dirname(__file__)])
22 _mod = imp.load_module(
'_IMP_rotamer', fp, pathname, description)
26 _IMP_rotamer = swig_import_helper()
27 del swig_import_helper
32 _swig_property = property
35 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
36 if (name ==
"thisown"):
return self.this.own(value)
38 if type(value).__name__ ==
'SwigPyObject':
39 self.__dict__[name] = value
41 method = class_type.__swig_setmethods__.get(name,
None)
42 if method:
return method(self,value)
44 self.__dict__[name] = value
46 raise AttributeError(
"You cannot add attributes to %s" % self)
48 def _swig_setattr(self,class_type,name,value):
49 return _swig_setattr_nondynamic(self,class_type,name,value,0)
51 def _swig_getattr(self,class_type,name):
52 if (name ==
"thisown"):
return self.this.own()
53 method = class_type.__swig_getmethods__.get(name,
None)
54 if method:
return method(self)
55 raise AttributeError(name)
58 try: strthis =
"proxy of " + self.this.__repr__()
60 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
65 except AttributeError:
72 weakref_proxy = weakref.proxy
74 weakref_proxy =
lambda x: x
77 class IMP_ROTAMER_SwigPyIterator(_object):
78 """Proxy of C++ swig::IMP_ROTAMER_SwigPyIterator class"""
79 __swig_setmethods__ = {}
80 __setattr__ =
lambda self, name, value: _swig_setattr(self, IMP_ROTAMER_SwigPyIterator, name, value)
81 __swig_getmethods__ = {}
82 __getattr__ =
lambda self, name: _swig_getattr(self, IMP_ROTAMER_SwigPyIterator, name)
83 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined - class is abstract")
85 __swig_destroy__ = _IMP_rotamer.delete_IMP_ROTAMER_SwigPyIterator
86 __del__ =
lambda self :
None;
88 """value(IMP_ROTAMER_SwigPyIterator self) -> PyObject *"""
89 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator_value(self)
93 incr(IMP_ROTAMER_SwigPyIterator self, size_t n=1) -> IMP_ROTAMER_SwigPyIterator
94 incr(IMP_ROTAMER_SwigPyIterator self) -> IMP_ROTAMER_SwigPyIterator
96 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator_incr(self, n)
100 decr(IMP_ROTAMER_SwigPyIterator self, size_t n=1) -> IMP_ROTAMER_SwigPyIterator
101 decr(IMP_ROTAMER_SwigPyIterator self) -> IMP_ROTAMER_SwigPyIterator
103 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator_decr(self, n)
105 def distance(self, *args):
106 """distance(IMP_ROTAMER_SwigPyIterator self, IMP_ROTAMER_SwigPyIterator x) -> ptrdiff_t"""
107 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator_distance(self, *args)
109 def equal(self, *args):
110 """equal(IMP_ROTAMER_SwigPyIterator self, IMP_ROTAMER_SwigPyIterator x) -> bool"""
111 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator_equal(self, *args)
114 """copy(IMP_ROTAMER_SwigPyIterator self) -> IMP_ROTAMER_SwigPyIterator"""
115 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator_copy(self)
118 """next(IMP_ROTAMER_SwigPyIterator self) -> PyObject *"""
119 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator_next(self)
122 """__next__(IMP_ROTAMER_SwigPyIterator self) -> PyObject *"""
123 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator___next__(self)
126 """previous(IMP_ROTAMER_SwigPyIterator self) -> PyObject *"""
127 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator_previous(self)
129 def advance(self, *args):
130 """advance(IMP_ROTAMER_SwigPyIterator self, ptrdiff_t n) -> IMP_ROTAMER_SwigPyIterator"""
131 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator_advance(self, *args)
133 def __eq__(self, *args):
134 """__eq__(IMP_ROTAMER_SwigPyIterator self, IMP_ROTAMER_SwigPyIterator x) -> bool"""
135 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator___eq__(self, *args)
137 def __ne__(self, *args):
138 """__ne__(IMP_ROTAMER_SwigPyIterator self, IMP_ROTAMER_SwigPyIterator x) -> bool"""
139 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator___ne__(self, *args)
141 def __iadd__(self, *args):
142 """__iadd__(IMP_ROTAMER_SwigPyIterator self, ptrdiff_t n) -> IMP_ROTAMER_SwigPyIterator"""
143 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator___iadd__(self, *args)
145 def __isub__(self, *args):
146 """__isub__(IMP_ROTAMER_SwigPyIterator self, ptrdiff_t n) -> IMP_ROTAMER_SwigPyIterator"""
147 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator___isub__(self, *args)
149 def __add__(self, *args):
150 """__add__(IMP_ROTAMER_SwigPyIterator self, ptrdiff_t n) -> IMP_ROTAMER_SwigPyIterator"""
151 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator___add__(self, *args)
153 def __sub__(self, *args):
155 __sub__(IMP_ROTAMER_SwigPyIterator self, ptrdiff_t n) -> IMP_ROTAMER_SwigPyIterator
156 __sub__(IMP_ROTAMER_SwigPyIterator self, IMP_ROTAMER_SwigPyIterator x) -> ptrdiff_t
158 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator___sub__(self, *args)
160 def __iter__(self):
return self
161 IMP_ROTAMER_SwigPyIterator_swigregister = _IMP_rotamer.IMP_ROTAMER_SwigPyIterator_swigregister
162 IMP_ROTAMER_SwigPyIterator_swigregister(IMP_ROTAMER_SwigPyIterator)
169 IMP_HAS_DEPRECATED = _IMP_rotamer.IMP_HAS_DEPRECATED
170 IMP_DEBUG = _IMP_rotamer.IMP_DEBUG
171 IMP_RELEASE = _IMP_rotamer.IMP_RELEASE
172 IMP_SILENT = _IMP_rotamer.IMP_SILENT
173 IMP_PROGRESS = _IMP_rotamer.IMP_PROGRESS
174 IMP_TERSE = _IMP_rotamer.IMP_TERSE
175 IMP_VERBOSE = _IMP_rotamer.IMP_VERBOSE
176 IMP_NONE = _IMP_rotamer.IMP_NONE
177 IMP_USAGE = _IMP_rotamer.IMP_USAGE
178 IMP_INTERNAL = _IMP_rotamer.IMP_INTERNAL
179 IMP_COMPILER_HAS_AUTO = _IMP_rotamer.IMP_COMPILER_HAS_AUTO
180 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_rotamer.IMP_COMPILER_HAS_DEBUG_VECTOR
181 IMP_COMPILER_HAS_NULLPTR = _IMP_rotamer.IMP_COMPILER_HAS_NULLPTR
182 IMP_BASE_HAS_BOOST_RANDOM = _IMP_rotamer.IMP_BASE_HAS_BOOST_RANDOM
183 IMP_BASE_HAS_GPERFTOOLS = _IMP_rotamer.IMP_BASE_HAS_GPERFTOOLS
184 IMP_BASE_HAS_LOG4CXX = _IMP_rotamer.IMP_BASE_HAS_LOG4CXX
185 IMP_BASE_HAS_TCMALLOC_HEAPCHECKER = _IMP_rotamer.IMP_BASE_HAS_TCMALLOC_HEAPCHECKER
186 IMP_BASE_HAS_TCMALLOC_HEAPPROFILER = _IMP_rotamer.IMP_BASE_HAS_TCMALLOC_HEAPPROFILER
188 class _DirectorObjects(object):
189 """@internal Simple class to keep references to director objects
190 to prevent premature deletion."""
193 def register(self, obj):
194 """Take a reference to a director object; will only work for
195 refcounted C++ classes"""
196 if hasattr(obj,
'get_ref_count'):
197 self._objects.append(obj)
199 """Only drop our reference and allow cleanup by Python if no other
200 Python references exist (we hold 3 references: one in self._objects,
201 one in x, and one in the argument list for getrefcount) *and* no
202 other C++ references exist (the Python object always holds one)"""
203 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
204 or x.get_ref_count() > 1]
208 def get_object_count(self):
209 """Get number of director objects (useful for testing only)"""
210 return len(self._objects)
211 _director_objects = _DirectorObjects()
213 DEFAULT_CHECK = _IMP_rotamer.DEFAULT_CHECK
214 NONE = _IMP_rotamer.NONE
215 USAGE = _IMP_rotamer.USAGE
216 USAGE_AND_INTERNAL = _IMP_rotamer.USAGE_AND_INTERNAL
219 """set_check_level(IMP::base::CheckLevel tf)"""
220 return _IMP_rotamer.set_check_level(*args)
223 """get_check_level() -> IMP::base::CheckLevel"""
224 return _IMP_rotamer.get_check_level()
225 class _ostream(_object):
226 """Proxy of C++ std::ostream class"""
227 __swig_setmethods__ = {}
228 __setattr__ =
lambda self, name, value: _swig_setattr(self, _ostream, name, value)
229 __swig_getmethods__ = {}
230 __getattr__ =
lambda self, name: _swig_getattr(self, _ostream, name)
231 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined")
232 __repr__ = _swig_repr
233 def write(self, *args):
234 """write(_ostream self, char const * osa_buf)"""
235 return _IMP_rotamer._ostream_write(self, *args)
237 _ostream_swigregister = _IMP_rotamer._ostream_swigregister
238 _ostream_swigregister(_ostream)
240 IMP_COMPILER_HAS_OVERRIDE = _IMP_rotamer.IMP_COMPILER_HAS_OVERRIDE
241 IMP_COMPILER_HAS_FINAL = _IMP_rotamer.IMP_COMPILER_HAS_FINAL
243 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_rotamer.IMP_CGAL_HAS_BOOST_FILESYSTEM
244 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_rotamer.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
245 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_rotamer.IMP_CGAL_HAS_BOOST_RANDOM
246 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_rotamer.IMP_CGAL_HAS_BOOST_SYSTEM
248 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_rotamer.IMP_ALGEBRA_HAS_IMP_CGAL
249 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_rotamer.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
250 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_rotamer.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
251 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_rotamer.IMP_ALGEBRA_HAS_BOOST_RANDOM
252 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_rotamer.IMP_ALGEBRA_HAS_BOOST_SYSTEM
253 IMP_ALGEBRA_HAS_CGAL = _IMP_rotamer.IMP_ALGEBRA_HAS_CGAL
254 IMP_ALGEBRA_HAS_ANN = _IMP_rotamer.IMP_ALGEBRA_HAS_ANN
256 IMP_KERNEL_HAS_IMP_CGAL = _IMP_rotamer.IMP_KERNEL_HAS_IMP_CGAL
257 IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS = _IMP_rotamer.IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS
258 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_rotamer.IMP_KERNEL_HAS_BOOST_RANDOM
259 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_rotamer.IMP_KERNEL_HAS_BOOST_SYSTEM
260 IMP_KERNEL_HAS_CGAL = _IMP_rotamer.IMP_KERNEL_HAS_CGAL
262 IMP_DISPLAY_HAS_IMP_BASE = _IMP_rotamer.IMP_DISPLAY_HAS_IMP_BASE
263 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_rotamer.IMP_DISPLAY_HAS_IMP_CGAL
264 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_rotamer.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
265 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_rotamer.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
266 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_rotamer.IMP_DISPLAY_HAS_BOOST_RANDOM
267 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_rotamer.IMP_DISPLAY_HAS_BOOST_SYSTEM
268 IMP_DISPLAY_HAS_CGAL = _IMP_rotamer.IMP_DISPLAY_HAS_CGAL
270 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_rotamer.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
271 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_rotamer.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
272 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_rotamer.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
273 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_rotamer.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
274 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_rotamer.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
275 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_rotamer.IMP_SCORE_FUNCTOR_HAS_CGAL
277 IMP_CORE_HAS_IMP_BASE = _IMP_rotamer.IMP_CORE_HAS_IMP_BASE
278 IMP_CORE_HAS_IMP_CGAL = _IMP_rotamer.IMP_CORE_HAS_IMP_CGAL
279 IMP_CORE_HAS_IMP_KERNEL = _IMP_rotamer.IMP_CORE_HAS_IMP_KERNEL
280 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_rotamer.IMP_CORE_HAS_BOOST_FILESYSTEM
281 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_rotamer.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
282 IMP_CORE_HAS_BOOST_RANDOM = _IMP_rotamer.IMP_CORE_HAS_BOOST_RANDOM
283 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_rotamer.IMP_CORE_HAS_BOOST_SYSTEM
284 IMP_CORE_HAS_CGAL = _IMP_rotamer.IMP_CORE_HAS_CGAL
286 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_rotamer.IMP_CONTAINER_HAS_IMP_ALGEBRA
287 IMP_CONTAINER_HAS_IMP_BASE = _IMP_rotamer.IMP_CONTAINER_HAS_IMP_BASE
288 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_rotamer.IMP_CONTAINER_HAS_IMP_CGAL
289 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_rotamer.IMP_CONTAINER_HAS_IMP_DISPLAY
290 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_rotamer.IMP_CONTAINER_HAS_IMP_KERNEL
291 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_rotamer.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
292 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_rotamer.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
293 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_rotamer.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
294 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_rotamer.IMP_CONTAINER_HAS_BOOST_RANDOM
295 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_rotamer.IMP_CONTAINER_HAS_BOOST_SYSTEM
296 IMP_CONTAINER_HAS_CGAL = _IMP_rotamer.IMP_CONTAINER_HAS_CGAL
298 IMP_ATOM_HAS_IMP_BASE = _IMP_rotamer.IMP_ATOM_HAS_IMP_BASE
299 IMP_ATOM_HAS_IMP_CGAL = _IMP_rotamer.IMP_ATOM_HAS_IMP_CGAL
300 IMP_ATOM_HAS_IMP_KERNEL = _IMP_rotamer.IMP_ATOM_HAS_IMP_KERNEL
301 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_rotamer.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
302 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_rotamer.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
303 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_rotamer.IMP_ATOM_HAS_BOOST_RANDOM
304 IMP_ATOM_HAS_BOOST_REGEX = _IMP_rotamer.IMP_ATOM_HAS_BOOST_REGEX
305 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_rotamer.IMP_ATOM_HAS_BOOST_SYSTEM
306 IMP_ATOM_HAS_CGAL = _IMP_rotamer.IMP_ATOM_HAS_CGAL
307 IMP_ATOM_TYPE_INDEX = _IMP_rotamer.IMP_ATOM_TYPE_INDEX
308 IMP_RESIDUE_TYPE_INDEX = _IMP_rotamer.IMP_RESIDUE_TYPE_INDEX
309 IMP_HIERARCHY_TYPE_INDEX = _IMP_rotamer.IMP_HIERARCHY_TYPE_INDEX
311 IMP_ROTAMER_HAS_IMP_ALGEBRA = _IMP_rotamer.IMP_ROTAMER_HAS_IMP_ALGEBRA
312 IMP_ROTAMER_HAS_IMP_BASE = _IMP_rotamer.IMP_ROTAMER_HAS_IMP_BASE
313 IMP_ROTAMER_HAS_IMP_CGAL = _IMP_rotamer.IMP_ROTAMER_HAS_IMP_CGAL
314 IMP_ROTAMER_HAS_IMP_CONTAINER = _IMP_rotamer.IMP_ROTAMER_HAS_IMP_CONTAINER
315 IMP_ROTAMER_HAS_IMP_DISPLAY = _IMP_rotamer.IMP_ROTAMER_HAS_IMP_DISPLAY
316 IMP_ROTAMER_HAS_IMP_KERNEL = _IMP_rotamer.IMP_ROTAMER_HAS_IMP_KERNEL
317 IMP_ROTAMER_HAS_IMP_SCORE_FUNCTOR = _IMP_rotamer.IMP_ROTAMER_HAS_IMP_SCORE_FUNCTOR
318 IMP_ROTAMER_HAS_BOOST_FILESYSTEM = _IMP_rotamer.IMP_ROTAMER_HAS_BOOST_FILESYSTEM
319 IMP_ROTAMER_HAS_BOOST_PROGRAMOPTIONS = _IMP_rotamer.IMP_ROTAMER_HAS_BOOST_PROGRAMOPTIONS
320 IMP_ROTAMER_HAS_BOOST_RANDOM = _IMP_rotamer.IMP_ROTAMER_HAS_BOOST_RANDOM
321 IMP_ROTAMER_HAS_BOOST_REGEX = _IMP_rotamer.IMP_ROTAMER_HAS_BOOST_REGEX
322 IMP_ROTAMER_HAS_BOOST_SYSTEM = _IMP_rotamer.IMP_ROTAMER_HAS_BOOST_SYSTEM
323 IMP_ROTAMER_HAS_CGAL = _IMP_rotamer.IMP_ROTAMER_HAS_CGAL
324 RotamerAngleTuples=list
325 _plural_types.append(
"RotamerAngleTuples")
326 _value_types.append(
"RotamerAngleTuple")
329 _plural_types.append(
"ResidueRotamers")
330 _value_types.append(
"ResidueRotamer")
332 _object_types.append(
"RotamerLibrary")
335 def _object_cast_to_RotamerLibrary(*args):
336 """_object_cast_to_RotamerLibrary(Object o) -> RotamerLibrary"""
337 return _IMP_rotamer._object_cast_to_RotamerLibrary(*args)
338 _object_types.append(
"RotamerCalculator")
341 def _object_cast_to_RotamerCalculator(*args):
342 """_object_cast_to_RotamerCalculator(Object o) -> RotamerCalculator"""
343 return _IMP_rotamer._object_cast_to_RotamerCalculator(*args)
344 class RotamerAngleTuple(_object):
345 """Proxy of C++ IMP::rotamer::RotamerAngleTuple class"""
346 __swig_setmethods__ = {}
347 __setattr__ =
lambda self, name, value: _swig_setattr(self, RotamerAngleTuple, name, value)
348 __swig_getmethods__ = {}
349 __getattr__ =
lambda self, name: _swig_getattr(self, RotamerAngleTuple, name)
350 def __init__(self, *args):
352 __init__(IMP::rotamer::RotamerAngleTuple self) -> RotamerAngleTuple
353 __init__(IMP::rotamer::RotamerAngleTuple self, float chi1, float chi2, float chi3, float chi4, float probability) -> RotamerAngleTuple
355 this = _IMP_rotamer.new_RotamerAngleTuple(*args)
356 try: self.this.append(this)
357 except: self.this = this
359 """get_chi1(RotamerAngleTuple self) -> float"""
360 return _IMP_rotamer.RotamerAngleTuple_get_chi1(self)
363 """get_chi2(RotamerAngleTuple self) -> float"""
364 return _IMP_rotamer.RotamerAngleTuple_get_chi2(self)
367 """get_chi3(RotamerAngleTuple self) -> float"""
368 return _IMP_rotamer.RotamerAngleTuple_get_chi3(self)
371 """get_chi4(RotamerAngleTuple self) -> float"""
372 return _IMP_rotamer.RotamerAngleTuple_get_chi4(self)
374 def get_probability(self):
375 """get_probability(RotamerAngleTuple self) -> float"""
376 return _IMP_rotamer.RotamerAngleTuple_get_probability(self)
378 def show(self, *args):
380 show(RotamerAngleTuple self, _ostream out=std::cout)
381 show(RotamerAngleTuple self)
383 return _IMP_rotamer.RotamerAngleTuple_show(self, *args)
386 """__str__(RotamerAngleTuple self) -> std::string"""
387 return _IMP_rotamer.RotamerAngleTuple___str__(self)
390 """__repr__(RotamerAngleTuple self) -> std::string"""
391 return _IMP_rotamer.RotamerAngleTuple___repr__(self)
393 __swig_destroy__ = _IMP_rotamer.delete_RotamerAngleTuple
394 __del__ =
lambda self :
None;
395 RotamerAngleTuple_swigregister = _IMP_rotamer.RotamerAngleTuple_swigregister
396 RotamerAngleTuple_swigregister(RotamerAngleTuple)
399 """Proxy of C++ IMP::rotamer::RotamerLibrary class"""
400 __swig_setmethods__ = {}
401 for _s
in [
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
402 __setattr__ =
lambda self, name, value: _swig_setattr(self, RotamerLibrary, name, value)
403 __swig_getmethods__ = {}
404 for _s
in [
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
405 __getattr__ =
lambda self, name: _swig_getattr(self, RotamerLibrary, name)
406 def __init__(self, angle_step=10):
408 __init__(IMP::rotamer::RotamerLibrary self, unsigned int angle_step=10) -> RotamerLibrary
409 __init__(IMP::rotamer::RotamerLibrary self) -> RotamerLibrary
411 this = _IMP_rotamer.new_RotamerLibrary(angle_step)
412 try: self.this.append(this)
413 except: self.this = this
414 def get_rotamers(self, *args):
415 """get_rotamers(RotamerLibrary self, ResidueType residue, float phi, float psi, float probability_thr) -> IMP::rotamer::RotamerAngleTuples"""
416 return _IMP_rotamer.RotamerLibrary_get_rotamers(self, *args)
418 def read_library_file(self, *args):
419 """read_library_file(RotamerLibrary self, std::string const & lib_file_name)"""
420 return _IMP_rotamer.RotamerLibrary_read_library_file(self, *args)
422 def get_version_info(self):
423 """get_version_info(RotamerLibrary self) -> VersionInfo"""
424 return _IMP_rotamer.RotamerLibrary_get_version_info(self)
426 __swig_destroy__ = _IMP_rotamer.delete_RotamerLibrary
427 __del__ =
lambda self :
None;
429 """__str__(RotamerLibrary self) -> std::string"""
430 return _IMP_rotamer.RotamerLibrary___str__(self)
433 """__repr__(RotamerLibrary self) -> std::string"""
434 return _IMP_rotamer.RotamerLibrary___repr__(self)
437 return _object_cast_to_RotamerLibrary(o)
438 get_from = staticmethod(get_from)
440 RotamerLibrary_swigregister = _IMP_rotamer.RotamerLibrary_swigregister
441 RotamerLibrary_swigregister(RotamerLibrary)
443 class ResidueRotamer(_object):
444 """Proxy of C++ IMP::rotamer::ResidueRotamer class"""
445 __swig_setmethods__ = {}
446 __setattr__ =
lambda self, name, value: _swig_setattr(self, ResidueRotamer, name, value)
447 __swig_getmethods__ = {}
448 __getattr__ =
lambda self, name: _swig_getattr(self, ResidueRotamer, name)
449 def __init__(self, *args):
451 __init__(IMP::rotamer::ResidueRotamer self, ResidueType rt=UNK) -> ResidueRotamer
452 __init__(IMP::rotamer::ResidueRotamer self) -> ResidueRotamer
454 this = _IMP_rotamer.new_ResidueRotamer(*args)
455 try: self.this.append(this)
456 except: self.this = this
457 def get_coordinates(self, *args):
458 """get_coordinates(ResidueRotamer self, unsigned int index, AtomType at) -> Vector3D"""
459 return _IMP_rotamer.ResidueRotamer_get_coordinates(self, *args)
461 def get_number_of_cases(self, *args):
462 """get_number_of_cases(ResidueRotamer self, AtomType at) -> unsigned int"""
463 return _IMP_rotamer.ResidueRotamer_get_number_of_cases(self, *args)
465 def get_atom_exists(self, *args):
466 """get_atom_exists(ResidueRotamer self, AtomType at) -> bool"""
467 return _IMP_rotamer.ResidueRotamer_get_atom_exists(self, *args)
470 """get_size(ResidueRotamer self) -> unsigned int"""
471 return _IMP_rotamer.ResidueRotamer_get_size(self)
473 def get_probability(self, *args):
474 """get_probability(ResidueRotamer self, unsigned int index) -> double"""
475 return _IMP_rotamer.ResidueRotamer_get_probability(self, *args)
477 def show(self, *args):
479 show(ResidueRotamer self, _ostream out=std::cout)
480 show(ResidueRotamer self)
482 return _IMP_rotamer.ResidueRotamer_show(self, *args)
485 """__str__(ResidueRotamer self) -> std::string"""
486 return _IMP_rotamer.ResidueRotamer___str__(self)
489 """__repr__(ResidueRotamer self) -> std::string"""
490 return _IMP_rotamer.ResidueRotamer___repr__(self)
492 __swig_destroy__ = _IMP_rotamer.delete_ResidueRotamer
493 __del__ =
lambda self :
None;
494 ResidueRotamer_swigregister = _IMP_rotamer.ResidueRotamer_swigregister
495 ResidueRotamer_swigregister(ResidueRotamer)
498 """Proxy of C++ IMP::rotamer::RotamerCalculator class"""
499 __swig_setmethods__ = {}
500 for _s
in [
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
501 __setattr__ =
lambda self, name, value: _swig_setattr(self, RotamerCalculator, name, value)
502 __swig_getmethods__ = {}
503 for _s
in [
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
504 __getattr__ =
lambda self, name: _swig_getattr(self, RotamerCalculator, name)
505 def __init__(self, *args):
506 """__init__(IMP::rotamer::RotamerCalculator self, RotamerLibrary rl) -> RotamerCalculator"""
507 this = _IMP_rotamer.new_RotamerCalculator(*args)
508 try: self.this.append(this)
509 except: self.this = this
510 def get_rotamer(self, *args):
511 """get_rotamer(RotamerCalculator self, Residue rd, double thr) -> ResidueRotamer"""
512 return _IMP_rotamer.RotamerCalculator_get_rotamer(self, *args)
514 def get_version_info(self):
515 """get_version_info(RotamerCalculator self) -> VersionInfo"""
516 return _IMP_rotamer.RotamerCalculator_get_version_info(self)
518 __swig_destroy__ = _IMP_rotamer.delete_RotamerCalculator
519 __del__ =
lambda self :
None;
521 """transform(RotamerCalculator self, Hierarchy protein, PairScore score, double thr, double K, int num_iter)"""
522 return _IMP_rotamer.RotamerCalculator_transform(self, *args)
525 """__str__(RotamerCalculator self) -> std::string"""
526 return _IMP_rotamer.RotamerCalculator___str__(self)
529 """__repr__(RotamerCalculator self) -> std::string"""
530 return _IMP_rotamer.RotamerCalculator___repr__(self)
533 return _object_cast_to_RotamerCalculator(o)
534 get_from = staticmethod(get_from)
536 RotamerCalculator_swigregister = _IMP_rotamer.RotamerCalculator_swigregister
537 RotamerCalculator_swigregister(RotamerCalculator)
540 def get_module_version():
541 """get_module_version() -> std::string const"""
542 return _IMP_rotamer.get_module_version()
545 """get_example_path(std::string fname) -> std::string"""
546 return _IMP_rotamer.get_example_path(*args)
549 """get_data_path(std::string fname) -> std::string"""
550 return _IMP_rotamer.get_data_path(*args)
551 import _version_check
552 _version_check.check_version(get_module_version())