IMP  2.1.0
The Integrative Modeling Platform
rotamer/__init__.py
1 # This file was automatically generated by SWIG (http://www.swig.org).
2 # Version 2.0.11
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_rotamer', [dirname(__file__)])
19  except ImportError:
20  import _IMP_rotamer
21  return _IMP_rotamer
22  if fp is not None:
23  try:
24  _mod = imp.load_module('_IMP_rotamer', fp, pathname, description)
25  finally:
26  fp.close()
27  return _mod
28  _IMP_rotamer = swig_import_helper()
29  del swig_import_helper
30 else:
31  import _IMP_rotamer
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 try:
73  import weakref
74  weakref_proxy = weakref.proxy
75 except:
76  weakref_proxy = lambda x: x
77 
78 
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")
86  __repr__ = _swig_repr
87  __swig_destroy__ = _IMP_rotamer.delete_IMP_ROTAMER_SwigPyIterator
88  __del__ = lambda self : None;
89  def value(self):
90  """value(IMP_ROTAMER_SwigPyIterator self) -> PyObject *"""
91  return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator_value(self)
92 
93  def incr(self, n=1):
94  """
95  incr(IMP_ROTAMER_SwigPyIterator self, size_t n=1) -> IMP_ROTAMER_SwigPyIterator
96  incr(IMP_ROTAMER_SwigPyIterator self) -> IMP_ROTAMER_SwigPyIterator
97  """
98  return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator_incr(self, n)
99 
100  def decr(self, n=1):
101  """
102  decr(IMP_ROTAMER_SwigPyIterator self, size_t n=1) -> IMP_ROTAMER_SwigPyIterator
103  decr(IMP_ROTAMER_SwigPyIterator self) -> IMP_ROTAMER_SwigPyIterator
104  """
105  return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator_decr(self, n)
106 
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)
110 
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)
114 
115  def copy(self):
116  """copy(IMP_ROTAMER_SwigPyIterator self) -> IMP_ROTAMER_SwigPyIterator"""
117  return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator_copy(self)
118 
119  def next(self):
120  """next(IMP_ROTAMER_SwigPyIterator self) -> PyObject *"""
121  return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator_next(self)
122 
123  def __next__(self):
124  """__next__(IMP_ROTAMER_SwigPyIterator self) -> PyObject *"""
125  return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator___next__(self)
126 
127  def previous(self):
128  """previous(IMP_ROTAMER_SwigPyIterator self) -> PyObject *"""
129  return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator_previous(self)
130 
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)
134 
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)
138 
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)
142 
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)
146 
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)
150 
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)
154 
155  def __sub__(self, *args):
156  """
157  __sub__(IMP_ROTAMER_SwigPyIterator self, ptrdiff_t n) -> IMP_ROTAMER_SwigPyIterator
158  __sub__(IMP_ROTAMER_SwigPyIterator self, IMP_ROTAMER_SwigPyIterator x) -> ptrdiff_t
159  """
160  return _IMP_rotamer.IMP_ROTAMER_SwigPyIterator___sub__(self, *args)
161 
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)
165 
166 _value_types=[]
167 _object_types=[]
168 _raii_types=[]
169 _plural_types=[]
170 
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
189 import sys
190 class _DirectorObjects(object):
191  """@internal Simple class to keep references to director objects
192  to prevent premature deletion."""
193  def __init__(self):
194  self._objects = []
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)
200  def cleanup(self):
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]
207 
208 
209  self._objects = objs
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()
214 
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
219 
220 def set_check_level(*args):
221  """set_check_level(IMP::base::CheckLevel tf)"""
222  return _IMP_rotamer.set_check_level(*args)
223 
224 def get_check_level():
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)
238 
239 _ostream_swigregister = _IMP_rotamer._ostream_swigregister
240 _ostream_swigregister(_ostream)
241 
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
245 import IMP.base
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
251 import IMP.cgal
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
260 import IMP.algebra
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
267 import IMP.kernel
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
276 import IMP.display
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 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_rotamer.IMPSCOREFUNCTOR_SHOW_WARNINGS
284 import IMP.score_functor
285 IMP_CORE_HAS_IMP_BASE = _IMP_rotamer.IMP_CORE_HAS_IMP_BASE
286 IMP_CORE_HAS_IMP_CGAL = _IMP_rotamer.IMP_CORE_HAS_IMP_CGAL
287 IMP_CORE_HAS_IMP_KERNEL = _IMP_rotamer.IMP_CORE_HAS_IMP_KERNEL
288 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_rotamer.IMP_CORE_HAS_BOOST_FILESYSTEM
289 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_rotamer.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
290 IMP_CORE_HAS_BOOST_RANDOM = _IMP_rotamer.IMP_CORE_HAS_BOOST_RANDOM
291 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_rotamer.IMP_CORE_HAS_BOOST_SYSTEM
292 IMP_CORE_HAS_CGAL = _IMP_rotamer.IMP_CORE_HAS_CGAL
293 IMPCORE_SHOW_WARNINGS = _IMP_rotamer.IMPCORE_SHOW_WARNINGS
294 import IMP.core
295 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_rotamer.IMP_CONTAINER_HAS_IMP_ALGEBRA
296 IMP_CONTAINER_HAS_IMP_BASE = _IMP_rotamer.IMP_CONTAINER_HAS_IMP_BASE
297 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_rotamer.IMP_CONTAINER_HAS_IMP_CGAL
298 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_rotamer.IMP_CONTAINER_HAS_IMP_DISPLAY
299 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_rotamer.IMP_CONTAINER_HAS_IMP_KERNEL
300 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_rotamer.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
301 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_rotamer.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
302 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_rotamer.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
303 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_rotamer.IMP_CONTAINER_HAS_BOOST_RANDOM
304 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_rotamer.IMP_CONTAINER_HAS_BOOST_SYSTEM
305 IMP_CONTAINER_HAS_CGAL = _IMP_rotamer.IMP_CONTAINER_HAS_CGAL
306 IMPCONTAINER_SHOW_WARNINGS = _IMP_rotamer.IMPCONTAINER_SHOW_WARNINGS
307 import IMP.container
308 IMP_ATOM_HAS_IMP_BASE = _IMP_rotamer.IMP_ATOM_HAS_IMP_BASE
309 IMP_ATOM_HAS_IMP_CGAL = _IMP_rotamer.IMP_ATOM_HAS_IMP_CGAL
310 IMP_ATOM_HAS_IMP_KERNEL = _IMP_rotamer.IMP_ATOM_HAS_IMP_KERNEL
311 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_rotamer.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
312 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_rotamer.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
313 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_rotamer.IMP_ATOM_HAS_BOOST_RANDOM
314 IMP_ATOM_HAS_BOOST_REGEX = _IMP_rotamer.IMP_ATOM_HAS_BOOST_REGEX
315 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_rotamer.IMP_ATOM_HAS_BOOST_SYSTEM
316 IMP_ATOM_HAS_CGAL = _IMP_rotamer.IMP_ATOM_HAS_CGAL
317 IMPATOM_SHOW_WARNINGS = _IMP_rotamer.IMPATOM_SHOW_WARNINGS
318 IMP_ATOM_TYPE_INDEX = _IMP_rotamer.IMP_ATOM_TYPE_INDEX
319 IMP_RESIDUE_TYPE_INDEX = _IMP_rotamer.IMP_RESIDUE_TYPE_INDEX
320 IMP_HIERARCHY_TYPE_INDEX = _IMP_rotamer.IMP_HIERARCHY_TYPE_INDEX
321 import IMP.atom
322 IMP_ROTAMER_HAS_IMP_ALGEBRA = _IMP_rotamer.IMP_ROTAMER_HAS_IMP_ALGEBRA
323 IMP_ROTAMER_HAS_IMP_BASE = _IMP_rotamer.IMP_ROTAMER_HAS_IMP_BASE
324 IMP_ROTAMER_HAS_IMP_CGAL = _IMP_rotamer.IMP_ROTAMER_HAS_IMP_CGAL
325 IMP_ROTAMER_HAS_IMP_CONTAINER = _IMP_rotamer.IMP_ROTAMER_HAS_IMP_CONTAINER
326 IMP_ROTAMER_HAS_IMP_DISPLAY = _IMP_rotamer.IMP_ROTAMER_HAS_IMP_DISPLAY
327 IMP_ROTAMER_HAS_IMP_KERNEL = _IMP_rotamer.IMP_ROTAMER_HAS_IMP_KERNEL
328 IMP_ROTAMER_HAS_IMP_SCORE_FUNCTOR = _IMP_rotamer.IMP_ROTAMER_HAS_IMP_SCORE_FUNCTOR
329 IMP_ROTAMER_HAS_BOOST_FILESYSTEM = _IMP_rotamer.IMP_ROTAMER_HAS_BOOST_FILESYSTEM
330 IMP_ROTAMER_HAS_BOOST_PROGRAMOPTIONS = _IMP_rotamer.IMP_ROTAMER_HAS_BOOST_PROGRAMOPTIONS
331 IMP_ROTAMER_HAS_BOOST_RANDOM = _IMP_rotamer.IMP_ROTAMER_HAS_BOOST_RANDOM
332 IMP_ROTAMER_HAS_BOOST_REGEX = _IMP_rotamer.IMP_ROTAMER_HAS_BOOST_REGEX
333 IMP_ROTAMER_HAS_BOOST_SYSTEM = _IMP_rotamer.IMP_ROTAMER_HAS_BOOST_SYSTEM
334 IMP_ROTAMER_HAS_CGAL = _IMP_rotamer.IMP_ROTAMER_HAS_CGAL
335 IMPROTAMER_SHOW_WARNINGS = _IMP_rotamer.IMPROTAMER_SHOW_WARNINGS
336 RotamerAngleTuples=list
337 _plural_types.append("RotamerAngleTuples")
338 _value_types.append("RotamerAngleTuple")
339 
340 ResidueRotamers=list
341 _plural_types.append("ResidueRotamers")
342 _value_types.append("ResidueRotamer")
343 
344 _object_types.append("RotamerLibrary")
345 
346 
347 def _object_cast_to_RotamerLibrary(*args):
348  """_object_cast_to_RotamerLibrary(Object o) -> RotamerLibrary"""
349  return _IMP_rotamer._object_cast_to_RotamerLibrary(*args)
350 _object_types.append("RotamerCalculator")
351 
352 
353 def _object_cast_to_RotamerCalculator(*args):
354  """_object_cast_to_RotamerCalculator(Object o) -> RotamerCalculator"""
355  return _IMP_rotamer._object_cast_to_RotamerCalculator(*args)
356 class RotamerAngleTuple(_object):
357  """Proxy of C++ IMP::rotamer::RotamerAngleTuple class"""
358  __swig_setmethods__ = {}
359  __setattr__ = lambda self, name, value: _swig_setattr(self, RotamerAngleTuple, name, value)
360  __swig_getmethods__ = {}
361  __getattr__ = lambda self, name: _swig_getattr(self, RotamerAngleTuple, name)
362  def __init__(self, *args):
363  """
364  __init__(IMP::rotamer::RotamerAngleTuple self) -> RotamerAngleTuple
365  __init__(IMP::rotamer::RotamerAngleTuple self, float chi1, float chi2, float chi3, float chi4, float probability) -> RotamerAngleTuple
366  """
367  this = _IMP_rotamer.new_RotamerAngleTuple(*args)
368  try: self.this.append(this)
369  except: self.this = this
370  def get_chi1(self):
371  """get_chi1(RotamerAngleTuple self) -> float"""
372  return _IMP_rotamer.RotamerAngleTuple_get_chi1(self)
373 
374  def get_chi2(self):
375  """get_chi2(RotamerAngleTuple self) -> float"""
376  return _IMP_rotamer.RotamerAngleTuple_get_chi2(self)
377 
378  def get_chi3(self):
379  """get_chi3(RotamerAngleTuple self) -> float"""
380  return _IMP_rotamer.RotamerAngleTuple_get_chi3(self)
381 
382  def get_chi4(self):
383  """get_chi4(RotamerAngleTuple self) -> float"""
384  return _IMP_rotamer.RotamerAngleTuple_get_chi4(self)
385 
386  def get_probability(self):
387  """get_probability(RotamerAngleTuple self) -> float"""
388  return _IMP_rotamer.RotamerAngleTuple_get_probability(self)
389 
390  def show(self, *args):
391  """
392  show(RotamerAngleTuple self, _ostream out=std::cout)
393  show(RotamerAngleTuple self)
394  """
395  return _IMP_rotamer.RotamerAngleTuple_show(self, *args)
396 
397  def __str__(self):
398  """__str__(RotamerAngleTuple self) -> std::string"""
399  return _IMP_rotamer.RotamerAngleTuple___str__(self)
400 
401  def __repr__(self):
402  """__repr__(RotamerAngleTuple self) -> std::string"""
403  return _IMP_rotamer.RotamerAngleTuple___repr__(self)
404 
405  __swig_destroy__ = _IMP_rotamer.delete_RotamerAngleTuple
406  __del__ = lambda self : None;
407 RotamerAngleTuple_swigregister = _IMP_rotamer.RotamerAngleTuple_swigregister
408 RotamerAngleTuple_swigregister(RotamerAngleTuple)
409 
410 class RotamerLibrary(IMP.base.Object):
411  """Proxy of C++ IMP::rotamer::RotamerLibrary class"""
412  __swig_setmethods__ = {}
413  for _s in [IMP.base.Object]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
414  __setattr__ = lambda self, name, value: _swig_setattr(self, RotamerLibrary, name, value)
415  __swig_getmethods__ = {}
416  for _s in [IMP.base.Object]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
417  __getattr__ = lambda self, name: _swig_getattr(self, RotamerLibrary, name)
418  def __init__(self, angle_step=10):
419  """
420  __init__(IMP::rotamer::RotamerLibrary self, unsigned int angle_step=10) -> RotamerLibrary
421  __init__(IMP::rotamer::RotamerLibrary self) -> RotamerLibrary
422  """
423  this = _IMP_rotamer.new_RotamerLibrary(angle_step)
424  try: self.this.append(this)
425  except: self.this = this
426  def get_rotamers(self, *args):
427  """get_rotamers(RotamerLibrary self, ResidueType residue, float phi, float psi, float probability_thr) -> IMP::rotamer::RotamerAngleTuples"""
428  return _IMP_rotamer.RotamerLibrary_get_rotamers(self, *args)
429 
430  def read_library_file(self, *args):
431  """read_library_file(RotamerLibrary self, std::string const & lib_file_name)"""
432  return _IMP_rotamer.RotamerLibrary_read_library_file(self, *args)
433 
434  def get_version_info(self):
435  """get_version_info(RotamerLibrary self) -> VersionInfo"""
436  return _IMP_rotamer.RotamerLibrary_get_version_info(self)
437 
438  __swig_destroy__ = _IMP_rotamer.delete_RotamerLibrary
439  __del__ = lambda self : None;
440  def __str__(self):
441  """__str__(RotamerLibrary self) -> std::string"""
442  return _IMP_rotamer.RotamerLibrary___str__(self)
443 
444  def __repr__(self):
445  """__repr__(RotamerLibrary self) -> std::string"""
446  return _IMP_rotamer.RotamerLibrary___repr__(self)
447 
448  def get_from(o):
449  return _object_cast_to_RotamerLibrary(o)
450  get_from = staticmethod(get_from)
451 
452 RotamerLibrary_swigregister = _IMP_rotamer.RotamerLibrary_swigregister
453 RotamerLibrary_swigregister(RotamerLibrary)
454 
455 class ResidueRotamer(_object):
456  """Proxy of C++ IMP::rotamer::ResidueRotamer class"""
457  __swig_setmethods__ = {}
458  __setattr__ = lambda self, name, value: _swig_setattr(self, ResidueRotamer, name, value)
459  __swig_getmethods__ = {}
460  __getattr__ = lambda self, name: _swig_getattr(self, ResidueRotamer, name)
461  def __init__(self, *args):
462  """
463  __init__(IMP::rotamer::ResidueRotamer self, ResidueType rt=UNK) -> ResidueRotamer
464  __init__(IMP::rotamer::ResidueRotamer self) -> ResidueRotamer
465  """
466  this = _IMP_rotamer.new_ResidueRotamer(*args)
467  try: self.this.append(this)
468  except: self.this = this
469  def get_coordinates(self, *args):
470  """get_coordinates(ResidueRotamer self, unsigned int index, AtomType at) -> Vector3D"""
471  return _IMP_rotamer.ResidueRotamer_get_coordinates(self, *args)
472 
473  def get_number_of_cases(self, *args):
474  """get_number_of_cases(ResidueRotamer self, AtomType at) -> unsigned int"""
475  return _IMP_rotamer.ResidueRotamer_get_number_of_cases(self, *args)
476 
477  def get_atom_exists(self, *args):
478  """get_atom_exists(ResidueRotamer self, AtomType at) -> bool"""
479  return _IMP_rotamer.ResidueRotamer_get_atom_exists(self, *args)
480 
481  def get_size(self):
482  """get_size(ResidueRotamer self) -> unsigned int"""
483  return _IMP_rotamer.ResidueRotamer_get_size(self)
484 
485  def get_probability(self, *args):
486  """get_probability(ResidueRotamer self, unsigned int index) -> double"""
487  return _IMP_rotamer.ResidueRotamer_get_probability(self, *args)
488 
489  def show(self, *args):
490  """
491  show(ResidueRotamer self, _ostream out=std::cout)
492  show(ResidueRotamer self)
493  """
494  return _IMP_rotamer.ResidueRotamer_show(self, *args)
495 
496  def __str__(self):
497  """__str__(ResidueRotamer self) -> std::string"""
498  return _IMP_rotamer.ResidueRotamer___str__(self)
499 
500  def __repr__(self):
501  """__repr__(ResidueRotamer self) -> std::string"""
502  return _IMP_rotamer.ResidueRotamer___repr__(self)
503 
504  __swig_destroy__ = _IMP_rotamer.delete_ResidueRotamer
505  __del__ = lambda self : None;
506 ResidueRotamer_swigregister = _IMP_rotamer.ResidueRotamer_swigregister
507 ResidueRotamer_swigregister(ResidueRotamer)
508 
509 class RotamerCalculator(IMP.base.Object):
510  """Proxy of C++ IMP::rotamer::RotamerCalculator class"""
511  __swig_setmethods__ = {}
512  for _s in [IMP.base.Object]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
513  __setattr__ = lambda self, name, value: _swig_setattr(self, RotamerCalculator, name, value)
514  __swig_getmethods__ = {}
515  for _s in [IMP.base.Object]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
516  __getattr__ = lambda self, name: _swig_getattr(self, RotamerCalculator, name)
517  def __init__(self, *args):
518  """__init__(IMP::rotamer::RotamerCalculator self, RotamerLibrary rl) -> RotamerCalculator"""
519  this = _IMP_rotamer.new_RotamerCalculator(*args)
520  try: self.this.append(this)
521  except: self.this = this
522  def get_rotamer(self, *args):
523  """get_rotamer(RotamerCalculator self, Residue rd, double thr) -> ResidueRotamer"""
524  return _IMP_rotamer.RotamerCalculator_get_rotamer(self, *args)
525 
526  def get_version_info(self):
527  """get_version_info(RotamerCalculator self) -> VersionInfo"""
528  return _IMP_rotamer.RotamerCalculator_get_version_info(self)
529 
530  __swig_destroy__ = _IMP_rotamer.delete_RotamerCalculator
531  __del__ = lambda self : None;
532  def transform(self, *args):
533  """transform(RotamerCalculator self, Hierarchy protein, PairScore score, double thr, double K, int num_iter)"""
534  return _IMP_rotamer.RotamerCalculator_transform(self, *args)
535 
536  def __str__(self):
537  """__str__(RotamerCalculator self) -> std::string"""
538  return _IMP_rotamer.RotamerCalculator___str__(self)
539 
540  def __repr__(self):
541  """__repr__(RotamerCalculator self) -> std::string"""
542  return _IMP_rotamer.RotamerCalculator___repr__(self)
543 
544  def get_from(o):
545  return _object_cast_to_RotamerCalculator(o)
546  get_from = staticmethod(get_from)
547 
548 RotamerCalculator_swigregister = _IMP_rotamer.RotamerCalculator_swigregister
549 RotamerCalculator_swigregister(RotamerCalculator)
550 
551 
552 def get_module_version():
553  """get_module_version() -> std::string const"""
554  return _IMP_rotamer.get_module_version()
555 
556 def get_example_path(*args):
557  """get_example_path(std::string fname) -> std::string"""
558  return _IMP_rotamer.get_example_path(*args)
559 
560 def get_data_path(*args):
561  """get_data_path(std::string fname) -> std::string"""
562  return _IMP_rotamer.get_data_path(*args)
563 import _version_check
564 _version_check.check_version(get_module_version())
565 
566 # This file is compatible with both classic and new-style classes.
567 
568 
See IMP.container for more information.
See IMP.cgal for more information.
Definition: cgal_config.h:107
void set_check_level(CheckLevel tf)
Control runtime checks in the code.
See IMP.base for more information.
Definition: base/Array.h:20
See IMP.score_functor for more information.
Definition: AddScores.h:14
std::string get_data_path(std::string file_name)
Return the full path to installed data.
void transform(Hierarchy h, const algebra::Transformation3D &tr)
See IMP.kernel for more information.
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.
See IMP.core for more information.
See IMP.algebra for more information.
void show(Hierarchy h, std::ostream &out=std::cout)
Print out a molecular hierarchy.
See IMP.display for more information.
Definition: BildWriter.h:20
CheckLevel get_check_level()
Get the current audit mode.
See IMP.atom for more information.