<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.pymol.org/index.php?action=history&amp;feed=atom&amp;title=HighlightAlignedSS</id>
	<title>HighlightAlignedSS - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.pymol.org/index.php?action=history&amp;feed=atom&amp;title=HighlightAlignedSS"/>
	<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=HighlightAlignedSS&amp;action=history"/>
	<updated>2026-07-09T14:08:25Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=HighlightAlignedSS&amp;diff=8324&amp;oldid=prev</id>
		<title>Bell: 3 revisions</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=HighlightAlignedSS&amp;diff=8324&amp;oldid=prev"/>
		<updated>2014-03-28T03:06:31Z</updated>

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

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

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:31, 10 May 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l70&quot; &gt;Line 70:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 70:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Scripts_Library&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Script_Library&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Structural_Biology_Scripts]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Structural_Biology_Scripts]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Ignat99</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=HighlightAlignedSS&amp;diff=8323&amp;oldid=prev</id>
		<title>Speleo3: from pymol import cmd, util</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=HighlightAlignedSS&amp;diff=8323&amp;oldid=prev"/>
		<updated>2011-03-03T07:53:55Z</updated>

		<summary type="html">&lt;p&gt;from pymol import cmd, util&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Image:Highlight ss1.png|right|thumb|300px]]&lt;br /&gt;
&lt;br /&gt;
This script will align and color the paired secondary structures of the two proteins a similar rainbow color.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
from pymol import cmd, util&lt;br /&gt;
&lt;br /&gt;
def highlight_aligned_ss(obj1,obj2,transform=1,quiet=1):&lt;br /&gt;
    &amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
DESCRIPTION&lt;br /&gt;
 &lt;br /&gt;
    Aligns two structures and colors their matching&lt;br /&gt;
    secondary structure elements with a matching&lt;br /&gt;
    rainbow colorscheme.&lt;br /&gt;
 &lt;br /&gt;
USAGE&lt;br /&gt;
 &lt;br /&gt;
    highlight_aligned_ss obj1, obj2&lt;br /&gt;
&lt;br /&gt;
    If transform=0 then the proteins are not&lt;br /&gt;
    moved after alignment.&lt;br /&gt;
&lt;br /&gt;
EXAMPLES&lt;br /&gt;
 &lt;br /&gt;
    highlight_aligned_ss 1cll, 1ggz&lt;br /&gt;
    highlight_aligned_ss 1rlw, 1byn and state 1&lt;br /&gt;
 &lt;br /&gt;
SEE ALSO&lt;br /&gt;
 &lt;br /&gt;
    align&lt;br /&gt;
&lt;br /&gt;
    JV 3-2-11&lt;br /&gt;
    &amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    if not cmd.count_atoms(obj1):&lt;br /&gt;
        print &amp;quot;Error: Object 1 needs at least a few atoms to align.&amp;quot;&lt;br /&gt;
        return None&lt;br /&gt;
    if not cmd.count_atoms(obj2):&lt;br /&gt;
        print &amp;quot;Error: Object 2 needs at least a few atoms to align.&amp;quot;&lt;br /&gt;
        return None&lt;br /&gt;
&lt;br /&gt;
    # align them&lt;br /&gt;
    uAln = cmd.get_unused_name(&amp;quot;aln&amp;quot;)&lt;br /&gt;
    cmd.align(obj1,obj2,object=uAln,transform=int(transform))&lt;br /&gt;
    cmd.hide(&amp;quot;cgo&amp;quot;, uAln)&lt;br /&gt;
&lt;br /&gt;
    # select atoms of similar SS&lt;br /&gt;
    uSimSS = cmd.get_unused_name(&amp;quot;similar_ss_&amp;quot;)&lt;br /&gt;
    cmd.select(uSimSS, &amp;quot;((%s or %s) in %s) and (ss 'S' or ss 'H')&amp;quot; %&lt;br /&gt;
               (obj1,obj2,uAln))&lt;br /&gt;
&lt;br /&gt;
    # color by rainbow; these could be &lt;br /&gt;
    # customized by function parameters&lt;br /&gt;
    util.rainbow(uSimSS + &amp;quot; and &amp;quot; + obj1)&lt;br /&gt;
    util.rainbow(uSimSS + &amp;quot; and &amp;quot; + obj2)&lt;br /&gt;
&lt;br /&gt;
    # now color everything else grey&lt;br /&gt;
    cmd.color(&amp;quot;grey70&amp;quot;, &amp;quot;not (%s)&amp;quot; % uSimSS)&lt;br /&gt;
&lt;br /&gt;
    # could also be an option to&lt;br /&gt;
    # update the representation&lt;br /&gt;
    # as cartoon&lt;br /&gt;
&lt;br /&gt;
    # hide indicators&lt;br /&gt;
    cmd.select(&amp;quot;none&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
cmd.extend(&amp;quot;highlight_aligned_ss&amp;quot;, highlight_aligned_ss)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Scripts_Library]]&lt;br /&gt;
[[Category:Structural_Biology_Scripts]]&lt;/div&gt;</summary>
		<author><name>Speleo3</name></author>
	</entry>
</feed>