<?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=Vince</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=Vince"/>
	<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php/Special:Contributions/Vince"/>
	<updated>2026-04-22T04:55:15Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Align&amp;diff=715</id>
		<title>Align</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Align&amp;diff=715"/>
		<updated>2009-03-19T15:24:40Z</updated>

		<summary type="html">&lt;p&gt;Vince: Say it is not possible to align selections from the same object.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===DESCRIPTION===&lt;br /&gt;
'''align''' performs a sequence alignment followed by a structural alignment, and then carrys out zero or more cycles of refinement in order to reject structural outliers found during the fit.  For comparing proteins with lower sequence identity, an alignment program like, [[Cealign]] might be a better choice.&lt;br /&gt;
&lt;br /&gt;
==== Algorithm Details ====&lt;br /&gt;
'''align''' does a BLAST-like BLOSUM62-weighted dynamic programming sequence alignment followed by a series of refinement cycles intended to improve the fit by eliminating pairing with high relative variability (e.g. &amp;gt;2 standard deviations from the cycle's mean deviance).&lt;br /&gt;
&lt;br /&gt;
=== Super! ===&lt;br /&gt;
PyMOL now has another command -- '''[[super]]'''.  Super allows for much more robust alignments.  It's fast, and under testing, does MUCH better than the original '''align''' command.&lt;br /&gt;
&lt;br /&gt;
===USAGE===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
align (source), (target) [,cutoff [,cycles [,gap [,extend \&lt;br /&gt;
      [,skip [,object [,matrix [, quiet ]]]]]]]]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===PYMOL API===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
cmd.align( string source, string target, float cutoff=2.0,&lt;br /&gt;
           int cycles=2, float gap=-10.0, float extend=-0.5,&lt;br /&gt;
           int skip=0, string object=None, string matrix=&amp;quot;BLOSUM62&amp;quot;,&lt;br /&gt;
           int quiet=1 )&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===EXAMPLES===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
align  prot1////CA, prot2, object=alignment&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===NOTE===&lt;br /&gt;
* If object is not None, then align will create an object which indicates which atoms were paired between the two structures&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;b&amp;gt;Important note: &amp;lt;/b&amp;gt; the molecules you want to align need to be in two different objects. Else, PyMol will answer with a rather cryptic error:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
ExecutiveAlign: invalid selections for alignment.&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Sometimes Align may appear to give a mediocre fit. This is not due to any shortcoming of the algorithm or Pymol for that matter. This usually happens if one or more of the objects, that you are trying to align, have multiple states. For instance, certain PDB files may contain multiple structures/ensembles of the same protein. This is especially true for PDB files containing NMR structures. The workaround in such a situation is to use this workflow (provided by Warren - thanks!):&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
 set all_states, on&lt;br /&gt;
 intra_fit &amp;lt;your_structure_1&amp;gt;&lt;br /&gt;
 intra_fit &amp;lt;your_structure_2&amp;gt;&lt;br /&gt;
 align &amp;lt;your_structure_1&amp;gt;////CA, &amp;lt;your_structure_2&amp;gt;////CA&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===SEE ALSO===&lt;br /&gt;
[[Cmd fit|fit]], [[Cmd rms|rms]], [[Cmd rms_cur|rms_cur]], [[Cmd intra_rms|intra_rms]], [[Cmd intra_rms_cur|intra_rms_cur]], [[Cmd pair_fit|pair_fit]], [[Cmd intra_fit|intra_fit]], [[Kabsch]], [[Cealign]].&lt;br /&gt;
&lt;br /&gt;
[[Category:Commands|align]]&lt;br /&gt;
[[Category:Structure_Alignment|align]]&lt;/div&gt;</summary>
		<author><name>Vince</name></author>
	</entry>
</feed>