Re: [PyMOL] The 'select' command for complex residue selection

2019-07-09 Thread Thomas Holder
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  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 
>  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

Re: [PyMOL] The 'select' command for complex residue selection

2019-07-08 Thread sunyeping via PyMOL-users
Hi, Ali,

Your command format works well. Thank you.
--
From:Ali Kusay 
Sent At:2019 Jul. 9 (Tue.) 11:11
To:孙业平 
Cc:pymol-users 
Subject:Re: [PyMOL] The 'select' command for complex residue selection


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 
Reply-To: sunyeping 
Date: Tuesday, 9 July 2019 at 12:41 pm
To: pymol-users 
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

Re: [PyMOL] The 'select' command for complex residue selection

2019-07-08 Thread Kevin Jude
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
> ___
> 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
___
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

Re: [PyMOL] The 'select' command for complex residue selection

2019-07-08 Thread Ali Kusay
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 
Reply-To: sunyeping 
Date: Tuesday, 9 July 2019 at 12:41 pm
To: pymol-users 
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

[PyMOL] The 'select' command for complex residue selection

2019-07-08 Thread sunyeping via PyMOL-users
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