<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi,<br>
</p>
<p><br>
</p>
<p>This feels like a basic question but it has stumped me for a day now so here we go...<br>
</p>
<p><br>
</p>
<p>I'm exploring ways of programmatically setting colours to find the most efficient method.<br>
</p>
<p>This is for the 'custom coloured' case (residue-based colour schemes are not a problem).<br>
</p>
<p>The simple version is to send as many 'color' commands as there are colours in my (Jalview) sequence:<br>
</p>
<p><br>
</p>
<p class="p1">color #ffafaf #0:1.B|#0:5.B|#0:7-8.B|....;color #ffff00 #0:39.B|#0:44.B|#0:47.B|#0:77.B;<br>
</p>
<p><br>
</p>
<p>This works, but doesn't seem to scale up well for large/many structures - I start to see Chimera using 100% CPU for minutes at a time.<br>
</p>
<p><br>
</p>
<p>I'm trying instead to see whether setting a colour-value attribute is faster.<br>
</p>
<p>I can set the attributes ok with commands like<br>
</p>
<p>setattr r color green #0:1-84.B <br>
</p>
<p>etc<br>
</p>
<p>and confirm they are set with<br>
</p>
<p>list residues spec #0:1-84.B attribute color<br>
</p>
<p><br>
</p>
<p>but I can't figure out how to get Chimera to use the attribute value as the display colour.<br>
</p>
<p>'Render by Attribute' only seems to consider numeric (range-valued) attributes, not colour-valued.<br>
</p>
<p>I thought perhaps 'my' colour was just hidden in the colour hierarchy, but removing other colours doesn't seem to help.<br>
</p>
<p><br>
</p>
<p>What am I missing?<br>
</p>
<p><br>
</p>
<p>Thanks,<br>
</p>
<p><br>
</p>
<p>Mungo Carstairs<br>
</p>
<p><br>
</p>
<div id="Signature"><style type="text/css" style="">
<!--
p
{margin-top:0px;
margin-bottom:0px}
-->
</style>
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
Division of Computational Biology<br>
<div>University of Dundee<br>
</div>
<div>http://www.jalview.org<br>
</div>
<div><br>
</div>
</div>
</div>
</div>
<br>
<span style="font-size:10pt;">The University of Dundee is a registered Scottish Charity, No: SC015096</span>
</body>
</html>