Residue

class visualife.data.Residue(rname, resid, icode=' ')

Bases: object

Represents a residue including its name, id, atoms, owner etc.

Attributes Summary

atoms list of atoms of this residue
icode insertion code for this residue
owner provides the chain that owns this residue
res_id residue ID
res_name name of this residue in the 3-letter code

Methods Summary

locator() Returns a string that identifies this residue :return: a sting that consist of chain id (single character) + residue id (integer) + icode (most often a space)

Attributes Documentation

atoms

list of atoms of this residue

Getter:a list of atoms
Type:list[Atom]
icode

insertion code for this residue

Getter:insertion code for this residue
Setter:sets insertion code for this residue
Type:char
owner

provides the chain that owns this residue

Getter:residue owner
Setter:sets the new owner for this residue
Type:Chain
res_id

residue ID

Getter:index of a residue (might be negative!)
Setter:Sets this residue ID number
Type:int
res_name

name of this residue in the 3-letter code

Getter:name of this residue, e.g. ALA
Setter:Sets this residue name
Type:string

Methods Documentation

locator()

Returns a string that identifies this residue :return: a sting that consist of chain id (single character) + residue id (integer) + icode (most often a space)