Hi Yeping,
You might try using the your atoms selection as input to the script listed here
https://pymolwiki.org/index.php/ListSelection2
Best regards,
Blaine
Blaine Mooers, Ph.D.
Associate Professor
Department of Biochemistry and Molecular Biology
College of Medicine
University of Oklahoma
Dear pymol user,
I select a series of atoms with the follow command in pymol:
select atoms, chian A within 4 of chain B
I wonder how to select the resides containing the selected "atoms", and how to
return the names and indexes of these residues.
Thank you in advance!
Best regards,
Yeping