Re: [PyMOL] color by element

2010-02-10 Thread Gerebtzoff, Gregori
What I personally do is:

cmd.color(grey50,all)
util.cnc(all)

So that my carbons have the color I wish (grey50), and other atoms are colored 
by element.

Best,

Greg


-Original Message-
From: David Hall [mailto:li...@cowsandmilk.net] 
Sent: Wednesday, February 10, 2010 1:45 AM
To: Ariel Talavera
Cc: pymol-users@lists.sourceforge.net
Subject: Re: [PyMOL] color by element

First of all, there is:
color atomic
which will do all the colors and for whatever reason does green for carbons

Additionally, there's a general class of util.cba? where question mark
is replaced by one letter representing the color of carbon.  I've been
told by people that these are supposed to be internal commands and I
shouldn't use them, but I do and they've been there as long as I've
used pymol.

Currently, these are:
util.cbab for slate
util.cbag for green
util.cbam for magenta
util.cbap for purple
util.cbaw for white
util.cbac for cyan
util.cbak for pink
util.cbao for orange
util.cbas for salmon
util.cbay for yellow

You can see how these are implemented in
http://pymol.svn.sourceforge.net/viewvc/pymol/trunk/pymol/modules/pymol/util.py?view=markup
if you want to make your own custom versions.

-David Hall

On Tue, Feb 9, 2010 at 5:46 PM, Ariel Talavera talav...@cim.sld.cu wrote:
 Hi Pymolers,

 How can I use the color by element (HNOS) function present in the GUI,
 in a script?

 Thanks in advanced,

 Best,
 Ariel

 --
 *
 Ariel Talavera PĂ©rez, PhD
 Center of Molecular Immunology
 calle 216 esq. A 15, Atabey, Playa
 Havana 11600, CUBA
 tel: (53-7) 271 7933, ext. 221
 fax: (53-7) 272 0644
 email: talav...@cim.sld.cu
 *


 --
 SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
 Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
 http://p.sf.net/sfu/solaris-dev2dev
 ___
 PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
 Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
 Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net




--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net


[PyMOL] pml script execution speed

2010-02-10 Thread Michael Zimmermann
Dear PyMOL users,

I have noticed a few times now that when I run a .pml script from a
function (i.e. MATLAB generates a .pml file and then does a system
call for PyMOL to run it) or in batch mode (.bat file that just calls
PyMOL.exe -c -u file.pml) and if I am taking pictures with png
then it runs considerably slower than if I open the GUI and run the
script.  I'm doing this to automate frame generation for movie making.
 Any idea why this would be and how to make the system call at least
as fast as running the GUI?

I use:
Windows XP 64-bit SP2
PyMOL v. 1.2r1

-- 
Michael Zimmermann
Ph.D. student in Bioinformatics and Computational Biology
Department of Biochemistry, Biophysics and Molecular Biology
Iowa State University

--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net


[PyMOL] Showing electric field lines

2010-02-10 Thread Michael Lerner
Hi all,

Someone recently asked me if there was a way to display field lines with
PyMOL or with an external plugin. Here's what I wrote:

It turns out that PyMOL recently grew the ability to display field lines.
After you've run APBS, you'll have a map object called pymol-generated. Try
this series of commands from the PyMOL prompt:

gradient my_grad, pymol-generated
ramp_new my_grad_ramp, pymol-generated
color my_grad_ramp, my_grad

I'm considering building this into the next version of the plugin.

Cheers,

-Michael

-- 
Michael Lerner, Ph.D.
IRTA Postdoctoral Fellow
Laboratory of Computational Biology NIH/NHLBI
5635 Fishers Lane, Room T909, MSC 9314
Rockville, MD 20852 (UPS/FedEx/Reality)
Bethesda MD 20892-9314 (USPS)
--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net