<?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=Pierre</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=Pierre"/>
	<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php/Special:Contributions/Pierre"/>
	<updated>2026-04-19T20:07:57Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Linux_Install&amp;diff=12409</id>
		<title>Linux Install</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Linux_Install&amp;diff=12409"/>
		<updated>2007-03-12T10:17:40Z</updated>

		<summary type="html">&lt;p&gt;Pierre: /* libnvidia-tls.so.1: cannot handle TLS data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Installing PyMol is quite straightforward.&lt;br /&gt;
&lt;br /&gt;
=PyMol=&lt;br /&gt;
Installing PyMol is very simple, even from source.  On Linux, you need the following requirements:&lt;br /&gt;
* [http://www.python.org/ Python] (with distutils)&lt;br /&gt;
* [http://pmw.sf.net Pmw] (Python Megawidgets)&lt;br /&gt;
* OpenGL driver (I use [http://www.nvidia.com/object/unix.html NVidia])&lt;br /&gt;
&lt;br /&gt;
== Generic Linux ==&lt;br /&gt;
&lt;br /&gt;
=== 0.99rc1 note! ===&lt;br /&gt;
For those keeping current via CVS, building from source, or installing precompiled unix binaries, here is a quick &amp;quot;heads up!&amp;quot; intended to save you some minor grief: For the last six years, the PyMOL launch script has been called '''pymol.com''' instead of simply &amp;quot;pymol&amp;quot;.  I can't remember why I did things that way, but PyMOL's &amp;quot;.com&amp;quot; convention is different from the most everything else and for no good reason.  The launch script should just be the name of the program.&lt;br /&gt;
&lt;br /&gt;
Therefore, as of 0.99rc1, the launch script will simply be &amp;quot;pymol&amp;quot;.  No big deal right?  Well, not so fast:  symbolic links, shell aliases, external scripts, package builders, and end-user habits may all need to be adjusted after installing this next version.  That is why I haven't changed this before now -- but we should clean this up before 1.0. So, remember: if you update to PyMOL 0.99rc1 (when it's released) and suddenly can't launch PyMOL, that is likely what is going on.  Either reset your pointers to '''./pymol''', or symlink '''./pymol''' to '''./pymol.com''' to preserve the status quo.&lt;br /&gt;
&lt;br /&gt;
=== From Source ===&lt;br /&gt;
* untar the compressed package;&lt;br /&gt;
* cd into the newly untarred directory (should be '''pymol''' or '''pymol-version''').&lt;br /&gt;
* execute &amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;python setup.py install            # you may need to be root&amp;lt;/source&amp;gt;&lt;br /&gt;
* execute &amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;python setup2.py install           # you may need to be root&amp;lt;/source&amp;gt;&lt;br /&gt;
* execute &amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;cp ./pymol.com SOME_PATH           # where SOME_PATH is some directory in your $PATH&amp;lt;/source&amp;gt;&lt;br /&gt;
or for the latest version, &lt;br /&gt;
* execute &amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;cp ./pymol SOME_PATH           # where SOME_PATH is some directory in your $PATH&amp;lt;/source&amp;gt;&lt;br /&gt;
The executable name is &amp;quot;pymol.com&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== From Package ===&lt;br /&gt;
Download the appropriate RPM and use 'rpm' to install it.  Typically,&lt;br /&gt;
 rpm -Uvh rpmFileName.rpm&lt;br /&gt;
&lt;br /&gt;
===Compiling By Hand===&lt;br /&gt;
Due to the large variance of Linux systems, some systems may work fine with PyMol, and some may have related install issues.  To overcome this, you can download the '''ext''' package and the PyMol source and compile/install by hand.  &lt;br /&gt;
&lt;br /&gt;
Once downloaded, see the file '''pymol/INSTALL''' and '''pymol/INSTALL.generic'''.&lt;br /&gt;
&lt;br /&gt;
Here's the basic steps to install by source:&lt;br /&gt;
# get the source [http://delsci.com/rel/0_98/#OtherUnix PyMol Source]&lt;br /&gt;
# extract both packages, rename ext-VERSION.tgz to ext and move it into the pymol directory&lt;br /&gt;
# cd pymol&lt;br /&gt;
# cd ext&lt;br /&gt;
# vi build.com  # edit the build file&lt;br /&gt;
# cd ..&lt;br /&gt;
# cp setup/Rules.make . # or correct Rules.make file for your machine&lt;br /&gt;
# vi Rules.make         # make appropriate changes&lt;br /&gt;
# vi setup.py           # make appropriate changes&lt;br /&gt;
# make&lt;br /&gt;
&lt;br /&gt;
Warnings:&lt;br /&gt;
* if you're using a 64-bit machine, lib becomes lib64 for almost everything&lt;br /&gt;
* ensure you have the correct Python path and version (is it 2.3?  2.4?)&lt;br /&gt;
* make sure you make the changes in '''Rules.make''', '''setup.py''', and '''Makefile''', for your platform.&lt;br /&gt;
&lt;br /&gt;
Copy the appropriate setup/Rules.XXX file to the base PyMol dir.  You'll have to edit the file for your system.  Then run 'make'.&lt;br /&gt;
&lt;br /&gt;
== Fedora Core Linux (x86) ==&lt;br /&gt;
PyMOL RPMs are available for Fedora Core 1 &amp;amp; 2, provided by Morten Kjeldgaard. These can be manually downloaded by browsing from: [http://apt.bioxray.dk/]&lt;br /&gt;
&lt;br /&gt;
Alternatively, PyMOL can be installed using [http://linux.duke.edu/projects/yum/ Yum] (an automated package installer and updater, installed by default in Fedora). This can be done by adding the following lines to your /etc/yum.conf file:&lt;br /&gt;
&lt;br /&gt;
 [xray]&lt;br /&gt;
 name=MOKs RPM Repository fedora $releasever - $basearch - xray&lt;br /&gt;
 baseurl=http://apt.bioxray.dk/fedora/fc$releasever/$basearch/xray&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
you may also need to add the pgp key for the repository before yum will get packages from it by either saying:&lt;br /&gt;
&lt;br /&gt;
 rpm --import http://www.bioxray.dk/~mok/404825e7.asc&lt;br /&gt;
&lt;br /&gt;
or with older versions of rpm:&lt;br /&gt;
&lt;br /&gt;
 wget http://www.bioxray.dk/~mok/404825e7.asc&lt;br /&gt;
 rpm --import 404825e7.asc&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
And then issuing the following command as root:&lt;br /&gt;
&lt;br /&gt;
 yum install pymol&lt;br /&gt;
&lt;br /&gt;
== Gentoo Linux (x86) ==&lt;br /&gt;
as root:&lt;br /&gt;
 emerge pymol&lt;br /&gt;
be sure to have the proper OpenGL configuration. For example:&lt;br /&gt;
 opengl-update ati&lt;br /&gt;
 opengl-update nvidia&lt;br /&gt;
list of available versions of [http://packages.gentoo.org/packages/?category=sci-chemistry;name=pymol pymol for gentoo]&lt;br /&gt;
&lt;br /&gt;
== SuSe ==&lt;br /&gt;
=== 32-bit (x86) ===&lt;br /&gt;
See [[#Generic Linux]] above.&lt;br /&gt;
&lt;br /&gt;
=== 64-bit (x86_64) ===&lt;br /&gt;
See [[#Generic Linux]] above.  Some details for problem solving are here.  64-bit Python install is quite easy.  Make sure your nvidia driver is installed (or ATI, but I have no experience there).&lt;br /&gt;
&lt;br /&gt;
To install PyMol&lt;br /&gt;
*Ensure your system has it's distutils in place and ready to use.  Try the following check:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
from distutils import *&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
*Download the [http://pymol.org/ source]&lt;br /&gt;
*Download [http://www.sf.net/projects/pmw Pmw] from [http://www.sf.net/ SourceForge].&lt;br /&gt;
** To install Pmw, just decompress it and then move the base director &amp;quot;Pwm&amp;quot; to /usr/lib64/python2.3/site-packages/.  You can test that it's there by testing the import, see below:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
import * from Pmw&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
If errors erupt, investigate.&lt;br /&gt;
* decompress the source and cd into the PyMol directory that was just decompressed.&lt;br /&gt;
* If upgrading see [[:Category: Upgrading PyMol|below]].&lt;br /&gt;
* Now enter the following...&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
python setup.py build&amp;lt;br&amp;gt;&lt;br /&gt;
sudo python setup.py install&amp;lt;br&amp;gt;&lt;br /&gt;
sudo python setup2.py&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
* The sudo commands will need a root password or someone with sudo capabilities.&lt;br /&gt;
&lt;br /&gt;
I also copy the 'pymol.com' file to /usr/local/bin or /usr/bin -- somewhere in my path:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
sudo cp ./pymol.com /usr/local/bin&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Please note that newer versions of PyMol create the '''pymol''' executable, not '''pymol.com'''.  So, for later versions (~0.99+) use&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
sudo cp ./pymol /usr/local/bin&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You should now have a working PyMol install.  &lt;br /&gt;
&lt;br /&gt;
'''pymol.com''' should now run your new PyMol install.&lt;br /&gt;
&lt;br /&gt;
==Ubuntu Linux (x86 32,64; mac ppc)==&lt;br /&gt;
&lt;br /&gt;
http://xanana.ucsc.edu/~wgscott/xtal/ubuntu-small.png&lt;br /&gt;
&lt;br /&gt;
The [http://www.ubuntu.com/ Ubuntu] [http://packages.ubuntu.com/breezy/science/pymol pymol package] can be installed with minimal effort using the GUI package manager [http://en.wikipedia.org/wiki/Synaptic_Package_Manager synaptic], or on the command line, using the command&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install pymol&lt;br /&gt;
&lt;br /&gt;
once the [http://ubuntuguide.org/#extrarepositories universe repository] has been activated.  &lt;br /&gt;
&lt;br /&gt;
[http://en.wikipedia.org/wiki/Ubuntu_Linux Ubuntu] is a completely free and well-maintained Debian GNU/Linux distribution. Further details on using [http://xanana.ucsc.edu/linux/debian_linux.html Ubuntu for crystallography] and related applications are available are linked. PyMol also compiles from source on Ubuntu following the [[#Generic Linux]] instructions given above.&lt;br /&gt;
&lt;br /&gt;
=Preparing your System=&lt;br /&gt;
See [[Linux_XFree86_Configuration]].&lt;br /&gt;
&lt;br /&gt;
==Graphics==&lt;br /&gt;
===XFree86 Config===&lt;br /&gt;
Check out [[XFree86_Configuration|Configuring XFree86]] if you need information on editing the XFree86 configuration file.&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation|Linux Installation]]&lt;br /&gt;
&lt;br /&gt;
===Xorg===&lt;br /&gt;
Adding a &lt;br /&gt;
 Stereo 3&lt;br /&gt;
option in /etc/X11/xorg.conf suffices to run pymol in stereo mode on a 64bit system with the Nvidia Quadro FX1400 under Red Hat Enterprise 4 (RHEL4). Adding the following modeline (determined via /usr/bin/gtf): &lt;br /&gt;
&lt;br /&gt;
 ModeLine     &amp;quot;1280x1024_118.00&amp;quot; 229.7 1280 1384 1528 1776 1024 1025 1028 1096 -hsync +vsync&lt;br /&gt;
&lt;br /&gt;
appears to slightly improve the stereo quality, in particular when one&lt;br /&gt;
displays labels and/or dashes/dots.&lt;br /&gt;
&lt;br /&gt;
For those having possible driver issues, this link might help&lt;br /&gt;
[http://www.nvnews.net/vbulletin/showthread.php?t=69136 NVNews]&lt;br /&gt;
&lt;br /&gt;
=Problems=&lt;br /&gt;
&lt;br /&gt;
==Input==&lt;br /&gt;
If you notice that the keyboard input is ignored into the Pmw widgets, you may have an X-based input method editor installed and running.  Such examples could be SCIM, KINPUT/2 or the like.  Try turning off the IME and restarting PyMol to get the widgets to recognize your input.&lt;br /&gt;
&lt;br /&gt;
==libnvidia-tls.so.1: cannot handle TLS data==&lt;br /&gt;
&lt;br /&gt;
If you get an error, upon invoking pymol, of the form&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Traceback (most recent call last):&lt;br /&gt;
  File &amp;quot;/usr/lib/python2.4/site-packages/pymol/__init__.py&amp;quot;, line 109, in ?&lt;br /&gt;
    import pymol&lt;br /&gt;
  File &amp;quot;/usr/lib/python2.4/site-packages/pymol/__init__.py&amp;quot;, line 353, in ?&lt;br /&gt;
    import _cmd&lt;br /&gt;
ImportError: libnvidia-tls.so.1: cannot handle TLS data&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then try changing the permissons on   libnvidia-tls.so.1.  i.e,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt; sudo chmod 777 /usr/lib/libnvidia-tls.so.1   &amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Pierre</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Category:Uncategorized&amp;diff=3962</id>
		<title>Category:Uncategorized</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Category:Uncategorized&amp;diff=3962"/>
		<updated>2007-01-16T08:56:53Z</updated>

		<summary type="html">&lt;p&gt;Pierre: /* Van der Waals radii */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Alter key bindings==&lt;br /&gt;
It's not GUI, but you could simply bind a function key such as F1 to a command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
cmd.set_key('F1',lambda :cmd.show('sticks'))&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Coloring Surface with Electrostatic Potential==&lt;br /&gt;
You have to load the potential data by Delphi or some other program like AMBER version 9:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
load sample.pdb, molecule&lt;br /&gt;
load sample.delphi, potential&lt;br /&gt;
show surface, molecule&lt;br /&gt;
ramp_new level, potential, [-7,0,7]&lt;br /&gt;
set surface_color, level, molecule&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Van der Waals radii==&lt;br /&gt;
van der Waals Radii are hard coded in Pymol.&lt;br /&gt;
They may be obtained for given atoms from:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
iterate (name C), print vdw&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Default values are:&lt;br /&gt;
*C : 1.70&lt;br /&gt;
*O : 1.52&lt;br /&gt;
*N : 1.55&lt;br /&gt;
*H : 1.20&lt;br /&gt;
*P : 1.80&lt;br /&gt;
&lt;br /&gt;
and may be changed with the command [[alter]]&lt;/div&gt;</summary>
		<author><name>Pierre</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Category:Uncategorized&amp;diff=3961</id>
		<title>Category:Uncategorized</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Category:Uncategorized&amp;diff=3961"/>
		<updated>2007-01-16T08:55:55Z</updated>

		<summary type="html">&lt;p&gt;Pierre: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Alter key bindings==&lt;br /&gt;
It's not GUI, but you could simply bind a function key such as F1 to a command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
cmd.set_key('F1',lambda :cmd.show('sticks'))&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Coloring Surface with Electrostatic Potential==&lt;br /&gt;
You have to load the potential data by Delphi or some other program like AMBER version 9:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
load sample.pdb, molecule&lt;br /&gt;
load sample.delphi, potential&lt;br /&gt;
show surface, molecule&lt;br /&gt;
ramp_new level, potential, [-7,0,7]&lt;br /&gt;
set surface_color, level, molecule&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Van der Waals radii==&lt;br /&gt;
van der Waals Radii are hard coded in Pymol.&lt;br /&gt;
They may be obtained for given atoms from:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
iterate (name C), print vdw&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Default values are:&lt;br /&gt;
*C : 1.70&lt;br /&gt;
*O : 1.52&lt;br /&gt;
*N : 1.55&lt;br /&gt;
*H : 1.20&lt;br /&gt;
*P : 1.80&lt;br /&gt;
&lt;br /&gt;
and may be changed with the command alter&lt;/div&gt;</summary>
		<author><name>Pierre</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Iterate&amp;diff=12030</id>
		<title>Iterate</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Iterate&amp;diff=12030"/>
		<updated>2007-01-16T08:49:34Z</updated>

		<summary type="html">&lt;p&gt;Pierre: /* DESCRIPTION */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===DESCRIPTION===&lt;br /&gt;
'''iterate''' iterates over an expression with a separate name space for each atom.  However, unlike the &amp;quot;alter&amp;quot; command, atomic properties can not be altered.  Thus, '''iterate''' is more efficient than '''alter'''.&lt;br /&gt;
 &lt;br /&gt;
It can be used to perform operations and aggregations using atomic selections, and store the results in any global object, such as the predefined '''stored''' object.&lt;br /&gt;
 &lt;br /&gt;
The local namespace for &amp;quot;iterate&amp;quot; contains the following names:&lt;br /&gt;
*name&lt;br /&gt;
*resn&lt;br /&gt;
*resi&lt;br /&gt;
*chain&lt;br /&gt;
*alt&lt;br /&gt;
*elem&lt;br /&gt;
*q&lt;br /&gt;
*b&lt;br /&gt;
*segi&lt;br /&gt;
*type (ATOM,HETATM) &lt;br /&gt;
*formal_charge&lt;br /&gt;
*partial_charge&lt;br /&gt;
*numeric_type&lt;br /&gt;
*text_type &lt;br /&gt;
*ID&lt;br /&gt;
*vdw&lt;br /&gt;
&lt;br /&gt;
All strings in the expression must be explicitly quoted.  This operation typically takes a second per thousand atoms.&lt;br /&gt;
&lt;br /&gt;
===USAGE===&lt;br /&gt;
 iterate (selection),expression&lt;br /&gt;
&lt;br /&gt;
===EXAMPLES===&lt;br /&gt;
*The following example calculates the net charge on an object.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
stored.net_charge = 0&lt;br /&gt;
iterate (all),stored.net_charge = stored.net_charge + partial_charge&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*The following example fills an array, '''stored.names''' with the names of all the residues.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
stored.names = []&lt;br /&gt;
iterate (all),stored.names.append(name)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*The following prints the b-factors for all atoms around residue #1.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
iterate resi 1, print round(b,2)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===SEE ALSO===&lt;br /&gt;
[[Cmd iterate_state]], [[Cmd alter]], [[Cmd alter_state]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Commands|iterate]]&lt;/div&gt;</summary>
		<author><name>Pierre</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Alter&amp;diff=732</id>
		<title>Alter</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Alter&amp;diff=732"/>
		<updated>2007-01-16T08:45:19Z</updated>

		<summary type="html">&lt;p&gt;Pierre: /* EXAMPLES */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===DESCRIPTION===&lt;br /&gt;
'''alter''' changes one or more atomic properties over a selection using the python evaluator with a separate name space for each atom.  The symbols defined in the name space are:&lt;br /&gt;
 name, resn, resi, chain, alt, elem, q, b, segi,&lt;br /&gt;
 type (ATOM,HETATM), partial_charge, formal_charge,&lt;br /&gt;
 text_type, numeric_type, ID, vdw&lt;br /&gt;
&lt;br /&gt;
All strings must be explicitly quoted.  This operation typically takes several seconds per thousand atoms altered.&lt;br /&gt;
&lt;br /&gt;
'''WARNING''': You should always issue a '''sort''' command on an object&lt;br /&gt;
after modifying any property which might affect canonical atom&lt;br /&gt;
ordering (names, chains, etc.).  Failure to do so will confound&lt;br /&gt;
subsequent &amp;quot;create&amp;quot; and &amp;quot;byres&amp;quot; operations.&lt;br /&gt;
&lt;br /&gt;
===USAGE===&lt;br /&gt;
 alter (selection),expression&lt;br /&gt;
&lt;br /&gt;
===EXAMPLES===&lt;br /&gt;
&lt;br /&gt;
* Change chain label and residue index&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
 alter (chain A),chain='B'&lt;br /&gt;
 alter (all),resi=str(int(resi)+100)&lt;br /&gt;
 sort&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Change van der Waals radius of a given atom&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
alter (name P), vdw=1.90&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Not that is if dots, spheres, mesh or surface representation is used. You have to refresh the view with&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
rebuild&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===SEE ALSO===&lt;br /&gt;
[[Cmd alter_state]], [[Cmd iterate]], [[Cmd iterate_state]], [[Cmd sort ]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Commands|alter]]&lt;/div&gt;</summary>
		<author><name>Pierre</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Alter&amp;diff=731</id>
		<title>Alter</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Alter&amp;diff=731"/>
		<updated>2007-01-16T08:42:12Z</updated>

		<summary type="html">&lt;p&gt;Pierre: /* EXAMPLES */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===DESCRIPTION===&lt;br /&gt;
'''alter''' changes one or more atomic properties over a selection using the python evaluator with a separate name space for each atom.  The symbols defined in the name space are:&lt;br /&gt;
 name, resn, resi, chain, alt, elem, q, b, segi,&lt;br /&gt;
 type (ATOM,HETATM), partial_charge, formal_charge,&lt;br /&gt;
 text_type, numeric_type, ID, vdw&lt;br /&gt;
&lt;br /&gt;
All strings must be explicitly quoted.  This operation typically takes several seconds per thousand atoms altered.&lt;br /&gt;
&lt;br /&gt;
'''WARNING''': You should always issue a '''sort''' command on an object&lt;br /&gt;
after modifying any property which might affect canonical atom&lt;br /&gt;
ordering (names, chains, etc.).  Failure to do so will confound&lt;br /&gt;
subsequent &amp;quot;create&amp;quot; and &amp;quot;byres&amp;quot; operations.&lt;br /&gt;
&lt;br /&gt;
===USAGE===&lt;br /&gt;
 alter (selection),expression&lt;br /&gt;
&lt;br /&gt;
===EXAMPLES===&lt;br /&gt;
&lt;br /&gt;
* Change chain label and residue index&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
 alter (chain A),chain='B'&lt;br /&gt;
 alter (all),resi=str(int(resi)+100)&lt;br /&gt;
 sort&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Change van der Waals radius of a given atom&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
alter (name P), vdw=1.90&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===SEE ALSO===&lt;br /&gt;
[[Cmd alter_state]], [[Cmd iterate]], [[Cmd iterate_state]], [[Cmd sort ]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Commands|alter]]&lt;/div&gt;</summary>
		<author><name>Pierre</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Alter&amp;diff=730</id>
		<title>Alter</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Alter&amp;diff=730"/>
		<updated>2007-01-16T08:38:21Z</updated>

		<summary type="html">&lt;p&gt;Pierre: /* DESCRIPTION */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===DESCRIPTION===&lt;br /&gt;
'''alter''' changes one or more atomic properties over a selection using the python evaluator with a separate name space for each atom.  The symbols defined in the name space are:&lt;br /&gt;
 name, resn, resi, chain, alt, elem, q, b, segi,&lt;br /&gt;
 type (ATOM,HETATM), partial_charge, formal_charge,&lt;br /&gt;
 text_type, numeric_type, ID, vdw&lt;br /&gt;
&lt;br /&gt;
All strings must be explicitly quoted.  This operation typically takes several seconds per thousand atoms altered.&lt;br /&gt;
&lt;br /&gt;
'''WARNING''': You should always issue a '''sort''' command on an object&lt;br /&gt;
after modifying any property which might affect canonical atom&lt;br /&gt;
ordering (names, chains, etc.).  Failure to do so will confound&lt;br /&gt;
subsequent &amp;quot;create&amp;quot; and &amp;quot;byres&amp;quot; operations.&lt;br /&gt;
&lt;br /&gt;
===USAGE===&lt;br /&gt;
 alter (selection),expression&lt;br /&gt;
&lt;br /&gt;
===EXAMPLES===&lt;br /&gt;
 alter (chain A),chain='B'&lt;br /&gt;
 alter (all),resi=str(int(resi)+100)&lt;br /&gt;
 sort&lt;br /&gt;
&lt;br /&gt;
===SEE ALSO===&lt;br /&gt;
[[Cmd alter_state]], [[Cmd iterate]], [[Cmd iterate_state]], [[Cmd sort ]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Commands|alter]]&lt;/div&gt;</summary>
		<author><name>Pierre</name></author>
	</entry>
</feed>