eFamily
The Wellcome Trust Sanger Institute MRC- Medical Research Council

SPICE has built in support for the DAS-stylesheet command.

DAS-sources can define how their data is rendered in SPICE. this can affect both the sequence -feature rendering as well as the rendering in 3D.

To provide a stylesheet that affects both sequence and structure display one has to provide 2 style CATEGORies: The one with the id "3D" allows to define how to render a feature in the Jmol 3D window.

supported 3D GLYPHs are

Colors can be provided in the html-hex #123456 way or by using the color names e.g. "red".

For the "3D" category glyphs CPK coloring can be enabled by setting color to "cpk" .

example stylesheet:
<DASSTYLE>
   <STYLESHEET>
     <CATEGORY id="default">
       <TYPE id="exon">
         <GLYPH>
	  <SPAN>
	    <HEIGHT>10</HEIGHT>
	    <COLOR>#003366</COLOR>
     	    <BUMP>no</BUMP>
	  </SPAN>
	</GLYPH>
       </TYPE>
       <TYPE id="snp">
         <GLYPH>
	  <TRIANGLE>
	    <HEIGHT>10</HEIGHT>
	    <COLOR>blue</COLOR>
	    <BUMP>yes</BUMP>
	  </TRIANGLE>
	</GLYPH>
       </TYPE>
     </CATEGORY>

     <CATEGORY id="3D">
       <TYPE id="exon">
         <GLYPH>
	  <RIBBONS>
	    <COLOR>rotate</COLOR>
	  </RIBBONS>
	</GLYPH>
       </TYPE>
       <TYPE id="snp">
         <GLYPH>
	  <WIREFRAME>
	    <COLOR>cpk</COLOR>
	    <WIDTH>0.3</WIDTH>
	  </WIREFRAME>
	</GLYPH>
       </TYPE>
     </CATEGORY>
   </STYLESHEET>
</DASSTYLE>