<?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=DBorhani</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=DBorhani"/>
	<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php/Special:Contributions/DBorhani"/>
	<updated>2026-05-25T06:37:43Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=User:DBorhani&amp;diff=3252</id>
		<title>User:DBorhani</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=User:DBorhani&amp;diff=3252"/>
		<updated>2011-03-17T03:14:07Z</updated>

		<summary type="html">&lt;p&gt;DBorhani: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;David W. Borhani&amp;lt;br /&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
D. E. Shaw Research&amp;lt;br /&amp;gt;&lt;br /&gt;
120 West Forty-Fifth Street, 39th Floor&amp;lt;br /&amp;gt;&lt;br /&gt;
New York, NY 10036&amp;lt;br /&amp;gt;&lt;br /&gt;
[mailto:David.Borhani@DEShawResearch.com David.Borhani@DEShawResearch.com]&amp;lt;br /&amp;gt;&lt;br /&gt;
212-478-0698&amp;lt;br /&amp;gt;&lt;br /&gt;
[http://www.deshawresearch.com D. E. Shaw Research]&lt;/div&gt;</summary>
		<author><name>DBorhani</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Slice_new&amp;diff=8886</id>
		<title>Slice new</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Slice_new&amp;diff=8886"/>
		<updated>2011-03-17T03:12:03Z</updated>

		<summary type="html">&lt;p&gt;DBorhani: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[slice]]&lt;br /&gt;
{{DISPLAYTITLE:Slice_new}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Commands|Slice_new]]&lt;br /&gt;
[[Category:States|Slice_new]]&lt;br /&gt;
[[Category:Electron_Density]]&lt;br /&gt;
[[Category:Maps]]&lt;/div&gt;</summary>
		<author><name>DBorhani</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Slice_new&amp;diff=8885</id>
		<title>Slice new</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Slice_new&amp;diff=8885"/>
		<updated>2011-03-17T03:05:56Z</updated>

		<summary type="html">&lt;p&gt;DBorhani: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[slice]]&lt;br /&gt;
{{PAGENAME:Slice_new}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Commands|Slice]]&lt;br /&gt;
[[Category:States|Slice]]&lt;br /&gt;
[[Category:Electron_Density]]&lt;br /&gt;
[[Category:Maps]]&lt;/div&gt;</summary>
		<author><name>DBorhani</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Slice_new&amp;diff=8884</id>
		<title>Slice new</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Slice_new&amp;diff=8884"/>
		<updated>2011-03-16T21:55:39Z</updated>

		<summary type="html">&lt;p&gt;DBorhani: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[slice]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Commands|Slice]]&lt;br /&gt;
[[Category:States|Slice]]&lt;br /&gt;
[[Category:Electron_Density]]&lt;br /&gt;
[[Category:Maps]]&lt;/div&gt;</summary>
		<author><name>DBorhani</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Slice_new&amp;diff=8883</id>
		<title>Slice new</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Slice_new&amp;diff=8883"/>
		<updated>2011-03-16T21:54:01Z</updated>

		<summary type="html">&lt;p&gt;DBorhani: Redirected page to Slice&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[slice]]&lt;/div&gt;</summary>
		<author><name>DBorhani</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Slice&amp;diff=10280</id>
		<title>Slice</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Slice&amp;diff=10280"/>
		<updated>2011-03-16T21:49:51Z</updated>

		<summary type="html">&lt;p&gt;DBorhani: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:Slice_example_2_screenshot.png|600px|thumb|right|border|Screenshot of slice example #2]]&lt;br /&gt;
&lt;br /&gt;
[[slice]] creates a slice object from a [[:Category:Maps|map]] object.&lt;br /&gt;
&lt;br /&gt;
== USAGE ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
slice_new name, map, [state, [source_state]]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''or''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
slice name, map, [state, [source_state]]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== ARGUMENTS ==&lt;br /&gt;
*'''name''' = the name for the new slice object (string)&lt;br /&gt;
*'''map''' = the name of the map object to use for computing the slice (string)&lt;br /&gt;
*'''state''' = the state into which the object should be loaded (default=1; set state=0 to append new mesh as a new state)&lt;br /&gt;
*'''source_state''' = the state of the map from which the object should be loaded (default=0)&lt;br /&gt;
&lt;br /&gt;
== EXAMPLES ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt; &lt;br /&gt;
# Create a map slice plane perpendicular to current view&lt;br /&gt;
slice a_new_slice, a_map&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# A more complicated example that shows how to create multiple slices&lt;br /&gt;
# (in this case, 3 slices perpendicular to each other), each colored&lt;br /&gt;
# with a different color ramp and different contour levels:&lt;br /&gt;
&lt;br /&gt;
# Reset the view, to align view on XYZ axes&lt;br /&gt;
reset&lt;br /&gt;
# (Optional: Adjust view direction to your liking)&lt;br /&gt;
# Create a map slice *perpendicular* to the current view.&lt;br /&gt;
# The slice seems to be in the center of the APBS (or other) volmap. Map &amp;quot;tracking&amp;quot; is off by default.&lt;br /&gt;
slice slice_A, apbs_map&lt;br /&gt;
# Rotate camera 90 degrees about the vertical axis&lt;br /&gt;
turn y, 90&lt;br /&gt;
# Second, perpendicular, slice&lt;br /&gt;
slice slice_B, apbs_map&lt;br /&gt;
# Rotate again, this time about the horizontal&lt;br /&gt;
turn x, 90&lt;br /&gt;
# Third slice&lt;br /&gt;
slice slice_C, apbs_map&lt;br /&gt;
&lt;br /&gt;
# Define new color ramps: ramp_name, map_object, list of low/mid/hi values, 3 RGB triplets&lt;br /&gt;
ramp_new ramp1010RWB, apbs_map, [-10,0,10], [ [1,0,0], [1,1,1], [0,0,1] ]&lt;br /&gt;
ramp_new ramp11RYG, apbs_map, [-1,0,1], [ [1,0,0], [1,1,0], [0,1,0] ]&lt;br /&gt;
ramp_new ramp55MltGO, apbs_map, [-5,0,5], [ [0,1,1], [0.5,1,0.5], [1,0.5,0.2] ]&lt;br /&gt;
&lt;br /&gt;
# Color the map slices&lt;br /&gt;
color ramp1010RWB, slice_A&lt;br /&gt;
color ramp11RYG, slice_B&lt;br /&gt;
color ramp55MltGO, slice_C&lt;br /&gt;
&lt;br /&gt;
# Adjust the fineness of the slice color gradations:&lt;br /&gt;
cmd.set('slice_grid',0.1) # normally at 0.3; much finer than 0.05 gets a bit slow&lt;br /&gt;
&lt;br /&gt;
# Map slices can be moved, relative to other fixed objects (e.g., your protein/DNA/RNA), &lt;br /&gt;
# by turning tracking on (Action menu), and the using the Shift-MouseWheel to move&lt;br /&gt;
# the slice forward in and backward in Z. Adjust fineness of this Z-motion with:&lt;br /&gt;
#   cmd.set('mouse_wheel_scale',0.05) # normally at 0.5&lt;br /&gt;
&lt;br /&gt;
# The result is shown in the image above.&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== PYMOL API ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt; &lt;br /&gt;
cmd.slice_new(string slice_name, string map_name, integer state=0, integer source_state=0)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
== NOTES ==&lt;br /&gt;
Mis-identified as &amp;quot;slice_map&amp;quot; in documentation. [[slice]] or [[slice|slice_new]] is the correct command. Documentation also mentions two optional parameters which seem to be no longer supported (opacity = opacity of the new slice, and resolution = the number of pixels per sampling). &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
== SEE ALSO ==&lt;br /&gt;
[[isomesh]],  [[isodot]], [[load]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* PyMOL Source code&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Commands|Slice]]&lt;br /&gt;
[[Category:States|Slice]]&lt;br /&gt;
[[Category:Electron_Density]]&lt;br /&gt;
[[Category:Maps]]&lt;/div&gt;</summary>
		<author><name>DBorhani</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Slice&amp;diff=10279</id>
		<title>Slice</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Slice&amp;diff=10279"/>
		<updated>2011-03-16T21:49:20Z</updated>

		<summary type="html">&lt;p&gt;DBorhani: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:Slice_example_2_screenshot.png|500px|thumb|right|border|Screenshot of slice example #2]]&lt;br /&gt;
&lt;br /&gt;
[[slice]] creates a slice object from a [[:Category:Maps|map]] object.&lt;br /&gt;
&lt;br /&gt;
== USAGE ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
slice_new name, map, [state, [source_state]]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''or''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
slice name, map, [state, [source_state]]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== ARGUMENTS ==&lt;br /&gt;
*'''name''' = the name for the new slice object (string)&lt;br /&gt;
*'''map''' = the name of the map object to use for computing the slice (string)&lt;br /&gt;
*'''state''' = the state into which the object should be loaded (default=1; set state=0 to append new mesh as a new state)&lt;br /&gt;
*'''source_state''' = the state of the map from which the object should be loaded (default=0)&lt;br /&gt;
&lt;br /&gt;
== EXAMPLES ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt; &lt;br /&gt;
# Create a map slice plane perpendicular to current view&lt;br /&gt;
slice a_new_slice, a_map&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# A more complicated example that shows how to create multiple slices&lt;br /&gt;
# (in this case, 3 slices perpendicular to each other), each colored&lt;br /&gt;
# with a different color ramp and different contour levels:&lt;br /&gt;
&lt;br /&gt;
# Reset the view, to align view on XYZ axes&lt;br /&gt;
reset&lt;br /&gt;
# (Optional: Adjust view direction to your liking)&lt;br /&gt;
# Create a map slice *perpendicular* to the current view.&lt;br /&gt;
# The slice seems to be in the center of the APBS (or other) volmap. Map &amp;quot;tracking&amp;quot; is off by default.&lt;br /&gt;
slice slice_A, apbs_map&lt;br /&gt;
# Rotate camera 90 degrees about the vertical axis&lt;br /&gt;
turn y, 90&lt;br /&gt;
# Second, perpendicular, slice&lt;br /&gt;
slice slice_B, apbs_map&lt;br /&gt;
# Rotate again, this time about the horizontal&lt;br /&gt;
turn x, 90&lt;br /&gt;
# Third slice&lt;br /&gt;
slice slice_C, apbs_map&lt;br /&gt;
&lt;br /&gt;
# Define new color ramps: ramp_name, map_object, list of low/mid/hi values, 3 RGB triplets&lt;br /&gt;
ramp_new ramp1010RWB, apbs_map, [-10,0,10], [ [1,0,0], [1,1,1], [0,0,1] ]&lt;br /&gt;
ramp_new ramp11RYG, apbs_map, [-1,0,1], [ [1,0,0], [1,1,0], [0,1,0] ]&lt;br /&gt;
ramp_new ramp55MltGO, apbs_map, [-5,0,5], [ [0,1,1], [0.5,1,0.5], [1,0.5,0.2] ]&lt;br /&gt;
&lt;br /&gt;
# Color the map slices&lt;br /&gt;
color ramp1010RWB, slice_A&lt;br /&gt;
color ramp11RYG, slice_B&lt;br /&gt;
color ramp55MltGO, slice_C&lt;br /&gt;
&lt;br /&gt;
# Adjust the fineness of the slice color gradations:&lt;br /&gt;
cmd.set('slice_grid',0.1) # normally at 0.3; much finer than 0.05 gets a bit slow&lt;br /&gt;
&lt;br /&gt;
# Map slices can be moved, relative to other fixed objects (e.g., your protein/DNA/RNA), &lt;br /&gt;
# by turning tracking on (Action menu), and the using the Shift-MouseWheel to move&lt;br /&gt;
# the slice forward in and backward in Z. Adjust fineness of this Z-motion with:&lt;br /&gt;
#   cmd.set('mouse_wheel_scale',0.05) # normally at 0.5&lt;br /&gt;
&lt;br /&gt;
# The result is shown in the image above.&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== PYMOL API ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt; &lt;br /&gt;
cmd.slice_new(string slice_name, string map_name, integer state=0, integer source_state=0)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
== NOTES ==&lt;br /&gt;
Mis-identified as &amp;quot;slice_map&amp;quot; in documentation. [[slice]] or [[slice|slice_new]] is the correct command. Documentation also mentions two optional parameters which seem to be no longer supported (opacity = opacity of the new slice, and resolution = the number of pixels per sampling). &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
== SEE ALSO ==&lt;br /&gt;
[[isomesh]],  [[isodot]], [[load]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* PyMOL Source code&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Commands|Slice]]&lt;br /&gt;
[[Category:States|Slice]]&lt;br /&gt;
[[Category:Electron_Density]]&lt;br /&gt;
[[Category:Maps]]&lt;/div&gt;</summary>
		<author><name>DBorhani</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Slice&amp;diff=10278</id>
		<title>Slice</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Slice&amp;diff=10278"/>
		<updated>2011-03-16T21:48:49Z</updated>

		<summary type="html">&lt;p&gt;DBorhani: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:Slice_example_2_screenshot.png|600px|thumb|center|border|Screenshot of slice example #2]]&lt;br /&gt;
&lt;br /&gt;
[[slice]] creates a slice object from a [[:Category:Maps|map]] object.&lt;br /&gt;
&lt;br /&gt;
== USAGE ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
slice_new name, map, [state, [source_state]]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''or''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
slice name, map, [state, [source_state]]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== ARGUMENTS ==&lt;br /&gt;
*'''name''' = the name for the new slice object (string)&lt;br /&gt;
*'''map''' = the name of the map object to use for computing the slice (string)&lt;br /&gt;
*'''state''' = the state into which the object should be loaded (default=1; set state=0 to append new mesh as a new state)&lt;br /&gt;
*'''source_state''' = the state of the map from which the object should be loaded (default=0)&lt;br /&gt;
&lt;br /&gt;
== EXAMPLES ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt; &lt;br /&gt;
# Create a map slice plane perpendicular to current view&lt;br /&gt;
slice a_new_slice, a_map&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# A more complicated example that shows how to create multiple slices&lt;br /&gt;
# (in this case, 3 slices perpendicular to each other), each colored&lt;br /&gt;
# with a different color ramp and different contour levels:&lt;br /&gt;
&lt;br /&gt;
# Reset the view, to align view on XYZ axes&lt;br /&gt;
reset&lt;br /&gt;
# (Optional: Adjust view direction to your liking)&lt;br /&gt;
# Create a map slice *perpendicular* to the current view.&lt;br /&gt;
# The slice seems to be in the center of the APBS (or other) volmap. Map &amp;quot;tracking&amp;quot; is off by default.&lt;br /&gt;
slice slice_A, apbs_map&lt;br /&gt;
# Rotate camera 90 degrees about the vertical axis&lt;br /&gt;
turn y, 90&lt;br /&gt;
# Second, perpendicular, slice&lt;br /&gt;
slice slice_B, apbs_map&lt;br /&gt;
# Rotate again, this time about the horizontal&lt;br /&gt;
turn x, 90&lt;br /&gt;
# Third slice&lt;br /&gt;
slice slice_C, apbs_map&lt;br /&gt;
&lt;br /&gt;
# Define new color ramps: ramp_name, map_object, list of low/mid/hi values, 3 RGB triplets&lt;br /&gt;
ramp_new ramp1010RWB, apbs_map, [-10,0,10], [ [1,0,0], [1,1,1], [0,0,1] ]&lt;br /&gt;
ramp_new ramp11RYG, apbs_map, [-1,0,1], [ [1,0,0], [1,1,0], [0,1,0] ]&lt;br /&gt;
ramp_new ramp55MltGO, apbs_map, [-5,0,5], [ [0,1,1], [0.5,1,0.5], [1,0.5,0.2] ]&lt;br /&gt;
&lt;br /&gt;
# Color the map slices&lt;br /&gt;
color ramp1010RWB, slice_A&lt;br /&gt;
color ramp11RYG, slice_B&lt;br /&gt;
color ramp55MltGO, slice_C&lt;br /&gt;
&lt;br /&gt;
# Adjust the fineness of the slice color gradations:&lt;br /&gt;
cmd.set('slice_grid',0.1) # normally at 0.3; much finer than 0.05 gets a bit slow&lt;br /&gt;
&lt;br /&gt;
# Map slices can be moved, relative to other fixed objects (e.g., your protein/DNA/RNA), &lt;br /&gt;
# by turning tracking on (Action menu), and the using the Shift-MouseWheel to move&lt;br /&gt;
# the slice forward in and backward in Z. Adjust fineness of this Z-motion with:&lt;br /&gt;
#   cmd.set('mouse_wheel_scale',0.05) # normally at 0.5&lt;br /&gt;
&lt;br /&gt;
# The result is shown in the image above.&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== PYMOL API ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt; &lt;br /&gt;
cmd.slice_new(string slice_name, string map_name, integer state=0, integer source_state=0)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
== NOTES ==&lt;br /&gt;
Mis-identified as &amp;quot;slice_map&amp;quot; in documentation. [[slice]] or [[slice|slice_new]] is the correct command. Documentation also mentions two optional parameters which seem to be no longer supported (opacity = opacity of the new slice, and resolution = the number of pixels per sampling). &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
== SEE ALSO ==&lt;br /&gt;
[[isomesh]],  [[isodot]], [[load]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* PyMOL Source code&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Commands|Slice]]&lt;br /&gt;
[[Category:States|Slice]]&lt;br /&gt;
[[Category:Electron_Density]]&lt;br /&gt;
[[Category:Maps]]&lt;/div&gt;</summary>
		<author><name>DBorhani</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Slice&amp;diff=10277</id>
		<title>Slice</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Slice&amp;diff=10277"/>
		<updated>2011-03-16T21:47:50Z</updated>

		<summary type="html">&lt;p&gt;DBorhani: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[slice]] creates a slice object from a [[:Category:Maps|map]] object.&lt;br /&gt;
&lt;br /&gt;
[[File:Slice_example_2_screenshot.png|400px|thumb|right|border|Screenshot of slice example #2]]&lt;br /&gt;
&lt;br /&gt;
== USAGE ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
slice_new name, map, [state, [source_state]]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''or''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
slice name, map, [state, [source_state]]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== ARGUMENTS ==&lt;br /&gt;
*'''name''' = the name for the new slice object (string)&lt;br /&gt;
*'''map''' = the name of the map object to use for computing the slice (string)&lt;br /&gt;
*'''state''' = the state into which the object should be loaded (default=1; set state=0 to append new mesh as a new state)&lt;br /&gt;
*'''source_state''' = the state of the map from which the object should be loaded (default=0)&lt;br /&gt;
&lt;br /&gt;
== EXAMPLES ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt; &lt;br /&gt;
# Create a map slice plane perpendicular to current view&lt;br /&gt;
slice a_new_slice, a_map&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# A more complicated example that shows how to create multiple slices&lt;br /&gt;
# (in this case, 3 slices perpendicular to each other), each colored&lt;br /&gt;
# with a different color ramp and different contour levels:&lt;br /&gt;
&lt;br /&gt;
# Reset the view, to align view on XYZ axes&lt;br /&gt;
reset&lt;br /&gt;
# (Optional: Adjust view direction to your liking)&lt;br /&gt;
# Create a map slice *perpendicular* to the current view.&lt;br /&gt;
# The slice seems to be in the center of the APBS (or other) volmap. Map &amp;quot;tracking&amp;quot; is off by default.&lt;br /&gt;
slice slice_A, apbs_map&lt;br /&gt;
# Rotate camera 90 degrees about the vertical axis&lt;br /&gt;
turn y, 90&lt;br /&gt;
# Second, perpendicular, slice&lt;br /&gt;
slice slice_B, apbs_map&lt;br /&gt;
# Rotate again, this time about the horizontal&lt;br /&gt;
turn x, 90&lt;br /&gt;
# Third slice&lt;br /&gt;
slice slice_C, apbs_map&lt;br /&gt;
&lt;br /&gt;
# Define new color ramps: ramp_name, map_object, list of low/mid/hi values, 3 RGB triplets&lt;br /&gt;
ramp_new ramp1010RWB, apbs_map, [-10,0,10], [ [1,0,0], [1,1,1], [0,0,1] ]&lt;br /&gt;
ramp_new ramp11RYG, apbs_map, [-1,0,1], [ [1,0,0], [1,1,0], [0,1,0] ]&lt;br /&gt;
ramp_new ramp55MltGO, apbs_map, [-5,0,5], [ [0,1,1], [0.5,1,0.5], [1,0.5,0.2] ]&lt;br /&gt;
&lt;br /&gt;
# Color the map slices&lt;br /&gt;
color ramp1010RWB, slice_A&lt;br /&gt;
color ramp11RYG, slice_B&lt;br /&gt;
color ramp55MltGO, slice_C&lt;br /&gt;
&lt;br /&gt;
# Adjust the fineness of the slice color gradations:&lt;br /&gt;
cmd.set('slice_grid',0.1) # normally at 0.3; much finer than 0.05 gets a bit slow&lt;br /&gt;
&lt;br /&gt;
# Map slices can be moved, relative to other fixed objects (e.g., your protein/DNA/RNA), &lt;br /&gt;
# by turning tracking on (Action menu), and the using the Shift-MouseWheel to move&lt;br /&gt;
# the slice forward in and backward in Z. Adjust fineness of this Z-motion with:&lt;br /&gt;
#   cmd.set('mouse_wheel_scale',0.05) # normally at 0.5&lt;br /&gt;
&lt;br /&gt;
# The result is shown in the image above.&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== PYMOL API ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt; &lt;br /&gt;
cmd.slice_new(string slice_name, string map_name, integer state=0, integer source_state=0)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
== NOTES ==&lt;br /&gt;
Mis-identified as &amp;quot;slice_map&amp;quot; in documentation. [[slice]] or [[slice|slice_new]] is the correct command. Documentation also mentions two optional parameters which seem to be no longer supported (opacity = opacity of the new slice, and resolution = the number of pixels per sampling). &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
== SEE ALSO ==&lt;br /&gt;
[[isomesh]],  [[isodot]], [[load]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* PyMOL Source code&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Commands|Slice]]&lt;br /&gt;
[[Category:States|Slice]]&lt;br /&gt;
[[Category:Electron_Density]]&lt;br /&gt;
[[Category:Maps]]&lt;/div&gt;</summary>
		<author><name>DBorhani</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Slice&amp;diff=10276</id>
		<title>Slice</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Slice&amp;diff=10276"/>
		<updated>2011-03-16T21:46:37Z</updated>

		<summary type="html">&lt;p&gt;DBorhani: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[slice]] creates a slice object from a [[:Category:Maps|map]] object.&lt;br /&gt;
&lt;br /&gt;
[[File:Slice_example_2_screenshot.png|400px|thumb|left|border|Screenshot of slice example #2]]&lt;br /&gt;
&lt;br /&gt;
== USAGE ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
slice_new name, map, [state, [source_state]]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''or''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
slice name, map, [state, [source_state]]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== ARGUMENTS ==&lt;br /&gt;
*'''name''' = the name for the new slice object (string)&lt;br /&gt;
*'''map''' = the name of the map object to use for computing the slice (string)&lt;br /&gt;
*'''state''' = the state into which the object should be loaded (default=1; set state=0 to append new mesh as a new state)&lt;br /&gt;
*'''source_state''' = the state of the map from which the object should be loaded (default=0)&lt;br /&gt;
&lt;br /&gt;
== EXAMPLES ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt; &lt;br /&gt;
# Create a map slice plane perpendicular to current view&lt;br /&gt;
slice a_new_slice, a_map&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# A more complicated example that shows how to create multiple slices&lt;br /&gt;
# (in this case, 3 slices perpendicular to each other), each colored&lt;br /&gt;
# with a different color ramp and different contour levels:&lt;br /&gt;
&lt;br /&gt;
# Reset the view, to align view on XYZ axes&lt;br /&gt;
reset&lt;br /&gt;
# (Optional: Adjust view direction to your liking)&lt;br /&gt;
# Create a map slice *perpendicular* to the current view.&lt;br /&gt;
# The slice seems to be in the center of the APBS (or other) volmap. Map &amp;quot;tracking&amp;quot; is off by default.&lt;br /&gt;
slice slice_A, apbs_map&lt;br /&gt;
# Rotate camera 90 degrees about the vertical axis&lt;br /&gt;
turn y, 90&lt;br /&gt;
# Second, perpendicular, slice&lt;br /&gt;
slice slice_B, apbs_map&lt;br /&gt;
# Rotate again, this time about the horizontal&lt;br /&gt;
turn x, 90&lt;br /&gt;
# Third slice&lt;br /&gt;
slice slice_C, apbs_map&lt;br /&gt;
&lt;br /&gt;
# Define new color ramps: ramp_name, map_object, list of low/mid/hi values, 3 RGB triplets&lt;br /&gt;
ramp_new ramp1010RWB, apbs_map, [-10,0,10], [ [1,0,0], [1,1,1], [0,0,1] ]&lt;br /&gt;
ramp_new ramp11RYG, apbs_map, [-1,0,1], [ [1,0,0], [1,1,0], [0,1,0] ]&lt;br /&gt;
ramp_new ramp55MltGO, apbs_map, [-5,0,5], [ [0,1,1], [0.5,1,0.5], [1,0.5,0.2] ]&lt;br /&gt;
&lt;br /&gt;
# Color the map slices&lt;br /&gt;
color ramp1010RWB, slice_A&lt;br /&gt;
color ramp11RYG, slice_B&lt;br /&gt;
color ramp55MltGO, slice_C&lt;br /&gt;
&lt;br /&gt;
# Adjust the fineness of the slice color gradations:&lt;br /&gt;
cmd.set('slice_grid',0.1) # normally at 0.3; much finer than 0.05 gets a bit slow&lt;br /&gt;
&lt;br /&gt;
# Map slices can be moved, relative to other fixed objects (e.g., your protein/DNA/RNA), &lt;br /&gt;
# by turning tracking on (Action menu), and the using the Shift-MouseWheel to move&lt;br /&gt;
# the slice forward in and backward in Z. Adjust fineness of this Z-motion with:&lt;br /&gt;
#   cmd.set('mouse_wheel_scale',0.05) # normally at 0.5&lt;br /&gt;
&lt;br /&gt;
# The result is shown in the image above.&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== PYMOL API ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt; &lt;br /&gt;
cmd.slice_new(string slice_name, string map_name, integer opacity=1, integer resolution=5, integer state=0, integer source_state=0)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
== NOTES ==&lt;br /&gt;
Mis-identified as &amp;quot;slice_map&amp;quot; in documentation. [[slice]] or [[slice|slice_new]] is the correct command. Documentation also mentions two optional parameters which seem to be no longer supported (opacity = opacity of the new slice, and resolution = the number of pixels per sampling). &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
== SEE ALSO ==&lt;br /&gt;
[[isomesh]],  [[isodot]], [[load]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* PyMOL Source code&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Commands|Slice]]&lt;br /&gt;
[[Category:States|Slice]]&lt;br /&gt;
[[Category:Electron_Density]]&lt;br /&gt;
[[Category:Maps]]&lt;/div&gt;</summary>
		<author><name>DBorhani</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Slice&amp;diff=10275</id>
		<title>Slice</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Slice&amp;diff=10275"/>
		<updated>2011-03-16T21:45:37Z</updated>

		<summary type="html">&lt;p&gt;DBorhani: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[slice]] creates a slice object from a [[:Category:Maps|map]] object.&lt;br /&gt;
&lt;br /&gt;
== USAGE ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
slice_new name, map, [state, [source_state]]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''or''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
slice name, map, [state, [source_state]]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== ARGUMENTS ==&lt;br /&gt;
*'''name''' = the name for the new slice object (string)&lt;br /&gt;
*'''map''' = the name of the map object to use for computing the slice (string)&lt;br /&gt;
*'''state''' = the state into which the object should be loaded (default=1; set state=0 to append new mesh as a new state)&lt;br /&gt;
*'''source_state''' = the state of the map from which the object should be loaded (default=0)&lt;br /&gt;
 &lt;br /&gt;
[[File:Slice_example_2_screenshot.png|200px|thumb|left|border|Screenshot of slice example #2]]&lt;br /&gt;
&amp;lt;br clear=&amp;quot;all&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== EXAMPLES ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt; &lt;br /&gt;
# Create a map slice plane perpendicular to current view&lt;br /&gt;
slice a_new_slice, a_map&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# A more complicated example that shows how to create multiple slices&lt;br /&gt;
# (in this case, 3 slices perpendicular to each other), each colored&lt;br /&gt;
# with a different color ramp and different contour levels:&lt;br /&gt;
&lt;br /&gt;
# Reset the view, to align view on XYZ axes&lt;br /&gt;
reset&lt;br /&gt;
# (Optional: Adjust view direction to your liking)&lt;br /&gt;
# Create a map slice *perpendicular* to the current view.&lt;br /&gt;
# The slice seems to be in the center of the APBS (or other) volmap. Map &amp;quot;tracking&amp;quot; is off by default.&lt;br /&gt;
slice slice_A, apbs_map&lt;br /&gt;
# Rotate camera 90 degrees about the vertical axis&lt;br /&gt;
turn y, 90&lt;br /&gt;
# Second, perpendicular, slice&lt;br /&gt;
slice slice_B, apbs_map&lt;br /&gt;
# Rotate again, this time about the horizontal&lt;br /&gt;
turn x, 90&lt;br /&gt;
# Third slice&lt;br /&gt;
slice slice_C, apbs_map&lt;br /&gt;
&lt;br /&gt;
# Define new color ramps: ramp_name, map_object, list of low/mid/hi values, 3 RGB triplets&lt;br /&gt;
ramp_new ramp1010RWB, apbs_map, [-10,0,10], [ [1,0,0], [1,1,1], [0,0,1] ]&lt;br /&gt;
ramp_new ramp11RYG, apbs_map, [-1,0,1], [ [1,0,0], [1,1,0], [0,1,0] ]&lt;br /&gt;
ramp_new ramp55MltGO, apbs_map, [-5,0,5], [ [0,1,1], [0.5,1,0.5], [1,0.5,0.2] ]&lt;br /&gt;
&lt;br /&gt;
# Color the map slices&lt;br /&gt;
color ramp1010RWB, slice_A&lt;br /&gt;
color ramp11RYG, slice_B&lt;br /&gt;
color ramp55MltGO, slice_C&lt;br /&gt;
&lt;br /&gt;
# Adjust the fineness of the slice color gradations:&lt;br /&gt;
cmd.set('slice_grid',0.1) # normally at 0.3; much finer than 0.05 gets a bit slow&lt;br /&gt;
&lt;br /&gt;
# Map slices can be moved, relative to other fixed objects (e.g., your protein/DNA/RNA), &lt;br /&gt;
# by turning tracking on (Action menu), and the using the Shift-MouseWheel to move&lt;br /&gt;
# the slice forward in and backward in Z. Adjust fineness of this Z-motion with:&lt;br /&gt;
#   cmd.set('mouse_wheel_scale',0.05) # normally at 0.5&lt;br /&gt;
&lt;br /&gt;
# The result is shown in the image above.&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== PYMOL API ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt; &lt;br /&gt;
cmd.slice_new(string slice_name, string map_name, integer opacity=1, integer resolution=5, integer state=0, integer source_state=0)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
== NOTES ==&lt;br /&gt;
Mis-identified as &amp;quot;slice_map&amp;quot; in documentation. [[slice]] or [[slice|slice_new]] is the correct command. Documentation also mentions two optional parameters which seem to be no longer supported (opacity = opacity of the new slice, and resolution = the number of pixels per sampling). &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
== SEE ALSO ==&lt;br /&gt;
[[isomesh]],  [[isodot]], [[load]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* PyMOL Source code&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Commands|Slice]]&lt;br /&gt;
[[Category:States|Slice]]&lt;br /&gt;
[[Category:Electron_Density]]&lt;br /&gt;
[[Category:Maps]]&lt;/div&gt;</summary>
		<author><name>DBorhani</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Slice&amp;diff=10274</id>
		<title>Slice</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Slice&amp;diff=10274"/>
		<updated>2011-03-16T18:01:03Z</updated>

		<summary type="html">&lt;p&gt;DBorhani: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[slice]] creates a slice object from a [[:Category:Maps|map]] object.&lt;br /&gt;
&lt;br /&gt;
== USAGE ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
slice_new name, map, [opacity, [resolution, [state, [source_state]]]]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''or''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
slice name, map, [opacity, [resolution, [state, [source_state]]]]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== ARGUMENTS ==&lt;br /&gt;
*'''name''' = the name for the new slice object (string)&lt;br /&gt;
*'''map''' = the name of the map object to use for computing the slice (string)&lt;br /&gt;
*'''opacity''' = opacity of the new slice (default=1 [opaque])&lt;br /&gt;
*'''resolution''' = the number of pixels per sampling (default=5)&lt;br /&gt;
*'''state''' = the state into which the object should be loaded (default=1; set state=0 to append new mesh as a new state)&lt;br /&gt;
*'''source_state''' = the state of the map from which the object should be loaded (default=0)&lt;br /&gt;
 &lt;br /&gt;
== EXAMPLES ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt; &lt;br /&gt;
# Create a map slice plane perpendicular to current view&lt;br /&gt;
slice a_new_slice, a_map&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# A more complicated example that shows how to create multiple slices&lt;br /&gt;
# (in this case, 3 slices perpendicular to each other), each colored&lt;br /&gt;
# with a different color ramp and different contour levels:&lt;br /&gt;
&lt;br /&gt;
# Reset the view, to align view on XYZ axes&lt;br /&gt;
reset&lt;br /&gt;
# Create a map slice perpendicular to current view. (Non-tracking by default.)&lt;br /&gt;
slice slice_A, apbs_map&lt;br /&gt;
# Rotate camera 90 degrees about the vertical axis&lt;br /&gt;
turn y, 90&lt;br /&gt;
# Second, perpendicular, slice&lt;br /&gt;
slice slice_B, apbs_map&lt;br /&gt;
# Rotate again, this time about the horizontal&lt;br /&gt;
turn x, 90&lt;br /&gt;
# Third slice&lt;br /&gt;
slice slice_C, apbs_map&lt;br /&gt;
&lt;br /&gt;
# Define new color ramps: ramp_name, map_object, list of low/mid/hi values, 3 RGB triplets&lt;br /&gt;
ramp_new ramp1010RWB, apbs_map, [-10,0,10], [ [1,0,0], [1,1,1], [0,0,1] ]&lt;br /&gt;
ramp_new ramp11RYG, apbs_map, [-1,0,1], [ [1,0,0], [1,1,0], [0,1,0] ]&lt;br /&gt;
ramp_new ramp55MltGO, apbs_map, [-5,0,5], [ [0,1,1], [0.5,1,0.5], [1,0.5,0.2] ]&lt;br /&gt;
&lt;br /&gt;
# Color the map slices&lt;br /&gt;
color ramp1010RWB, slice_A&lt;br /&gt;
color ramp11RYG, slice_B&lt;br /&gt;
color ramp55MltGO, slice_C&lt;br /&gt;
&lt;br /&gt;
# The result:&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
[[File:Slice_example_2_screenshot.png|200px|thumb|left|border|Screenshot of slice example #2]]&lt;br /&gt;
&amp;lt;br clear=&amp;quot;all&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== PYMOL API ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt; &lt;br /&gt;
cmd.slice_new(string slice_name, string map_name, integer opacity=1, integer resolution=5, integer state=0, integer source_state=0)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
== NOTES ==&lt;br /&gt;
Occasionally mis-identified as &amp;quot;slice_map&amp;quot; in documentation. [[slice]] or [[slice|slice_new]] is the correct command.&lt;br /&gt;
 &lt;br /&gt;
== SEE ALSO ==&lt;br /&gt;
[[isomesh]],  [[isodot]], [[load]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* PyMOL Source code&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Commands|Slice]]&lt;br /&gt;
[[Category:States|Slice]]&lt;br /&gt;
[[Category:Electron_Density]]&lt;br /&gt;
[[Category:Maps]]&lt;/div&gt;</summary>
		<author><name>DBorhani</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Slice&amp;diff=10273</id>
		<title>Slice</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Slice&amp;diff=10273"/>
		<updated>2011-03-16T17:57:57Z</updated>

		<summary type="html">&lt;p&gt;DBorhani: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[slice]] creates a slice object from a [[:Category:Maps|map]] object.&lt;br /&gt;
&lt;br /&gt;
== USAGE ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
slice_new name, map, [opacity, [resolution, [state, [source_state]]]]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''or''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
slice name, map, [opacity, [resolution, [state, [source_state]]]]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== ARGUMENTS ==&lt;br /&gt;
*'''name''' = the name for the new slice object (string)&lt;br /&gt;
*'''map''' = the name of the map object to use for computing the slice (string)&lt;br /&gt;
*'''opacity''' = opacity of the new slice (default=1 [opaque])&lt;br /&gt;
*'''resolution''' = the number of pixels per sampling (default=5)&lt;br /&gt;
*'''state''' = the state into which the object should be loaded (default=1; set state=0 to append new mesh as a new state)&lt;br /&gt;
*'''source_state''' = the state of the map from which the object should be loaded (default=0)&lt;br /&gt;
 &lt;br /&gt;
== EXAMPLES ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt; &lt;br /&gt;
# Create a map slice plane perpendicular to current view&lt;br /&gt;
slice a_new_slice, a_map&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# A more complicated example that shows how to create multiple slices&lt;br /&gt;
# (in this case, 3 slices perpendicular to each other), each colored&lt;br /&gt;
# with a different color ramp and different contour levels:&lt;br /&gt;
&lt;br /&gt;
# Reset the view, to align view on XYZ axes&lt;br /&gt;
reset&lt;br /&gt;
# Create a map slice perpendicular to current view. (Non-tracking by default.)&lt;br /&gt;
slice slice_A, apbs_map&lt;br /&gt;
# Rotate camera 90 degrees about the vertical axis&lt;br /&gt;
turn y, 90&lt;br /&gt;
# Second, perpendicular, slice&lt;br /&gt;
slice slice_B, apbs_map&lt;br /&gt;
# Rotate again, this time about the horizontal&lt;br /&gt;
turn x, 90&lt;br /&gt;
# Third slice&lt;br /&gt;
slice slice_C, apbs_map&lt;br /&gt;
&lt;br /&gt;
# Define new color ramps: ramp_name, map_object, list of low/mid/hi values, 3 RGB triplets&lt;br /&gt;
ramp_new ramp1010RWB, apbs_map, [-10,0,10], [ [1,0,0], [1,1,1], [0,0,1] ]&lt;br /&gt;
ramp_new ramp11RYG, apbs_map, [-1,0,1], [ [1,0,0], [1,1,0], [0,1,0] ]&lt;br /&gt;
ramp_new ramp55MltGO, apbs_map, [-5,0,5], [ [0,1,1], [0.5,1,0.5], [1,0.5,0.2] ]&lt;br /&gt;
&lt;br /&gt;
# Color the map slices&lt;br /&gt;
color ramp1010RWB, slice_A&lt;br /&gt;
color ramp11RYG, slice_B&lt;br /&gt;
color ramp55MltGO, slice_C&lt;br /&gt;
&lt;br /&gt;
# The result:&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
[[File:Slice_example_2_screenshot.png|200px|thumb|left|Screenshot of slice example #2]]&lt;br /&gt;
&lt;br /&gt;
== PYMOL API ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt; &lt;br /&gt;
cmd.slice_new(string slice_name, string map_name, integer opacity=1, integer resolution=5, integer state=0, integer source_state=0)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
== NOTES ==&lt;br /&gt;
Occasionally mis-identified as &amp;quot;slice_map&amp;quot; in documentation. [[slice]] or [[slice|slice_new]] is the correct command.&lt;br /&gt;
 &lt;br /&gt;
== SEE ALSO ==&lt;br /&gt;
[[isomesh]],  [[isodot]], [[load]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* PyMOL Source code&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Commands|Slice]]&lt;br /&gt;
[[Category:States|Slice]]&lt;br /&gt;
[[Category:Electron_Density]]&lt;br /&gt;
[[Category:Maps]]&lt;/div&gt;</summary>
		<author><name>DBorhani</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Slice&amp;diff=10272</id>
		<title>Slice</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Slice&amp;diff=10272"/>
		<updated>2011-03-16T17:55:18Z</updated>

		<summary type="html">&lt;p&gt;DBorhani: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[slice]] creates a slice object from a [[:Category:Maps|map]] object.&lt;br /&gt;
&lt;br /&gt;
== USAGE ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
slice_new name, map, [opacity, [resolution, [state, [source_state]]]]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''or''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
slice name, map, [opacity, [resolution, [state, [source_state]]]]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== ARGUMENTS ==&lt;br /&gt;
*'''name''' = the name for the new slice object (string)&lt;br /&gt;
*'''map''' = the name of the map object to use for computing the slice (string)&lt;br /&gt;
*'''opacity''' = opacity of the new slice (default=1 [opaque])&lt;br /&gt;
*'''resolution''' = the number of pixels per sampling (default=5)&lt;br /&gt;
*'''state''' = the state into which the object should be loaded (default=1; set state=0 to append new mesh as a new state)&lt;br /&gt;
*'''source_state''' = the state of the map from which the object should be loaded (default=0)&lt;br /&gt;
 &lt;br /&gt;
== EXAMPLES ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt; &lt;br /&gt;
# Create a map slice plane perpendicular to current view&lt;br /&gt;
slice a_new_slice, a_map&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# A more complicated example that shows how to create multiple slices&lt;br /&gt;
# (in this case, 3 slices perpendicular to each other), each colored&lt;br /&gt;
# with a different color ramp and different contour levels:&lt;br /&gt;
&lt;br /&gt;
# Reset the view, to align view on XYZ axes&lt;br /&gt;
reset&lt;br /&gt;
# Create a map slice perpendicular to current view. (Non-tracking by default.)&lt;br /&gt;
slice slice_A, apbs_map&lt;br /&gt;
# Rotate camera 90 degrees about the vertical axis&lt;br /&gt;
turn y, 90&lt;br /&gt;
# Second, perpendicular, slice&lt;br /&gt;
slice slice_B, apbs_map&lt;br /&gt;
# Rotate again, this time about the horizontal&lt;br /&gt;
turn x, 90&lt;br /&gt;
# Third slice&lt;br /&gt;
slice slice_C, apbs_map&lt;br /&gt;
&lt;br /&gt;
# Define new color ramps: ramp_name, map_object, list of low/mid/hi values, 3 RGB triplets&lt;br /&gt;
ramp_new ramp1010RWB, apbs_map, [-10,0,10], [ [1,0,0], [1,1,1], [0,0,1] ]&lt;br /&gt;
ramp_new ramp11RYG, apbs_map, [-1,0,1], [ [1,0,0], [1,1,0], [0,1,0] ]&lt;br /&gt;
ramp_new ramp55MltGO, apbs_map, [-5,0,5], [ [0,1,1], [0.5,1,0.5], [1,0.5,0.2] ]&lt;br /&gt;
&lt;br /&gt;
# Color the map slices&lt;br /&gt;
color ramp1010RWB, slice_A&lt;br /&gt;
color ramp11RYG, slice_B&lt;br /&gt;
color ramp55MltGO, slice_C&lt;br /&gt;
&lt;br /&gt;
# The result:&lt;br /&gt;
[[File:Slice_example_2.png]]&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== PYMOL API ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt; &lt;br /&gt;
cmd.slice_new(string slice_name, string map_name, integer opacity=1, integer resolution=5, integer state=0, integer source_state=0)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
== NOTES ==&lt;br /&gt;
Occasionally mis-identified as &amp;quot;slice_map&amp;quot; in documentation. [[slice]] or [[slice|slice_new]] is the correct command.&lt;br /&gt;
 &lt;br /&gt;
== SEE ALSO ==&lt;br /&gt;
[[isomesh]],  [[isodot]], [[load]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* PyMOL Source code&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Commands|Slice]]&lt;br /&gt;
[[Category:States|Slice]]&lt;br /&gt;
[[Category:Electron_Density]]&lt;br /&gt;
[[Category:Maps]]&lt;/div&gt;</summary>
		<author><name>DBorhani</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=File:Slice_example_2.png&amp;diff=2807</id>
		<title>File:Slice example 2.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=File:Slice_example_2.png&amp;diff=2807"/>
		<updated>2011-03-16T17:54:14Z</updated>

		<summary type="html">&lt;p&gt;DBorhani: Slice example #2&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Slice example #2&lt;/div&gt;</summary>
		<author><name>DBorhani</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=File:Slice_example_2_screenshot.png&amp;diff=2561</id>
		<title>File:Slice example 2 screenshot.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=File:Slice_example_2_screenshot.png&amp;diff=2561"/>
		<updated>2011-03-16T17:53:29Z</updated>

		<summary type="html">&lt;p&gt;DBorhani: Pymol screen shot of slice example #2&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Pymol screen shot of slice example #2&lt;/div&gt;</summary>
		<author><name>DBorhani</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Slice&amp;diff=10271</id>
		<title>Slice</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Slice&amp;diff=10271"/>
		<updated>2011-03-16T17:43:39Z</updated>

		<summary type="html">&lt;p&gt;DBorhani: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[slice]] creates a slice object from a [[:Category:Maps|map]] object.&lt;br /&gt;
&lt;br /&gt;
== USAGE ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
slice_new name, map, [opacity, [resolution, [state, [source_state]]]]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''or''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
slice name, map, [opacity, [resolution, [state, [source_state]]]]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== ARGUMENTS ==&lt;br /&gt;
*'''name''' = the name for the new slice object (string)&lt;br /&gt;
*'''map''' = the name of the map object to use for computing the slice (string)&lt;br /&gt;
*'''opacity''' = opacity of the new slice (default=1 [opaque])&lt;br /&gt;
*'''resolution''' = the number of pixels per sampling (default=5)&lt;br /&gt;
*'''state''' = the state into which the object should be loaded (default=1; set state=0 to append new mesh as a new state)&lt;br /&gt;
*'''source_state''' = the state of the map from which the object should be loaded (default=0)&lt;br /&gt;
 &lt;br /&gt;
== EXAMPLES ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt; &lt;br /&gt;
# Create a map slice plane perpendicular to current view&lt;br /&gt;
slice a_new_slice, a_map&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# A more complicated example that shows how to create multiple slices&lt;br /&gt;
# (in this case, 3 slices perpendicular to each other), each colored&lt;br /&gt;
# with a different color ramp and different contour levels:&lt;br /&gt;
&lt;br /&gt;
# Reset the view, to align view on XYZ axes&lt;br /&gt;
reset&lt;br /&gt;
# Create a map slice perpendicular to current view. (Non-tracking by default.)&lt;br /&gt;
slice slice_A, apbs_map&lt;br /&gt;
# Rotate camera 90 degrees about the vertical axis&lt;br /&gt;
turn y, 90&lt;br /&gt;
# Second, perpendicular, slice&lt;br /&gt;
slice slice_B, apbs_map&lt;br /&gt;
# Rotate again, this time about the horizontal&lt;br /&gt;
turn x, 90&lt;br /&gt;
# Third slice&lt;br /&gt;
slice slice_C, apbs_map&lt;br /&gt;
&lt;br /&gt;
# Define new color ramps: ramp_name, map_object, list of low/mid/hi values, 3 RGB triplets&lt;br /&gt;
ramp_new ramp1010RWB, apbs_map, [-10,0,10], [ [1,0,0], [1,1,1], [0,0,1] ]&lt;br /&gt;
ramp_new ramp11RYG, apbs_map, [-1,0,1], [ [1,0,0], [1,1,0], [0,1,0] ]&lt;br /&gt;
ramp_new ramp55MltGO, apbs_map, [-5,0,5], [ [0,1,1], [0.5,1,0.5], [1,0.5,0.2] ]&lt;br /&gt;
&lt;br /&gt;
# Color the map slices&lt;br /&gt;
color ramp1010RWB, slice_A&lt;br /&gt;
color ramp11RYG, slice_B&lt;br /&gt;
color ramp55MltGO, slice_C&lt;br /&gt;
&lt;br /&gt;
# The result:&lt;br /&gt;
[[File:Example.jpg]]&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== PYMOL API ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt; &lt;br /&gt;
cmd.slice_new(string slice_name, string map_name, integer opacity=1, integer resolution=5, integer state=0, integer source_state=0)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
== NOTES ==&lt;br /&gt;
Occasionally mis-identified as &amp;quot;slice_map&amp;quot; in documentation. [[slice]] or [[slice|slice_new]] is the correct command.&lt;br /&gt;
 &lt;br /&gt;
== SEE ALSO ==&lt;br /&gt;
[[isomesh]],  [[isodot]], [[load]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* PyMOL Source code&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Commands|Slice]]&lt;br /&gt;
[[Category:States|Slice]]&lt;br /&gt;
[[Category:Electron_Density]]&lt;br /&gt;
[[Category:Maps]]&lt;/div&gt;</summary>
		<author><name>DBorhani</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Slice&amp;diff=10270</id>
		<title>Slice</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Slice&amp;diff=10270"/>
		<updated>2011-03-16T17:37:22Z</updated>

		<summary type="html">&lt;p&gt;DBorhani: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[slice]] creates a slice object from a [[:Category:Maps|map]] object.&lt;br /&gt;
&lt;br /&gt;
== USAGE ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
slice_new name, map, [opacity, [resolution, [state, [source_state]]]]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''or''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
slice name, map, [opacity, [resolution, [state, [source_state]]]]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== ARGUMENTS ==&lt;br /&gt;
*'''name''' = the name for the new slice object (string)&lt;br /&gt;
*'''map''' = the name of the map object to use for computing the slice (string)&lt;br /&gt;
*'''opacity''' = opacity of the new slice (default=1 [opaque])&lt;br /&gt;
*'''resolution''' = the number of pixels per sampling (default=5)&lt;br /&gt;
*'''state''' = the state into which the object should be loaded (default=1; set state=0 to append new mesh as a new state)&lt;br /&gt;
*'''source_state''' = the state of the map from which the object should be loaded (default=0)&lt;br /&gt;
 &lt;br /&gt;
== EXAMPLES ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt; &lt;br /&gt;
# Create a map slice plane perpendicular to current view&lt;br /&gt;
slice_new my_new_slice_1, my_map&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== PYMOL API ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt; &lt;br /&gt;
cmd.slice_new(string slice_name, string map_name, integer opacity=1, integer resolution=5, integer state=0, integer source_state=0)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
== NOTES ==&lt;br /&gt;
Occasionally mis-identified as &amp;quot;slice_map&amp;quot; in documentation. [[Category:Commands|Slice]] or [[Category:Commands|Slice_new]] is the correct command.&lt;br /&gt;
 &lt;br /&gt;
== SEE ALSO ==&lt;br /&gt;
[[isomesh]],  [[isodot]], [[load]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* PyMOL Source code&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Commands|Slice]]&lt;br /&gt;
[[Category:States|Slice]]&lt;br /&gt;
[[Category:Electron_Density]]&lt;br /&gt;
[[Category:Maps]]&lt;/div&gt;</summary>
		<author><name>DBorhani</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Slice&amp;diff=10269</id>
		<title>Slice</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Slice&amp;diff=10269"/>
		<updated>2011-03-16T17:33:36Z</updated>

		<summary type="html">&lt;p&gt;DBorhani: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[slice]] creates a slice object from a [[:Category:Maps|map]] object.&lt;br /&gt;
&lt;br /&gt;
== USAGE ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
slice_new name, map, [opacity, [resolution, [state, [source_state]]]]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''or''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
slice name, map, [opacity, [resolution, [state, [source_state]]]]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== ARGUMENTS ==&lt;br /&gt;
*'''name''' = the name for the new slice object (string)&lt;br /&gt;
*'''map''' = the name of the map object to use for computing the slice (string)&lt;br /&gt;
*'''opacity''' = opacity of the new slice (default=1 [opaque])&lt;br /&gt;
*'''resolution''' = the number of pixels per sampling (default=5)&lt;br /&gt;
*'''state''' = the state into which the object should be loaded (default=1; set state=0 to append new mesh as a new state)&lt;br /&gt;
*'''source_state''' = the state of the map from which the object should be loaded (default=0)&lt;br /&gt;
 &lt;br /&gt;
== EXAMPLES ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt; &lt;br /&gt;
# Create a map slice plane perpendicular to current view&lt;br /&gt;
slice_new my_new_slice_1, my_map&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== PYMOL API ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt; &lt;br /&gt;
cmd.slice_new(string slice_name, string map_name, integer opacity=1, integer resolution=5, integer state=0, integer source_state=0)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
== NOTES ==&lt;br /&gt;
Occasionally mis-identified as &amp;quot;slice_map&amp;quot; in documentation. [[Category:Commands|slice]] or [[Category:Commands|slice_new]] is the correct command.&lt;br /&gt;
 &lt;br /&gt;
== SEE ALSO ==&lt;br /&gt;
[[isomesh]],  [[isodot]], [[load]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* PyMOL Source code&lt;br /&gt;
&lt;br /&gt;
[[Category:Commands|Slice]]&lt;br /&gt;
[[:Category:Maps|Slice]]&lt;/div&gt;</summary>
		<author><name>DBorhani</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Slice&amp;diff=10268</id>
		<title>Slice</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Slice&amp;diff=10268"/>
		<updated>2011-03-16T17:29:07Z</updated>

		<summary type="html">&lt;p&gt;DBorhani: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[slice]] creates a slice object from a [[:Category:Maps|map]] object.&lt;br /&gt;
&lt;br /&gt;
== USAGE ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
slice_new name, map, [opacity, [resolution, [state, [source_state]]]]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''or''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
slice name, map, [opacity, [resolution, [state, [source_state]]]]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== ARGUMENTS ==&lt;br /&gt;
*'''name''' = the name for the new slice object (string)&lt;br /&gt;
*'''map''' = the name of the map object to use for computing the slice (string)&lt;br /&gt;
*'''opacity''' = opacity of the new slice (default=1 [opaque])&lt;br /&gt;
*'''resolution''' = the number of pixels per sampling (default=5)&lt;br /&gt;
*'''state''' = the state into which the object should be loaded (default=1; set state=0 to append new mesh as a new state)&lt;br /&gt;
*'''source_state''' = the state of the map from which the object should be loaded (default=0)&lt;br /&gt;
 &lt;br /&gt;
== EXAMPLES ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt; &lt;br /&gt;
# Create a map slice plane perpendicular to current view&lt;br /&gt;
slice_new my_new_slice_1, my_map&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== PYMOL API ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt; &lt;br /&gt;
cmd.slice_new(string slice_name, string map_name, integer opacity=1, integer resolution=5, integer state=0, integer source_state=0)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
== NOTES ==&lt;br /&gt;
Occasionally mis-identified as &amp;quot;slice_map&amp;quot; in documentation. [[slice|slice_new]] or [[slice]] is the correct command.&lt;br /&gt;
 &lt;br /&gt;
== SEE ALSO ==&lt;br /&gt;
[[isomesh]],  [[isodot]], [[load]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* PyMOL Source code&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Commands|Slice]]&lt;br /&gt;
[[Category:View Module|Slice]]&lt;/div&gt;</summary>
		<author><name>DBorhani</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Slice&amp;diff=10267</id>
		<title>Slice</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Slice&amp;diff=10267"/>
		<updated>2011-03-16T17:27:47Z</updated>

		<summary type="html">&lt;p&gt;DBorhani: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[slice]] creates a slice object from a [[:Category:Maps|map]] object.&lt;br /&gt;
&lt;br /&gt;
== USAGE ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
slice_new name, map, [opacity, [resolution, [state, [source_state]]]]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''or''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
slice name, map, [opacity, [resolution, [state, [source_state]]]]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== ARGUMENTS ==&lt;br /&gt;
*'''name''' = the name for the new slice object (string)&lt;br /&gt;
*'''map''' = the name of the map object to use for computing the slice (string)&lt;br /&gt;
*'''opacity''' = opacity of the new slice (default=1 [opaque])&lt;br /&gt;
*'''resolution''' = the number of pixels per sampling (default=5)&lt;br /&gt;
*'''state''' = the state into which the object should be loaded (default=1; set state=0 to append new mesh as a new state)&lt;br /&gt;
*'''source_state''' = the state of the map from which the object should be loaded (default=0)&lt;br /&gt;
 &lt;br /&gt;
== EXAMPLES ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt; &lt;br /&gt;
# Create a map slice plane perpendicular to current view&lt;br /&gt;
slice_new my_new_slice_1, my_map&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== PYMOL API ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt; &lt;br /&gt;
cmd.slice_new(string slice_name, string map_name, integer opacity=1, integer resolution=5, integer state=0, integer source_state=0)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
== NOTES ==&lt;br /&gt;
Occasionally mis-identified as &amp;quot;slice_map&amp;quot; in documentation. [[slice_new|slice]] or [[slice]]is the correct command.&lt;br /&gt;
 &lt;br /&gt;
== SEE ALSO ==&lt;br /&gt;
[[isomesh]],  [[isodot]], [[load]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* PyMOL Source code&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Commands|Slice]]&lt;br /&gt;
[[Category:View Module|Slice]]&lt;/div&gt;</summary>
		<author><name>DBorhani</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Slice&amp;diff=10266</id>
		<title>Slice</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Slice&amp;diff=10266"/>
		<updated>2011-03-16T17:06:33Z</updated>

		<summary type="html">&lt;p&gt;DBorhani: Created page with &amp;quot;slice creates a slice object from a map object representations.  == USAGE == &amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt; slice name, map, [opacity, [resolution, [sta...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[slice]] creates a slice object from a map object [[:Category:Representations|representations]].&lt;br /&gt;
&lt;br /&gt;
== USAGE ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
slice name, map, [opacity, [resolution, [state, [source_state]]]]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
== ARGUMENTS ==&lt;br /&gt;
*'''name''' = the name for the new slice object (string)&lt;br /&gt;
*'''map''' = the name of the map object to use for computing the slice (string)&lt;br /&gt;
*'''opacity''' = opacity of the new slice (default=1)&lt;br /&gt;
*'''resolution''' = the number of pixels per sampling (default=5)&lt;br /&gt;
*'''state''' = the state into which the object should be loaded (default=1; set state=0 to append new mesh as a new state)&lt;br /&gt;
*'''source_state''' = the state of the map from which the object should be loaded (default=0)&lt;br /&gt;
 &lt;br /&gt;
== EXAMPLES ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt; &lt;br /&gt;
# show the backbone as lines&lt;br /&gt;
show_as lines, name ca or name c or name n&lt;br /&gt;
&lt;br /&gt;
# show everything as a ribbon&lt;br /&gt;
show_as ribbon&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
== PYMOL API ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt; &lt;br /&gt;
cmd.show_as(string representation, string selection)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
== NOTES ==&lt;br /&gt;
Often mis-identified as &amp;quot;slice_map&amp;quot; in the help. [[slice] is the correct command.&lt;br /&gt;
 &lt;br /&gt;
== SEE ALSO ==&lt;br /&gt;
[[isomesh]],  [[isodot]], [[load]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* PyMOL Source code&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Commands|Slice]]&lt;br /&gt;
[[Category:View Module|Slice]]&lt;/div&gt;</summary>
		<author><name>DBorhani</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=User:DBorhani&amp;diff=3251</id>
		<title>User:DBorhani</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=User:DBorhani&amp;diff=3251"/>
		<updated>2011-03-16T16:49:11Z</updated>

		<summary type="html">&lt;p&gt;DBorhani: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;David Borhani&amp;lt;br /&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
D. E. Shaw Research&amp;lt;br /&amp;gt;&lt;br /&gt;
120 West Forty-Fifth Street, 39th Floor&amp;lt;br /&amp;gt;&lt;br /&gt;
New York, NY 10036&amp;lt;br /&amp;gt;&lt;br /&gt;
[mailto:David.Borhani@DEShawResearch.com David.Borhani@DEShawResearch.com]&amp;lt;br /&amp;gt;&lt;br /&gt;
212-478-0698&amp;lt;br /&amp;gt;&lt;br /&gt;
[http://www.deshawresearch.com D. E. Shaw Research]&lt;/div&gt;</summary>
		<author><name>DBorhani</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=User:DBorhani&amp;diff=3250</id>
		<title>User:DBorhani</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=User:DBorhani&amp;diff=3250"/>
		<updated>2011-03-16T16:47:29Z</updated>

		<summary type="html">&lt;p&gt;DBorhani: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;David Borhani&amp;lt;br /&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
D. E. Shaw Research&amp;lt;br /&amp;gt;&lt;br /&gt;
120 West Forty-Fifth Street, 39th Floor&amp;lt;br /&amp;gt;&lt;br /&gt;
New York, NY 10036&amp;lt;br /&amp;gt;&lt;br /&gt;
[mail_to:David.Borhani@DEShawResearch.com David.Borhani@DEShawResearch.com]&amp;lt;br /&amp;gt;&lt;br /&gt;
212-478-0698&amp;lt;br /&amp;gt;&lt;br /&gt;
[http://www.deshawresearch.com D. E. Shaw Research]&lt;/div&gt;</summary>
		<author><name>DBorhani</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=User:DBorhani&amp;diff=3249</id>
		<title>User:DBorhani</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=User:DBorhani&amp;diff=3249"/>
		<updated>2011-03-16T16:40:58Z</updated>

		<summary type="html">&lt;p&gt;DBorhani: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;David Borhani&lt;br /&gt;
----&lt;br /&gt;
D. E. Shaw Research&lt;br /&gt;
120 West Forty-Fifth Street, 39th Floor&lt;br /&gt;
New York, NY 10036&lt;br /&gt;
David.Borhani@DEShawResearch.com&lt;br /&gt;
212-478-0698&lt;br /&gt;
http://www.deshawresearch.com&lt;/div&gt;</summary>
		<author><name>DBorhani</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=User:DBorhani&amp;diff=3248</id>
		<title>User:DBorhani</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=User:DBorhani&amp;diff=3248"/>
		<updated>2011-03-16T16:39:36Z</updated>

		<summary type="html">&lt;p&gt;DBorhani: Created page with &amp;quot;David Borhani ---- D. E. Shaw Research 120 West Forty-Fifth Street, 39th Floor New York, NY 10036 [mail_to:David.Borhani@DEShawResearch.com] 212-478-0698 [http://www.deshawresear...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;David Borhani&lt;br /&gt;
----&lt;br /&gt;
D. E. Shaw Research&lt;br /&gt;
120 West Forty-Fifth Street, 39th Floor&lt;br /&gt;
New York, NY 10036&lt;br /&gt;
[mail_to:David.Borhani@DEShawResearch.com]&lt;br /&gt;
212-478-0698&lt;br /&gt;
[http://www.deshawresearch.com]&lt;/div&gt;</summary>
		<author><name>DBorhani</name></author>
	</entry>
</feed>