__init__(self,
st,
atoms,
sort=True,
connectivity_sort=False)
(Constructor)
|
|
Residue iterator constructor.
- Parameters:
st (Structure) - The Structure that the atoms list belongs to.
atoms (A list of _StructureAtoms.) - An atom iterator from which to select residues, e.g. chain.atom.
sort (bool) - If False, the residues will be returned in the order they are
listed in the structure. If True, they will be sorted according
to (chain, resnum, inscode, atom index).
connectivity_sort (bool) - If True, residues are sorted according to N->C order. A given
chain of connectivity will be sorted will be sorted contiguously,
but the order of several different chains or unconnected residues
is undefined. Modifying the connectivity of CT during iteration
will also produce undefined results.
- Overrides:
object.__init__
|