[PyMOL] selection of residues with negative numbers

2004-07-15 Thread Douglas Kojetin

Hi All-

I cannot make PyMOL make selections of residues with negative 
(sequence) numbers.  Any quick way around this?


ex. that works:
PyMOLshow sticks, //mod1//10/

ex. that fails:
PyMOLshow sticks, //mod1//-4/
Selector-Error: Invalid Range.
( s; mod1  i; :4 )--

I found this post on the mailing list, but no responses were posted:
http://sourceforge.net/mailarchive/message.php?msg_id=4223049

Thanks!
Doug




RE: [PyMOL] selection of residues with negative numbers

2004-07-15 Thread Warren DeLano
Douglas,

I don't think PyMOL can handle negative selections yet.  Just make
them positive:

alter all, resi=int(resi)+100

etc.

Cheers,
Warren

--
mailto:war...@delsci.com
Warren L. DeLano, Ph.D.
Principal Scientist
DeLano Scientific LLC
Voice (650)-346-1154 
Fax   (650)-593-4020
  

 -Original Message-
 From: pymol-users-ad...@lists.sourceforge.net 
 [mailto:pymol-users-ad...@lists.sourceforge.net] On Behalf Of 
 Douglas Kojetin
 Sent: Thursday, July 15, 2004 8:23 AM
 To: pymol
 Subject: [PyMOL] selection of residues with negative numbers
 
 Hi All-
 
 I cannot make PyMOL make selections of residues with negative
 (sequence) numbers.  Any quick way around this?
 
 ex. that works:
 PyMOLshow sticks, //mod1//10/
 
 ex. that fails:
 PyMOLshow sticks, //mod1//-4/
 Selector-Error: Invalid Range.
 ( s; mod1  i; :4 )--
 
 I found this post on the mailing list, but no responses were posted:
 http://sourceforge.net/mailarchive/message.php?msg_id=4223049
 
 Thanks!
 Doug
 
 
 
 ---
 This SF.Net email is sponsored by BEA Weblogic Workshop FREE 
 Java Enterprise J2EE developer tools!
 Get your free copy of BEA WebLogic Workshop 8.1 today.
 http://ads.osdn.com/?ad_id=4721alloc_id=10040op=click
 ___
 PyMOL-users mailing list
 PyMOL-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pymol-users