The last parentheses is not the ASCII character ")" (code 41), but the unicode character ")" (code U+FF09) and PyMOL can't handle that.
https://www.compart.com/en/unicode/U+FF09 Cheers, Thomas > On Jul 9, 2019, at 5:47 AM, Kevin Jude <kj...@stanford.edu> wrote: > > Strange, I get the same error and can't figure out why it doesn't like the > parentheses around the second term, though here are a few formulations that > give the correct result without syntax errors: > > 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 > select sele, (protein_A and chain C and resi 87-95) or (protein_A and chain > A and (resi 29-33 or resi 70-73 or resi 116-119)) > select sele, protein_A and chain C and resi 87-95 or (protein_A and chain A > and (resi 29-33 or resi 70-73 or resi 116-119)) > select sele, protein_A and chain C and resi 87-95 or (protein_A and chain A > and resi 29-33 or resi 70-73 or resi 116-119) > > -- > Kevin Jude, PhD > Structural Biology Research Specialist, Garcia Lab > Howard Hughes Medical Institute > Stanford University School of Medicine > Beckman B177, 279 Campus Drive, Stanford CA 94305 > Phone: (650) 723-6431 > > On Mon, Jul 8, 2019 at 7:40 PM sunyeping via PyMOL-users > <pymol-users@lists.sourceforge.net> wrote: > 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 -- Thomas Holder PyMOL Principal Developer Schrödinger, Inc. _______________________________________________ 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