<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Sorry, there is currently no way to do that without changing the
code. If you're up to it, you need to edit the
CHIMERA/share/NucleicAcids/__init__.py file where CHIMERA is the
directory where Chimera is installed. In that file, inside the
ladder function ('def ladder' on line 1273), you will find a loop
(at line 1330) where it first gets the color of each residue in the
ladder:<br>
<blockquote type="cite"><tt> r0color_kwds = _ribbon_color(r0)</tt><tt><br>
</tt><tt> r1color_kwds = _ribbon_color(r1)</tt></blockquote>
and later there are two drawCylinder() calls.<br>
<br>
The "fix" is to add two more lines after fetching the residue colors
to override them with the color you want, so those two lines become:<br>
<blockquote type="cite"><tt>r0color_kwds = _ribbon_color(r0)</tt><tt><br>
</tt><tt>r1color_kwds = _ribbon_color(r1)</tt><tt><br>
</tt><tt>r0color_kwds['color'] = (.2, .8, .2)</tt><tt><br>
</tt><tt>r1color_kwds['color'] = r0color_kwds['color']</tt></blockquote>
<br>
Where (.2, .8, .2) are the RGB values of the color you want.<br>
<br>
HTH,<br>
<br>
Greg<br>
<br>
<div class="moz-cite-prefix">On 7/24/2015 11:37 AM, Belle Lin wrote:<br>
</div>
<blockquote
cite="mid:CAL4LhGTTLB7Rn8Ou=rcgtvoaVnUCJHsTtsVc9nryKwi+=c48UQ@mail.gmail.com"
type="cite">
<div dir="ltr">Dear Chimera users/developers,
<div><br>
</div>
<div>Is there a way to make the DNA ladders a different color
than the backbone? I am able to do so when the side
(sugar/base) is shown in the "tube/slab" mode, but when I
change it to the "ladder" mode I am unable to change the color
of the rungs. I have included photos below which hopefully
make my question more clear. Thank you in advance for your
help!!</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Belle Lin</div>
<div><br>
</div>
<div>_____________________________________________________________</div>
<div><br>
</div>
<div>Able to create: </div>
<div><img src="cid:part1.09000607.06020407@cgl.ucsf.edu"
alt="Inline image 3" height="220" width="412"><br>
</div>
<div><br>
</div>
<div><img src="cid:part2.01080300.03070508@cgl.ucsf.edu"
alt="Inline image 2" height="220" width="412"><br>
</div>
<div><br>
</div>
<div>Trying to create: </div>
<div> <img src="cid:part3.01040504.04020000@cgl.ucsf.edu"
alt="Inline image 1" style="margin-right: 0px;" height="167"
width="134"></div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Chimera-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Chimera-users@cgl.ucsf.edu">Chimera-users@cgl.ucsf.edu</a>
<a class="moz-txt-link-freetext" href="http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users">http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users</a>
</pre>
</blockquote>
<br>
</body>
</html>