Re: [IMP-users] How to : Access chain properties such as chain ID. Access particle properties.
To: Help and discussion for users of IMP <>
Subject: Re: [IMP-users] How to : Access chain properties such as chain ID. Access particle properties.
From: Ben Webb <>
Date: Tue, 22 Mar 2011 08:55:20 -0700
Reply-to: Help and discussion for users of IMP <>
On 3/22/11 8:07 AM, Benjamin SCHWARZ wrote:
I am wondering what properties are attached to the various levels of a
hierarchy and how to retrieve it.
As an example, I would like to know how to get the one-character-code
that is attached to a chain.
There should never be a need to mess with keys and attributes in the way
you're proposing - the decorators should always provide suitable methods.
I have the feeling, this is not strictly feasible, though it is possible
to get it as the last character in the particle name of the chain :
The particle name is a tag for the benefit of you, the human. There is
no guarantee that it ends in the chain ID, since you can set it to
anything you want.
Ben
--
http://salilab.org/~ben/
"It is a capital mistake to theorize before one has data."
- Sir Arthur Conan Doyle