"count" is the operator you're looking for: spectrum count, green_yellow, selection=50-100/
Cheers, Warren -- mailto:war...@delsci.com Warren L. DeLano, Ph.D. Principal Scientist, DeLano Scientific LLC, 400 Oyster Point Blvd., Suite 213, South San Francisco, CA 94080 Biz:(650)-872-0942 Tech:(650)-872-0834 Fax:(650)-872-0273 Cell:(650)-346-1154 > -----Original Message----- > From: pymol-users-ad...@lists.sourceforge.net > [mailto:pymol-users-ad...@lists.sourceforge.net] On Behalf Of > Charles Moad > Sent: Tuesday, November 02, 2004 11:26 AM > To: Peter Teriete; pymol-users@lists.sourceforge.net > Subject: Re: [PyMOL] Coloring gradient > > I think I can help you except for one part. In short you > want the 'spectrum' command. For example, you can color a > chain R, based on the b-factor with the command: > > spectrum b, green_yellow, chain R > > The problem is that you must color based on a numeric value > that each atom has associated. So let's say you want to > color a helix from residue index 300-400. I tried: > > spectrum resi, green_yellow, resi 300-400 spectrum > resi_number, green_yellow, resi 300-400 > > ...and several other variations without success. Somebody > out there might no the answer to this problem. > > -Charlie > > Peter Teriete wrote: > > Dear All, > > > > I'm trying to color a protein cartoon structure from N- to > C-terminal > > with a green to yellow gradient. Had a browse around and couldn't > > quite find the correct command. Any pointers are welcomed. > > > > Peter > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Sybase ASE Linux Express Edition - download now for FREE > LinuxWorld Reader's Choice Award Winner for best database on Linux. > http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click > _______________________________________________ > PyMOL-users mailing list > PyMOL-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pymol-users >