<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Mar 27, 2013, at 10:44 AM, Jean-Didier Maréchal wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div>Hi all,<br><br></div><div>I have a problem with a prot and it seems that renumbering could help. I'd like to automatically add 230 to the residue number of the aa of my second chain. As I feared, when looping other residue to change res.id.position, my script fails as position can not be modified. How could I do this? Should I delete position and re-create it?</div></div></blockquote><br></div><div>Though you can't modify res.id.position, you <i>can</i> overwrite res.id entirely. So something like:</div><div><br></div><div>from chimera import MolResId</div><div>for r in residues:</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>r.id = MolResId(r.id.chainId, r.id.position+230, r.id.insertionCode)</div><div><br></div><div>--Eric</div><div><br></div><br></body></html>