<?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=Jlec</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=Jlec"/>
	<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php/Special:Contributions/Jlec"/>
	<updated>2026-04-21T18:33:06Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=APBS&amp;diff=12756</id>
		<title>APBS</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=APBS&amp;diff=12756"/>
		<updated>2014-10-24T12:10:02Z</updated>

		<summary type="html">&lt;p&gt;Jlec: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
[[Image:Rna_surface_apbs.png|thumb|APBS-generated electrostatic surface displayed in PyMOL]]&lt;br /&gt;
[http://www.poissonboltzmann.org/ APBS], the Adaptive Poisson-Boltzmann Solver, is a [http://www.oreilly.com/openbook/freedom/ freely] available macromolecular electrostatics calculation program released under the [http://www.gnu.org/copyleft/gpl.html GPL]. It is a cost-effective but uncompromised alternative to [http://trantor.bioc.columbia.edu/grasp/ GRASP], and it can be used within PyMOL.  PyMOL can display the results of the calculations as an electrostatic potential molecular surface.&lt;br /&gt;
&lt;br /&gt;
== APBS Plugin with New Features ==&lt;br /&gt;
=== Pre-release version ===&lt;br /&gt;
See also [[apbsplugin]] for the version control in the project [[Git_intro | Pymol-script-repo.]]&lt;br /&gt;
&lt;br /&gt;
There is often a more current pre-release version available on my user page. If you're experiencing bugs, please test the pre-release version to see if they've already been fixed. Thanks! --[[User:Mglerner|michael]] 19:43, 29 October 2010 (UTC)&lt;br /&gt;
----&lt;br /&gt;
PyMol currently supports the '''APBS plugin''' written by [http://pymolwiki.org/index.php/User:Mglerner Michael Lerner]. This plugin makes it possible to run APBS from within PyMOL, and then display the results as a color-coded electrostatic surface (units &amp;lt;math&amp;gt;K_bT/e_c&amp;lt;/math&amp;gt;) in the molecular display window (as with the image to the right).  This wiki page has updated instructions on how to download, install and use the plugin.&lt;br /&gt;
&lt;br /&gt;
'''Nucleic acids may prove problematic for the apbs plugin.''' If so, use the [http://pdb2pqr.sourceforge.net/ pdb2pqr] command-line tool to create a pqr file manually, instead of using the plugin to generate it. Then direct the APBS GUI on the [http://www-personal.umich.edu/~mlerner/PyMOL/images/main.png main menu] to read the pqr file you '''externally generated.'''&lt;br /&gt;
&lt;br /&gt;
There is a new version of the PyMOL-APBS plugin and it's now ready for pre-release. There are several big advantages of the new version:&lt;br /&gt;
&lt;br /&gt;
* It's been tested modern OS X, Windows and Linux systems and fixes several long-standing bugs.&lt;br /&gt;
* It allows you to call through to PDB2PQR directly.&lt;br /&gt;
* It allows you to show the electric field lines.&lt;br /&gt;
* It has two visualization panels to aid in showing multiple potential surfaces at once.&lt;br /&gt;
* It defaults to using PDB2PQR for PQR generation and APBS's psize.py for grid sizing/spacing.&lt;br /&gt;
* It has also an increased default maximum allowed memory since typical users have bigger and faster computers these days.&lt;br /&gt;
* It calls on the correct paths and binaries for multi-threaded APBS (apbs-mpi-openmpi).&lt;br /&gt;
&lt;br /&gt;
The main reason it is not included in the latest PyMOL release is to receive bug reports. Once it's shown to be stable, it'll be included in the next PyMOL release. See [http://pymolwiki.org/index.php/User:Mglerner Michael Lerner]'s page.&lt;br /&gt;
&lt;br /&gt;
==== How to get it ====&lt;br /&gt;
&lt;br /&gt;
There are two ways to get the new plugin&lt;br /&gt;
&lt;br /&gt;
* If you have subversion installed, you can always get the latest version via&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
svn co http://pymolapbsplugin.svn.sourceforge.net/viewvc/pymolapbsplugin/trunk/src/apbsplugin.py&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* You can download it from http://pymolapbsplugin.svn.sourceforge.net/viewvc/pymolapbsplugin/trunk/src/apbsplugin.py&lt;br /&gt;
&lt;br /&gt;
That should give you a file called apbsplugin.py&lt;br /&gt;
&lt;br /&gt;
Once you have the plugin, you can install it via PyMOL's plugin installer: Plugin --&amp;gt; Manage Plugins --&amp;gt; Install&lt;br /&gt;
&lt;br /&gt;
You may have to run PyMOL with sudo privileges.&lt;br /&gt;
&lt;br /&gt;
Note that the plugin will be installed as &amp;quot;APBS Tools2.1&amp;quot; so that you can continue to use your old version.&lt;br /&gt;
&lt;br /&gt;
Further details, as well as screen shots, are given [http://www.pymolwiki.org/index.php/MAC_Install#Install_APBS_and_friends_with_fink elsewhere in this wiki].&lt;br /&gt;
&lt;br /&gt;
==Required Dependencies==&lt;br /&gt;
[http://apbs.sourceforge.net APBS] and its dependencies like [http://pdb2pqr.sourceforge.net pdb2pqr] and [http://scicomp.ucsd.edu/~mholst/codes/maloc/ maloc] are [http://www.oreilly.com/openbook/freedom/ freely] available under the [http://www.gnu.org/copyleft/gpl.html GPL].  The author of the software however [http://agave.wustl.edu/apbs/download/ asks that users register] with him to aid him in obtaining grant funding.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
===Installing the Dependencies on OS X===&lt;br /&gt;
#First, [http://agave.wustl.edu/apbs/download/ register] your use of the software.  This will keep everyone happy.&lt;br /&gt;
#Second, if you don't already have the [http://fink.sourceforge.net fink package management system], now is a good time to get it. Here is a [http://xanana.ucsc.edu/~wgscott/xtal/wiki/index.php/Quick_Start quick-start set of instructions] for getting X-windows, compilers, and fink all installed. &lt;br /&gt;
#Once you are up and going, [http://xanana.ucsc.edu/~wgscott/xtal/wiki/index.php/How_to_Activate_the_Unstable_Branch activate the unstable branch in fink], and then issue the commands&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
fink self-update&lt;br /&gt;
fink install apbs&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
or if you want to use the multi-processor version, issue&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
fink self-update&lt;br /&gt;
fink install apbs-mpi-openmpi&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Then install the X-windows based version of pymol using the command&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
fink install pymol-py25&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
It is recommended to install the latest pdb2pqr as well as the APBS plugin makes use of it&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
fink install pdb2pqr&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Note that the fink version of PyMOL as of 1.3-4 does not have the latest version of the APBS plugin. Make sure you get the new version!&lt;br /&gt;
&lt;br /&gt;
===Installing the Dependencies on Linux===&lt;br /&gt;
&lt;br /&gt;
====From Scratch====&lt;br /&gt;
Note that this tutorial assumes you're using the bash shell and have root privileges&lt;br /&gt;
&amp;lt;OL&amp;gt;&amp;lt;LI&amp;gt;&lt;br /&gt;
Obtain APBS and MALOC from...&amp;lt;br&amp;gt;&lt;br /&gt;
APBS = http://apbs.sourceforge.net (currently 0.4)&amp;lt;br&amp;gt;&lt;br /&gt;
MALOC = http://www.fetk.org/codes/maloc/index.html#download (currently 0.1-2)&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;LI&amp;gt;Set up some environment variables &amp;amp; directories (temporary for building)&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
$ export FETK_SRC=/&amp;lt;building directory&amp;gt;/temp_apbs&lt;br /&gt;
$ export FETK_PREFIX=/usr/local/apbs-0.4.0  (or wherever you want it to live)&lt;br /&gt;
$ export FETK_INCLUDE=${FETK_PREFIX}/include&lt;br /&gt;
$ export FETK_LIBRARY=${FETK_PREFIX}/lib&lt;br /&gt;
$ mkdir -p ${FETK_SRC} ${FETK_INCLUDE} ${FETK_LIBRARY}&lt;br /&gt;
&amp;lt;/source&amp;gt;&amp;lt;/LI&amp;gt;&lt;br /&gt;
&amp;lt;LI&amp;gt;Unpack the source packages&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
$ cd ${FETK_SRC}&lt;br /&gt;
$ gzip -dc maloc-0.1-2.tar.gz | tar xvf -&lt;br /&gt;
$ gzip -dc apbs-0.4.0.tar.gz | tar xvf -&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/LI&amp;gt;&lt;br /&gt;
&amp;lt;LI&amp;gt;Compile MALOC&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
$ cd ${FETK_SRC}/maloc&lt;br /&gt;
$ ./configure --prefix=${FETK_PREFIX}&amp;lt;/source&amp;gt;&lt;br /&gt;
If everything went well, then&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
$ make; make install&amp;lt;/source&amp;gt;&amp;lt;/LI&amp;gt;&lt;br /&gt;
&amp;lt;LI&amp;gt;Go get a coffee. Compilation/installation takes about 15 minutes on a 3GHz computer with 1GB of RAM.&amp;lt;/LI&amp;gt;&lt;br /&gt;
&amp;lt;LI&amp;gt;Now on to compiling APBS itself&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
$ cd ${FETK_SRC}/apbs-0.4.0&lt;br /&gt;
$ ./configure --prefix=${FETK_PREFIX}&amp;lt;/source&amp;gt;&lt;br /&gt;
If all goes well:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
$ make all; make install&amp;lt;/source&amp;gt;&amp;lt;/LI&amp;gt;&lt;br /&gt;
&amp;lt;LI&amp;gt;No time for coffee. Takes about 5 minutes on that fast computer.&amp;lt;/LI&amp;gt;&lt;br /&gt;
&amp;lt;LI&amp;gt; There will now be an APBS binary at&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;/usr/local/apbs-0.4.0/bin/i686-intel-linux/apbs&amp;lt;/source&amp;gt;&amp;lt;/LI&amp;gt;&lt;br /&gt;
&amp;lt;LI&amp;gt; Make appropriate links&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
$ ln -s /usr/local/apbs-0.4.0/bin/i686-intel-linux/apbs /usr/local/bin/apbs&lt;br /&gt;
&amp;lt;/source&amp;gt;&amp;lt;/LI&amp;gt;&lt;br /&gt;
&amp;lt;LI&amp;gt; Get rid of /&amp;lt;building directory dir&amp;gt;/temp_apbs&lt;br /&gt;
&amp;lt;LI&amp;gt; Open PyMOL and make sure that the APBS plugin points to /usr/local/bin/apbs&lt;br /&gt;
&amp;lt;LI&amp;gt; Rock and or Roll.&lt;br /&gt;
&amp;lt;/OL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Pre-Packaged====&lt;br /&gt;
=====RPMs=====&lt;br /&gt;
&lt;br /&gt;
A variety of RPMs are available from the [http://sourceforge.net/project/showfiles.php?group_id=148472&amp;amp;package_id=163734&amp;amp;release_id=378273 APBS downloads website].  Again, please [http://agave.wustl.edu/apbs/download/ register] your use of the software if you have not yet done so.&lt;br /&gt;
&lt;br /&gt;
=====Debian packages=====&lt;br /&gt;
&lt;br /&gt;
For ubuntu and other debian linux distributions, probably the simplest thing is to download a promising looking rpm, convert it with the program [http://kitenet.net/programs/alien/ alien], and then install the [http://xanana.ucsc.edu/linux newly generated debian package] with the command&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dpkg -i apbs*.deb&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Gentoo=====&lt;br /&gt;
&lt;br /&gt;
You have to install apbs and pdb2pqr. Both are masked via keywords atm. Type as root:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
echo sci-chemistry/pdb2pqr &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
echo sci-chemistry/apbs &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
emerge -av sci-chemistry/apbs sci-chemistry/pdb2pqr&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
* If the B-factor is &amp;lt;math&amp;gt;\geq 100,&amp;lt;/math&amp;gt; then APBS doesn't properly read in the PDB file and thus outputs garbage (or dies).  To fix this, set all b factors to be less than 100. &amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;alter all, b=min(b,99.9)&amp;lt;/source&amp;gt;  The problem stems from how to parse a PDB file.  The PDB file originally was written when most people used FORTRAN programs, and so the file format was specified by columns, not by the more modern comma separated value format we tend to prefer today.  For the latest on the PDB format see the [http://www.wwpdb.org/docs.html new PDB format docs].&lt;br /&gt;
* APBS has problems, sometimes, in reading atoms with alternate conformations.  You can remove the alternate locations with a simple script [[removeAlt]].&lt;br /&gt;
* ObjectMapLoadDXFile-Error: as of this writing (9-23-2008) a known problem exists, and the Baker lab is working on it. It is typically caused by the use of directories with spaces in their names under Windows.&lt;br /&gt;
&lt;br /&gt;
== Problems with the bundled version of APBS ==&lt;br /&gt;
There is an issue with the freemol version of APBS shipped with PyMOL 1.2r2 for OS X. &lt;br /&gt;
&lt;br /&gt;
=== Leopard and Snow Leopard (10.5 and 10.6) ===&lt;br /&gt;
There are three fairly easy ways to resolve it&lt;br /&gt;
&lt;br /&gt;
1. Download and install the most recent (post Dec. 1 2009) version of APBS from [http://www.poissonboltzmann.org/apbs/downloads]. Then copy the apbs binary into the freemol directory (mv it to /Applications/PyMOLX11Hybrid.app/pymol/freemol/bin/apbs.exe, overwriting the version that comes installed with PyMOL).&lt;br /&gt;
&lt;br /&gt;
2. Download [[File:Libgfortran.3.dylib.bz2]], unzip it (&amp;quot;bunzip2 libgfortran.3.dylib.gz2&amp;quot;) and move it to /usr/local/lib (&amp;quot;mv libgfortran.3.dylib /usr/local/lib&amp;quot; ... on some machines, you may need &amp;quot;sudo mv libgfortran.3.dylib /usr/local/lib&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
bunzip2 libgfortran.3.dylib.gz2&lt;br /&gt;
mv libgfortran.3.dylib /usr/local/lib&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Use macports to install gcc 4.4.2 and link the appropriate library (&amp;quot;ln -s /opt/local/lib/gcc44/libgfortran.3.dylib /usr/local/lib/libgfortran.3.dylib&amp;quot; ... on some machines, you may need &amp;quot;sudo ln -s /opt/local/lib/gcc44/libgfortran.3.dylib /usr/local/lib/libgfortran.3.dylib&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
ln -s /opt/local/lib/gcc44/libgfortran.3.dylib /usr/local/lib/libgfortran.3.dylib&lt;br /&gt;
sudo ln -s /opt/local/lib/gcc44/libgfortran.3.dylib /usr/local/lib/libgfortran.3.dylib&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you're curious, the problem is that APBS is dynamically linked, but Apple does not provide FORTRAN libraries.&lt;br /&gt;
&lt;br /&gt;
The version of libgfortran above is covered by the GNU General Public License (GPL). A copy of the GPL may be found at [http://www.gnu.org/licenses/licenses.html], and the source may be obtained from MacPorts ([http://www.macports.org/]).&lt;br /&gt;
&lt;br /&gt;
=== Tiger (10.4) ===&lt;br /&gt;
You'll need to install APBS yourself via MacPorts or via fink. Fink instructions may be found on the [[APBS]] page. Installation via MacPorts requires first installing MacPorts from [http://www.macports.org/] and then typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo port install apbs&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
from the command line. This process could easily take several hours on an older machine, as MacPorts will recompile gcc, gfortran, and several other packages along the way.&lt;br /&gt;
&lt;br /&gt;
[[Image:Apbs_ex.png|thumb|right|300px|PyMOL visualizing two maps at once]]&lt;br /&gt;
&lt;br /&gt;
==Using APBS==&lt;br /&gt;
There is a nice tutorial on the APBS homepage: [http://www.poissonboltzmann.org/apbs/examples/visualization/apbs-electrostatics-in-pymol] For further help, there is a mailing list [https://lists.sourceforge.net/lists/listinfo/apbs-users] with the corresponding archive [http://sourceforge.net/mailarchive/forum.php?forum_name=apbs-users]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Further contributions and edits are needed.==&lt;br /&gt;
&lt;br /&gt;
[[Category:Electrostatics]]&lt;br /&gt;
[[Category:Biochemical_Properties]]&lt;br /&gt;
[[Category:Plugins]]&lt;/div&gt;</summary>
		<author><name>Jlec</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=FocalBlur&amp;diff=11994</id>
		<title>FocalBlur</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=FocalBlur&amp;diff=11994"/>
		<updated>2014-07-04T06:31:02Z</updated>

		<summary type="html">&lt;p&gt;Jlec: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox script-repo&lt;br /&gt;
|type      = script&lt;br /&gt;
|filename  = focal_blur.py&lt;br /&gt;
|author    = [[User:Jarl.Underhaug|Jarl Underhaug]]&lt;br /&gt;
|license   = -&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[Image:StylizedFocalBlur.png|550px|right]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
&lt;br /&gt;
This script creates fancy figures by introducing a focal blur to the image. The object at the origin will be in focus. &lt;br /&gt;
&lt;br /&gt;
===Usage===&lt;br /&gt;
&lt;br /&gt;
Load the script using the [[run]] command. Execute the script using PyMOL syntax:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
FocalBlur aperture=2.0,samples=20,ray=1&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
or using python syntax:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
FocalBlur(aperture=2.0,samples=20,ray=1)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For additional options, see the script comments.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
&lt;br /&gt;
* When using raytracing, the image creation will take ''n'' times longer than normal, where ''n'' is the number of samples.&lt;br /&gt;
* The aperture is related to the aperture on a camera.&lt;br /&gt;
&lt;br /&gt;
===Bugs===&lt;br /&gt;
&lt;br /&gt;
* FocalBlur uses the Python Image Library (PIL), a necessary components of PIL is missing in the Windows version of PyMOL&lt;br /&gt;
* There is a bug when not using ray tracing with the free version of PyMOL&lt;br /&gt;
&lt;br /&gt;
===Examples===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery perrow=3 widths=300 heights=240&amp;gt;&lt;br /&gt;
Image:FocalBlur_a1.0_r1.png|FocalBlur aperture=1,samples=100,ray=1&lt;br /&gt;
Image:FocalBlur_a2.0_r1.png|FocalBlur aperture=2,samples=100,ray=1&lt;br /&gt;
Image:FocalBlur_a4.0_r1.png|FocalBlur aperture=4,samples=400,ray=1&lt;br /&gt;
Image:FocalBlur_a4.0_r0.png|FocalBlur aperture=4,samples=400,ray=0&lt;br /&gt;
Image:Focal_blur _ex6.png&lt;br /&gt;
Image:Focal blur_ex_ap3.png&lt;br /&gt;
Image:Focal blur_ex_ap3_mode1.png&lt;br /&gt;
Image:Focal blur_ex_ap3_mode2.png&lt;br /&gt;
Image:Focal blur_ex_ap3_mode3.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Script==&lt;br /&gt;
Load the script using the [[run]] command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
from pymol import cmd&lt;br /&gt;
from tempfile import mkdtemp&lt;br /&gt;
from shutil import rmtree&lt;br /&gt;
from math import sin,cos,pi,sqrt&lt;br /&gt;
from PIL import Image&lt;br /&gt;
 &lt;br /&gt;
def FocalBlur(aperture=2.0,samples=10,ray=0,width=0,height=0):&lt;br /&gt;
    '''&lt;br /&gt;
DESCRIPTION&lt;br /&gt;
 &lt;br /&gt;
    Creates fancy figures by introducing a focal blur to the image. The object&lt;br /&gt;
    at the origin will be in focus. &lt;br /&gt;
 &lt;br /&gt;
AUTHOR&lt;br /&gt;
 &lt;br /&gt;
    Jarl Underhaug&lt;br /&gt;
    University of Bergen&lt;br /&gt;
    jarl_dot_underhaug_at_gmail_dot_com&lt;br /&gt;
&lt;br /&gt;
    Updates by Jason Vertrees and Thomas Holder&lt;br /&gt;
 &lt;br /&gt;
USAGE&lt;br /&gt;
 &lt;br /&gt;
    FocalBlur aperture=float, samples=int, ray=0/1, width=int, height=int&lt;br /&gt;
 &lt;br /&gt;
EXAMPELS&lt;br /&gt;
 &lt;br /&gt;
    FocalBlur aperture=1, samples=100&lt;br /&gt;
    FocalBlur aperture=2, samples=100, ray=1, width=600, height=400&lt;br /&gt;
    '''&lt;br /&gt;
&lt;br /&gt;
    # Formalize the parameter types&lt;br /&gt;
    ray = (ray in (&amp;quot;True&amp;quot;, &amp;quot;true&amp;quot;, 1, &amp;quot;1&amp;quot;))&lt;br /&gt;
    aperture, samples = float(aperture), int(samples)&lt;br /&gt;
    width, height = int(width), int(height)&lt;br /&gt;
 &lt;br /&gt;
    # Create a temporary directory&lt;br /&gt;
    tmpdir = mkdtemp()&lt;br /&gt;
&lt;br /&gt;
    # Get the orientation of the protein and the light&lt;br /&gt;
    light = cmd.get('light')[1:-1]&lt;br /&gt;
    light = [float(s) for s in light.split(',')]&lt;br /&gt;
    view = cmd.get_view()&lt;br /&gt;
 &lt;br /&gt;
    # Rotate the protein and the light in order to create the blur&lt;br /&gt;
    for frame in range(samples):&lt;br /&gt;
        # Angles to rotate protein and light&lt;br /&gt;
        # Populate angles as Fermat's spiral&lt;br /&gt;
        theta = frame * pi * 110.0/144.0&lt;br /&gt;
        radius = 0.5 * aperture * sqrt(frame/float(samples-1))&lt;br /&gt;
        x = cos(theta) * radius&lt;br /&gt;
        y = sin(theta) * radius&lt;br /&gt;
        xr = x/180.0*pi&lt;br /&gt;
        yr = y/180.0*pi&lt;br /&gt;
 &lt;br /&gt;
        # Rotate the protein&lt;br /&gt;
        cmd.turn('x',x)&lt;br /&gt;
        cmd.turn('y',y)&lt;br /&gt;
 &lt;br /&gt;
        # Rotate the light&lt;br /&gt;
        ly = light[1]*cos(xr)-light[2]*sin(xr)&lt;br /&gt;
        lz = light[2]*cos(xr)+light[1]*sin(xr)&lt;br /&gt;
        lx = light[0]*cos(yr)+lz*sin(yr)&lt;br /&gt;
        lz = lz*cos(yr)-lx*sin(yr)&lt;br /&gt;
        cmd.set('light',[lx,ly,lz])&lt;br /&gt;
 &lt;br /&gt;
        curFile = &amp;quot;%s/frame-%04d.png&amp;quot; % (tmpdir,frame)&lt;br /&gt;
        print &amp;quot;Created frame %i/%i (%0.0f%%)&amp;quot; % (frame+1,samples,100*(frame+1)/samples)&lt;br /&gt;
&lt;br /&gt;
        # Save the image to temporary directory&lt;br /&gt;
	if ray:&lt;br /&gt;
                cmd.ray(width,height)&lt;br /&gt;
                cmd.png(curFile)&lt;br /&gt;
	else:&lt;br /&gt;
        	cmd.png(curFile,quiet=1)&lt;br /&gt;
        &lt;br /&gt;
        # Create the average/blured image&lt;br /&gt;
        try:&lt;br /&gt;
            avg = Image.blend(avg,Image.open(curFile),1.0/(frame+1))&lt;br /&gt;
        except:&lt;br /&gt;
            avg = Image.open(curFile)&lt;br /&gt;
        &lt;br /&gt;
        # Return the protein and the light to the original orientation&lt;br /&gt;
        cmd.set('light',light)&lt;br /&gt;
        cmd.set_view(view)&lt;br /&gt;
 &lt;br /&gt;
    # Load the blured image&lt;br /&gt;
    avg.save('%s/avg.png' % (tmpdir))&lt;br /&gt;
    cmd.load('%s/avg.png' % (tmpdir))&lt;br /&gt;
 &lt;br /&gt;
    # Delete the temporary files&lt;br /&gt;
    rmtree(tmpdir)&lt;br /&gt;
&lt;br /&gt;
cmd.extend('FocalBlur', FocalBlur)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Script_Library]]&lt;/div&gt;</summary>
		<author><name>Jlec</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Cealign_plugin&amp;diff=13273</id>
		<title>Cealign plugin</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Cealign_plugin&amp;diff=13273"/>
		<updated>2009-05-01T11:59:00Z</updated>

		<summary type="html">&lt;p&gt;Jlec: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
'''Go directly to [[Cealign#Version_0.8-RBS|DOWNLOAD]]'''&lt;br /&gt;
&lt;br /&gt;
This page is the home page of the open-source CEAlign PyMOL plugin.  The CE algorithm is a fast and accurate protein structure alignment algorithm, pioneered by Drs. Shindyalov and Bourne (See &lt;br /&gt;
References).  There are a few changes from the original CE publication (See Notes).  &lt;br /&gt;
&lt;br /&gt;
The source code is implemented in C with the rotations finally done by Numpy in Python.  Because the computationally complex portion of the code is written in C, it's quick.  That is, on my machines --- relatively fast 64-bit machines --- I can align two 400+ amino acid structures in about 0.300 s with the C++ implementation.&lt;br /&gt;
&lt;br /&gt;
This plugs into PyMol very easily.  See [[Cealign#The_Code|the code]] and [[Cealign#Examples|examples]] for installation and usage.&lt;br /&gt;
&lt;br /&gt;
== Comparison to PyMol ==&lt;br /&gt;
'''Why should you use this?'''&lt;br /&gt;
&lt;br /&gt;
PyMOL's structure alignment algorithm is fast and robust.  However, its first step is to perform a sequence alignment of the two selections.  Thus, proteins in the '''twilight zone''' or those having a low sequence identity, may not align well.  Because CE is a structure-based alignment, this is not a problem.  Consider the following example.  The image at LEFT was the result of CE-aligning two proteins (1C0M chain B to 1BCO).  The result is '''152''' aligned (alpha carbons) residues (not atoms) at '''4.96 Angstroms'''.  The image on the RIGHT shows the results from PyMol's align command: an alignment of '''221 atoms''' (not residues) at an RMSD of '''15.7 Angstroms'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Image:cealign_ex1.png|Cealign's results (152 aligned; 4.96 Ang.)&lt;br /&gt;
Image:pymol_align.png|PyMol's results (763 atoms; 18.4 Ang. )&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Fit vs. optAlign ===&lt;br /&gt;
====Take Home messages====&lt;br /&gt;
* [[fit]] and [[optAlign]] perform nearly equally as well&lt;br /&gt;
* if you need an algorithm with an appropriate reference, use [[optAlign]] (references at bottom of page).&lt;br /&gt;
* [[fit]] is faster -- if you're aligning many structures, use it over [[optAlign]]&lt;br /&gt;
&lt;br /&gt;
====Discussion====&lt;br /&gt;
[[optAlign]] is a function within the [[Cealign]] package that performs the optimal superposition of two objects of equal length.  [[optAlign]] follows the Kabsch algorithm which is a closed form, and provably optimal solution to the problem.  [[fit]] on the other hand uses the Jacobi rotations to iteratively arrive at the solution of optimal superposition.  The difference in error between [[optAilgn]] and [[fit]] seems to be a non-issue (see below) as they both arrive at equivalent solutions for the rotation matrix.  The two algorithms are undertake different approaches to orthogonally diagonalizing the correlation matrix.&lt;br /&gt;
&lt;br /&gt;
PyMOL's [[fit]] is fast and works well.  If you have to use something with a known reference then check out the &amp;quot;optAlign&amp;quot; function from the qkabsch.py file that comes with this [[Calign]] package.  If not, you can just use [[fit]] and avoid installing new software.  :-)&lt;br /&gt;
&lt;br /&gt;
optAlign is slower than fit.  I just tested both on a sample NMR ensemble; and, while not an extensive validation of &amp;quot;fit&amp;quot; it shows that (1) fit is faster; and (2) fit gets the same exact RMSD as &amp;quot;optAlign&amp;quot; (when optAlign is told to use all atoms, not just CA).  To make optAlign use all atoms and not just the alpha-carbon backbones, comment out (that is, put a &amp;quot;#&amp;quot; at the start of lines 183 and 184 in qkabsch.py, where it says &amp;quot;CUT HERE&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
fetch 1nmr&lt;br /&gt;
split_states 1nmr&lt;br /&gt;
delete 1nmr&lt;br /&gt;
&lt;br /&gt;
# compare fit and optAlign RMSDs&lt;br /&gt;
for x in cmd.get_names(): print cmd.fit(&amp;quot;1nmr_0001&amp;quot;, x)&lt;br /&gt;
for x in cmd.get_names(): optAlign(x, &amp;quot;1nmr_0001&amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source  lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# results from fit&lt;br /&gt;
0.0&lt;br /&gt;
4.50344991684&lt;br /&gt;
5.33588504791&lt;br /&gt;
5.78613853455&lt;br /&gt;
7.25597000122&lt;br /&gt;
6.67145586014&lt;br /&gt;
3.25131297112&lt;br /&gt;
3.36766290665&lt;br /&gt;
6.74802017212&lt;br /&gt;
5.1579709053&lt;br /&gt;
5.96959495544&lt;br /&gt;
6.68093347549&lt;br /&gt;
4.13217163086&lt;br /&gt;
5.51539039612&lt;br /&gt;
6.24266338348&lt;br /&gt;
6.03838825226&lt;br /&gt;
5.01363992691&lt;br /&gt;
5.33336305618&lt;br /&gt;
6.87617444992&lt;br /&gt;
7.797062397&lt;br /&gt;
&lt;br /&gt;
#results from optAlign&lt;br /&gt;
RMSD=0.000000&lt;br /&gt;
RMSD=4.503450&lt;br /&gt;
RMSD=5.335886&lt;br /&gt;
RMSD=5.786138&lt;br /&gt;
RMSD=7.255970&lt;br /&gt;
RMSD=6.671456&lt;br /&gt;
RMSD=3.251313&lt;br /&gt;
RMSD=3.367663&lt;br /&gt;
RMSD=6.748021&lt;br /&gt;
RMSD=5.157971&lt;br /&gt;
RMSD=5.969595&lt;br /&gt;
RMSD=6.680934&lt;br /&gt;
RMSD=4.132172&lt;br /&gt;
RMSD=5.515390&lt;br /&gt;
RMSD=6.242664&lt;br /&gt;
RMSD=6.038388&lt;br /&gt;
RMSD=5.013640&lt;br /&gt;
RMSD=5.333363&lt;br /&gt;
RMSD=6.876174&lt;br /&gt;
RMSD=7.797062&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
=== Usage ===&lt;br /&gt;
==== Syntax ====&lt;br /&gt;
&lt;br /&gt;
CEAlign has the semantic, and syntactic formalism of&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
cealign MASTER, TARGET&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
where a post-condition of the algorithm is that the coordinates of the '''MASTER''' protein are unchanged.  This allows for easier multi-protein alignments.  For example,&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
cealign 1AUE, 1BZ4&lt;br /&gt;
cealign 1AUE, 1B68&lt;br /&gt;
cealign 1AUE, 1A7V&lt;br /&gt;
cealign 1AUE, 1CPR&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
will superimpose all the TARGETS onto the MASTER.&lt;br /&gt;
&lt;br /&gt;
=====Examples=====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
cealign 1cll and i. 42-55, 1ggz and c. A&lt;br /&gt;
cealign 1kao, 1ctq&lt;br /&gt;
cealign 1fao, 1eaz&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Multiple Structure Alignments=====&lt;br /&gt;
Use the '''alignto''' command, now provided with cealign.  Just type,&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
alignto PROT&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
to align all your proteins in PyMOL to the one called, '''PROT'''.&lt;br /&gt;
&lt;br /&gt;
=== Results ===&lt;br /&gt;
See '''Changes''' for updates.  But, overall, the results here are great.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Image:v7_1fao_1eaz.png|EASY: 1FAO vs. 1EAZ; 96 residues, 1.28 Ang&lt;br /&gt;
Image:v7_1cbs_1hmt.png|EASY: 1CBS vs. 1HMT; 128 residues, 2.01 Ang&lt;br /&gt;
Image:v7_1a15_1b50.png|MODERATE: 1A15 vs 1B50; 56 residues, 2.54 Ang.&lt;br /&gt;
Image:v7_1oan_1s6n.png|EASY: 1OAN vs. 1S6N (state 1); 96 residues aligned to 3.83 Ang. RMSD.&lt;br /&gt;
Image:v7_1rlw_1byn.png|HARD: 1RLW to 1BYN; 104 residues; 2.21 Ang.&lt;br /&gt;
Image:v7_1ten_3hhr.png|HARD: 1TEN vs. 3HHR; 80 residues, 2.91 Ang.&lt;br /&gt;
Image:v7_2sim_1nsb.png|HARD: 2SIM vs. 1NSB; 272 residues, 4.93 Ang.&lt;br /&gt;
Image:v7_1cew_1mol.png|HARD: 1CEW vs. 1MOL; 80 residues, 4.03 Ang.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
===Mac OS X (10.5)===&lt;br /&gt;
[[Image:Cealign mac os x.png|300px|thumb|center|CEAlign running on Mac OS X (10.5)]]&lt;br /&gt;
* Install PyMOL under fink.&lt;br /&gt;
* Install Numpy for fink:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
/sw/bin/fink install scipy-core-py25&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
* Download and install cealign (download instructions below)&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo /sw/bin/python setup.py install&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
* In PyMOL, run the two scripts needed for cealing: &amp;quot;cealign.py&amp;quot; and &amp;quot;qkabsch.py&amp;quot;. These are located in the cealign directory you previously downloaded.&lt;br /&gt;
* Voila!&lt;br /&gt;
* Note that the above python version must match the same version that is used by PyMOL. If you are using the pre-compiled version of MacPyMOL, the above instructions won't work.&lt;br /&gt;
&lt;br /&gt;
===Windows systems===&lt;br /&gt;
This is a quick and dirty method to get it working on Win32 right now, more details coming soon.&lt;br /&gt;
====Requirements====&lt;br /&gt;
* Latest PyMol, installed on your system&lt;br /&gt;
* Numpy for python 2.4 -- quick download of just what's needed: http://users.umassmed.edu/Shivender.Shandilya/pymol/numpy.zip&lt;br /&gt;
* Pre-compiled ccealign.pyd python module: http://users.umassmed.edu/Shivender.Shandilya/pymol/ccealign.zip&lt;br /&gt;
* Modified pymolrc: http://users.umassmed.edu/Shivender.Shandilya/pymol/pymolrc&lt;br /&gt;
* cealign.py and qkabsch.py from the Cealign-0.8-RBS package: download below&lt;br /&gt;
&lt;br /&gt;
====Directions====&lt;br /&gt;
# Unzip the numpy.zip file, which will give you a folder named '''numpy'''&lt;br /&gt;
# Move this entire folder to: C:\Program Files\DeLano Scientific\PyMOL\modules\  (or the corresponding location on your system)&lt;br /&gt;
# Unzip ccealign.zip, which will give you a file called  '''ccealign.pyd'''&lt;br /&gt;
# Move this pyd file to: C:\Program Files\DeLano Scientific\PyMOL\py24\DLLs\  (or the corresponding location on your system)&lt;br /&gt;
# Copy the downloaded '''pymolrc''' file to: C:\Program Files\DeLano Scientific\PyMOL\   (or the corresponding location on your system)&lt;br /&gt;
# Extract and copy the files cealign.py and qkabsch.py from the Cealign-0.8-RBS package to: C:\Program Files\DeLano Scientific\PyMOL\py24\Lib\   (or the corresponding location on your system)&lt;br /&gt;
# Run PyMol and load some molecules&lt;br /&gt;
# Run this command in Pymol: '''cealign molecule1, molecule2'''&lt;br /&gt;
# Enjoy!&lt;br /&gt;
&lt;br /&gt;
===Gentoo Linux===&lt;br /&gt;
Add the science overlay via&lt;br /&gt;
 layman -a sci&lt;br /&gt;
and emerge the cealign plugin&lt;br /&gt;
 emerge pymol-plugins-cealign&lt;br /&gt;
&lt;br /&gt;
===*nix systems===&lt;br /&gt;
====Requirements====&lt;br /&gt;
* C compiler&lt;br /&gt;
* Python 2.4+ with distutils&lt;br /&gt;
* Numpy&lt;br /&gt;
** for User-compiled PyMOL: &amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;python setup.py install&amp;lt;/source&amp;gt;&lt;br /&gt;
** for the precompiled version of PyMOL &amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;python setup.py install --prefix &amp;quot;&amp;quot; --root /DIR_TO/pymol/ext/&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Directions====&lt;br /&gt;
# uncompress the distribution file '''cealign-VERSION.tgz'''&lt;br /&gt;
# cd cealign-VERSION&lt;br /&gt;
# sudo python setup.py install  # if you installed by PyMOL by hand&lt;br /&gt;
## python setup.py install --prefix &amp;quot;&amp;quot; --root /DIR/TO/pymol/ext/  # if you are using the precompiled binary download&lt;br /&gt;
# insert &amp;quot;run DIR_TO_CEALIGN/cealign.py&amp;quot; and &amp;quot;run DIR_TO_CEALIGN/qkabsch.py&amp;quot; into your '''.pymolrc''' file, or just run the two Python scripts by hand.&lt;br /&gt;
# load some molecules&lt;br /&gt;
# run, '''cealign molecule1, molecule2'''&lt;br /&gt;
# enjoy&lt;br /&gt;
&lt;br /&gt;
=====Pre-compiled Hackish Install=====&lt;br /&gt;
For those people that prefer to use the pre-compiled version of PyMOL, here are the basics for your install.  '''This is a poor method of installing Cealign.  I suggest users compile and install their own PyMOL.'''  The final goal is to get &lt;br /&gt;
# '''ccealign.so''' module into '''PYMOL/ext/lib/python2.4/site-packages'''&lt;br /&gt;
# numpy installed (get the numpy directory into (or linked into) '''PYMOL/ext/lib/python2.4/site-packages'''&lt;br /&gt;
# and be able to run cealign.py and qkabsch.py from PyMOL.&lt;br /&gt;
If you can do the above three steps, '''cealign''' should run from the pre-compiled PyMOL.&lt;br /&gt;
&lt;br /&gt;
In more detail, on a completely fictitious machine --- that is, I created the following commands from a fake machine and I don't expect a copy/paste of this to work '''anywhere''', but the commands should be helpful enough to those who need it:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
# NOTES:&lt;br /&gt;
# This is fake code: don't copy/paste it.&lt;br /&gt;
#&lt;br /&gt;
# PYMOL='dir to precompiled PyMOL install'&lt;br /&gt;
# CEALIGN='dir where you will unpack cealign'&lt;br /&gt;
# replace lib with lib64 for x86-64&lt;br /&gt;
# install numpy&lt;br /&gt;
apt-get install numpy&lt;br /&gt;
&lt;br /&gt;
# link numpy to PyMOL&lt;br /&gt;
ln -s /usr/local/lib/python2.4/site-packages/numpy PYMOL/ext/lib/python2.4/site-packages&lt;br /&gt;
&lt;br /&gt;
# download and install Cealign&lt;br /&gt;
wget http://www.pymolwiki.org/images/e/ed/Cealign-0.6.tar.bz2&lt;br /&gt;
tar -jxvf Cealign-0.6.tar.bz2&lt;br /&gt;
cd cealign-0.6&lt;br /&gt;
sudo python setup.py build&lt;br /&gt;
cp build/lib-XYZ-linux/ccealign.so PYMOL/ext/lib/python2.4/site-packages&lt;br /&gt;
&lt;br /&gt;
# run pymol and try it out&lt;br /&gt;
pymol&lt;br /&gt;
run CEALIGN/cealign.py&lt;br /&gt;
run CEALIGN/qkabsch.py&lt;br /&gt;
fetch 1cew 1mol, async=0&lt;br /&gt;
cealign 1c, 1m&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== The Code ==&lt;br /&gt;
Please unpack and read the documentation.  All comments/questions should be directed to Jason Vertrees (javertre _at_ utmb ...dot... edu).  &lt;br /&gt;
&lt;br /&gt;
'''LATEST IS v0.8-RBS'''.  (Dedicated to Bryan Sutton for allowing me to use his computer for testing.)&lt;br /&gt;
&lt;br /&gt;
=== Version 0.8-RBS ===&lt;br /&gt;
* '''Download: [[Media:Cealign-0.8-RBS.tar.bz2|CE Align v0.8-RBS]] (bz2)'''&lt;br /&gt;
* '''Download: [[Media:Cealign-0.8-RBS.zip|CE Align v0.8-RBS]] (zip)'''&lt;br /&gt;
&lt;br /&gt;
=== Beta Version 0.9 ===&lt;br /&gt;
Use at your own peril.  Please report any problems or inconsistent alignments to this discussion page, or to me directly; my email address all over this page.&lt;br /&gt;
&lt;br /&gt;
'''Improvements/Changes''':&lt;br /&gt;
* All C++&lt;br /&gt;
** So, faster&lt;br /&gt;
** comes with the dependencies built in&lt;br /&gt;
* No numpy&lt;br /&gt;
&lt;br /&gt;
''' Download: [[Media:Cealign-0.9.zip|CE Align v0.9]] (zip)'''&lt;br /&gt;
&lt;br /&gt;
== Coming Soon ==&lt;br /&gt;
* Windows binary&lt;br /&gt;
* Linux Binaries (32bit, x86-64)&lt;br /&gt;
* Better instructions for precompiled distributions&lt;br /&gt;
* Optimization&lt;br /&gt;
&lt;br /&gt;
== Updates ==&lt;br /&gt;
&lt;br /&gt;
=== 2008-03-25 ===&lt;br /&gt;
Pure C++ code released.  See the beta version above.&lt;br /&gt;
&lt;br /&gt;
=== 2007-04-14 ===&lt;br /&gt;
v0.8-RBS source updated.  Found the bug that had been plaguing 32-bit machines.  This should be the last release for a little while.&lt;br /&gt;
&lt;br /&gt;
Also, I provide the option of aligning based solely upon RMSD or upon the better CE-Score.  See the '''References''' for information on the '''CE Score'''.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
Post your problems/solutions here.&lt;br /&gt;
&lt;br /&gt;
=== Unicode Issues in Python/Numpy ===&lt;br /&gt;
'''Problem''': Running/Installing cealign gives&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
Traceback (most recent call last):&lt;br /&gt;
  File &amp;quot;/home/byron/software/pymol_1.00b17/pymol/modules/pymol/parser.py&amp;quot;,&lt;br /&gt;
line 308, in parse&lt;br /&gt;
  File &amp;quot;/home/byron/software/pymol_1.00b17/pymol/modules/pymol/parsing.py&amp;quot;,&lt;br /&gt;
line 410, in run_file&lt;br /&gt;
  File &amp;quot;qkabsch.py&amp;quot;, line 86, in ?&lt;br /&gt;
    import numpy&lt;br /&gt;
  File &amp;quot;/usr/lib/python2.4/site-packages/numpy/__init__.py&amp;quot;, line 36, in ?&lt;br /&gt;
    import core&lt;br /&gt;
  File &amp;quot;/usr/lib/python2.4/site-packages/numpy/core/__init__.py&amp;quot;, line 5, in ?&lt;br /&gt;
    import multiarray&lt;br /&gt;
ImportError: /home/byron/software/pymol/ext/lib/python2.4/site-packages/numpy/core/multiarray.so:&lt;br /&gt;
undefined symbol: _PyUnicodeUCS4_IsWhitespace&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
where the important line is&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
undefined symbol: _PyUnicodeUCS4_IsWhitespace&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This problem indicates that your Numpy Unicode is using a different byte-size for unicode characters than is the Python distribution your PyMOL is running from.  For example, this can happen if you use the pre-built PyMOL and some other pre-built Numpy package.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Solution''': Hand-install Numpy.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LinAlg Module Not Found ===&lt;br /&gt;
'''Problem''': Running CE Align gives the following error message:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
run qkabsch.py&lt;br /&gt;
Traceback (most recent call last):&lt;br /&gt;
File &amp;quot;/usr/lib/python2.4/site-packages/pymol/parser.py&amp;quot;, line 285, in parse&lt;br /&gt;
parsing.run_file(exp_path(args[nest][0]),pymol_names,pymol_names)&lt;br /&gt;
File &amp;quot;/usr/lib/python2.4/site-packages/pymol/parsing.py&amp;quot;, line 407, in run_file&lt;br /&gt;
execfile(file,global_ns,local_ns)&lt;br /&gt;
File &amp;quot;qkabsch.py&amp;quot;, line 86, in ?&lt;br /&gt;
import numpy&lt;br /&gt;
File &amp;quot;/usr/lib/python2.4/site-packages/numpy/__init__.py&amp;quot;, line 40, in ?&lt;br /&gt;
import linalg&lt;br /&gt;
ImportError: No module named linalg&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Solution''': You do not have the linear algebra module installed (or Python can't find it) on your machine.  One workaround is to install [http://www.scipy.org/ Scientific Python]. (on debian/ubuntu this can be done by: sudo apt-get install python-scipy) Another is to reinstall the Numpy package from source, ensuring that you have the necessary requirements for the linear algebra module (linpack, lapack, fft, etc.).&lt;br /&gt;
&lt;br /&gt;
=== CCEAlign &amp;amp; NumPy Modules Not Found ===&lt;br /&gt;
'''Problem''': Running CE Align gives the following error message:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
PyMOL&amp;gt;run cealign.py&lt;br /&gt;
Traceback (most recent call last):&lt;br /&gt;
  File &amp;quot;/home/local/warren/MacPyMOL060530/build/Deployment/MacPyMOL.app/pymol/modules/pymol/parser.py&amp;quot;, line 297, in parse&lt;br /&gt;
  File &amp;quot;/home/local/warren/MacPyMOL060530/build/Deployment/MacPyMOL.app/pymol/modules/pymol/parsing.py&amp;quot;, line 408, in run_file&lt;br /&gt;
  File &amp;quot;/usr/local/pymol/scripts/cealign-0.1/cealign.py&amp;quot;, line 59, in ?&lt;br /&gt;
    from ccealign import ccealign&lt;br /&gt;
ImportError: No module named ccealign&lt;br /&gt;
run qkabsch.py&lt;br /&gt;
Traceback (most recent call last):&lt;br /&gt;
File &amp;quot;/home/local/warren/MacPyMOL060530/build/Deployment/MacPyMOL.app/pymol/modules/pymol/parser.py&amp;quot;, line 297, in parse&lt;br /&gt;
File &amp;quot;/home/local/warren/MacPyMOL060530/build/Deployment/MacPyMOL.app/pymol/modules/pymol/parsing.py&amp;quot;, line 408, in run_file&lt;br /&gt;
File &amp;quot;qkabsch.py&amp;quot;, line 86, in ?&lt;br /&gt;
import numpy&lt;br /&gt;
ImportError: No module named numpy&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Solution''': This problem occurs under [http://www.apple.com/macosx Apple Mac OS X] if (a) the Apple's python executable on your machine (/usr/bin/python, currently version 2.3.5) is superseded by [http://fink.sourceforge.net/ Fink]'s python executable (/sw/bin/python, currently version 2.5) and (b) you are using [http://delsci.com/rel/099/#MacOSX precompiled versions of PyMOL] (MacPyMOL, PyMOLX11Hybrid or PyMOL for Mac OS X/X11). These executables ignore Fink's python and instead use Apple's - so, in order to run CE Align, one must install NumPy (as well as CE Align itself) using Apple's python. To do so, first download the [http://sourceforge.net/project/showfiles.php?group_id=1369&amp;amp;package_id=175103 Numpy source code archive] (currently version 1.0.1), unpack it, change directory to numpy-1.0.1 and specify the full path to Apple's python executable during installation: &amp;lt;tt&amp;gt;sudo /usr/bin/python setup.py install | tee install.log&amp;lt;/tt&amp;gt;. Then, donwload the [http://www.pymolwiki.org/index.php/Cealign#The_Code CE Align source code archive] (currently version 0.2), unpack it, change directory to cealign-0.2 and finally install CE Align as follows: &amp;lt;tt&amp;gt;sudo /usr/bin/python setup.py install | tee install.log&amp;lt;/tt&amp;gt;.&lt;br /&gt;
[[User:Lucajovine|Luca Jovine]] 05:11, 25 January 2007 (CST).&lt;br /&gt;
&lt;br /&gt;
=== The Function SimpAlign() is not found ===&lt;br /&gt;
'''Problem''': Running CE Align gives the following error message:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
PyMOL&amp;gt;cealign 1CLL,1GGZ&lt;br /&gt;
Traceback (most recent call last):&lt;br /&gt;
  File &amp;quot;C:\Program Files (x86)\DeLano Scientific\PyMOL/modules\pymol\parser.py&amp;quot;, line 203, in parse&lt;br /&gt;
    result=apply(kw[nest][0],args[nest],kw_args[nest])&lt;br /&gt;
  File &amp;quot;py24/Lib/cealign.py&amp;quot;, line 177, in cealign&lt;br /&gt;
    curScore = simpAlign( matA, matB, mol1, mol2, stored.mol1, stored.mol2, align=0, L=len(matA) )&lt;br /&gt;
NameError: global name 'simpAlign' is not defined&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
I am running PyMOL v. 0.99rc6 on Win XP Professional x64 edition version 2003 sp2 and have followed the windows install procedure as described above.&lt;br /&gt;
&lt;br /&gt;
'''Answer''': This simply means that PyMOL couldn't find the simplAlign function.  To let PyMOL know about this, you must run the following commands before running [[cealign]]:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
run /your/path/to/cealign/qkabsch.py&lt;br /&gt;
run /your/path/to/cealign/cealign.py&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
but most people that use cealign would just put these two lines in their '''.pymolrc''' file.&lt;br /&gt;
&lt;br /&gt;
=== Short Alignments Don't Work ===&lt;br /&gt;
If you are trying to align fewer than 16 residues then use [[align]], [[super]], or [[optAlign]].  CE uses a window size of 8; and to build a path of more than one window, you need 2*8=16 residues.  I will insert some code to re-route small alignments to one of the aforementioned alignment algorithms.&lt;br /&gt;
&lt;br /&gt;
=== It Worked A Second Ago! ===&lt;br /&gt;
[[Image:Rewind.png|thumb|right|Showing the rewind button to rewind to state 1.]]&lt;br /&gt;
&lt;br /&gt;
If you were using cealign (or alignto) and now the commands don't work -- that is, they return an RMSD, but don't actually superimpose the objects, then you have a simple problem dealing with states.  Most likely the cause of this oddness was (1) when you issued &amp;quot;cealign prot1, prot2&amp;quot; one of them was actually an ensemble of states or (2) you are trying to align to proteins with only one state, but are not looking at state one (because the last protein you were considering had more than one state and you quit editing that protein on a state that's not state 1).  To fix this, use the rewind button to get the proteins back into state 1 &amp;amp; reissue the cealign/alignto command.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
Text taken from PubMed and formatted for the wiki.  The first reference is the most important for this code.&lt;br /&gt;
&lt;br /&gt;
#  Shindyalov IN, Bourne PE. '''Protein structure alignment by incremental combinatorial extension (CE) of the optimal path.'''  ''Protein Eng.'' 1998 Sep;11(9):739-47.  PMID: 9796821 [PubMed - indexed for MEDLINE]&lt;br /&gt;
# Jia Y, Dewey TG, Shindyalov IN, Bourne PE. '''A new scoring function and associated statistical significance for structure alignment by CE.'''  ''J Comput Biol.'' 2004;11(5):787-99. PMID: 15700402 [PubMed - indexed for MEDLINE]&lt;br /&gt;
#  Pekurovsky D, Shindyalov IN, Bourne PE. '''A case study of high-throughput biological data processing on parallel platforms.'''  ''Bioinformatics.'' 2004 Aug 12;20(12):1940-7. Epub 2004 Mar 25.  PMID: 15044237 [PubMed - indexed for MEDLINE]&lt;br /&gt;
#  Shindyalov IN, Bourne PE. '''An alternative view of protein fold space.'''  ''Proteins.'' 2000 Feb 15;38(3):247-60.  PMID: 10713986 [PubMed - indexed for MEDLINE]&lt;br /&gt;
&lt;br /&gt;
== License ==&lt;br /&gt;
The CEAlign and all its subprograms that I wrote, are released under the open source Free BSD License (BSDL).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Script_Library]]&lt;br /&gt;
[[Category:Structure_Alignment|Cealign]]&lt;/div&gt;</summary>
		<author><name>Jlec</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Cealign&amp;diff=2965</id>
		<title>Cealign</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Cealign&amp;diff=2965"/>
		<updated>2009-05-01T11:59:00Z</updated>

		<summary type="html">&lt;p&gt;Jlec: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
'''Go directly to [[Cealign#Version_0.8-RBS|DOWNLOAD]]'''&lt;br /&gt;
&lt;br /&gt;
This page is the home page of the open-source CEAlign PyMOL plugin.  The CE algorithm is a fast and accurate protein structure alignment algorithm, pioneered by Drs. Shindyalov and Bourne (See &lt;br /&gt;
References).  There are a few changes from the original CE publication (See Notes).  &lt;br /&gt;
&lt;br /&gt;
The source code is implemented in C with the rotations finally done by Numpy in Python.  Because the computationally complex portion of the code is written in C, it's quick.  That is, on my machines --- relatively fast 64-bit machines --- I can align two 400+ amino acid structures in about 0.300 s with the C++ implementation.&lt;br /&gt;
&lt;br /&gt;
This plugs into PyMol very easily.  See [[Cealign#The_Code|the code]] and [[Cealign#Examples|examples]] for installation and usage.&lt;br /&gt;
&lt;br /&gt;
== Comparison to PyMol ==&lt;br /&gt;
'''Why should you use this?'''&lt;br /&gt;
&lt;br /&gt;
PyMOL's structure alignment algorithm is fast and robust.  However, its first step is to perform a sequence alignment of the two selections.  Thus, proteins in the '''twilight zone''' or those having a low sequence identity, may not align well.  Because CE is a structure-based alignment, this is not a problem.  Consider the following example.  The image at LEFT was the result of CE-aligning two proteins (1C0M chain B to 1BCO).  The result is '''152''' aligned (alpha carbons) residues (not atoms) at '''4.96 Angstroms'''.  The image on the RIGHT shows the results from PyMol's align command: an alignment of '''221 atoms''' (not residues) at an RMSD of '''15.7 Angstroms'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Image:cealign_ex1.png|Cealign's results (152 aligned; 4.96 Ang.)&lt;br /&gt;
Image:pymol_align.png|PyMol's results (763 atoms; 18.4 Ang. )&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Fit vs. optAlign ===&lt;br /&gt;
====Take Home messages====&lt;br /&gt;
* [[fit]] and [[optAlign]] perform nearly equally as well&lt;br /&gt;
* if you need an algorithm with an appropriate reference, use [[optAlign]] (references at bottom of page).&lt;br /&gt;
* [[fit]] is faster -- if you're aligning many structures, use it over [[optAlign]]&lt;br /&gt;
&lt;br /&gt;
====Discussion====&lt;br /&gt;
[[optAlign]] is a function within the [[Cealign]] package that performs the optimal superposition of two objects of equal length.  [[optAlign]] follows the Kabsch algorithm which is a closed form, and provably optimal solution to the problem.  [[fit]] on the other hand uses the Jacobi rotations to iteratively arrive at the solution of optimal superposition.  The difference in error between [[optAilgn]] and [[fit]] seems to be a non-issue (see below) as they both arrive at equivalent solutions for the rotation matrix.  The two algorithms are undertake different approaches to orthogonally diagonalizing the correlation matrix.&lt;br /&gt;
&lt;br /&gt;
PyMOL's [[fit]] is fast and works well.  If you have to use something with a known reference then check out the &amp;quot;optAlign&amp;quot; function from the qkabsch.py file that comes with this [[Calign]] package.  If not, you can just use [[fit]] and avoid installing new software.  :-)&lt;br /&gt;
&lt;br /&gt;
optAlign is slower than fit.  I just tested both on a sample NMR ensemble; and, while not an extensive validation of &amp;quot;fit&amp;quot; it shows that (1) fit is faster; and (2) fit gets the same exact RMSD as &amp;quot;optAlign&amp;quot; (when optAlign is told to use all atoms, not just CA).  To make optAlign use all atoms and not just the alpha-carbon backbones, comment out (that is, put a &amp;quot;#&amp;quot; at the start of lines 183 and 184 in qkabsch.py, where it says &amp;quot;CUT HERE&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
fetch 1nmr&lt;br /&gt;
split_states 1nmr&lt;br /&gt;
delete 1nmr&lt;br /&gt;
&lt;br /&gt;
# compare fit and optAlign RMSDs&lt;br /&gt;
for x in cmd.get_names(): print cmd.fit(&amp;quot;1nmr_0001&amp;quot;, x)&lt;br /&gt;
for x in cmd.get_names(): optAlign(x, &amp;quot;1nmr_0001&amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source  lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# results from fit&lt;br /&gt;
0.0&lt;br /&gt;
4.50344991684&lt;br /&gt;
5.33588504791&lt;br /&gt;
5.78613853455&lt;br /&gt;
7.25597000122&lt;br /&gt;
6.67145586014&lt;br /&gt;
3.25131297112&lt;br /&gt;
3.36766290665&lt;br /&gt;
6.74802017212&lt;br /&gt;
5.1579709053&lt;br /&gt;
5.96959495544&lt;br /&gt;
6.68093347549&lt;br /&gt;
4.13217163086&lt;br /&gt;
5.51539039612&lt;br /&gt;
6.24266338348&lt;br /&gt;
6.03838825226&lt;br /&gt;
5.01363992691&lt;br /&gt;
5.33336305618&lt;br /&gt;
6.87617444992&lt;br /&gt;
7.797062397&lt;br /&gt;
&lt;br /&gt;
#results from optAlign&lt;br /&gt;
RMSD=0.000000&lt;br /&gt;
RMSD=4.503450&lt;br /&gt;
RMSD=5.335886&lt;br /&gt;
RMSD=5.786138&lt;br /&gt;
RMSD=7.255970&lt;br /&gt;
RMSD=6.671456&lt;br /&gt;
RMSD=3.251313&lt;br /&gt;
RMSD=3.367663&lt;br /&gt;
RMSD=6.748021&lt;br /&gt;
RMSD=5.157971&lt;br /&gt;
RMSD=5.969595&lt;br /&gt;
RMSD=6.680934&lt;br /&gt;
RMSD=4.132172&lt;br /&gt;
RMSD=5.515390&lt;br /&gt;
RMSD=6.242664&lt;br /&gt;
RMSD=6.038388&lt;br /&gt;
RMSD=5.013640&lt;br /&gt;
RMSD=5.333363&lt;br /&gt;
RMSD=6.876174&lt;br /&gt;
RMSD=7.797062&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
=== Usage ===&lt;br /&gt;
==== Syntax ====&lt;br /&gt;
&lt;br /&gt;
CEAlign has the semantic, and syntactic formalism of&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
cealign MASTER, TARGET&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
where a post-condition of the algorithm is that the coordinates of the '''MASTER''' protein are unchanged.  This allows for easier multi-protein alignments.  For example,&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
cealign 1AUE, 1BZ4&lt;br /&gt;
cealign 1AUE, 1B68&lt;br /&gt;
cealign 1AUE, 1A7V&lt;br /&gt;
cealign 1AUE, 1CPR&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
will superimpose all the TARGETS onto the MASTER.&lt;br /&gt;
&lt;br /&gt;
=====Examples=====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
cealign 1cll and i. 42-55, 1ggz and c. A&lt;br /&gt;
cealign 1kao, 1ctq&lt;br /&gt;
cealign 1fao, 1eaz&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Multiple Structure Alignments=====&lt;br /&gt;
Use the '''alignto''' command, now provided with cealign.  Just type,&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
alignto PROT&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
to align all your proteins in PyMOL to the one called, '''PROT'''.&lt;br /&gt;
&lt;br /&gt;
=== Results ===&lt;br /&gt;
See '''Changes''' for updates.  But, overall, the results here are great.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Image:v7_1fao_1eaz.png|EASY: 1FAO vs. 1EAZ; 96 residues, 1.28 Ang&lt;br /&gt;
Image:v7_1cbs_1hmt.png|EASY: 1CBS vs. 1HMT; 128 residues, 2.01 Ang&lt;br /&gt;
Image:v7_1a15_1b50.png|MODERATE: 1A15 vs 1B50; 56 residues, 2.54 Ang.&lt;br /&gt;
Image:v7_1oan_1s6n.png|EASY: 1OAN vs. 1S6N (state 1); 96 residues aligned to 3.83 Ang. RMSD.&lt;br /&gt;
Image:v7_1rlw_1byn.png|HARD: 1RLW to 1BYN; 104 residues; 2.21 Ang.&lt;br /&gt;
Image:v7_1ten_3hhr.png|HARD: 1TEN vs. 3HHR; 80 residues, 2.91 Ang.&lt;br /&gt;
Image:v7_2sim_1nsb.png|HARD: 2SIM vs. 1NSB; 272 residues, 4.93 Ang.&lt;br /&gt;
Image:v7_1cew_1mol.png|HARD: 1CEW vs. 1MOL; 80 residues, 4.03 Ang.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
===Mac OS X (10.5)===&lt;br /&gt;
[[Image:Cealign mac os x.png|300px|thumb|center|CEAlign running on Mac OS X (10.5)]]&lt;br /&gt;
* Install PyMOL under fink.&lt;br /&gt;
* Install Numpy for fink:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
/sw/bin/fink install scipy-core-py25&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
* Download and install cealign (download instructions below)&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo /sw/bin/python setup.py install&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
* In PyMOL, run the two scripts needed for cealing: &amp;quot;cealign.py&amp;quot; and &amp;quot;qkabsch.py&amp;quot;. These are located in the cealign directory you previously downloaded.&lt;br /&gt;
* Voila!&lt;br /&gt;
* Note that the above python version must match the same version that is used by PyMOL. If you are using the pre-compiled version of MacPyMOL, the above instructions won't work.&lt;br /&gt;
&lt;br /&gt;
===Windows systems===&lt;br /&gt;
This is a quick and dirty method to get it working on Win32 right now, more details coming soon.&lt;br /&gt;
====Requirements====&lt;br /&gt;
* Latest PyMol, installed on your system&lt;br /&gt;
* Numpy for python 2.4 -- quick download of just what's needed: http://users.umassmed.edu/Shivender.Shandilya/pymol/numpy.zip&lt;br /&gt;
* Pre-compiled ccealign.pyd python module: http://users.umassmed.edu/Shivender.Shandilya/pymol/ccealign.zip&lt;br /&gt;
* Modified pymolrc: http://users.umassmed.edu/Shivender.Shandilya/pymol/pymolrc&lt;br /&gt;
* cealign.py and qkabsch.py from the Cealign-0.8-RBS package: download below&lt;br /&gt;
&lt;br /&gt;
====Directions====&lt;br /&gt;
# Unzip the numpy.zip file, which will give you a folder named '''numpy'''&lt;br /&gt;
# Move this entire folder to: C:\Program Files\DeLano Scientific\PyMOL\modules\  (or the corresponding location on your system)&lt;br /&gt;
# Unzip ccealign.zip, which will give you a file called  '''ccealign.pyd'''&lt;br /&gt;
# Move this pyd file to: C:\Program Files\DeLano Scientific\PyMOL\py24\DLLs\  (or the corresponding location on your system)&lt;br /&gt;
# Copy the downloaded '''pymolrc''' file to: C:\Program Files\DeLano Scientific\PyMOL\   (or the corresponding location on your system)&lt;br /&gt;
# Extract and copy the files cealign.py and qkabsch.py from the Cealign-0.8-RBS package to: C:\Program Files\DeLano Scientific\PyMOL\py24\Lib\   (or the corresponding location on your system)&lt;br /&gt;
# Run PyMol and load some molecules&lt;br /&gt;
# Run this command in Pymol: '''cealign molecule1, molecule2'''&lt;br /&gt;
# Enjoy!&lt;br /&gt;
&lt;br /&gt;
===Gentoo Linux===&lt;br /&gt;
Add the science overlay via&lt;br /&gt;
 layman -a sci&lt;br /&gt;
and emerge the cealign plugin&lt;br /&gt;
 emerge pymol-plugins-cealign&lt;br /&gt;
&lt;br /&gt;
===*nix systems===&lt;br /&gt;
====Requirements====&lt;br /&gt;
* C compiler&lt;br /&gt;
* Python 2.4+ with distutils&lt;br /&gt;
* Numpy&lt;br /&gt;
** for User-compiled PyMOL: &amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;python setup.py install&amp;lt;/source&amp;gt;&lt;br /&gt;
** for the precompiled version of PyMOL &amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;python setup.py install --prefix &amp;quot;&amp;quot; --root /DIR_TO/pymol/ext/&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Directions====&lt;br /&gt;
# uncompress the distribution file '''cealign-VERSION.tgz'''&lt;br /&gt;
# cd cealign-VERSION&lt;br /&gt;
# sudo python setup.py install  # if you installed by PyMOL by hand&lt;br /&gt;
## python setup.py install --prefix &amp;quot;&amp;quot; --root /DIR/TO/pymol/ext/  # if you are using the precompiled binary download&lt;br /&gt;
# insert &amp;quot;run DIR_TO_CEALIGN/cealign.py&amp;quot; and &amp;quot;run DIR_TO_CEALIGN/qkabsch.py&amp;quot; into your '''.pymolrc''' file, or just run the two Python scripts by hand.&lt;br /&gt;
# load some molecules&lt;br /&gt;
# run, '''cealign molecule1, molecule2'''&lt;br /&gt;
# enjoy&lt;br /&gt;
&lt;br /&gt;
=====Pre-compiled Hackish Install=====&lt;br /&gt;
For those people that prefer to use the pre-compiled version of PyMOL, here are the basics for your install.  '''This is a poor method of installing Cealign.  I suggest users compile and install their own PyMOL.'''  The final goal is to get &lt;br /&gt;
# '''ccealign.so''' module into '''PYMOL/ext/lib/python2.4/site-packages'''&lt;br /&gt;
# numpy installed (get the numpy directory into (or linked into) '''PYMOL/ext/lib/python2.4/site-packages'''&lt;br /&gt;
# and be able to run cealign.py and qkabsch.py from PyMOL.&lt;br /&gt;
If you can do the above three steps, '''cealign''' should run from the pre-compiled PyMOL.&lt;br /&gt;
&lt;br /&gt;
In more detail, on a completely fictitious machine --- that is, I created the following commands from a fake machine and I don't expect a copy/paste of this to work '''anywhere''', but the commands should be helpful enough to those who need it:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
# NOTES:&lt;br /&gt;
# This is fake code: don't copy/paste it.&lt;br /&gt;
#&lt;br /&gt;
# PYMOL='dir to precompiled PyMOL install'&lt;br /&gt;
# CEALIGN='dir where you will unpack cealign'&lt;br /&gt;
# replace lib with lib64 for x86-64&lt;br /&gt;
# install numpy&lt;br /&gt;
apt-get install numpy&lt;br /&gt;
&lt;br /&gt;
# link numpy to PyMOL&lt;br /&gt;
ln -s /usr/local/lib/python2.4/site-packages/numpy PYMOL/ext/lib/python2.4/site-packages&lt;br /&gt;
&lt;br /&gt;
# download and install Cealign&lt;br /&gt;
wget http://www.pymolwiki.org/images/e/ed/Cealign-0.6.tar.bz2&lt;br /&gt;
tar -jxvf Cealign-0.6.tar.bz2&lt;br /&gt;
cd cealign-0.6&lt;br /&gt;
sudo python setup.py build&lt;br /&gt;
cp build/lib-XYZ-linux/ccealign.so PYMOL/ext/lib/python2.4/site-packages&lt;br /&gt;
&lt;br /&gt;
# run pymol and try it out&lt;br /&gt;
pymol&lt;br /&gt;
run CEALIGN/cealign.py&lt;br /&gt;
run CEALIGN/qkabsch.py&lt;br /&gt;
fetch 1cew 1mol, async=0&lt;br /&gt;
cealign 1c, 1m&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== The Code ==&lt;br /&gt;
Please unpack and read the documentation.  All comments/questions should be directed to Jason Vertrees (javertre _at_ utmb ...dot... edu).  &lt;br /&gt;
&lt;br /&gt;
'''LATEST IS v0.8-RBS'''.  (Dedicated to Bryan Sutton for allowing me to use his computer for testing.)&lt;br /&gt;
&lt;br /&gt;
=== Version 0.8-RBS ===&lt;br /&gt;
* '''Download: [[Media:Cealign-0.8-RBS.tar.bz2|CE Align v0.8-RBS]] (bz2)'''&lt;br /&gt;
* '''Download: [[Media:Cealign-0.8-RBS.zip|CE Align v0.8-RBS]] (zip)'''&lt;br /&gt;
&lt;br /&gt;
=== Beta Version 0.9 ===&lt;br /&gt;
Use at your own peril.  Please report any problems or inconsistent alignments to this discussion page, or to me directly; my email address all over this page.&lt;br /&gt;
&lt;br /&gt;
'''Improvements/Changes''':&lt;br /&gt;
* All C++&lt;br /&gt;
** So, faster&lt;br /&gt;
** comes with the dependencies built in&lt;br /&gt;
* No numpy&lt;br /&gt;
&lt;br /&gt;
''' Download: [[Media:Cealign-0.9.zip|CE Align v0.9]] (zip)'''&lt;br /&gt;
&lt;br /&gt;
== Coming Soon ==&lt;br /&gt;
* Windows binary&lt;br /&gt;
* Linux Binaries (32bit, x86-64)&lt;br /&gt;
* Better instructions for precompiled distributions&lt;br /&gt;
* Optimization&lt;br /&gt;
&lt;br /&gt;
== Updates ==&lt;br /&gt;
&lt;br /&gt;
=== 2008-03-25 ===&lt;br /&gt;
Pure C++ code released.  See the beta version above.&lt;br /&gt;
&lt;br /&gt;
=== 2007-04-14 ===&lt;br /&gt;
v0.8-RBS source updated.  Found the bug that had been plaguing 32-bit machines.  This should be the last release for a little while.&lt;br /&gt;
&lt;br /&gt;
Also, I provide the option of aligning based solely upon RMSD or upon the better CE-Score.  See the '''References''' for information on the '''CE Score'''.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
Post your problems/solutions here.&lt;br /&gt;
&lt;br /&gt;
=== Unicode Issues in Python/Numpy ===&lt;br /&gt;
'''Problem''': Running/Installing cealign gives&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
Traceback (most recent call last):&lt;br /&gt;
  File &amp;quot;/home/byron/software/pymol_1.00b17/pymol/modules/pymol/parser.py&amp;quot;,&lt;br /&gt;
line 308, in parse&lt;br /&gt;
  File &amp;quot;/home/byron/software/pymol_1.00b17/pymol/modules/pymol/parsing.py&amp;quot;,&lt;br /&gt;
line 410, in run_file&lt;br /&gt;
  File &amp;quot;qkabsch.py&amp;quot;, line 86, in ?&lt;br /&gt;
    import numpy&lt;br /&gt;
  File &amp;quot;/usr/lib/python2.4/site-packages/numpy/__init__.py&amp;quot;, line 36, in ?&lt;br /&gt;
    import core&lt;br /&gt;
  File &amp;quot;/usr/lib/python2.4/site-packages/numpy/core/__init__.py&amp;quot;, line 5, in ?&lt;br /&gt;
    import multiarray&lt;br /&gt;
ImportError: /home/byron/software/pymol/ext/lib/python2.4/site-packages/numpy/core/multiarray.so:&lt;br /&gt;
undefined symbol: _PyUnicodeUCS4_IsWhitespace&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
where the important line is&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
undefined symbol: _PyUnicodeUCS4_IsWhitespace&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This problem indicates that your Numpy Unicode is using a different byte-size for unicode characters than is the Python distribution your PyMOL is running from.  For example, this can happen if you use the pre-built PyMOL and some other pre-built Numpy package.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Solution''': Hand-install Numpy.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LinAlg Module Not Found ===&lt;br /&gt;
'''Problem''': Running CE Align gives the following error message:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
run qkabsch.py&lt;br /&gt;
Traceback (most recent call last):&lt;br /&gt;
File &amp;quot;/usr/lib/python2.4/site-packages/pymol/parser.py&amp;quot;, line 285, in parse&lt;br /&gt;
parsing.run_file(exp_path(args[nest][0]),pymol_names,pymol_names)&lt;br /&gt;
File &amp;quot;/usr/lib/python2.4/site-packages/pymol/parsing.py&amp;quot;, line 407, in run_file&lt;br /&gt;
execfile(file,global_ns,local_ns)&lt;br /&gt;
File &amp;quot;qkabsch.py&amp;quot;, line 86, in ?&lt;br /&gt;
import numpy&lt;br /&gt;
File &amp;quot;/usr/lib/python2.4/site-packages/numpy/__init__.py&amp;quot;, line 40, in ?&lt;br /&gt;
import linalg&lt;br /&gt;
ImportError: No module named linalg&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Solution''': You do not have the linear algebra module installed (or Python can't find it) on your machine.  One workaround is to install [http://www.scipy.org/ Scientific Python]. (on debian/ubuntu this can be done by: sudo apt-get install python-scipy) Another is to reinstall the Numpy package from source, ensuring that you have the necessary requirements for the linear algebra module (linpack, lapack, fft, etc.).&lt;br /&gt;
&lt;br /&gt;
=== CCEAlign &amp;amp; NumPy Modules Not Found ===&lt;br /&gt;
'''Problem''': Running CE Align gives the following error message:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
PyMOL&amp;gt;run cealign.py&lt;br /&gt;
Traceback (most recent call last):&lt;br /&gt;
  File &amp;quot;/home/local/warren/MacPyMOL060530/build/Deployment/MacPyMOL.app/pymol/modules/pymol/parser.py&amp;quot;, line 297, in parse&lt;br /&gt;
  File &amp;quot;/home/local/warren/MacPyMOL060530/build/Deployment/MacPyMOL.app/pymol/modules/pymol/parsing.py&amp;quot;, line 408, in run_file&lt;br /&gt;
  File &amp;quot;/usr/local/pymol/scripts/cealign-0.1/cealign.py&amp;quot;, line 59, in ?&lt;br /&gt;
    from ccealign import ccealign&lt;br /&gt;
ImportError: No module named ccealign&lt;br /&gt;
run qkabsch.py&lt;br /&gt;
Traceback (most recent call last):&lt;br /&gt;
File &amp;quot;/home/local/warren/MacPyMOL060530/build/Deployment/MacPyMOL.app/pymol/modules/pymol/parser.py&amp;quot;, line 297, in parse&lt;br /&gt;
File &amp;quot;/home/local/warren/MacPyMOL060530/build/Deployment/MacPyMOL.app/pymol/modules/pymol/parsing.py&amp;quot;, line 408, in run_file&lt;br /&gt;
File &amp;quot;qkabsch.py&amp;quot;, line 86, in ?&lt;br /&gt;
import numpy&lt;br /&gt;
ImportError: No module named numpy&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Solution''': This problem occurs under [http://www.apple.com/macosx Apple Mac OS X] if (a) the Apple's python executable on your machine (/usr/bin/python, currently version 2.3.5) is superseded by [http://fink.sourceforge.net/ Fink]'s python executable (/sw/bin/python, currently version 2.5) and (b) you are using [http://delsci.com/rel/099/#MacOSX precompiled versions of PyMOL] (MacPyMOL, PyMOLX11Hybrid or PyMOL for Mac OS X/X11). These executables ignore Fink's python and instead use Apple's - so, in order to run CE Align, one must install NumPy (as well as CE Align itself) using Apple's python. To do so, first download the [http://sourceforge.net/project/showfiles.php?group_id=1369&amp;amp;package_id=175103 Numpy source code archive] (currently version 1.0.1), unpack it, change directory to numpy-1.0.1 and specify the full path to Apple's python executable during installation: &amp;lt;tt&amp;gt;sudo /usr/bin/python setup.py install | tee install.log&amp;lt;/tt&amp;gt;. Then, donwload the [http://www.pymolwiki.org/index.php/Cealign#The_Code CE Align source code archive] (currently version 0.2), unpack it, change directory to cealign-0.2 and finally install CE Align as follows: &amp;lt;tt&amp;gt;sudo /usr/bin/python setup.py install | tee install.log&amp;lt;/tt&amp;gt;.&lt;br /&gt;
[[User:Lucajovine|Luca Jovine]] 05:11, 25 January 2007 (CST).&lt;br /&gt;
&lt;br /&gt;
=== The Function SimpAlign() is not found ===&lt;br /&gt;
'''Problem''': Running CE Align gives the following error message:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
PyMOL&amp;gt;cealign 1CLL,1GGZ&lt;br /&gt;
Traceback (most recent call last):&lt;br /&gt;
  File &amp;quot;C:\Program Files (x86)\DeLano Scientific\PyMOL/modules\pymol\parser.py&amp;quot;, line 203, in parse&lt;br /&gt;
    result=apply(kw[nest][0],args[nest],kw_args[nest])&lt;br /&gt;
  File &amp;quot;py24/Lib/cealign.py&amp;quot;, line 177, in cealign&lt;br /&gt;
    curScore = simpAlign( matA, matB, mol1, mol2, stored.mol1, stored.mol2, align=0, L=len(matA) )&lt;br /&gt;
NameError: global name 'simpAlign' is not defined&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
I am running PyMOL v. 0.99rc6 on Win XP Professional x64 edition version 2003 sp2 and have followed the windows install procedure as described above.&lt;br /&gt;
&lt;br /&gt;
'''Answer''': This simply means that PyMOL couldn't find the simplAlign function.  To let PyMOL know about this, you must run the following commands before running [[cealign]]:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
run /your/path/to/cealign/qkabsch.py&lt;br /&gt;
run /your/path/to/cealign/cealign.py&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
but most people that use cealign would just put these two lines in their '''.pymolrc''' file.&lt;br /&gt;
&lt;br /&gt;
=== Short Alignments Don't Work ===&lt;br /&gt;
If you are trying to align fewer than 16 residues then use [[align]], [[super]], or [[optAlign]].  CE uses a window size of 8; and to build a path of more than one window, you need 2*8=16 residues.  I will insert some code to re-route small alignments to one of the aforementioned alignment algorithms.&lt;br /&gt;
&lt;br /&gt;
=== It Worked A Second Ago! ===&lt;br /&gt;
[[Image:Rewind.png|thumb|right|Showing the rewind button to rewind to state 1.]]&lt;br /&gt;
&lt;br /&gt;
If you were using cealign (or alignto) and now the commands don't work -- that is, they return an RMSD, but don't actually superimpose the objects, then you have a simple problem dealing with states.  Most likely the cause of this oddness was (1) when you issued &amp;quot;cealign prot1, prot2&amp;quot; one of them was actually an ensemble of states or (2) you are trying to align to proteins with only one state, but are not looking at state one (because the last protein you were considering had more than one state and you quit editing that protein on a state that's not state 1).  To fix this, use the rewind button to get the proteins back into state 1 &amp;amp; reissue the cealign/alignto command.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
Text taken from PubMed and formatted for the wiki.  The first reference is the most important for this code.&lt;br /&gt;
&lt;br /&gt;
#  Shindyalov IN, Bourne PE. '''Protein structure alignment by incremental combinatorial extension (CE) of the optimal path.'''  ''Protein Eng.'' 1998 Sep;11(9):739-47.  PMID: 9796821 [PubMed - indexed for MEDLINE]&lt;br /&gt;
# Jia Y, Dewey TG, Shindyalov IN, Bourne PE. '''A new scoring function and associated statistical significance for structure alignment by CE.'''  ''J Comput Biol.'' 2004;11(5):787-99. PMID: 15700402 [PubMed - indexed for MEDLINE]&lt;br /&gt;
#  Pekurovsky D, Shindyalov IN, Bourne PE. '''A case study of high-throughput biological data processing on parallel platforms.'''  ''Bioinformatics.'' 2004 Aug 12;20(12):1940-7. Epub 2004 Mar 25.  PMID: 15044237 [PubMed - indexed for MEDLINE]&lt;br /&gt;
#  Shindyalov IN, Bourne PE. '''An alternative view of protein fold space.'''  ''Proteins.'' 2000 Feb 15;38(3):247-60.  PMID: 10713986 [PubMed - indexed for MEDLINE]&lt;br /&gt;
&lt;br /&gt;
== License ==&lt;br /&gt;
The CEAlign and all its subprograms that I wrote, are released under the open source Free BSD License (BSDL).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Script_Library]]&lt;br /&gt;
[[Category:Structure_Alignment|Cealign]]&lt;/div&gt;</summary>
		<author><name>Jlec</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Category_talk:Script_Library&amp;diff=4127</id>
		<title>Category talk:Script Library</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Category_talk:Script_Library&amp;diff=4127"/>
		<updated>2009-05-01T10:10:03Z</updated>

		<summary type="html">&lt;p&gt;Jlec: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== GitHub for Pymol-scripts==&lt;br /&gt;
I created a github for the pymol scripts. I think this is a good way to to collect and enlarge the collection of scripts. The repo is public accessible so contribute. If you need help on git just write me an email.&lt;br /&gt;
&lt;br /&gt;
http://github.com/jlec/Pymol-script-repo&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
About the rasmolify script, there's a project to translate between the languages [http://arcib.dowling.edu/sbevsl/].&lt;br /&gt;
It's in pre-alpha, apparently, but this kind of language translation seems like a tricky problem. It's on my list of things to do...--[[User:Gilleain|Gilleain]] 19:27, 18 February 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
: To be honest I was thinking of a quick hack rather than anything fancy. Thanks very much for the pointer though! --[[User:Dan|Dan]] 02:45, 19 February 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
== Depositing Scripts ==&lt;br /&gt;
* Create a new page for your script&lt;br /&gt;
* Please provide&lt;br /&gt;
** an overview of what the script does&lt;br /&gt;
** any usage comments or hints&lt;br /&gt;
** the source code&lt;br /&gt;
* Please add the following to the bottom of your new page:&amp;lt;br&amp;gt;&amp;lt;nowiki&amp;gt;[[Category:Script_Library]]&lt;br /&gt;
[[Category:PUT_SUBCATEGORY_NAME_HERE]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Feedback on Changes ==&lt;br /&gt;
&lt;br /&gt;
Please let me know if you like the new changes.&lt;/div&gt;</summary>
		<author><name>Jlec</name></author>
	</entry>
</feed>