[Chimera-users] Getting position of residues
Eric Pettersen
pett at cgl.ucsf.edu
Tue Jan 10 10:00:50 PST 2023
Hi Audrey,
Each of those Residue objects has an 'id' attribute which in turn has 'chainId', 'position', and 'insertionCode' attributes. 'position' is the residue number from the input file and 'insertionCode' is the PDB insertion code (if any).
--Eric
Eric Pettersen
UCSF Computer Graphics Lab
> On Jan 9, 2023, at 1:35 PM, Audrey Piraud via Chimera-users <chimera-users at cgl.ucsf.edu> wrote:
>
> Hello,
> I'm really sorry to bother you. I'm a student working with Chimera. I'm trying to get the position of the residues in the protein after selecting them with: runCommand("select"+AA_mute+"za<5") ;sel_Res = currentResidues().
> I obtain a list of <_molecule.Residue object at 0x1133aa9b8> and I would like to obtain their position in the a.a sequences.
>
> I'm waiting for your response,
> Thanks a a lot,
>
> Audrey Piraud
> _______________________________________________
> Chimera-users mailing list: Chimera-users at cgl.ucsf.edu <mailto:Chimera-users at cgl.ucsf.edu>
> Manage subscription: https://www.rbvi.ucsf.edu/mailman/listinfo/chimera-users <https://www.rbvi.ucsf.edu/mailman/listinfo/chimera-users>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.rbvi.ucsf.edu/pipermail/chimera-users/attachments/20230110/46d58329/attachment.html>
More information about the Chimera-users
mailing list