model.residue_range() — return a subset of all residues

residue_range(start, end)
This returns a list of a subset of residues from the model, from start to end inclusive. Both start and end must be valid residue indices (see Sequence.residues). For example, if 'm' is a model object, 'm.residue_range('1', '10')' returns a list of all residues from PDB residue '1' to PDB residue '10', inclusive. This sublist can be accessed in just the same way as Sequence.residues.



Automatic builds 2016-07-01