yes, i want to change the chain id of the molecule.
i just realized i have to do set_id on each leave in order for that to work. it seems weird that changing the chain id of the root is not enough, but it probably has to do with being general.
so, i will keep setting id to each leave for now ... 
On Oct 31, 2011, at 5:32 PM, Dave Barkan wrote:

what about

IMP.atom.get_chain(IMP.atom.get_leaves(mh)[0]).get_id() == 'A' 
get_chain() returns an object which has its id as an attribute.

On 10/31/11 5:29 PM, Keren Lasker wrote:
hi:

IMP.atom.Chain(mh).set_id('A')  does not result in:
IMP.atom.get_chain(IMP.atom.get_leaves(mh)[0]) == 'A' 

what am i doing wrong?

thanks, keren.

_______________________________________________
IMP-dev mailing list
IMP-dev@salilab.org
https://salilab.org/mailman/listinfo/imp-dev
  

_______________________________________________
IMP-dev mailing list
IMP-dev@salilab.org
https://salilab.org/mailman/listinfo/imp-dev