Represents a residue. A Residue object stores atoms.
Methods
|
|
|
|
__init__
|
__init__ (
self,
id,
resname,
segid,
)
|
|
__repr__
|
__repr__ ( self )
|
|
_sort
|
_sort (
self,
a1,
a2,
)
Sort the Atom objects.
Atoms are sorted alphabetically according to their name,
but N, CA, C, O always come first.
Arguments:
o a1, a2 - Atom objects
|
|
add
|
add ( self, atom )
Add an Atom object.
Checks for adding duplicate atoms, and raises a
PDBConstructionException if so.
Exceptions
|
|
PDBConstructionException, "Atom %s defined twice in residue %s" %( atom_id, self )
|
|
|
flag_disordered
|
flag_disordered ( self )
Set the disordered flag.
|
|
get_resname
|
get_resname ( self )
|
|
get_segid
|
get_segid ( self )
|
|
get_unpacked_list
|
get_unpacked_list ( self )
Returns the list of all atoms, unpack DisorderedAtoms."
|
|
is_disordered
|
is_disordered ( self )
Return 1 if the residue contains disordered atoms.
|
|
sort
|
sort ( self )
|
|