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:
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"):
78 raise AttributeError(
"You cannot add attributes to %s" % self)
84 weakref_proxy = weakref.proxy
86 weakref_proxy =
lambda x: x
89 class IMP_ROTAMER_SwigPyIterator(object):
90 """Proxy of C++ swig::IMP_ROTAMER_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")
94 __swig_destroy__ = _IMP_rotamer.delete_IMP_ROTAMER_SwigPyIterator
95 __del__ =
lambda self :
None;
97 """value(IMP_ROTAMER_SwigPyIterator self) -> PyObject *"""
98 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator_value(self)
102 incr(IMP_ROTAMER_SwigPyIterator self, size_t n=1) -> IMP_ROTAMER_SwigPyIterator
103 incr(IMP_ROTAMER_SwigPyIterator self) -> IMP_ROTAMER_SwigPyIterator
105 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator_incr(self, n)
109 decr(IMP_ROTAMER_SwigPyIterator self, size_t n=1) -> IMP_ROTAMER_SwigPyIterator
110 decr(IMP_ROTAMER_SwigPyIterator self) -> IMP_ROTAMER_SwigPyIterator
112 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator_decr(self, n)
114 def distance(self, *args):
115 """distance(IMP_ROTAMER_SwigPyIterator self, IMP_ROTAMER_SwigPyIterator x) -> ptrdiff_t"""
116 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator_distance(self, *args)
118 def equal(self, *args):
119 """equal(IMP_ROTAMER_SwigPyIterator self, IMP_ROTAMER_SwigPyIterator x) -> bool"""
120 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator_equal(self, *args)
123 """copy(IMP_ROTAMER_SwigPyIterator self) -> IMP_ROTAMER_SwigPyIterator"""
124 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator_copy(self)
127 """next(IMP_ROTAMER_SwigPyIterator self) -> PyObject *"""
128 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator_next(self)
131 """__next__(IMP_ROTAMER_SwigPyIterator self) -> PyObject *"""
132 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator___next__(self)
135 """previous(IMP_ROTAMER_SwigPyIterator self) -> PyObject *"""
136 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator_previous(self)
138 def advance(self, *args):
139 """advance(IMP_ROTAMER_SwigPyIterator self, ptrdiff_t n) -> IMP_ROTAMER_SwigPyIterator"""
140 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator_advance(self, *args)
142 def __eq__(self, *args):
143 """__eq__(IMP_ROTAMER_SwigPyIterator self, IMP_ROTAMER_SwigPyIterator x) -> bool"""
144 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator___eq__(self, *args)
146 def __ne__(self, *args):
147 """__ne__(IMP_ROTAMER_SwigPyIterator self, IMP_ROTAMER_SwigPyIterator x) -> bool"""
148 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator___ne__(self, *args)
150 def __iadd__(self, *args):
151 """__iadd__(IMP_ROTAMER_SwigPyIterator self, ptrdiff_t n) -> IMP_ROTAMER_SwigPyIterator"""
152 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator___iadd__(self, *args)
154 def __isub__(self, *args):
155 """__isub__(IMP_ROTAMER_SwigPyIterator self, ptrdiff_t n) -> IMP_ROTAMER_SwigPyIterator"""
156 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator___isub__(self, *args)
158 def __add__(self, *args):
159 """__add__(IMP_ROTAMER_SwigPyIterator self, ptrdiff_t n) -> IMP_ROTAMER_SwigPyIterator"""
160 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator___add__(self, *args)
162 def __sub__(self, *args):
164 __sub__(IMP_ROTAMER_SwigPyIterator self, ptrdiff_t n) -> IMP_ROTAMER_SwigPyIterator
165 __sub__(IMP_ROTAMER_SwigPyIterator self, IMP_ROTAMER_SwigPyIterator x) -> ptrdiff_t
167 return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator___sub__(self, *args)
169 def __iter__(self):
return self
170 IMP_ROTAMER_SwigPyIterator_swigregister = _IMP_rotamer.IMP_ROTAMER_SwigPyIterator_swigregister
171 IMP_ROTAMER_SwigPyIterator_swigregister(IMP_ROTAMER_SwigPyIterator)
178 IMP_DEBUG = _IMP_rotamer.IMP_DEBUG
179 IMP_RELEASE = _IMP_rotamer.IMP_RELEASE
180 IMP_SILENT = _IMP_rotamer.IMP_SILENT
181 IMP_PROGRESS = _IMP_rotamer.IMP_PROGRESS
182 IMP_TERSE = _IMP_rotamer.IMP_TERSE
183 IMP_VERBOSE = _IMP_rotamer.IMP_VERBOSE
184 IMP_MEMORY = _IMP_rotamer.IMP_MEMORY
185 IMP_NONE = _IMP_rotamer.IMP_NONE
186 IMP_USAGE = _IMP_rotamer.IMP_USAGE
187 IMP_INTERNAL = _IMP_rotamer.IMP_INTERNAL
188 IMP_BASE_HAS_LOG4CXX = _IMP_rotamer.IMP_BASE_HAS_LOG4CXX
189 IMP_COMPILER_HAS_AUTO = _IMP_rotamer.IMP_COMPILER_HAS_AUTO
190 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_rotamer.IMP_COMPILER_HAS_DEBUG_VECTOR
191 IMP_BASE_HAS_BOOST_RANDOM = _IMP_rotamer.IMP_BASE_HAS_BOOST_RANDOM
192 IMP_BASE_HAS_GPERFTOOLS = _IMP_rotamer.IMP_BASE_HAS_GPERFTOOLS
193 IMP_BASE_HAS_TCMALLOC_HEAPCHECKER = _IMP_rotamer.IMP_BASE_HAS_TCMALLOC_HEAPCHECKER
194 IMP_BASE_HAS_TCMALLOC_HEAPPROFILER = _IMP_rotamer.IMP_BASE_HAS_TCMALLOC_HEAPPROFILER
195 IMPBASE_SHOW_WARNINGS = _IMP_rotamer.IMPBASE_SHOW_WARNINGS
197 class _DirectorObjects(object):
198 """@internal Simple class to keep references to director objects
199 to prevent premature deletion."""
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)
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]
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()
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_rotamer._ostream_write(self, *args)
231 _ostream_swigregister = _IMP_rotamer._ostream_swigregister
232 _ostream_swigregister(_ostream)
234 IMP_COMPILER_HAS_OVERRIDE = _IMP_rotamer.IMP_COMPILER_HAS_OVERRIDE
235 IMP_COMPILER_HAS_FINAL = _IMP_rotamer.IMP_COMPILER_HAS_FINAL
236 IMP_HAS_NOEXCEPT = _IMP_rotamer.IMP_HAS_NOEXCEPT
238 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_rotamer.IMP_CGAL_HAS_BOOST_FILESYSTEM
239 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_rotamer.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
240 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_rotamer.IMP_CGAL_HAS_BOOST_RANDOM
241 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_rotamer.IMP_CGAL_HAS_BOOST_SYSTEM
242 IMPCGAL_SHOW_WARNINGS = _IMP_rotamer.IMPCGAL_SHOW_WARNINGS
244 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_rotamer.IMP_ALGEBRA_HAS_IMP_CGAL
245 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_rotamer.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
246 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_rotamer.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
247 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_rotamer.IMP_ALGEBRA_HAS_BOOST_RANDOM
248 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_rotamer.IMP_ALGEBRA_HAS_BOOST_SYSTEM
249 IMP_ALGEBRA_HAS_CGAL = _IMP_rotamer.IMP_ALGEBRA_HAS_CGAL
250 IMP_ALGEBRA_HAS_ANN = _IMP_rotamer.IMP_ALGEBRA_HAS_ANN
251 IMPALGEBRA_SHOW_WARNINGS = _IMP_rotamer.IMPALGEBRA_SHOW_WARNINGS
253 IMP_KERNEL_HAS_IMP_CGAL = _IMP_rotamer.IMP_KERNEL_HAS_IMP_CGAL
254 IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS = _IMP_rotamer.IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS
255 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_rotamer.IMP_KERNEL_HAS_BOOST_RANDOM
256 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_rotamer.IMP_KERNEL_HAS_BOOST_SYSTEM
257 IMP_KERNEL_HAS_CGAL = _IMP_rotamer.IMP_KERNEL_HAS_CGAL
258 IMPKERNEL_SHOW_WARNINGS = _IMP_rotamer.IMPKERNEL_SHOW_WARNINGS
260 IMP_DISPLAY_HAS_IMP_BASE = _IMP_rotamer.IMP_DISPLAY_HAS_IMP_BASE
261 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_rotamer.IMP_DISPLAY_HAS_IMP_CGAL
262 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_rotamer.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
263 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_rotamer.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
264 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_rotamer.IMP_DISPLAY_HAS_BOOST_RANDOM
265 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_rotamer.IMP_DISPLAY_HAS_BOOST_SYSTEM
266 IMP_DISPLAY_HAS_CGAL = _IMP_rotamer.IMP_DISPLAY_HAS_CGAL
267 IMPDISPLAY_SHOW_WARNINGS = _IMP_rotamer.IMPDISPLAY_SHOW_WARNINGS
269 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_rotamer.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
270 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_rotamer.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
271 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_rotamer.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
272 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_rotamer.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
273 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_rotamer.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
274 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_rotamer.IMP_SCORE_FUNCTOR_HAS_CGAL
275 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_rotamer.IMP_SCORE_FUNCTOR_HAS_HDF5
276 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_rotamer.IMPSCOREFUNCTOR_SHOW_WARNINGS
278 IMP_CORE_HAS_IMP_BASE = _IMP_rotamer.IMP_CORE_HAS_IMP_BASE
279 IMP_CORE_HAS_IMP_CGAL = _IMP_rotamer.IMP_CORE_HAS_IMP_CGAL
280 IMP_CORE_HAS_IMP_KERNEL = _IMP_rotamer.IMP_CORE_HAS_IMP_KERNEL
281 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_rotamer.IMP_CORE_HAS_BOOST_FILESYSTEM
282 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_rotamer.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
283 IMP_CORE_HAS_BOOST_RANDOM = _IMP_rotamer.IMP_CORE_HAS_BOOST_RANDOM
284 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_rotamer.IMP_CORE_HAS_BOOST_SYSTEM
285 IMP_CORE_HAS_CGAL = _IMP_rotamer.IMP_CORE_HAS_CGAL
286 IMP_CORE_HAS_HDF5 = _IMP_rotamer.IMP_CORE_HAS_HDF5
287 IMPCORE_SHOW_WARNINGS = _IMP_rotamer.IMPCORE_SHOW_WARNINGS
289 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_rotamer.IMP_CONTAINER_HAS_IMP_ALGEBRA
290 IMP_CONTAINER_HAS_IMP_BASE = _IMP_rotamer.IMP_CONTAINER_HAS_IMP_BASE
291 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_rotamer.IMP_CONTAINER_HAS_IMP_CGAL
292 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_rotamer.IMP_CONTAINER_HAS_IMP_DISPLAY
293 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_rotamer.IMP_CONTAINER_HAS_IMP_KERNEL
294 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_rotamer.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
295 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_rotamer.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
296 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_rotamer.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
297 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_rotamer.IMP_CONTAINER_HAS_BOOST_RANDOM
298 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_rotamer.IMP_CONTAINER_HAS_BOOST_SYSTEM
299 IMP_CONTAINER_HAS_CGAL = _IMP_rotamer.IMP_CONTAINER_HAS_CGAL
300 IMP_CONTAINER_HAS_HDF5 = _IMP_rotamer.IMP_CONTAINER_HAS_HDF5
301 IMPCONTAINER_SHOW_WARNINGS = _IMP_rotamer.IMPCONTAINER_SHOW_WARNINGS
303 IMP_ATOM_HAS_IMP_BASE = _IMP_rotamer.IMP_ATOM_HAS_IMP_BASE
304 IMP_ATOM_HAS_IMP_CGAL = _IMP_rotamer.IMP_ATOM_HAS_IMP_CGAL
305 IMP_ATOM_HAS_IMP_KERNEL = _IMP_rotamer.IMP_ATOM_HAS_IMP_KERNEL
306 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_rotamer.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
307 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_rotamer.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
308 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_rotamer.IMP_ATOM_HAS_BOOST_RANDOM
309 IMP_ATOM_HAS_BOOST_REGEX = _IMP_rotamer.IMP_ATOM_HAS_BOOST_REGEX
310 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_rotamer.IMP_ATOM_HAS_BOOST_SYSTEM
311 IMP_ATOM_HAS_CGAL = _IMP_rotamer.IMP_ATOM_HAS_CGAL
312 IMP_ATOM_HAS_HDF5 = _IMP_rotamer.IMP_ATOM_HAS_HDF5
313 IMPATOM_SHOW_WARNINGS = _IMP_rotamer.IMPATOM_SHOW_WARNINGS
314 IMP_ATOM_TYPE_INDEX = _IMP_rotamer.IMP_ATOM_TYPE_INDEX
315 IMP_RESIDUE_TYPE_INDEX = _IMP_rotamer.IMP_RESIDUE_TYPE_INDEX
316 IMP_HIERARCHY_TYPE_INDEX = _IMP_rotamer.IMP_HIERARCHY_TYPE_INDEX
318 IMP_ROTAMER_HAS_IMP_ALGEBRA = _IMP_rotamer.IMP_ROTAMER_HAS_IMP_ALGEBRA
319 IMP_ROTAMER_HAS_IMP_BASE = _IMP_rotamer.IMP_ROTAMER_HAS_IMP_BASE
320 IMP_ROTAMER_HAS_IMP_CGAL = _IMP_rotamer.IMP_ROTAMER_HAS_IMP_CGAL
321 IMP_ROTAMER_HAS_IMP_CONTAINER = _IMP_rotamer.IMP_ROTAMER_HAS_IMP_CONTAINER
322 IMP_ROTAMER_HAS_IMP_DISPLAY = _IMP_rotamer.IMP_ROTAMER_HAS_IMP_DISPLAY
323 IMP_ROTAMER_HAS_IMP_KERNEL = _IMP_rotamer.IMP_ROTAMER_HAS_IMP_KERNEL
324 IMP_ROTAMER_HAS_IMP_SCORE_FUNCTOR = _IMP_rotamer.IMP_ROTAMER_HAS_IMP_SCORE_FUNCTOR
325 IMP_ROTAMER_HAS_BOOST_FILESYSTEM = _IMP_rotamer.IMP_ROTAMER_HAS_BOOST_FILESYSTEM
326 IMP_ROTAMER_HAS_BOOST_PROGRAMOPTIONS = _IMP_rotamer.IMP_ROTAMER_HAS_BOOST_PROGRAMOPTIONS
327 IMP_ROTAMER_HAS_BOOST_RANDOM = _IMP_rotamer.IMP_ROTAMER_HAS_BOOST_RANDOM
328 IMP_ROTAMER_HAS_BOOST_REGEX = _IMP_rotamer.IMP_ROTAMER_HAS_BOOST_REGEX
329 IMP_ROTAMER_HAS_BOOST_SYSTEM = _IMP_rotamer.IMP_ROTAMER_HAS_BOOST_SYSTEM
330 IMP_ROTAMER_HAS_CGAL = _IMP_rotamer.IMP_ROTAMER_HAS_CGAL
331 IMP_ROTAMER_HAS_HDF5 = _IMP_rotamer.IMP_ROTAMER_HAS_HDF5
332 IMPROTAMER_SHOW_WARNINGS = _IMP_rotamer.IMPROTAMER_SHOW_WARNINGS
333 RotamerAngleTuples=list
334 _plural_types.append(
"RotamerAngleTuples")
335 _value_types.append(
"RotamerAngleTuple")
338 _plural_types.append(
"ResidueRotamers")
339 _value_types.append(
"ResidueRotamer")
341 _object_types.append(
"RotamerLibrary")
344 def _object_cast_to_RotamerLibrary(*args):
345 """_object_cast_to_RotamerLibrary(Object o) -> RotamerLibrary"""
346 return _IMP_rotamer._object_cast_to_RotamerLibrary(*args)
347 _object_types.append(
"RotamerCalculator")
350 def _object_cast_to_RotamerCalculator(*args):
351 """_object_cast_to_RotamerCalculator(Object o) -> RotamerCalculator"""
352 return _IMP_rotamer._object_cast_to_RotamerCalculator(*args)
353 class RotamerAngleTuple(object):
354 """Proxy of C++ IMP::rotamer::RotamerAngleTuple class"""
355 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
356 def __init__(self, *args):
358 __init__(IMP::rotamer::RotamerAngleTuple self) -> RotamerAngleTuple
359 __init__(IMP::rotamer::RotamerAngleTuple self, float chi1, float chi2, float chi3, float chi4, float probability) -> RotamerAngleTuple
361 this = _IMP_rotamer.new_RotamerAngleTuple(*args)
362 try: self.this.append(this)
363 except: self.this = this
365 """get_chi1(RotamerAngleTuple self) -> float"""
366 return _IMP_rotamer.RotamerAngleTuple_get_chi1(self)
369 """get_chi2(RotamerAngleTuple self) -> float"""
370 return _IMP_rotamer.RotamerAngleTuple_get_chi2(self)
373 """get_chi3(RotamerAngleTuple self) -> float"""
374 return _IMP_rotamer.RotamerAngleTuple_get_chi3(self)
377 """get_chi4(RotamerAngleTuple self) -> float"""
378 return _IMP_rotamer.RotamerAngleTuple_get_chi4(self)
380 def get_probability(self):
381 """get_probability(RotamerAngleTuple self) -> float"""
382 return _IMP_rotamer.RotamerAngleTuple_get_probability(self)
384 def show(self, *args):
386 show(RotamerAngleTuple self, _ostream out=std::cout)
387 show(RotamerAngleTuple self)
389 return _IMP_rotamer.RotamerAngleTuple_show(self, *args)
392 """__str__(RotamerAngleTuple self) -> std::string"""
393 return _IMP_rotamer.RotamerAngleTuple___str__(self)
396 """__repr__(RotamerAngleTuple self) -> std::string"""
397 return _IMP_rotamer.RotamerAngleTuple___repr__(self)
399 __swig_destroy__ = _IMP_rotamer.delete_RotamerAngleTuple
400 __del__ =
lambda self :
None;
401 RotamerAngleTuple_swigregister = _IMP_rotamer.RotamerAngleTuple_swigregister
402 RotamerAngleTuple_swigregister(RotamerAngleTuple)
405 """Proxy of C++ IMP::rotamer::RotamerLibrary class"""
406 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
407 def __init__(self, angle_step=10):
409 __init__(IMP::rotamer::RotamerLibrary self, unsigned int angle_step=10) -> RotamerLibrary
410 __init__(IMP::rotamer::RotamerLibrary self) -> RotamerLibrary
412 this = _IMP_rotamer.new_RotamerLibrary(angle_step)
413 try: self.this.append(this)
414 except: self.this = this
415 def get_rotamers(self, *args):
416 """get_rotamers(RotamerLibrary self, ResidueType residue, float phi, float psi, float probability_thr) -> IMP::rotamer::RotamerAngleTuples"""
417 return _IMP_rotamer.RotamerLibrary_get_rotamers(self, *args)
419 def read_library_file(self, *args):
420 """read_library_file(RotamerLibrary self, std::string const & lib_file_name)"""
421 return _IMP_rotamer.RotamerLibrary_read_library_file(self, *args)
423 def get_version_info(self):
424 """get_version_info(RotamerLibrary self) -> VersionInfo"""
425 return _IMP_rotamer.RotamerLibrary_get_version_info(self)
428 """__str__(RotamerLibrary self) -> std::string"""
429 return _IMP_rotamer.RotamerLibrary___str__(self)
432 """__repr__(RotamerLibrary self) -> std::string"""
433 return _IMP_rotamer.RotamerLibrary___repr__(self)
436 return _object_cast_to_RotamerLibrary(o)
437 get_from = staticmethod(get_from)
439 RotamerLibrary_swigregister = _IMP_rotamer.RotamerLibrary_swigregister
440 RotamerLibrary_swigregister(RotamerLibrary)
442 class ResidueRotamer(object):
443 """Proxy of C++ IMP::rotamer::ResidueRotamer 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, *args):
447 __init__(IMP::rotamer::ResidueRotamer self, ResidueType rt=UNK) -> ResidueRotamer
448 __init__(IMP::rotamer::ResidueRotamer self) -> ResidueRotamer
450 this = _IMP_rotamer.new_ResidueRotamer(*args)
451 try: self.this.append(this)
452 except: self.this = this
453 def get_coordinates(self, *args):
454 """get_coordinates(ResidueRotamer self, unsigned int index, AtomType at) -> Vector3D"""
455 return _IMP_rotamer.ResidueRotamer_get_coordinates(self, *args)
457 def get_number_of_cases(self, *args):
458 """get_number_of_cases(ResidueRotamer self, AtomType at) -> unsigned int"""
459 return _IMP_rotamer.ResidueRotamer_get_number_of_cases(self, *args)
461 def get_atom_exists(self, *args):
462 """get_atom_exists(ResidueRotamer self, AtomType at) -> bool"""
463 return _IMP_rotamer.ResidueRotamer_get_atom_exists(self, *args)
466 """get_size(ResidueRotamer self) -> unsigned int"""
467 return _IMP_rotamer.ResidueRotamer_get_size(self)
469 def get_probability(self, *args):
470 """get_probability(ResidueRotamer self, unsigned int index) -> double"""
471 return _IMP_rotamer.ResidueRotamer_get_probability(self, *args)
473 def show(self, *args):
475 show(ResidueRotamer self, _ostream out=std::cout)
476 show(ResidueRotamer self)
478 return _IMP_rotamer.ResidueRotamer_show(self, *args)
481 """__str__(ResidueRotamer self) -> std::string"""
482 return _IMP_rotamer.ResidueRotamer___str__(self)
485 """__repr__(ResidueRotamer self) -> std::string"""
486 return _IMP_rotamer.ResidueRotamer___repr__(self)
488 __swig_destroy__ = _IMP_rotamer.delete_ResidueRotamer
489 __del__ =
lambda self :
None;
490 ResidueRotamer_swigregister = _IMP_rotamer.ResidueRotamer_swigregister
491 ResidueRotamer_swigregister(ResidueRotamer)
494 """Proxy of C++ IMP::rotamer::RotamerCalculator class"""
495 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
496 def __init__(self, *args):
497 """__init__(IMP::rotamer::RotamerCalculator self, RotamerLibrary rl) -> RotamerCalculator"""
498 this = _IMP_rotamer.new_RotamerCalculator(*args)
499 try: self.this.append(this)
500 except: self.this = this
501 def get_rotamer(self, *args):
502 """get_rotamer(RotamerCalculator self, Residue rd, double thr) -> ResidueRotamer"""
503 return _IMP_rotamer.RotamerCalculator_get_rotamer(self, *args)
505 def get_version_info(self):
506 """get_version_info(RotamerCalculator self) -> VersionInfo"""
507 return _IMP_rotamer.RotamerCalculator_get_version_info(self)
510 """transform(RotamerCalculator self, Hierarchy protein, PairScore score, double thr, double K, int num_iter)"""
511 return _IMP_rotamer.RotamerCalculator_transform(self, *args)
514 """__str__(RotamerCalculator self) -> std::string"""
515 return _IMP_rotamer.RotamerCalculator___str__(self)
518 """__repr__(RotamerCalculator self) -> std::string"""
519 return _IMP_rotamer.RotamerCalculator___repr__(self)
522 return _object_cast_to_RotamerCalculator(o)
523 get_from = staticmethod(get_from)
525 RotamerCalculator_swigregister = _IMP_rotamer.RotamerCalculator_swigregister
526 RotamerCalculator_swigregister(RotamerCalculator)
529 def get_module_version():
530 """get_module_version() -> std::string const"""
531 return _IMP_rotamer.get_module_version()
534 """get_example_path(std::string fname) -> std::string"""
535 return _IMP_rotamer.get_example_path(*args)
538 """get_data_path(std::string fname) -> std::string"""
539 return _IMP_rotamer.get_data_path(*args)
540 from .
import _version_check
541 _version_check.check_version(get_module_version())
Various classes to hold sets of particles.
Make CGAL functionality available to IMP.
std::string get_data_path(std::string file_name)
Return the full path to installed data.
Low level functionality (logging, error handling, profiling, command line flags etc) that is used by ...
std::string get_example_path(std::string file_name)
Return the path to installed example data for this module.
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.
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.
Functionality for loading, creating, manipulating and scoring atomic structures.