[phenixbb] pdb hierarchy
bradley.hintze at duke.edu
Sat Dec 3 13:26:31 PST 2011
I have a hierarchy question.
I was using the hierarchy and got something that I did not expect. when
pdb_io = pdb.input(pdbfile)
hierarchy = pdb_io.construct_hierarchy()
for model in hierarchy.models():
for chain in model.chains():
print ' ' + chain.id
When I do this I expect the chains in pdbfile to be printed once for each
model in pdbfile. However, when I ran this I got, for example, chain 'A'
printed four times under the same model. Why is this?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the phenixbb