" is used, the midpoint color is set to the
given color; otherwise, the two ramp colors are mixed (in terms of
pigment).
SET MERGEMAP number
kludge that is only necessary when drawing multiple GRASP/df3 files
over the *same area* - i.e. when issuing the same drawsurf/contour
command twice, only with differing mapfiles/contour levels each time.
The result is that the GRASP/df3 files are merged so that common areas
aren't dominated by the last rendered map. Supported values:
- 0 - write all (default)
- 1 - write header + media
- 2 - write media only
- 3 - write media + closing declaration
e.g.: to draw a 2fo-fc map and a fo-fc map over the same residue, the
following would accomplish this:
read prot "prot.pdb";
ball-and-stick in residue A50;
readmap 2fofc "2fofc.omap" covering in residue A50 plus 5;
readmap fofc "fofc.omap" covering in residue A50 plus 5;
set maptype 2;
! setup the ramp for the 2fofc
set mapramp from black to red;
! starting a merge statement
set mergemap 1;
contour 2fofc at 1.0 covering in residue A50;
! change the ramp
set mapramp from black to green;
! next media component (and also the last, so we also write
! the closing declaration)
set mergemap 3;
contour fofc at 2.0 covering in residue A50;
or for a GRASP map, only mergemap values 0, 1 or 3 are necessary:
readsurf surf "surf.srf" potential;
set colourramp rgb, mapramp from red to blue through white;
set mergemap 1, transparency 0.0;
drawsurf surf covering in residue A100;
set mergemap 3, transparency 0.7;
drawsurf surf notcovering in residue A100;
so a solid surface is drawn around residue A100 while the rest of the
surface is drawn as a transparent object.
SET SMOOTHMAP ON/OFF
turns vertex normal smoothing on/off. The default is on, resulting in
smoothed surface renderings. Doesn't apply for MAPTYPE 0 mode.
Commands that are relevant to B factors:
SET BAXES number
sets the bfactor rendering setup - currently supported values:
- 0 - no axes drawn (default)
- 1 - principal axes rendered as lines
- 2 - principal axes rendered as ellipses
SET AXESRAD number
sets the radius of cylindrical axes in "baxes 1" output mode (POVRay,
OpenGL only) (default: 0.02)
SET BSURF number
sets the bfactor rendering setup - currently supported values:
- 0 - old school molscript style (overrides baxes setting) (default)
- 1 - no atom surface (just principal axes, if desired)
- 2 - solid surface, rendered according to B factor
NOTE: versions prior to 2.02 had "bsurf"
default to 2 - so atoms were rendered at 30% transparency and according to
B factor BY DEFAULT - use "set bsurf 0" to fix this!
for both BAXES and BSURF, the "quality" of the rendering in OpenGL is
determined by the segments statement in Molscript. So if the
ellipsoids/principal axes look roughly drawn, try increasing the
segments to 5 or 10. For postscript and VRML output, as long as bsurf
is greater than 0, the atoms are drawn according to their principal
axes *only.*
SET PROB_LEVEL number
sets the probability level (given a B factor) with which ellipsoids
(or spheres as the case may be) are rendered - defaults to 0.5
(i.e. 50%). This number can range from 0.01 to 0.99 in steps of 0.01.
SET BTRANSP number
sets the transparency of the ellipsoid *only*. Handy for "bsurf 2",
where the ellipsoid typically has a higher transparency than
the principal axes. In such case, the ellipsoid is drawn as a
different color in povray output mode, so it should be relatively
easy to redefine the ellipsoid vs. principal axis coloring/texture
settings. This number can range from 0.0 (solid) to 1.0 (fully
transparent) (default: 0.3).
"hidden" features (i.e. don't use them unless necessary):
DELETEMAP id
DELETESURF id
Deletes electron density/surface map "id" from memory. ONLY USE IF
THE PROGRAM REPORTS MEMORY PROBLEMS. May be necessary if your map is
enormous. e.g.:
read prot "prot.pdb";
readmap foo "friggin_huge.omap";
ball-and-stick in residue A50;
contour foo at 1.0 covering in residue A50;
deletemap foo;
readmap bar "bar.omap" covering in residue B50 plus 2;
ball-and-stick in residue B50;
contour bar at 1.0 covering in residue B50;
deletemap bar;
Go back to the povscript+ home page