<?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=B5foan</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=B5foan"/>
	<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php/Special:Contributions/B5foan"/>
	<updated>2026-05-11T20:47:19Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=User:B5foan&amp;diff=3004</id>
		<title>User:B5foan</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=User:B5foan&amp;diff=3004"/>
		<updated>2009-09-15T13:39:50Z</updated>

		<summary type="html">&lt;p&gt;B5foan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Andreas Förster&amp;lt;br/&amp;gt;&lt;br /&gt;
Postdoc at Imperial College London&amp;lt;br/&amp;gt;&lt;br /&gt;
with PyMOL since at least 2001&amp;lt;br\&amp;gt;&amp;lt;hr\&amp;gt;&lt;br /&gt;
http://www.msf.bio.ic.ac.uk/andreas.php&lt;/div&gt;</summary>
		<author><name>B5foan</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Protein_contact_potential&amp;diff=9234</id>
		<title>Protein contact potential</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Protein_contact_potential&amp;diff=9234"/>
		<updated>2009-06-24T13:41:16Z</updated>

		<summary type="html">&lt;p&gt;B5foan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;gallery heights=&amp;quot;200px&amp;quot; widths=&amp;quot;200px&amp;quot; caption=&amp;quot;Comparing PyMOL-generated electrostatics and APBS' version.&amp;quot; align=&amp;quot;right&amp;quot;&amp;gt;&lt;br /&gt;
Image:Prot_contact_pot.png|PyMOL Charge-smoothed potential (see below)&lt;br /&gt;
Image:Prot_contact_APBS.png|APBS-generated potential (see [[APBS]]).&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Protein_contact_potential|Protein contact potential]] is an automated PyMOL representation where the false red/blue charge-smoothed surface is shown on the protein.&lt;br /&gt;
&lt;br /&gt;
The rule of thumb with respect to PyMOL's internal &amp;quot;protein contact potential&amp;quot; is that if you care enough to be concerned with how it works, then you should instead be using a true Possion-Boltzman electrostatics solver such as [[APBS]].&lt;br /&gt;
&lt;br /&gt;
Regardless, what PyMOL does to generate a qualitative electrostatic representation (via action '''popup-&amp;gt;generate-&amp;gt;vacuum electrostatics-&amp;gt;...''') amounts to averaging charges over a small region of space using a&lt;br /&gt;
quasi-Coulombic-shaped convolution function.  Nathan Baker has suggested that we simply refer to this approach as &amp;quot;charge smoothing&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
PyMOL's use of the term &amp;quot;contact&amp;quot; relates to the fact that the potential shown by the default coloring approximates the potential that would be felt by a point-charge one solvent radius *above* the protein surface, if we ignore solvent screening and only consider nearby atoms.  My personal opinion is that this sort of treatment makes a lot sense when viewing results from Poisson-Boltzmann calculations as well. (Select &amp;lt;tt&amp;gt;Color by potential on sol. acc. surf.&amp;lt;/tt&amp;gt; in the visualization tab of the APBS plugin to get that effect.)&lt;br /&gt;
&lt;br /&gt;
As an aside: It has never made any sense to me whatsoever that electrostatics visualization programs would show potentials located right on the molecular surface given that (1) we employ point charge models that have *only* been parameterized to approximate potential energies computed between partial charges located at atomic centers and that (2) the molecular surface is located in the region of space where artifacts &amp;amp; noise in a PB calculation would be greatest due to discrete discontinuities between the low-dielectric interior and the high-dielectric exterior (solvent region).&lt;br /&gt;
&lt;br /&gt;
[[Category:Biochemical_Properties]]&lt;br /&gt;
[[Category:Electrostatics]]&lt;/div&gt;</summary>
		<author><name>B5foan</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=APBS&amp;diff=3725</id>
		<title>APBS</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=APBS&amp;diff=3725"/>
		<updated>2009-06-22T10:15:33Z</updated>

		<summary type="html">&lt;p&gt;B5foan: /* Installing the Dependencies on OS X */&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://apbs.sourceforge.net 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;
PyMol currently supports the '''APBS plugin''' written by 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).  See [http://apbs.wustl.edu/MediaWiki/index.php/APBS_electrostatics_in_PyMOL the APBS wiki] for more details, including 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;
==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;
Note that the fink version of pymol '''already has''' the latest version of the APBS plugin.  You are set to go!&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;
===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.&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;/div&gt;</summary>
		<author><name>B5foan</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=FindSurfaceResidues&amp;diff=7336</id>
		<title>FindSurfaceResidues</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=FindSurfaceResidues&amp;diff=7336"/>
		<updated>2009-06-17T16:18:12Z</updated>

		<summary type="html">&lt;p&gt;B5foan: /* Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:FindExRes.png|thumb|right|400px|Result of $TUT/1hpv.pdb at 2.5 Ang cutoff.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Overview =&lt;br /&gt;
This script will select (and color if requested) surface residues on an object or selection.  See the options below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Each time, the script will create a new selection called, 'exposedXYZ' where XYZ is some random number.  This is done so that no other selections/objects are overwritten.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Usage =&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
findSurfaceResidues [objSel=(all)[, cutoff=2.5[, doShow=False[, verbose=False ]]]]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
The parameters are:&lt;br /&gt;
&lt;br /&gt;
'''objSel'''&lt;br /&gt;
:: The object or selection for which to find exposed residues;&lt;br /&gt;
:: DEFAULT = (all)&lt;br /&gt;
'''cutoff'''&lt;br /&gt;
:: The cutoff in square Angstroms that defines exposed or not.  Those residues with &amp;gt; cutoff Ang^2 exposed will be considered ''exposed'';&lt;br /&gt;
:: DEFAULT =  2.5 Ang^2&lt;br /&gt;
'''doShow'''&lt;br /&gt;
:: Change the visualization to highlight the exposed residues vs interior&lt;br /&gt;
:: DEFAULT = False/Blank&lt;br /&gt;
'''verbose'''&lt;br /&gt;
:: Level of verbosity.&lt;br /&gt;
:: DEFAULT = False/Blank&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
# make sure you download and run the code below, before trying these examples.&lt;br /&gt;
load $TUT/1hpv.pdb&lt;br /&gt;
findSurfaceResidues&lt;br /&gt;
# now show the exposed&lt;br /&gt;
findSurface residues doShow=True&lt;br /&gt;
&lt;br /&gt;
# watch how the visualization changes:&lt;br /&gt;
findSurfaceResidues doShow=True, cutoff=0.5&lt;br /&gt;
findSurfaceResidues doShow=True, cutoff=1.0&lt;br /&gt;
findSurfaceResidues doShow=True, cutoff=1.5&lt;br /&gt;
findSurfaceResidues doShow=True, cutoff=2.0&lt;br /&gt;
findSurfaceResidues doShow=True, cutoff=2.5&lt;br /&gt;
findSurfaceResidues doShow=True, cutoff=3.0&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= The Code =&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
# -*- coding: utf-8 -*-&lt;br /&gt;
import pymol&lt;br /&gt;
from pymol import cmd&lt;br /&gt;
import random&lt;br /&gt;
&lt;br /&gt;
def findSurfaceResidues(objSel=&amp;quot;(all)&amp;quot;, cutoff=2.5, doShow=False, verbose=False):&lt;br /&gt;
	&amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
	findSurfaceResidues&lt;br /&gt;
		finds those residues on the surface of a protein&lt;br /&gt;
		that have at least 'cutoff' exposed A**2 surface area.&lt;br /&gt;
&lt;br /&gt;
	PARAMS&lt;br /&gt;
		objSel (string)&lt;br /&gt;
			the object or selection in which to find&lt;br /&gt;
			exposed residues&lt;br /&gt;
			DEFAULT: (all)&lt;br /&gt;
&lt;br /&gt;
		cutoff (float)&lt;br /&gt;
			your cutoff of what is exposed or not. &lt;br /&gt;
			DEFAULT: 2.5 Ang**2&lt;br /&gt;
&lt;br /&gt;
		asSel (boolean)&lt;br /&gt;
			make a selection out of the residues found&lt;br /&gt;
&lt;br /&gt;
	RETURNS&lt;br /&gt;
		(list: (chain, resv ) )&lt;br /&gt;
			A Python list of residue numbers corresponding&lt;br /&gt;
			to those residues w/more exposure than the cutoff.&lt;br /&gt;
&lt;br /&gt;
	&amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
	tmpObj=&amp;quot;__tmp&amp;quot;&lt;br /&gt;
	cmd.create( tmpObj, objSel + &amp;quot; and polymer&amp;quot;);&lt;br /&gt;
	if verbose!=False:&lt;br /&gt;
		print &amp;quot;WARNING: I'm setting dot_solvent.  You may not care for this.&amp;quot;&lt;br /&gt;
	cmd.set(&amp;quot;dot_solvent&amp;quot;);&lt;br /&gt;
	cmd.get_area(selection=tmpObj, load_b=1)&lt;br /&gt;
&lt;br /&gt;
	# threshold on what one considers an &amp;quot;exposed&amp;quot; atom (in A**2):&lt;br /&gt;
	cmd.remove( tmpObj + &amp;quot; and b &amp;lt; &amp;quot; + str(cutoff) )&lt;br /&gt;
&lt;br /&gt;
	stored.tmp_dict = {}&lt;br /&gt;
	cmd.iterate(tmpObj, &amp;quot;stored.tmp_dict[(chain,resv)]=1&amp;quot;)&lt;br /&gt;
	exposed = stored.tmp_dict.keys()&lt;br /&gt;
	exposed.sort()&lt;br /&gt;
&lt;br /&gt;
	selName = &amp;quot;exposed_&amp;quot; + str(random.randint(0,10000))&lt;br /&gt;
	if verbose!=False:&lt;br /&gt;
		print &amp;quot;Exposed residues are selected in: &amp;quot; + selName&lt;br /&gt;
	cmd.select(selName, objSel + &amp;quot; in &amp;quot; + tmpObj )&lt;br /&gt;
&lt;br /&gt;
	if doShow!=False:&lt;br /&gt;
		cmd.show_as(&amp;quot;spheres&amp;quot;, objSel + &amp;quot; and poly&amp;quot;)&lt;br /&gt;
		cmd.color(&amp;quot;white&amp;quot;, objSel)&lt;br /&gt;
		cmd.color(&amp;quot;red&amp;quot;, selName)&lt;br /&gt;
&lt;br /&gt;
	cmd.delete(tmpObj)&lt;br /&gt;
&lt;br /&gt;
	return exposed&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
cmd.extend(&amp;quot;findSurfaceResidues&amp;quot;, findSurfaceResidues)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Script_Library]]&lt;br /&gt;
[[Category:ObjSel_Scripts]]&lt;br /&gt;
[[Category:Biochemical_Scripts]]&lt;br /&gt;
[[Category:Structural_Biology_Scripts]]&lt;/div&gt;</summary>
		<author><name>B5foan</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=User:B5foan&amp;diff=3003</id>
		<title>User:B5foan</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=User:B5foan&amp;diff=3003"/>
		<updated>2007-10-24T15:59:41Z</updated>

		<summary type="html">&lt;p&gt;B5foan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Andreas Förster&amp;lt;br/&amp;gt;&lt;br /&gt;
Postdoc at Imperial College London&amp;lt;br/&amp;gt;&lt;br /&gt;
with PyMOL since at least 2001&amp;lt;br\&amp;gt;&amp;lt;hr\&amp;gt;&lt;br /&gt;
https://www.biochem.utah.edu/~andreas&lt;/div&gt;</summary>
		<author><name>B5foan</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Ss&amp;diff=10351</id>
		<title>Ss</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Ss&amp;diff=10351"/>
		<updated>2007-10-24T14:53:46Z</updated>

		<summary type="html">&lt;p&gt;B5foan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A command to list a summary of the secondary structure for a selection. Use like &amp;quot;ss my_protein&amp;quot; where &amp;quot;my_protein&amp;quot; is the name of the chain or structure in view.&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 pymol import stored&lt;br /&gt;
&lt;br /&gt;
def ss(selection):&lt;br /&gt;
&lt;br /&gt;
    class SSE(object):&lt;br /&gt;
&lt;br /&gt;
        def __init__(self, start, typ):&lt;br /&gt;
            self.start, self.typ = start, typ&lt;br /&gt;
            self.end = -1&lt;br /&gt;
&lt;br /&gt;
        def __repr__(self):&lt;br /&gt;
            return &amp;quot;%s-%s %s&amp;quot; % (self.start, self.end, self.typ)&lt;br /&gt;
&lt;br /&gt;
    stored.pairs = []&lt;br /&gt;
    cmd.iterate(&amp;quot;%s and n. ca&amp;quot; % selection, &amp;quot;stored.pairs.append((resi, ss))&amp;quot;)&lt;br /&gt;
    num, currentType = stored.pairs[0]&lt;br /&gt;
&lt;br /&gt;
    sses = [SSE(num, currentType)]&lt;br /&gt;
    currentSSE = sses[0]&lt;br /&gt;
    for resi, ssType in stored.pairs:&lt;br /&gt;
        if ssType == currentType:&lt;br /&gt;
            currentSSE.end = resi&lt;br /&gt;
        else:&lt;br /&gt;
            sses.append(SSE(resi, ssType))&lt;br /&gt;
            currentSSE = sses[-1]&lt;br /&gt;
            currentType = ssType&lt;br /&gt;
&lt;br /&gt;
    for sse in sses:&lt;br /&gt;
        print sse&lt;br /&gt;
&lt;br /&gt;
cmd.extend(&amp;quot;ss&amp;quot;, ss)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>B5foan</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=User_talk:B5foan&amp;diff=10783</id>
		<title>User talk:B5foan</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=User_talk:B5foan&amp;diff=10783"/>
		<updated>2005-12-09T09:15:12Z</updated>

		<summary type="html">&lt;p&gt;B5foan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;regular user&lt;/div&gt;</summary>
		<author><name>B5foan</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=User:B5foan&amp;diff=3002</id>
		<title>User:B5foan</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=User:B5foan&amp;diff=3002"/>
		<updated>2005-12-09T09:13:52Z</updated>

		<summary type="html">&lt;p&gt;B5foan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Andreas Förster&amp;lt;br/&amp;gt;&lt;br /&gt;
Postdoc at Institut de Biologie Structurale&amp;lt;br/&amp;gt;&lt;br /&gt;
with PyMOL since at least 2001&amp;lt;br\&amp;gt;&amp;lt;hr\&amp;gt;&lt;br /&gt;
http://www.biochem.utah.edu/~andreas/index_e.html&lt;/div&gt;</summary>
		<author><name>B5foan</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=User:B5foan&amp;diff=3001</id>
		<title>User:B5foan</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=User:B5foan&amp;diff=3001"/>
		<updated>2005-12-09T09:13:24Z</updated>

		<summary type="html">&lt;p&gt;B5foan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Andreas Förster&amp;lt;br/&amp;gt;&lt;br /&gt;
Postdoc at Institut de Biologie Structurale&amp;lt;br/&amp;gt;&lt;br /&gt;
with PyMOL since at least 2001&amp;lt;br\&amp;gt;&amp;lt;hr\&amp;gt;&lt;br /&gt;
http://biochem.utah.edu/~andreas/index_e.html&lt;/div&gt;</summary>
		<author><name>B5foan</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=User:B5foan&amp;diff=3000</id>
		<title>User:B5foan</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=User:B5foan&amp;diff=3000"/>
		<updated>2005-12-09T09:12:12Z</updated>

		<summary type="html">&lt;p&gt;B5foan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Andreas Förster&amp;lt;br/&amp;gt;&lt;br /&gt;
Postdoc at Institut de Biologie Structurale&amp;lt;br/&amp;gt;&lt;br /&gt;
with PyMOL since at least 2001&amp;lt;br\&amp;gt;&amp;lt;hr\&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;a href=&amp;quot;http://biochem.utah.edu/~andreas/index_e.html&amp;quot; title=&amp;quot;my homepage&amp;quot;&amp;gt;Check me out&amp;lt;/a&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>B5foan</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=User:B5foan&amp;diff=2999</id>
		<title>User:B5foan</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=User:B5foan&amp;diff=2999"/>
		<updated>2005-12-09T09:10:22Z</updated>

		<summary type="html">&lt;p&gt;B5foan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Andreas Förster&amp;lt;br/&amp;gt;&lt;br /&gt;
Postdoc at Institut de Biologie Structurale&amp;lt;br/&amp;gt;&lt;br /&gt;
with PyMOL since at least 2001&amp;lt;br\&amp;gt;&amp;lt;hr\&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://biochem.utah.edu/~andreas/index_e.html&amp;quot; title=&amp;quot;my homepage&amp;quot;&amp;gt;Check me out&amp;lt;/a&amp;gt;&lt;/div&gt;</summary>
		<author><name>B5foan</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=User:B5foan&amp;diff=2998</id>
		<title>User:B5foan</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=User:B5foan&amp;diff=2998"/>
		<updated>2005-12-09T09:08:12Z</updated>

		<summary type="html">&lt;p&gt;B5foan: DocAndreas&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Andreas Förster&lt;br /&gt;
Postdoc at Institut de Biologie Structurale&lt;br /&gt;
with pymol since at least 2001&lt;/div&gt;</summary>
		<author><name>B5foan</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Main_Page&amp;diff=4527</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Main_Page&amp;diff=4527"/>
		<updated>2005-11-28T08:39:01Z</updated>

		<summary type="html">&lt;p&gt;B5foan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== PyMol Wiki Home ==&lt;br /&gt;
You have reached the home of the PyMolWiki, a user-driven web-oriented CMS.&lt;br /&gt;
&lt;br /&gt;
We provide&lt;br /&gt;
* updates on [http://pymol.sf.net PyMol]&lt;br /&gt;
* a stable user-oriented documentation base&lt;br /&gt;
* a thorough treatment of the PyMol program&lt;br /&gt;
* feature-rich scripts for general PyMol use&lt;br /&gt;
&lt;br /&gt;
==News==&lt;br /&gt;
* New PyMol Features: [[Examples_of_cartoon_ring_and_cartoon_ladder_settings|Nucleic Acid Representation Settings]] &amp;amp; Examples.&lt;br /&gt;
* Cool new Plug-In: [[Show_NMR_constrains| Show NMR Constrains]].&lt;br /&gt;
* Check out PyMol's new [[Cartoon#Nucleic_Acid_Representation|Nucleic Acid Rendering]]&lt;br /&gt;
* Added [[DynoPlot]] script for plotting data within PyMol; an interactive Ramachandran plot.&lt;br /&gt;
* Added [[Kabsch]] script for optimal alignment of two sets of vectors.&lt;br /&gt;
* Some details have been released about [[0.99beta11]]'s release and new features.&lt;br /&gt;
* A new map function is in the beta build, [[Map_Trim]].&lt;br /&gt;
* Details on how to build [[Peptide_Sequence| peptide sequences]] and [[Nucleic_Acid_Sequence| nucleic acid sequences]] by hand.&lt;br /&gt;
* New [[Transform_odb]] script to transform coordinates with .odb file from O or LSQMAN&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See our [[Older_News]].&lt;br /&gt;
&lt;br /&gt;
== Links of Interest ==&lt;br /&gt;
* [[TOPTOC|Top Level Table of Contents]]&lt;br /&gt;
* [[:Category:FAQ|Frequently Asked Questions]] -- new!&lt;br /&gt;
* [[PyMolWiki:Community_Portal| How to get involved!]] -- read me if you want to add something&lt;br /&gt;
* [[:Category:Script Library| Script Library]] -- add one! (rTools info!)&lt;br /&gt;
* [[:Category:Commands|PyMol Commands]] (&amp;gt;130 documented!)&lt;br /&gt;
* [[:Special:Allpages| All Pages]]&lt;br /&gt;
* [[:Category:Plugins|Plugins]]&lt;br /&gt;
* [[:Special:Categories| See All Categories]]&lt;/div&gt;</summary>
		<author><name>B5foan</name></author>
	</entry>
</feed>