[Chimera-users] Getting position of residues

Audrey Piraud audrey.piraud at etu.univ-cotedazur.fr
Wed Jan 11 05:39:02 PST 2023


Thanks a lot for your quick answer.

But I don't know how to access to their attribute should I simply do <_molecule.Residue object at 0x1133aa9b8>.position because it's not working...

Thanks,
Audrey Piraud
________________________________
De : Eric Pettersen <pett at cgl.ucsf.edu>
Envoyé : mardi 10 janvier 2023 19:00
À : Audrey Piraud <audrey.piraud at etu.univ-cotedazur.fr>
Cc : chimera-users at cgl.ucsf.edu <chimera-users at cgl.ucsf.edu>
Objet : Re: [Chimera-users] Getting position of residues

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<mailto: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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.rbvi.ucsf.edu/pipermail/chimera-users/attachments/20230111/6325f7c3/attachment.html>


More information about the Chimera-users mailing list