This is a read-only mirror of pymolwiki.org

Difference between revisions of "Display CCP4 Maps"

From PyMOL Wiki
Jump to navigation Jump to search
Line 9: Line 9:
 
(albeit much larger) map by re-running '''fft''' with a tighter grid spacing.
 
(albeit much larger) map by re-running '''fft''' with a tighter grid spacing.
 
I usually take the default values generated by FFT and double them. You
 
I usually take the default values generated by FFT and double them. You
can change grid spacing under 'Infrequently Used Options'.
+
can change grid spacing under ''Infrequently Used Options''.
  
 
2. Open pymol and read in your PDB file. Create a selection about
 
2. Open pymol and read in your PDB file. Create a selection about
Line 16: Line 16:
  
 
3. Open your map in pymol, ''e.g.'' mymap.ccp4 (you need the ccp4
 
3. Open your map in pymol, ''e.g.'' mymap.ccp4 (you need the ccp4
extension). An object named mymap will be created by pymol
+
extension). An object named ''mymap'' will be created by pymol.
  
4. To display the map around your selection (''e.g.'', named 'site') issue a
+
4. To display the map around your selection (''e.g.'', named ''site'') issue a
 
command similar to this:
 
command similar to this:
 
<pre>
 
<pre>
 
isomesh map, mymap, 2.0, site, carve=1.6
 
isomesh map, mymap, 2.0, site, carve=1.6
 
</pre>
 
</pre>
This command will create a mesh map object named ''map'' from the object mymap,
+
This command will create a mesh map object named ''map'' from the object ''mymap,''
contoured at 2.0 sigma, around the selection 'site', within 1.6A of selected atoms. You can
+
contoured at 2.0 sigma, around the selection ''site'', within 1.6A of selected atoms. You can
 
change the contour level and carve parameter to suit.
 
change the contour level and carve parameter to suit.
  
Line 32: Line 32:
 
bg_color white #sets background to white
 
bg_color white #sets background to white
 
set ray_trace_fog, 0 #turns off raytrace fog
 
set ray_trace_fog, 0 #turns off raytrace fog
set depth_cue, 0 # turns off depth cuing
+
set depth_cue, 0 # turns off depth cueing
 
ray 1024 1024 # this would create a 1024x1024 pixel ray-traced image
 
ray 1024 1024 # this would create a 1024x1024 pixel ray-traced image
 
png image.png #output final image
 
png image.png #output final image
 
</source>
 
</source>
You should be able to create an image similar to the following one:
+
Labels can be added in GIMP or Photoshop. With these directions you should be able to create an image similar to the following one:
  
 
[[Image:ccp4_map.png|center]]
 
[[Image:ccp4_map.png|center]]
  
 
[[Category:Advanced_Issues|CCP4 Maps]]
 
[[Category:Advanced_Issues|CCP4 Maps]]

Revision as of 13:52, 5 July 2007

The following steps can be used to read CCP4-format electron density maps into pymol for the generation of publication-quality images.

1. Use fft to create a map in CCP4. (This task can be run from the Run FFT-Create Map option under Map & Mask Utilities) You can create a simple map or a nFo-mFc map as you wish. Select the option to cover 'all atoms in PDB file'. For pymol to read the map later, you will need to add the file extension .ccp4 to the generated map. You may find this map too coarse to make for a pretty diagram. You can generate a nicer (albeit much larger) map by re-running fft with a tighter grid spacing. I usually take the default values generated by FFT and double them. You can change grid spacing under Infrequently Used Options.

2. Open pymol and read in your PDB file. Create a selection about whatever you want to see the map around. Typically one would display the selection as sticks.

3. Open your map in pymol, e.g. mymap.ccp4 (you need the ccp4 extension). An object named mymap will be created by pymol.

4. To display the map around your selection (e.g., named site) issue a command similar to this:

isomesh map, mymap, 2.0, site, carve=1.6

This command will create a mesh map object named map from the object mymap, contoured at 2.0 sigma, around the selection site, within 1.6A of selected atoms. You can change the contour level and carve parameter to suit.

5. For a publication quality figure the following are suggestions:

color grey30, map # sets map to 30% gray
bg_color white #sets background to white
set ray_trace_fog, 0 #turns off raytrace fog
set depth_cue, 0 # turns off depth cueing
ray 1024 1024 # this would create a 1024x1024 pixel ray-traced image
png image.png #output final image

Labels can be added in GIMP or Photoshop. With these directions you should be able to create an image similar to the following one:

Ccp4 map.png