Skip to content

Line tracks

Peter Kerpedjiev edited this page Mar 23, 2017 · 3 revisions

image

Horizontal lines tracks display 1D tiled data as a line.

Value scaling

The values in a line are scaled according to the minimum and maximum visible values in the currently visible tiles (the so-called "visible values"). If the default linear scaling is selected, then values are scaled linearly from the minimum to the maximum visible values. If log scaling is selected, then to avoid having to scale values equal to 0, a pseudocount equal to the median of the "visible" values is added to each value and values are scaled from log(median_value) to log(max_value+median_value).

Configurable options

Label position

The label position indicates where the name of the track will be drawn. The example on the left has been labelled as "wgEncodeSydhTfbsGm12878Rad21IggrabSig.hitile". The available values are topLeft, topRight, bottomLeft, bottomRight, and hidden.

Axis position

They can be adorned with an axis using the axisPositionHorizontal option. The default value is right, but can be set to null or hidden if no axis is desired. For vertical line axes use the axisPositionVertical option with available options top, bottom and hidden.

Stroke color

The stroke color determines how to color the drawn line. It can be configured using hex or word colors in the config file or selected from the presets shown in the track config menu.

Example configuration (horizontal line)

   {
    "server": "http://higlass.io/api/v1",
    "tilesetUid": "b6qFe7fOSnaX-YkP2kzN1w",
    "type": "horizontal-line",
    "options": {
            labelPosition: 'topLeft',
        "axisPositionHorizontal": "left",
           lineStrokeColor: 'blue',
    }
  }

Example configuration (vertical line)

   {
    "server": "http://higlass.io/api/v1",
    "tilesetUid": "b6qFe7fOSnaX-YkP2kzN1w",
    "type": "vertical-line",
    "options": {
        "axisPositionVertical": "right"
    }
  }