Package schrodinger :: Package application :: Package bioluminate :: Module interaction_calculator :: Class ResTuple
[hide private]
[frames] | no frames]

Class ResTuple

object --+        
         |        
     tuple --+    
             |    
     _ResTuple --+
                 |
                ResTuple

A class to store a residue. Unlike schrodinger.structure._Residue, two ResTuple objects that describe the same residue are equal (and their hashes are equal). This class will also strip spaces from inscode and pdbres.

Instance Methods [hide private]
 
__str__(self)
Represent this residue as ex.
 
__repr__(self)
Generate a string that can be used to reproduce this object

Inherited from _ResTuple: __getnewargs__, __getstate__

Inherited from _ResTuple (private): _asdict, _replace

Inherited from tuple: __add__, __contains__, __eq__, __ge__, __getattribute__, __getitem__, __getslice__, __gt__, __hash__, __iter__, __le__, __len__, __lt__, __mul__, __ne__, __rmul__, count, index

Inherited from object: __delattr__, __format__, __init__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Methods [hide private]
ResTuple
init(cls, *args, **kwargs)
Initialize a class instance directly instead of from a _Residue object.

Inherited from _ResTuple (private): _make

Static Methods [hide private]
ResTuple
__new__(cls, res)
Create a new instance of the tuple
Class Variables [hide private]

Inherited from _ResTuple (private): _fields

Properties [hide private]

Inherited from _ResTuple: chain, inscode, pdbres, resnum

Inherited from object: __class__

Method Details [hide private]

__new__(cls, res)
Static Method

 

Create a new instance of the tuple

Parameters:
Returns: ResTuple
The newly created instance
Overrides: object.__new__

init(cls, *args, **kwargs)
Class Method

 

Initialize a class instance directly instead of from a _Residue object. This function allows for the output of __repr__() to be evaluated and is intended for use in testing.

Returns: ResTuple
The initialized instance

__str__(self)
(Informal representation operator)

 

Represent this residue as ex. A:22:Ala

Overrides: object.__str__

__repr__(self)
(Representation operator)

 

Generate a string that can be used to reproduce this object

Overrides: object.__repr__