Re: [PyMOL] Drawing grid of cubes

2015-12-13 Thread Tsjerk Wassenaar
Hi Damien, The following code bins particles and makes a grid of pseudoatoms, putting the count in the b-factor field and as radius. You should be able to convert these to cubes using the script (but doing scaled spheres, and coloring according to count is nifty too). import numpy def griddify(s

Re: [PyMOL] Drawing grid of cubes

2015-12-11 Thread Damien Clavel
Hi Tsjerk, As a matter of fact the replacement of atoms by cubes is possible with cubes.py. However, this applet doesn't suit my project. Indeed, I would like to get a script that describe your second guess! D Le 11/12/15 17:12, Tsjerk Wassenaar a écrit : Hi Damien, Do you mean replacing th

Re: [PyMOL] Drawing grid of cubes

2015-12-11 Thread Tsjerk Wassenaar
Hi Damien, Do you mean replacing the atoms by cubes, or by binning the atoms on a 3D grid and show these cubes if filled? Cheers, Tsjerk On Fri, Dec 11, 2015 at 4:51 PM, Damien Clavel wrote: > Good evening pymol users, > > I would like to represent a protein with a superimposed 3D grid of cub