[chimerax-users] Accessing Chain IDs
Tristan Croll
tic20 at cam.ac.uk
Tue Jun 29 11:59:53 PDT 2021
Hi Diana,
If m is your model, then the list of polymeric chain IDs is m.chains.chain_ids. If you want all chain IDs including those containing only ligands/water, try m.residues.unique_chain_ids.
Best regards,
Tristan
________________________________
From: ChimeraX-users <chimerax-users-bounces at cgl.ucsf.edu> on behalf of Diana Lee via ChimeraX-users <chimerax-users at cgl.ucsf.edu>
Sent: 29 June 2021 19:44
To: chimerax-users at cgl.ucsf.edu <chimerax-users at cgl.ucsf.edu>
Subject: [chimerax-users] Accessing Chain IDs
Hi team! I have what I hope is an easy question. I'm accessing ChimeraX commands via python script, and I need a list of the Chain IDs. I'm currently getting the number of chains using the num_chains property. I've done quite a bit of digging through documentation and can only find ways to rename, or view interfaces, but I can't seem to find any specific command to list them. I feel as though it must be so basic, no one has needed to ask. :)
Thanks for your help,
Diana Lee
Graduate Student
Luque Lab, SDSU VII
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimerax-users/attachments/20210629/bbba85d7/attachment.html>
More information about the ChimeraX-users
mailing list