next up previous contents index
Next: model.get_insertions() return Up: The model class: handling Previous: model.atom_range() return   Contents   Index

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 model.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 model.residues.



Ben Webb 2007-01-19