<div dir="ltr"><div><div><div>Thanks a lot,<br>Eric, I was close.<br></div>Elaine, I had no idea!!! Thank you very much!<br><br></div>Cheers,<br></div>JD<br></div><div class="gmail_extra"><br clear="all"><div><div>****************************</div>
<div>Dr. Jean-Didier Maréchal</div><div>Lecturer</div><div>The Computational Biotechnological Chemistry Team</div><div>Unitat de Química Física</div><div>Departament de Química</div><div>Universitat Autònoma de Barcelona</div>
<div>Edifici C.n.</div><div>08193 Cerdanyola (Barcelona)</div><div>Tel: +34.935814936</div><div>e-mail: <a href="mailto:JeanDidier.Marechal@uab.es" target="_blank">JeanDidier.Marechal@uab.es</a></div><div>www: <a href="http://asklipio.qf.uab.es" target="_blank">http://g</a><a href="http://ent.uab.es/jdidier" target="_blank">ent.uab.cat/jdidier</a></div>
</div>
<br><br><div class="gmail_quote">2013/3/27 Eric Pettersen <span dir="ltr"><<a href="mailto:pett@cgl.ucsf.edu" target="_blank">pett@cgl.ucsf.edu</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><div><div class="im"><div>On Mar 27, 2013, at 10:44 AM, Jean-Didier Maréchal wrote:</div><br></div><div class="im"><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><div>Though you can't modify res.id.position, you <i>can</i> overwrite <a href="http://res.id" target="_blank">res.id</a> entirely. So something like:</div><div><br></div><div>from chimera import MolResId</div>
<div>for r in residues:</div><div><span style="white-space:pre-wrap"> </span><a href="http://r.id" target="_blank">r.id</a> = MolResId(r.id.chainId, r.id.position+230, r.id.insertionCode)</div><span class="HOEnZb"><font color="#888888"><div>
<br></div><div>--Eric</div><div><br></div><br></font></span></div></blockquote></div><br></div>