<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi Micah,<div class="">Ah yes, you’ve run into a limitation mentioned in<br class=""><div class=""><<a href="http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/rainbow.html" class="">http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/rainbow.html</a>></div><div class=""><br class=""></div><div class="">"The coloring cannot be limited to a subset of the polymer chains in a model or to a subset of the residues in a chain…”</div><div class=""><br class=""></div><div class="">A somewhat laborious, inelegant workaround is to open two copies of the structure and from whichever one seems to “win” the display (can tell by model color), delete the non-rainbow portion and then rainbow that copy. However, due to the ribbon path interpolation, if you are showing ribbon the ends stick out from the full copy. You would need to further fudge things by including a 3-4 extra residues of overhang on both ends of the truncated copy and then undisplaying the ribbon for those overhangs.</div><div class=""><br class=""></div><div class="">Then you don’t get the full rainbow range (the reddest and bluest parts are hidden) but it might be good enough for your purposes. </div><div class=""><br class=""></div><div class="">Example:</div><div class=""><br class=""></div><div class="">open 2gbp</div><div class="">open 2gbp</div><div class="">… still looks tan, so the first copy #0 is “winning” the display, delete from that one</div><div class="">delete #0 & ~ :30-106</div><div class="">rainbow #0</div><div class="">~ribb #0:30-33,103-106<br class="">modelcol white #1</div><div class=""><br class=""></div><div class="">… gives (at least for me) the appearance in the attached image. If you had the problem of the other model showing through, you could use Ribbon Style Editor to ensure that the ribbon of the rainbow copy is slightly fatter and wider than the other one.</div><div class=""><br class=""></div><div class="">Sorry I didn’t have a nicer answer, but I hope this helps.</div><div class="">Elaine<br class=""><div class="">----------<br class="">Elaine C. Meng, Ph.D. <br class="">UCSF Chimera(X) team<br class="">Department of Pharmaceutical Chemistry<br class="">University of California, San Francisco<br class=""><br class=""></div><div class=""><img apple-inline="yes" id="E515D76B-AECF-4B27-98C2-0CCBCAAC6C78" src="cid:57444D6E-830F-42D7-BA50-16F2F2DB09E5@compbio.ucsf.edu" class=""></div><div class=""><br class=""></div><blockquote type="cite" class="">On Jul 13, 2017, at 10:34 AM, Cheng, Micah <<a href="mailto:Micah.Cheng@fccc.edu" class="">Micah.Cheng@fccc.edu</a>> wrote:<br class=""><br class="">I was trying to rainbow a subset of a chain using the rainbow command and the atom-spec:<br class="">rainbow #0:34-102.a<br class=""> <br class="">However when run, the entire chain A was colored with rainbow instead just residues 34-102<br class="">running the color command with the same atom-spec:<br class="">color #FFFFFF #0:34-102.a<br class="">produced the predicted result of only residues 34-102 being colored white<br class="">Is there a command to rainbow only part of the chain or are there any workarounds to being able to rainbow only a selected portion of a chain?<br class=""> <br class="">Thanks in advance<br class="">Micah<br class=""><br class=""></blockquote><br class=""></div></div></body></html>