Hierarchical Views
This module defines HierView class that builds a hierarchical
views of atom groups.
- class prody.atomic.hierview.HierView(atoms, **kwargs)[source]
Hierarchical views can be generated for
AtomGroup,Selection, andChaininstances. Indexing aHierViewinstance returns aChaininstance.Some
objectmethods are customized as follows:len()returns the number of chains, i.e.numChains()
Note that when an
AtomGroupinstance have distinct segments, they will be considered when building the hierarchical view. ASegmentinstance will be generated for each distinct segment name. Then, for each segment chains and residues will be evaluated. Having segments in the structure will not change most behaviors of this class, except indexing. For example, when indexing a hierarchical view for chain P in segment PROT needs to be indexed ashv['PROT', 'P'].- __iter__()
Yield chains.