<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.pymol.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=UlfMolich</id>
	<title>PyMOL Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.pymol.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=UlfMolich"/>
	<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php/Special:Contributions/UlfMolich"/>
	<updated>2026-04-05T21:33:33Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Display_CCP4_Maps&amp;diff=3591</id>
		<title>Display CCP4 Maps</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Display_CCP4_Maps&amp;diff=3591"/>
		<updated>2013-06-14T09:40:58Z</updated>

		<summary type="html">&lt;p&gt;UlfMolich: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following steps can be used to read CCP4-format electron density maps into pymol for the generation of publication-quality images.&lt;br /&gt;
&lt;br /&gt;
1. Use '''fft''' to create a map in CCP4. (This task can be run from the ''Run&lt;br /&gt;
FFT-Create Map'' option under ''Map &amp;amp; Mask Utilities'') You can create a&lt;br /&gt;
simple map or a 'Fo-Fc map as you wish. CCP4i will create a 2Fo-Fc map by default. &lt;br /&gt;
To make a Fo-Fc map, set F1=DELFWT and PHIC=PHDELWT in the task window. Select the option to cover 'all&lt;br /&gt;
atoms in PDB file'. For pymol to read the map later, you will need to&lt;br /&gt;
add the file extension .map.ccp4 to the generated map. You may find this map&lt;br /&gt;
too coarse to make for a pretty diagram. You can generate a nicer&lt;br /&gt;
(albeit much larger) map by re-running '''fft''' with a tighter grid spacing.&lt;br /&gt;
I usually take the default values generated by FFT and double them. You&lt;br /&gt;
can change grid spacing under ''Infrequently Used Options''. Alternatively, you can&lt;br /&gt;
increase the sampling rate in Pymol in step 3 below.&lt;br /&gt;
&lt;br /&gt;
2. Open pymol and read in your PDB file. Create a selection about&lt;br /&gt;
whatever you want to see the map around. Typically one would display the selection&lt;br /&gt;
as sticks.&lt;br /&gt;
&lt;br /&gt;
3. Open your map in pymol, ''e.g.'' mymap.map.ccp4 (you need the ccp4&lt;br /&gt;
extension). An object named ''mymap.map'' will be created by pymol. To increase the&lt;br /&gt;
sampling rate of the map (desirable if you did not do this at the time of map&lt;br /&gt;
generation) issue the command '''map_double mymap.map, -1'''&lt;br /&gt;
&lt;br /&gt;
4. Identify a selection about which to display your map, ''e.g.''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
select site, resi 39-50 and resn bct&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5. To display the map around your selection (''e.g.'', named ''site'') issue a&lt;br /&gt;
command similar to this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
isomesh map, mymap.map, 2.0, site, carve=1.6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This command will create a mesh map object named ''map'' from the object ''mymap.map'',&lt;br /&gt;
contoured at 2.0 sigma, around the selection ''site'', within 1.6A of selected atoms. You can&lt;br /&gt;
change the contour level and carve parameter to suit. The contour level should be about 1.00 for a 2Fo-Fc map and about 3.00 for a Fo-Fc map. Note: the map object will be named in pymol whatever the filename was minus the .ccp4 extension&lt;br /&gt;
&lt;br /&gt;
6. For a publication quality figure the following are suggestions:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
color grey50, map # sets map to 50% gray&lt;br /&gt;
set mesh_width, 0.5 # makes meshes thinner for ray-tracing&lt;br /&gt;
bg_color white #sets background to white&lt;br /&gt;
set ray_trace_fog, 0 # turns off raytrace fog--optional&lt;br /&gt;
set depth_cue, 0 # turns off depth cueing--optional&lt;br /&gt;
set ray_shadows, off # turns off ray-tracing shadows&lt;br /&gt;
ray 1024,1024 # this would create a 1024x1024 pixel ray-traced image&lt;br /&gt;
png image.png # output final image&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Labels can be added in GIMP or Photoshop. With these directions you should be able to create an image similar to the following one:&lt;br /&gt;
&lt;br /&gt;
[[Image:ccp4_map.png|center]]&lt;br /&gt;
&lt;br /&gt;
= User Notes =&lt;br /&gt;
If the ccp4 maps loaded by PyMOL seem smaller/larger than maps in other programs this might be due to normalization.  To stop PyMOL from normalizing a cpp4 map simply unset,&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
unset normalize_ccp4_maps&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
'''before''' loading your ccp4 map.&lt;br /&gt;
&lt;br /&gt;
= See Also =&lt;br /&gt;
[[normalize_ccp4_maps]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Image_Manipulation|Display CCP4 Maps]]&lt;br /&gt;
[[Category:Electron_Density]]&lt;br /&gt;
[[Category:Maps]]&lt;/div&gt;</summary>
		<author><name>UlfMolich</name></author>
	</entry>
</feed>