Hi Sunyeping, I am not sure where your error is coming from (I noticed you also wrote protein_A in second selection as well). I have however rewritten the command in a simpler way, so try this:
select sele, (protein_A and c. A and resi 29-33+70-73+116-119) or (protein_B and c. C and resi 87-95) c. A is equivalent to chain A and this residue selection formats avoid the need of annoying “or” statements Cheers, Ali Ali Kusay | BPharm (Hons) | PhD Candidate & Pharmacist The University of Sydney School of Pharmacy | Faculty of Medicine and Health 424, Brain and Mind Centre | The University of Sydney | NSW 2050 Email: akus8...@uni.sydney.edu.au From: sunyeping via PyMOL-users <pymol-users@lists.sourceforge.net> Reply-To: sunyeping <sunyep...@aliyun.com> Date: Tuesday, 9 July 2019 at 12:41 pm To: pymol-users <pymol-users@lists.sourceforge.net> Subject: [PyMOL] The 'select' command for complex residue selection Dear all, In pymol I loaded two protein: protein_A and protein_B. I want to make a selection of some incontinuous residues from two chains of protein_A, for example, residue 30-34, 71-74 and 117-120 from chain A and residue 88-96 from chain C. How should I write the select command? I tried the following: select sele, (protein_A and chain A and (resi 29-33 or resi 70-73 or resi 116-119)) or (protein_A and chain C and resi 87-95) but it returns syntax error. So what is the correct command for this? Thank you in advance
_______________________________________________ PyMOL-users mailing list Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net Unsubscribe: https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe