[chimera-dev] changing position for a residue using python

Elaine Meng meng at cgl.ucsf.edu
Wed Mar 27 11:04:56 PDT 2013


Hi JD,
I can't say anything about python, but maybe you could just use the Chimera command "resrenumber" (GUI is Tools... Structure Editing... Renumber Residues) instead?

For example: 

resrenumber 231 :.b

to renumber chain B starting at 231.  I guess you could run the command via python if necessary.
Elaine
-----
Elaine C. Meng, Ph.D.                       
UCSF Computer Graphics Lab (Chimera team) and Babbitt Lab
Department of Pharmaceutical Chemistry
University of California, San Francisco

On Mar 27, 2013, at 10:44 AM, Jean-Didier Maréchal wrote:

> Hi all,
> 
> 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?
> 
> Best
> JD





More information about the Chimera-dev mailing list