Carsten,

    You're bumping up against a 63-character limit I currently have for any one 
individual argument in PyMOL's internal parser.  Obviously I need to either 
safeguard that limitation to prevent a crash or eliminate it. You can still do 
this in a single selection, as follows

select pocket = (P_338437 and (resi 16,17,18,19,54,55,57,58,59,60,61,62,67 or 
resi 72,73,74,75,82,86,91,93,95,96,97,99,100,103))

Cheers,
Warren

--
mailto:war...@sunesis.com
Warren L. DeLano, Ph.D.
Informatics Manager
Sunesis Pharmaceuticals, Inc.
341 Oyster Point Blvd.
S. San Francisco, CA 94080
(650)-266-3606 FAX:(650)-266-3501 
-----Original Message-----
From: Schubert, Carsten [mailto:carsten.schub...@3dp.com]
Sent: Thursday, January 23, 2003 12:41 PM
To: pymol-users@lists.sourceforge.net
Subject: [PyMOL] Bug in selections


Hi, 
there is a problem in pymol 0.86 under W2K using a long list of residues in a 
selection. 
When I use: 
select pocket = (P_338437 and (resi 
16,17,18,19,54,55,57,58,59,60,61,62,67,72,73,74,75,82,86,91,93,95,96,97,99,100,103))
pymol generates an error and exits. 
Splitting the selection into 2 parts prevents the crash: 
select p1 = (P_338437 and (resi 
16,17,18,19,54,55,57,58,59,60,61,62,67,72,73,74,75,82,86,91,93)) 
select pocket = (p1 or (P_338437 and (resi 95,96,97,99,100,103)) 
Is there a maximum number of elements in a selection statement? 
BTW the script worked fine in the previous release, 0.82 I guess? 
Any thoughts? 


Cheers 
        Carsten 

Reply via email to