[ login ]

This page is part of the DAS 1.53E specification

Documentation Histogram Stylesheet conventions

General covnentions

The score field in the feature response is translated by a DAS client into the actual display color and height. The scores are scaled where the minimal score is assigned COLOR1 and the maximum score is assigned COLOR2 (COLOR3 for gradients based on three colors). For chromosomal coordinates where the global MAX or MIN value might occur in a region of the chromosome, which is not part of a DAS response the (optional) MIN and MAX fields allow to specify these range by default. If the features contain values that are larger than the maximum or smaller than the minimum values, these will be displayed with the same height as the maximum or minimum score.

Reference
Integrating sequence and structural biology with DAS
Andreas Prlic, Thomas A Down, Eugene Kulesha, Robert D Finn, Andreas Kahari, Tim JP Hubbard
BMC Bioinformatics 2007, 8:333 (12 September 2007)
[abstract] [pdf] [pubmed] [related articles]

A typical stylesheet looks like this:

<?xml version="1.0" standalone="yes"?>
<DASSTYLE>
  <STYLESHEET>
    <CATEGORY id="[whatever]">
      <TYPE id="[Feature Type]">
        <GLYPH>
         <GRADIENT>
	  	 <COLOR1>#000000</COLOR1>
	  	 <COLOR2>#999999</COLOR2>
	  	 <COLOR3>#FFFFFF</COLOR3>
		 <MIN>-123</MIN>
		 <MAX>123</MAX>
		 <STEPS>3</STEPS>
        </GRADIENT>
       </GLYPH>
      </TYPE>     
    </CATEGORY>
  </STYLESHEET>
</DASSTYLE>
The GRADIENT element defines which kind of display should be chosen. Currently supported are:

COLOR1, COLOR2, COLOR3 allow to specify the colors used for the values of the gradient. Color gradients based on two or three colors are supported. If COLOR1 and COLOR2/3 are identical, or COLOR2/3 are not specified, no gradient will be displayed and all sequence positions will have the same color.

MAX and MIN (optional) are the largest and smallest score that should be used for the coloring. MIN corresponds to COLOR1 and MAX corresponds to COLOR3 (COLOR2 if gradient is based on two colors).

STEPS (optional) allows to specify the number of steps used in a color gradient.

Truncation of exceeding scores

If the features contain scores that are >= MAX then their display height gets trunkated. The color will be the same as for MAX. The same principle applies also to scores that are <= MIN, which will have the same coloring and height as well.

Feature types per track

For most CATEGORY types only one feature type per track will be displayed. The only exception is function where it is possible to overlay 2 different functions in one line, see example above.

SPICE examples

Here some examples how SPICE draws Histogram data. In SPICE the display for TILING data is identical with the HISTOGRAM style.

GRADIENT
HISTOGRAM (positive values)
HISTOGRAM (negative & positive values)
LINEPLOT (positive values)
LINEPLOT (negative & positive values)
Some more examples for SPICE are available from the SPICE website.