<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.pymol.org/index.php?action=history&amp;feed=atom&amp;title=Map_set</id>
	<title>Map set - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.pymol.org/index.php?action=history&amp;feed=atom&amp;title=Map_set"/>
	<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Map_set&amp;action=history"/>
	<updated>2026-04-28T15:26:03Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Map_set&amp;diff=8085&amp;oldid=prev</id>
		<title>Pyadmin: 1 revision</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Map_set&amp;diff=8085&amp;oldid=prev"/>
		<updated>2014-03-28T02:16:31Z</updated>

		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 02:16, 28 March 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Pyadmin</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Map_set&amp;diff=8084&amp;oldid=prev</id>
		<title>James.watney: /* Examples */</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Map_set&amp;diff=8084&amp;oldid=prev"/>
		<updated>2011-02-10T18:38:08Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Examples&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Image:Map_set_ex.png‎|right|thumb|300px|Map_set created this consensus volume representation of aligned ligands bound to kinases.  See example below.]]&lt;br /&gt;
[[Map_set]] provides a number of common operations on and between maps.  For example, with [[Map_set]] you can add two maps together or create a consensus map from a series of maps or even take a difference map.&lt;br /&gt;
 &lt;br /&gt;
= Usage =&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
map_set name, operator, operands, target_state, source_state&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
operator may be,&lt;br /&gt;
* average &lt;br /&gt;
* copy&lt;br /&gt;
* difference &lt;br /&gt;
* maximum&lt;br /&gt;
* minimum&lt;br /&gt;
* sum  &lt;br /&gt;
* unique    &lt;br /&gt;
 &lt;br /&gt;
= Examples =&lt;br /&gt;
 &amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
# add 3 maps&lt;br /&gt;
map_set my_sum, sum, map1 map2 map3&lt;br /&gt;
&lt;br /&gt;
# calculate the average map&lt;br /&gt;
map_set my_avg, average, map1 map2 map3&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Detailed Example =&lt;br /&gt;
This example shows you how to create a consensus map of the bound ligand in a conserved pocket.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
# fetch some similar proteins from the PDB&lt;br /&gt;
fetch 1oky 1h1w 1okz 1uu3 1uu7 1uu8 1uu9 1uvr, async=0&lt;br /&gt;
&lt;br /&gt;
# align them all to 1oky; their ligands&lt;br /&gt;
# should all now be aligned&lt;br /&gt;
alignto 1oky&lt;br /&gt;
&lt;br /&gt;
# highlight the ligands&lt;br /&gt;
as sticks, org&lt;br /&gt;
&lt;br /&gt;
# select one of the atoms in the organic small mol&lt;br /&gt;
sele /1uu3//A/LY4`1374/NAT&lt;br /&gt;
&lt;br /&gt;
# select entire molecules very near the chosen atom&lt;br /&gt;
select bm. all within 1 of (sele)&lt;br /&gt;
&lt;br /&gt;
# remove the proteins; just look at small molecules&lt;br /&gt;
remove not (sele)&lt;br /&gt;
&lt;br /&gt;
# create maps for all the ligands&lt;br /&gt;
python&lt;br /&gt;
for x in cmd.get_names():&lt;br /&gt;
  cmd.map_new( &amp;quot;map_&amp;quot; + x, &amp;quot;gaussian&amp;quot;, 0.5, x)&lt;br /&gt;
python end&lt;br /&gt;
&lt;br /&gt;
# calculate the average map&lt;br /&gt;
map_set avgMap, average, map*&lt;br /&gt;
&lt;br /&gt;
# show as transparent surface&lt;br /&gt;
set transparency, 0.5&lt;br /&gt;
&lt;br /&gt;
isosurface avgSurface, avgMap, 1.0&lt;br /&gt;
&lt;br /&gt;
orient vis&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Notes =&lt;br /&gt;
source_state = 0 means all states&lt;br /&gt;
&lt;br /&gt;
target_state = -1 means current state&lt;br /&gt;
    &lt;br /&gt;
This is an experimental function.    &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= See Also =&lt;br /&gt;
[[Map_new]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Commands]]&lt;/div&gt;</summary>
		<author><name>James.watney</name></author>
	</entry>
</feed>