next up previous contents index
Next: model.point() return Up: The model class: handling Previous: model.residues all   Contents   Index

model.chains -- all chains in the model

This is a standard Python list of all the chains in the model. You can index this list either in standard Python fashion, or by using the one-letter PDB chain ID, for example if 'm' is a model object, and the first chain has ID 'A', both 'm.chains[0]' and 'm.chains['A']' will index this chain.
Example: See selection.assess_dope() command.

Ben Webb 2007-01-19