Re: [PyMOL] Help for surface coloring

2011-07-28 Thread Hongbo Zhu
I have a slightly different answer using (almost:) only PyMOL commands: # take 1acb as example fetch 1acb, async=0 import numpy # center is [x0,y0,z0] x0,y0,z0=[1,2,3] alldist = [] iterate_state 1, 1acb, alldist.append(numpy.sqrt(numpy.sum([(x-x0)**2,(y-y0)**2,(z-z0)**2]))) # assign dist to b-

Re: [PyMOL] Help for surface coloring

2011-07-28 Thread Jason Vertrees
Hi Robert, I did something like this in the past. Check out the ramp_new command page on the PyMOLWiki for an example (http://pymolwiki.org/index.php/Ramp_new#Elaborate_examples) for arbitrary functions. Here's a very quick way to color a surface by distance from a given point--here I chose the o

Re: [PyMOL] Help for surface coloring

2011-07-28 Thread Thomas Holder
Hi Robert, you can set the distance between each atom and the center as b-factor, and then use spectrum (or spectrumany [1]) for coloring. I wrote a small python script that will do that, see attachment. Example (in PyMOL command line): run distancecoloring.py centerdistance2b (all) spectrum

Re: [PyMOL] Pymol 1.4.1 problem coloring cartoons. They turn to black.

2011-07-28 Thread Santi Rios
Hi Jason, Thanks for your prompt reply. 2011/7/28 Jason Vertrees > > > This only happens if I use the "set use_shaders, 1". If I don't use this > > command, the "cartoon" and "stick" are displayed in the right colour, but > > then I have problems coloring the sticks (it's a known bug : > > > ht

[PyMOL] Help for surface coloring

2011-07-28 Thread Muench, Robert
Dear community, I was searching the internet for several days now to find out how to perform a distance dependent coloring in pymol. The idea is to color the surface of a viral (spherical) structure. I would like to define the xyz-coordinates of the center of the viral structure an color all r

Re: [PyMOL] Pymol 1.4.1 problem coloring cartoons. They turn to black.

2011-07-28 Thread Jason Vertrees
Hi Santiago, > I've found a problem with Pymol version 1.4.1. I am using Ubuntu 10.10 in a > laptop with Intel Mobile 4 graphics controller. > > The problem comes when I load any PDB file, then try to show it as a > cartoon. It displays the cartoon but in black color, so I cannot see it > unless I

Re: [PyMOL] Pymol 1.4.1 problem coloring cartoons. They turn to black.

2011-07-28 Thread Santi Rios
Hi Bernhard, I just installed this new driver : xserver-xorg-video-intel_2.13.901-2ubuntu2~xup~maverick_i386.deb And the problem remains the same. Also tried installing the combo of : libdrm-intel1_2.4.23+git20110119.550fe2ca-0ubuntu0sarvatt~maverick_i386.deb xserver-xorg-video-intel_2.14.0+git2

Re: [PyMOL] Pymol 1.4.1 problem coloring cartoons. They turn to black.

2011-07-28 Thread Bernhard Lechtenberg
Hello Santiago, have you tried using the graphics drivers from the xorg-edgers project? That helped me with the stick coloring problem: http://www.mail-archive.com/pymol-users@lists.sourceforge.net/msg09210.html and may also help with your problem. Bernhard -Original Message- From: Sa

[PyMOL] Pymol 1.4.1 problem coloring cartoons. They turn to black.

2011-07-28 Thread Santi Rios
Dear Pymol Users, I've found a problem with Pymol version 1.4.1. I am using Ubuntu 10.10 in a laptop with Intel Mobile 4 graphics controller. The problem comes when I load any PDB file, then try to show it as a cartoon. It displays the cartoon but in black color, so I cannot see it unless I turn