[chimera-dev] sort a list of residues based on the id.position values

Tom Goddard goddard at sonic.net
Fri Oct 26 10:17:19 PDT 2012


Sort a list of residues by residue number:

rlist = mol.residues
rlist.sort(key = lambda r: r.id.position)

-------- Original Message --------
Subject: [chimera-dev] sort a list of residues based on the id.position 
values
From: Jean Didier Pie Marechal
To: chimera-dev at cgl.ucsf.edu
Date: 10/26/12 6:49 AM
> Hi guys,
>
> how could I sort a list of residues based on their id.position value?
>
> thanks a lot
> jd
>
>
> Dr. Jean-Didier Maréchal
> Lecturer
> The Computational Biotechnological Chemistry Team
> Unitat de Química Física
> Departament de Química
> Universitat Autònoma de Barcelona
> Edifici C.n.
> 08193 Cerdanyola (Barcelona)
> Tel: +34.935814936
> www: http://asklipio.qf.uab.es
>




More information about the Chimera-dev mailing list